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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const JavaParamRef<jthrowable>& e); | 198 const JavaParamRef<jthrowable>& e); |
199 | 199 |
200 extern "C" __attribute__((visibility("default"))) | 200 extern "C" __attribute__((visibility("default"))) |
201 jthrowable Java_org_chromium_TestJni_nativeMessWithJavaException(JNIEnv* env, | 201 jthrowable Java_org_chromium_TestJni_nativeMessWithJavaException(JNIEnv* env, |
202 jclass jcaller, | 202 jclass jcaller, |
203 jthrowable e) { | 203 jthrowable e) { |
204 return MessWithJavaException(env, JavaParamRef<jclass>(env, jcaller), | 204 return MessWithJavaException(env, JavaParamRef<jclass>(env, jcaller), |
205 JavaParamRef<jthrowable>(env, e)).Release(); | 205 JavaParamRef<jthrowable>(env, e)).Release(); |
206 } | 206 } |
207 | 207 |
208 // Step 3: RegisterNatives. | |
209 | |
210 static const JNINativeMethod kMethodsTestJni[] = { | 208 static const JNINativeMethod kMethodsTestJni[] = { |
211 { "nativeInit", | 209 { "nativeInit", |
212 "(" | 210 "(" |
213 ")" | 211 ")" |
214 "I", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeInit) }, | 212 "I", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeInit) }, |
215 { "nativeDestroy", | 213 { "nativeDestroy", |
216 "(" | 214 "(" |
217 "I" | 215 "I" |
218 ")" | 216 ")" |
219 "V", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeDestroy) }, | 217 "V", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeDestroy) }, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 kMethodsTestJniSize) < 0) { | 320 kMethodsTestJniSize) < 0) { |
323 jni_generator::HandleRegistrationError( | 321 jni_generator::HandleRegistrationError( |
324 env, TestJni_clazz(env), __FILE__); | 322 env, TestJni_clazz(env), __FILE__); |
325 return false; | 323 return false; |
326 } | 324 } |
327 | 325 |
328 return true; | 326 return true; |
329 } | 327 } |
330 | 328 |
331 #endif // org_chromium_TestJni_JNI | 329 #endif // org_chromium_TestJni_JNI |
OLD | NEW |