Lines Matching refs:env
30 inline jclass org_chromium_TestJni_clazz(JNIEnv* env) {
31 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni,
39 inline jclass org_chromium_TestJni_00024InfoBar_clazz(JNIEnv* env) {
40 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024InfoBar,
52 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_showConfirmInfoBar(JNIEnv* env, const
58 CHECK_CLAZZ(env, obj.obj(),
59 org_chromium_TestJni_clazz(env), NULL);
62 env, org_chromium_TestJni_clazz(env),
68 env->CallObjectMethod(obj.obj(),
71 jni_generator::CheckException(env);
72 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
76 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_showAutoLoginInfoBar(JNIEnv* env,
81 CHECK_CLAZZ(env, obj.obj(),
82 org_chromium_TestJni_clazz(env), NULL);
85 env, org_chromium_TestJni_clazz(env),
91 env->CallObjectMethod(obj.obj(),
93 jni_generator::CheckException(env);
94 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
98 static void Java_InfoBar_dismiss(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
99 CHECK_CLAZZ(env, obj.obj(),
100 org_chromium_TestJni_00024InfoBar_clazz(env));
103 env, org_chromium_TestJni_00024InfoBar_clazz(env),
108 env->CallVoidMethod(obj.obj(),
110 jni_generator::CheckException(env);
114 static jboolean Java_TestJni_shouldShowAutoLogin(JNIEnv* env, const base::android::JavaRef<jobject>&
119 CHECK_CLAZZ(env, org_chromium_TestJni_clazz(env),
120 org_chromium_TestJni_clazz(env), false);
123 env, org_chromium_TestJni_clazz(env),
129 env->CallStaticBooleanMethod(org_chromium_TestJni_clazz(env),
131 jni_generator::CheckException(env);
136 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_openUrl(JNIEnv* env, const
138 CHECK_CLAZZ(env, org_chromium_TestJni_clazz(env),
139 org_chromium_TestJni_clazz(env), NULL);
142 env, org_chromium_TestJni_clazz(env),
148 env->CallStaticObjectMethod(org_chromium_TestJni_clazz(env),
150 jni_generator::CheckException(env);
151 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
155 static void Java_TestJni_activateHardwareAcceleration(JNIEnv* env, const
161 CHECK_CLAZZ(env, obj.obj(),
162 org_chromium_TestJni_clazz(env));
165 env, org_chromium_TestJni_clazz(env),
170 env->CallVoidMethod(obj.obj(),
173 jni_generator::CheckException(env);
177 static jint Java_TestJni_updateStatus(JNIEnv* env, JniIntWrapper status) {
178 CHECK_CLAZZ(env, org_chromium_TestJni_clazz(env),
179 org_chromium_TestJni_clazz(env), 0);
182 env, org_chromium_TestJni_clazz(env),
188 env->CallStaticIntMethod(org_chromium_TestJni_clazz(env),
190 jni_generator::CheckException(env);
195 static void Java_TestJni_uncheckedCall(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
197 CHECK_CLAZZ(env, obj.obj(),
198 org_chromium_TestJni_clazz(env));
201 env, org_chromium_TestJni_clazz(env),
206 env->CallVoidMethod(obj.obj(),
211 static base::android::ScopedJavaLocalRef<jbyteArray> Java_TestJni_returnByteArray(JNIEnv* env, const
213 CHECK_CLAZZ(env, obj.obj(),
214 org_chromium_TestJni_clazz(env), NULL);
217 env, org_chromium_TestJni_clazz(env),
223 static_cast<jbyteArray>(env->CallObjectMethod(obj.obj(),
225 jni_generator::CheckException(env);
226 return base::android::ScopedJavaLocalRef<jbyteArray>(env, ret);
230 static base::android::ScopedJavaLocalRef<jbooleanArray> Java_TestJni_returnBooleanArray(JNIEnv* env,
232 CHECK_CLAZZ(env, obj.obj(),
233 org_chromium_TestJni_clazz(env), NULL);
236 env, org_chromium_TestJni_clazz(env),
242 static_cast<jbooleanArray>(env->CallObjectMethod(obj.obj(),
244 jni_generator::CheckException(env);
245 return base::android::ScopedJavaLocalRef<jbooleanArray>(env, ret);
249 static base::android::ScopedJavaLocalRef<jcharArray> Java_TestJni_returnCharArray(JNIEnv* env, const
251 CHECK_CLAZZ(env, obj.obj(),
252 org_chromium_TestJni_clazz(env), NULL);
255 env, org_chromium_TestJni_clazz(env),
261 static_cast<jcharArray>(env->CallObjectMethod(obj.obj(),
263 jni_generator::CheckException(env);
264 return base::android::ScopedJavaLocalRef<jcharArray>(env, ret);
268 static base::android::ScopedJavaLocalRef<jshortArray> Java_TestJni_returnShortArray(JNIEnv* env,
270 CHECK_CLAZZ(env, obj.obj(),
271 org_chromium_TestJni_clazz(env), NULL);
274 env, org_chromium_TestJni_clazz(env),
280 static_cast<jshortArray>(env->CallObjectMethod(obj.obj(),
282 jni_generator::CheckException(env);
283 return base::android::ScopedJavaLocalRef<jshortArray>(env, ret);
287 static base::android::ScopedJavaLocalRef<jintArray> Java_TestJni_returnIntArray(JNIEnv* env, const
289 CHECK_CLAZZ(env, obj.obj(),
290 org_chromium_TestJni_clazz(env), NULL);
293 env, org_chromium_TestJni_clazz(env),
299 static_cast<jintArray>(env->CallObjectMethod(obj.obj(),
301 jni_generator::CheckException(env);
302 return base::android::ScopedJavaLocalRef<jintArray>(env, ret);
306 static base::android::ScopedJavaLocalRef<jlongArray> Java_TestJni_returnLongArray(JNIEnv* env, const
308 CHECK_CLAZZ(env, obj.obj(),
309 org_chromium_TestJni_clazz(env), NULL);
312 env, org_chromium_TestJni_clazz(env),
318 static_cast<jlongArray>(env->CallObjectMethod(obj.obj(),
320 jni_generator::CheckException(env);
321 return base::android::ScopedJavaLocalRef<jlongArray>(env, ret);
325 static base::android::ScopedJavaLocalRef<jdoubleArray> Java_TestJni_returnDoubleArray(JNIEnv* env,
327 CHECK_CLAZZ(env, obj.obj(),
328 org_chromium_TestJni_clazz(env), NULL);
331 env, org_chromium_TestJni_clazz(env),
337 static_cast<jdoubleArray>(env->CallObjectMethod(obj.obj(),
339 jni_generator::CheckException(env);
340 return base::android::ScopedJavaLocalRef<jdoubleArray>(env, ret);
344 static base::android::ScopedJavaLocalRef<jobjectArray> Java_TestJni_returnObjectArray(JNIEnv* env,
346 CHECK_CLAZZ(env, obj.obj(),
347 org_chromium_TestJni_clazz(env), NULL);
350 env, org_chromium_TestJni_clazz(env),
356 static_cast<jobjectArray>(env->CallObjectMethod(obj.obj(),
358 jni_generator::CheckException(env);
359 return base::android::ScopedJavaLocalRef<jobjectArray>(env, ret);
364 env, const base::android::JavaRef<jobject>& obj) {
365 CHECK_CLAZZ(env, obj.obj(),
366 org_chromium_TestJni_clazz(env), NULL);
369 env, org_chromium_TestJni_clazz(env),
375 static_cast<jobjectArray>(env->CallObjectMethod(obj.obj(),
377 jni_generator::CheckException(env);
378 return base::android::ScopedJavaLocalRef<jobjectArray>(env, ret);
382 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_getCompressFormat(JNIEnv* env, const
384 CHECK_CLAZZ(env, obj.obj(),
385 org_chromium_TestJni_clazz(env), NULL);
388 env, org_chromium_TestJni_clazz(env),
394 env->CallObjectMethod(obj.obj(),
396 jni_generator::CheckException(env);
397 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
401 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_getCompressFormatList(JNIEnv* env,
403 CHECK_CLAZZ(env, obj.obj(),
404 org_chromium_TestJni_clazz(env), NULL);
407 env, org_chromium_TestJni_clazz(env),
413 env->CallObjectMethod(obj.obj(),
415 jni_generator::CheckException(env);
416 return base::android::ScopedJavaLocalRef<jobject>(env, ret);