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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 base::android::MethodID::LazyGet< | 62 base::android::MethodID::LazyGet< |
63 base::android::MethodID::TYPE_INSTANCE>( | 63 base::android::MethodID::TYPE_INSTANCE>( |
64 env, InputStream_clazz(env), | 64 env, InputStream_clazz(env), |
65 "close", | 65 "close", |
66 "()V", | 66 "()V", |
67 &g_InputStream_close); | 67 &g_InputStream_close); |
68 | 68 |
69 env->CallVoidMethod(obj.obj(), | 69 env->CallVoidMethod(obj.obj(), |
70 method_id); | 70 method_id); |
71 jni_generator::CheckException(env); | 71 jni_generator::CheckException(env); |
72 | |
73 } | 72 } |
74 | 73 |
75 static base::subtle::AtomicWord g_InputStream_mark = 0; | 74 static base::subtle::AtomicWord g_InputStream_mark = 0; |
76 static void Java_InputStream_mark(JNIEnv* env, const | 75 static void Java_InputStream_mark(JNIEnv* env, const |
77 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) __attribute__ | 76 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) __attribute__ |
78 ((unused)); | 77 ((unused)); |
79 static void Java_InputStream_mark(JNIEnv* env, const | 78 static void Java_InputStream_mark(JNIEnv* env, const |
80 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) { | 79 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) { |
81 CHECK_CLAZZ(env, obj.obj(), | 80 CHECK_CLAZZ(env, obj.obj(), |
82 InputStream_clazz(env)); | 81 InputStream_clazz(env)); |
83 jmethodID method_id = | 82 jmethodID method_id = |
84 base::android::MethodID::LazyGet< | 83 base::android::MethodID::LazyGet< |
85 base::android::MethodID::TYPE_INSTANCE>( | 84 base::android::MethodID::TYPE_INSTANCE>( |
86 env, InputStream_clazz(env), | 85 env, InputStream_clazz(env), |
87 "mark", | 86 "mark", |
88 "(I)V", | 87 "(I)V", |
89 &g_InputStream_mark); | 88 &g_InputStream_mark); |
90 | 89 |
91 env->CallVoidMethod(obj.obj(), | 90 env->CallVoidMethod(obj.obj(), |
92 method_id, as_jint(p0)); | 91 method_id, as_jint(p0)); |
93 jni_generator::CheckException(env); | 92 jni_generator::CheckException(env); |
94 | |
95 } | 93 } |
96 | 94 |
97 static base::subtle::AtomicWord g_InputStream_markSupported = 0; | 95 static base::subtle::AtomicWord g_InputStream_markSupported = 0; |
98 static jboolean Java_InputStream_markSupported(JNIEnv* env, const | 96 static jboolean Java_InputStream_markSupported(JNIEnv* env, const |
99 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); | 97 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); |
100 static jboolean Java_InputStream_markSupported(JNIEnv* env, const | 98 static jboolean Java_InputStream_markSupported(JNIEnv* env, const |
101 base::android::JavaRefOrBare<jobject>& obj) { | 99 base::android::JavaRefOrBare<jobject>& obj) { |
102 CHECK_CLAZZ(env, obj.obj(), | 100 CHECK_CLAZZ(env, obj.obj(), |
103 InputStream_clazz(env), false); | 101 InputStream_clazz(env), false); |
104 jmethodID method_id = | 102 jmethodID method_id = |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 base::android::MethodID::LazyGet< | 199 base::android::MethodID::LazyGet< |
202 base::android::MethodID::TYPE_INSTANCE>( | 200 base::android::MethodID::TYPE_INSTANCE>( |
203 env, InputStream_clazz(env), | 201 env, InputStream_clazz(env), |
204 "reset", | 202 "reset", |
205 "()V", | 203 "()V", |
206 &g_InputStream_reset); | 204 &g_InputStream_reset); |
207 | 205 |
208 env->CallVoidMethod(obj.obj(), | 206 env->CallVoidMethod(obj.obj(), |
209 method_id); | 207 method_id); |
210 jni_generator::CheckException(env); | 208 jni_generator::CheckException(env); |
211 | |
212 } | 209 } |
213 | 210 |
214 static base::subtle::AtomicWord g_InputStream_skip = 0; | 211 static base::subtle::AtomicWord g_InputStream_skip = 0; |
215 static jlong Java_InputStream_skip(JNIEnv* env, const | 212 static jlong Java_InputStream_skip(JNIEnv* env, const |
216 base::android::JavaRefOrBare<jobject>& obj, jlong p0) __attribute__ | 213 base::android::JavaRefOrBare<jobject>& obj, jlong p0) __attribute__ |
217 ((unused)); | 214 ((unused)); |
218 static jlong Java_InputStream_skip(JNIEnv* env, const | 215 static jlong Java_InputStream_skip(JNIEnv* env, const |
219 base::android::JavaRefOrBare<jobject>& obj, jlong p0) { | 216 base::android::JavaRefOrBare<jobject>& obj, jlong p0) { |
220 CHECK_CLAZZ(env, obj.obj(), | 217 CHECK_CLAZZ(env, obj.obj(), |
221 InputStream_clazz(env), 0); | 218 InputStream_clazz(env), 0); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 method_id); | 251 method_id); |
255 jni_generator::CheckException(env); | 252 jni_generator::CheckException(env); |
256 return base::android::ScopedJavaLocalRef<jobject>(env, ret); | 253 return base::android::ScopedJavaLocalRef<jobject>(env, ret); |
257 } | 254 } |
258 | 255 |
259 // Step 3: RegisterNatives. | 256 // Step 3: RegisterNatives. |
260 | 257 |
261 } // namespace JNI_InputStream | 258 } // namespace JNI_InputStream |
262 | 259 |
263 #endif // java_io_InputStream_JNI | 260 #endif // java_io_InputStream_JNI |
OLD | NEW |