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/cardboard/DisplaySynchronizer | 8 // com/google/vr/cardboard/DisplaySynchronizer |
9 | 9 |
10 // Local modification includes: | 10 // Local modification includes: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 "J" | 104 "J" |
105 "J" | 105 "J" |
106 "I" | 106 "I" |
107 ")" | 107 ")" |
108 "V", | 108 "V", |
109 reinterpret_cast<void*>( | 109 reinterpret_cast<void*>( |
110 Java_com_google_vr_cardboard_DisplaySynchronizer_nativeUpdate)}, | 110 Java_com_google_vr_cardboard_DisplaySynchronizer_nativeUpdate)}, |
111 }; | 111 }; |
112 | 112 |
113 static bool RegisterNativesImpl(JNIEnv* env) { | 113 static bool RegisterNativesImpl(JNIEnv* env) { |
114 if (base::android::IsManualJniRegistrationDisabled()) | 114 if (jni_generator::ShouldSkipJniRegistration(false)) |
115 return true; | 115 return true; |
116 | 116 |
117 const int kMethodsDisplaySynchronizerSize = | 117 const int kMethodsDisplaySynchronizerSize = |
118 arraysize(kMethodsDisplaySynchronizer); | 118 arraysize(kMethodsDisplaySynchronizer); |
119 | 119 |
120 if (env->RegisterNatives(DisplaySynchronizer_clazz(env), | 120 if (env->RegisterNatives(DisplaySynchronizer_clazz(env), |
121 kMethodsDisplaySynchronizer, | 121 kMethodsDisplaySynchronizer, |
122 kMethodsDisplaySynchronizerSize) < 0) { | 122 kMethodsDisplaySynchronizerSize) < 0) { |
123 jni_generator::HandleRegistrationError(env, DisplaySynchronizer_clazz(env), | 123 jni_generator::HandleRegistrationError(env, DisplaySynchronizer_clazz(env), |
124 __FILE__); | 124 __FILE__); |
125 return false; | 125 return false; |
126 } | 126 } |
127 | 127 |
128 return true; | 128 return true; |
129 } | 129 } |
130 | 130 |
131 static bool RegisterDisplaySynchronizerNatives(JNIEnv* env) { | 131 static bool RegisterDisplaySynchronizerNatives(JNIEnv* env) { |
132 return RegisterNativesImpl(env); | 132 return RegisterNativesImpl(env); |
133 } | 133 } |
134 | 134 |
135 } // namespace DisplaySynchronizer | 135 } // namespace DisplaySynchronizer |
136 | 136 |
137 #endif // com_google_vr_cardboard_DisplaySynchronizer_JNI | 137 #endif // com_google_vr_cardboard_DisplaySynchronizer_JNI |
OLD | NEW |