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 "V", | 198 "V", |
199 &g_TestJni_activateHardwareAcceleration); | 199 &g_TestJni_activateHardwareAcceleration); |
200 | 200 |
201 env->CallVoidMethod(obj.obj(), | 201 env->CallVoidMethod(obj.obj(), |
202 method_id, activated, as_jint(iPid), as_jint(iType), | 202 method_id, activated, as_jint(iPid), as_jint(iType), |
203 as_jint(iPrimaryID), as_jint(iSecondaryID)); | 203 as_jint(iPrimaryID), as_jint(iSecondaryID)); |
204 jni_generator::CheckException(env); | 204 jni_generator::CheckException(env); |
205 | 205 |
206 } | 206 } |
207 | 207 |
| 208 static base::subtle::AtomicWord g_TestJni_updateStatus = 0; |
| 209 static jint Java_TestJni_updateStatus(JNIEnv* env, JniIntWrapper status) { |
| 210 CHECK_CLAZZ(env, TestJni_clazz(env), |
| 211 TestJni_clazz(env), 0); |
| 212 jmethodID method_id = |
| 213 base::android::MethodID::LazyGet< |
| 214 base::android::MethodID::TYPE_STATIC>( |
| 215 env, TestJni_clazz(env), |
| 216 "updateStatus", |
| 217 |
| 218 "(" |
| 219 "I" |
| 220 ")" |
| 221 "I", |
| 222 &g_TestJni_updateStatus); |
| 223 |
| 224 jint ret = |
| 225 env->CallStaticIntMethod(TestJni_clazz(env), |
| 226 method_id, as_jint(status)); |
| 227 jni_generator::CheckException(env); |
| 228 return ret; |
| 229 } |
| 230 |
208 static base::subtle::AtomicWord g_TestJni_uncheckedCall = 0; | 231 static base::subtle::AtomicWord g_TestJni_uncheckedCall = 0; |
209 static void Java_TestJni_uncheckedCall(JNIEnv* env, const | 232 static void Java_TestJni_uncheckedCall(JNIEnv* env, const |
210 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper iParam) { | 233 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper iParam) { |
211 CHECK_CLAZZ(env, obj.obj(), | 234 CHECK_CLAZZ(env, obj.obj(), |
212 TestJni_clazz(env)); | 235 TestJni_clazz(env)); |
213 jmethodID method_id = | 236 jmethodID method_id = |
214 base::android::MethodID::LazyGet< | 237 base::android::MethodID::LazyGet< |
215 base::android::MethodID::TYPE_INSTANCE>( | 238 base::android::MethodID::TYPE_INSTANCE>( |
216 env, TestJni_clazz(env), | 239 env, TestJni_clazz(env), |
217 "uncheckedCall", | 240 "uncheckedCall", |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 jobject ret = | 510 jobject ret = |
488 env->CallObjectMethod(obj.obj(), | 511 env->CallObjectMethod(obj.obj(), |
489 method_id); | 512 method_id); |
490 jni_generator::CheckException(env); | 513 jni_generator::CheckException(env); |
491 return base::android::ScopedJavaLocalRef<jobject>(env, ret); | 514 return base::android::ScopedJavaLocalRef<jobject>(env, ret); |
492 } | 515 } |
493 | 516 |
494 // Step 3: RegisterNatives. | 517 // Step 3: RegisterNatives. |
495 | 518 |
496 #endif // org_chromium_TestJni_JNI | 519 #endif // org_chromium_TestJni_JNI |
OLD | NEW |