MyClassNatives.java revision 67375acd9fec74cc2054554fe1ed0a7d213e1e47
19f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom// Copyright 2011 Google Inc. All Rights Reserved.
29f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom
39f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstromclass MyClass {
4a2501990dd0f68baf38ce19251949d7bb3ecfe5aElliott Hughes    native void throwException();
59f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native void foo();
631384c59bb4b387f29f2b6d4d3db886c29b81170Shih-wei Liao    native int bar(int count);
79f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native int fooI(int x);
89f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native int fooII(int x, int y);
99b269d281d16798b0c24027c32ec6507f71b2787Ian Rogers    native long fooJJ(long x, long y);
109b269d281d16798b0c24027c32ec6507f71b2787Ian Rogers    native Object fooO(Object x);
119f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native double fooDD(double x, double y);
129f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native Object fooIOO(int x, Object y, Object z);
139f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    static native Object fooSIOO(int x, Object y, Object z);
1482da44b625a1af03c0b768c71f1cef29831127c3Shih-wei Liao    static native int fooSII(int x, int y);
157a99c11d220ec68c208b507570e3a78c2c18a7a1Ian Rogers    static native double fooSDD(double x, double y);
169f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    static synchronized native Object fooSSIOO(int x, Object y, Object z);
17b9231c81fad1c9d85ea7e6db9120f872e3417380Ian Rogers    static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length);
1867375acd9fec74cc2054554fe1ed0a7d213e1e47Ian Rogers    native boolean compareAndSwapInt(Object obj, long offset, int expected, int newval);
199f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom}
20