MyClassNatives.java revision 1cefdbdff559aff5a3ee5c0878ba3b505109e0f9
195be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw/*
295be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * Copyright (C) 2011 The Android Open Source Project
395be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw *
495be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * Licensed under the Apache License, Version 2.0 (the "License");
595be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * you may not use this file except in compliance with the License.
695be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * You may obtain a copy of the License at
795be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw *
895be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw *      http://www.apache.org/licenses/LICENSE-2.0
933d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7Barry Warsaw *
1095be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * Unless required by applicable law or agreed to in writing, software
1195be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * distributed under the License is distributed on an "AS IS" BASIS,
1295be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13fa488ec2a0c60dc6a90d1be7b58d0a277db97b41Barry Warsaw * See the License for the specific language governing permissions and
14fa488ec2a0c60dc6a90d1be7b58d0a277db97b41Barry Warsaw * limitations under the License.
1595be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw */
1695be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw
1795be23dc8626684caa268df7ff7749fcb89adddfBarry Warsawclass MyClass {
1895be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native void throwException();
1995be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native void foo();
2095be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native int bar(int count);
2195be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    static native int sbar(int count);
2295be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native int fooI(int x);
2395be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native int fooII(int x, int y);
2495be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native long fooJJ(long x, long y);
2595be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native Object fooO(Object x);
2695be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native double fooDD(double x, double y);
2795be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    native Object fooIOO(int x, Object y, Object z);
2895be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    static native Object fooSIOO(int x, Object y, Object z);
2995be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    static native int fooSII(int x, int y);
3095be23dc8626684caa268df7ff7749fcb89adddfBarry Warsaw    static native double fooSDD(double x, double y);
3133d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7Barry Warsaw    static synchronized native Object fooSSIOO(int x, Object y, Object z);
3233d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7Barry Warsaw    static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length);
3333d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7Barry Warsaw    native boolean compareAndSwapInt(Object obj, long offset, int expected, int newval);
3433d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7Barry Warsaw}
35a57dccdcd473f3c8187e68348ebcd71c904be9e3Martin v. Löwis