OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is autogenerated by | 5 // This file is autogenerated by |
6 // base/android/jni_generator/jni_generator.py | 6 // base/android/jni_generator/jni_generator.py |
7 // For | 7 // For |
8 // org/chromium/TestJni | 8 // org/chromium/TestJni |
9 | 9 |
10 #ifndef org_chromium_TestJni_JNI | 10 #ifndef org_chromium_TestJni_JNI |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 }; | 61 }; |
62 | 62 |
63 static const JNINativeMethod kMethodsTestJni[] = { | 63 static const JNINativeMethod kMethodsTestJni[] = { |
64 { "nativeInit", | 64 { "nativeInit", |
65 "(" | 65 "(" |
66 ")" | 66 ")" |
67 "I", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeInit) }, | 67 "I", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeInit) }, |
68 }; | 68 }; |
69 | 69 |
70 static bool RegisterNativesImpl(JNIEnv* env) { | 70 static bool RegisterNativesImpl(JNIEnv* env) { |
71 if (base::android::IsManualJniRegistrationDisabled()) return true; | 71 if (jni_generator::ShouldSkipJniRegistration(false)) |
| 72 return true; |
72 | 73 |
73 const int kMethodsMyOtherInnerClassSize = | 74 const int kMethodsMyOtherInnerClassSize = |
74 arraysize(kMethodsMyOtherInnerClass); | 75 arraysize(kMethodsMyOtherInnerClass); |
75 | 76 |
76 if (env->RegisterNatives(MyOtherInnerClass_clazz(env), | 77 if (env->RegisterNatives(MyOtherInnerClass_clazz(env), |
77 kMethodsMyOtherInnerClass, | 78 kMethodsMyOtherInnerClass, |
78 kMethodsMyOtherInnerClassSize) < 0) { | 79 kMethodsMyOtherInnerClassSize) < 0) { |
79 jni_generator::HandleRegistrationError( | 80 jni_generator::HandleRegistrationError( |
80 env, MyOtherInnerClass_clazz(env), __FILE__); | 81 env, MyOtherInnerClass_clazz(env), __FILE__); |
81 return false; | 82 return false; |
82 } | 83 } |
83 | 84 |
84 const int kMethodsTestJniSize = arraysize(kMethodsTestJni); | 85 const int kMethodsTestJniSize = arraysize(kMethodsTestJni); |
85 | 86 |
86 if (env->RegisterNatives(TestJni_clazz(env), | 87 if (env->RegisterNatives(TestJni_clazz(env), |
87 kMethodsTestJni, | 88 kMethodsTestJni, |
88 kMethodsTestJniSize) < 0) { | 89 kMethodsTestJniSize) < 0) { |
89 jni_generator::HandleRegistrationError( | 90 jni_generator::HandleRegistrationError( |
90 env, TestJni_clazz(env), __FILE__); | 91 env, TestJni_clazz(env), __FILE__); |
91 return false; | 92 return false; |
92 } | 93 } |
93 | 94 |
94 return true; | 95 return true; |
95 } | 96 } |
96 | 97 |
97 #endif // org_chromium_TestJni_JNI | 98 #endif // org_chromium_TestJni_JNI |
OLD | NEW |