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 // java/io/InputStream | 8 // java/io/InputStream |
9 | 9 |
10 #ifndef java_io_InputStream_JNI | 10 #ifndef java_io_InputStream_JNI |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 &g_InputStream_skip); | 214 &g_InputStream_skip); |
215 | 215 |
216 jlong ret = | 216 jlong ret = |
217 env->CallLongMethod(obj, | 217 env->CallLongMethod(obj, |
218 method_id, p0); | 218 method_id, p0); |
219 jni_generator::CheckException(env); | 219 jni_generator::CheckException(env); |
220 return ret; | 220 return ret; |
221 } | 221 } |
222 | 222 |
223 static base::subtle::AtomicWord g_InputStream_Constructor = 0; | 223 static base::subtle::AtomicWord g_InputStream_Constructor = 0; |
224 static ScopedJavaLocalRef<jobject> Java_InputStream_Constructor(JNIEnv* env) | 224 static base::android::ScopedJavaLocalRef<jobject> |
225 __attribute__ ((unused)); | 225 Java_InputStream_Constructor(JNIEnv* env) __attribute__ ((unused)); |
226 static ScopedJavaLocalRef<jobject> Java_InputStream_Constructor(JNIEnv* env) { | 226 static base::android::ScopedJavaLocalRef<jobject> |
| 227 Java_InputStream_Constructor(JNIEnv* env) { |
227 CHECK_CLAZZ(env, InputStream_clazz(env), | 228 CHECK_CLAZZ(env, InputStream_clazz(env), |
228 InputStream_clazz(env), NULL); | 229 InputStream_clazz(env), NULL); |
229 jmethodID method_id = | 230 jmethodID method_id = |
230 base::android::MethodID::LazyGet< | 231 base::android::MethodID::LazyGet< |
231 base::android::MethodID::TYPE_INSTANCE>( | 232 base::android::MethodID::TYPE_INSTANCE>( |
232 env, InputStream_clazz(env), | 233 env, InputStream_clazz(env), |
233 "<init>", | 234 "<init>", |
234 "()V", | 235 "()V", |
235 &g_InputStream_Constructor); | 236 &g_InputStream_Constructor); |
236 | 237 |
237 jobject ret = | 238 jobject ret = |
238 env->NewObject(InputStream_clazz(env), | 239 env->NewObject(InputStream_clazz(env), |
239 method_id); | 240 method_id); |
240 jni_generator::CheckException(env); | 241 jni_generator::CheckException(env); |
241 return ScopedJavaLocalRef<jobject>(env, ret); | 242 return base::android::ScopedJavaLocalRef<jobject>(env, ret); |
242 } | 243 } |
243 | 244 |
244 // Step 3: RegisterNatives. | 245 // Step 3: RegisterNatives. |
245 | 246 |
246 } // namespace JNI_InputStream | 247 } // namespace JNI_InputStream |
247 | 248 |
248 #endif // java_io_InputStream_JNI | 249 #endif // java_io_InputStream_JNI |
OLD | NEW |