• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2007 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #define LOG_TAG "NativeTestTarget"
18 
19 #include "JNIHelp.h"
20 #include "JniConstants.h"
21 
NativeTestTarget_emptyJniStaticSynchronizedMethod0(JNIEnv *,jclass)22 static void NativeTestTarget_emptyJniStaticSynchronizedMethod0(JNIEnv*, jclass) { }
NativeTestTarget_emptyJniSynchronizedMethod0(JNIEnv *,jclass)23 static void NativeTestTarget_emptyJniSynchronizedMethod0(JNIEnv*, jclass) { }
24 
25 static JNINativeMethod gMethods_NormalOnly[] = {
26     NATIVE_METHOD(NativeTestTarget, emptyJniStaticSynchronizedMethod0, "()V"),
27     NATIVE_METHOD(NativeTestTarget, emptyJniSynchronizedMethod0, "()V"),
28 };
29 
30 
NativeTestTarget_emptyJniMethod0(JNIEnv *,jobject)31 static void NativeTestTarget_emptyJniMethod0(JNIEnv*, jobject) { }
NativeTestTarget_emptyJniMethod6(JNIEnv *,jobject,int,int,int,int,int,int)32 static void NativeTestTarget_emptyJniMethod6(JNIEnv*, jobject, int, int, int, int, int, int) { }
NativeTestTarget_emptyJniMethod6L(JNIEnv *,jobject,jobject,jarray,jarray,jobject,jarray,jarray)33 static void NativeTestTarget_emptyJniMethod6L(JNIEnv*, jobject, jobject, jarray, jarray, jobject, jarray, jarray) { }
NativeTestTarget_emptyJniStaticMethod6L(JNIEnv *,jclass,jobject,jarray,jarray,jobject,jarray,jarray)34 static void NativeTestTarget_emptyJniStaticMethod6L(JNIEnv*, jclass, jobject, jarray, jarray, jobject, jarray, jarray) { }
35 
NativeTestTarget_emptyJniStaticMethod0(JNIEnv *,jclass)36 static void NativeTestTarget_emptyJniStaticMethod0(JNIEnv*, jclass) { }
NativeTestTarget_emptyJniStaticMethod6(JNIEnv *,jclass,int,int,int,int,int,int)37 static void NativeTestTarget_emptyJniStaticMethod6(JNIEnv*, jclass, int, int, int, int, int, int) { }
38 
39 static JNINativeMethod gMethods[] = {
40     NATIVE_METHOD(NativeTestTarget, emptyJniMethod0, "()V"),
41     NATIVE_METHOD(NativeTestTarget, emptyJniMethod6, "(IIIIII)V"),
42     NATIVE_METHOD(NativeTestTarget, emptyJniMethod6L, "(Ljava/lang/String;[Ljava/lang/String;[[ILjava/lang/Object;[Ljava/lang/Object;[[[[Ljava/lang/Object;)V"),
43     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod6L, "(Ljava/lang/String;[Ljava/lang/String;[[ILjava/lang/Object;[Ljava/lang/Object;[[[[Ljava/lang/Object;)V"),
44     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod0, "()V"),
45     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod6, "(IIIIII)V"),
46 };
47 
NativeTestTarget_emptyJniMethod0_Fast(JNIEnv *,jobject)48 static void NativeTestTarget_emptyJniMethod0_Fast(JNIEnv*, jobject) { }
NativeTestTarget_emptyJniMethod6_Fast(JNIEnv *,jobject,int,int,int,int,int,int)49 static void NativeTestTarget_emptyJniMethod6_Fast(JNIEnv*, jobject, int, int, int, int, int, int) { }
NativeTestTarget_emptyJniMethod6L_Fast(JNIEnv *,jobject,jobject,jarray,jarray,jobject,jarray,jarray)50 static void NativeTestTarget_emptyJniMethod6L_Fast(JNIEnv*, jobject, jobject, jarray, jarray, jobject, jarray, jarray) { }
NativeTestTarget_emptyJniStaticMethod6L_Fast(JNIEnv *,jclass,jobject,jarray,jarray,jobject,jarray,jarray)51 static void NativeTestTarget_emptyJniStaticMethod6L_Fast(JNIEnv*, jclass, jobject, jarray, jarray, jobject, jarray, jarray) { }
52 
NativeTestTarget_emptyJniStaticMethod0_Fast(JNIEnv *,jclass)53 static void NativeTestTarget_emptyJniStaticMethod0_Fast(JNIEnv*, jclass) { }
NativeTestTarget_emptyJniStaticMethod6_Fast(JNIEnv *,jclass,int,int,int,int,int,int)54 static void NativeTestTarget_emptyJniStaticMethod6_Fast(JNIEnv*, jclass, int, int, int, int, int, int) { }
55 
56 static JNINativeMethod gMethods_Fast[] = {
57     NATIVE_METHOD(NativeTestTarget, emptyJniMethod0_Fast, "()V"),
58     NATIVE_METHOD(NativeTestTarget, emptyJniMethod6_Fast, "(IIIIII)V"),
59     NATIVE_METHOD(NativeTestTarget, emptyJniMethod6L_Fast, "(Ljava/lang/String;[Ljava/lang/String;[[ILjava/lang/Object;[Ljava/lang/Object;[[[[Ljava/lang/Object;)V"),
60     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod6L_Fast, "(Ljava/lang/String;[Ljava/lang/String;[[ILjava/lang/Object;[Ljava/lang/Object;[[[[Ljava/lang/Object;)V"),
61     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod0_Fast, "()V"),
62     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod6_Fast, "(IIIIII)V"),
63 };
64 
65 
NativeTestTarget_emptyJniStaticMethod0_Critical()66 static void NativeTestTarget_emptyJniStaticMethod0_Critical() { }
NativeTestTarget_emptyJniStaticMethod6_Critical(int,int,int,int,int,int)67 static void NativeTestTarget_emptyJniStaticMethod6_Critical( int, int, int, int, int, int) { }
68 
69 static JNINativeMethod gMethods_Critical[] = {
70     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod0_Critical, "()V"),
71     NATIVE_METHOD(NativeTestTarget, emptyJniStaticMethod6_Critical, "(IIIIII)V"),
72 };
register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv * env)73 int register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv* env) {
74     jniRegisterNativeMethods(env, "org/apache/harmony/dalvik/NativeTestTarget", gMethods_NormalOnly, NELEM(gMethods_NormalOnly));
75     jniRegisterNativeMethods(env, "org/apache/harmony/dalvik/NativeTestTarget", gMethods, NELEM(gMethods));
76     jniRegisterNativeMethods(env, "org/apache/harmony/dalvik/NativeTestTarget", gMethods_Fast, NELEM(gMethods_Fast));
77     jniRegisterNativeMethods(env, "org/apache/harmony/dalvik/NativeTestTarget", gMethods_Critical, NELEM(gMethods_Critical));
78 
79     return 0;
80 }
81