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 of the same format as file that generated by | 5 // This file is of the same format as file that generated by |
6 // base/android/jni_generator/jni_generator.py | 6 // base/android/jni_generator/jni_generator.py |
7 // For | 7 // For |
8 // com/google/vr/ndk/base/GvrApi | 8 // com/google/vr/ndk/base/GvrApi |
9 | 9 |
10 // Local modification includes: | 10 // Local modification includes: |
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 {"nativeUsingVrDisplayService", | 1276 {"nativeUsingVrDisplayService", |
1277 "(" | 1277 "(" |
1278 "J" | 1278 "J" |
1279 ")" | 1279 ")" |
1280 "Z", | 1280 "Z", |
1281 reinterpret_cast<void*>( | 1281 reinterpret_cast<void*>( |
1282 Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService)}, | 1282 Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService)}, |
1283 }; | 1283 }; |
1284 | 1284 |
1285 static bool RegisterNativesImpl(JNIEnv* env) { | 1285 static bool RegisterNativesImpl(JNIEnv* env) { |
1286 if (base::android::IsManualJniRegistrationDisabled()) | 1286 if (jni_generator::ShouldSkipJniRegistration(false)) |
1287 return true; | 1287 return true; |
1288 | 1288 |
1289 const int kMethodsGvrApiSize = arraysize(kMethodsGvrApi); | 1289 const int kMethodsGvrApiSize = arraysize(kMethodsGvrApi); |
1290 | 1290 |
1291 if (env->RegisterNatives(GvrApi_clazz(env), kMethodsGvrApi, | 1291 if (env->RegisterNatives(GvrApi_clazz(env), kMethodsGvrApi, |
1292 kMethodsGvrApiSize) < 0) { | 1292 kMethodsGvrApiSize) < 0) { |
1293 jni_generator::HandleRegistrationError(env, GvrApi_clazz(env), __FILE__); | 1293 jni_generator::HandleRegistrationError(env, GvrApi_clazz(env), __FILE__); |
1294 return false; | 1294 return false; |
1295 } | 1295 } |
1296 | 1296 |
1297 return true; | 1297 return true; |
1298 } | 1298 } |
1299 | 1299 |
1300 static bool RegisterGvrApiNatives(JNIEnv* env) { | 1300 static bool RegisterGvrApiNatives(JNIEnv* env) { |
1301 return RegisterNativesImpl(env); | 1301 return RegisterNativesImpl(env); |
1302 } | 1302 } |
1303 | 1303 |
1304 } // namespace GvrApi | 1304 } // namespace GvrApi |
1305 | 1305 |
1306 #endif // com_google_vr_ndk_base_GvrApi_JNI | 1306 #endif // com_google_vr_ndk_base_GvrApi_JNI |
OLD | NEW |