MyClassNatives.java revision 2faa5f1271587cda765f26bcf2951065300a01ff
12faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes/*
22faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Copyright (C) 2011 The Android Open Source Project
32faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
42faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
52faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * you may not use this file except in compliance with the License.
62faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * You may obtain a copy of the License at
72faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
82faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
92faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
102faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Unless required by applicable law or agreed to in writing, software
112faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
122faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * See the License for the specific language governing permissions and
142faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * limitations under the License.
152faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes */
169f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom
179f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstromclass MyClass {
18a2501990dd0f68baf38ce19251949d7bb3ecfe5aElliott Hughes    native void throwException();
199f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native void foo();
2031384c59bb4b387f29f2b6d4d3db886c29b81170Shih-wei Liao    native int bar(int count);
219f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native int fooI(int x);
229f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native int fooII(int x, int y);
239b269d281d16798b0c24027c32ec6507f71b2787Ian Rogers    native long fooJJ(long x, long y);
249b269d281d16798b0c24027c32ec6507f71b2787Ian Rogers    native Object fooO(Object x);
259f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native double fooDD(double x, double y);
269f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    native Object fooIOO(int x, Object y, Object z);
279f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    static native Object fooSIOO(int x, Object y, Object z);
2882da44b625a1af03c0b768c71f1cef29831127c3Shih-wei Liao    static native int fooSII(int x, int y);
297a99c11d220ec68c208b507570e3a78c2c18a7a1Ian Rogers    static native double fooSDD(double x, double y);
309f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom    static synchronized native Object fooSSIOO(int x, Object y, Object z);
31b9231c81fad1c9d85ea7e6db9120f872e3417380Ian Rogers    static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length);
3267375acd9fec74cc2054554fe1ed0a7d213e1e47Ian Rogers    native boolean compareAndSwapInt(Object obj, long offset, int expected, int newval);
339f30b38d74990286ce27c3a45368f73dbe3638f0Brian Carlstrom}
34