• Home
  • Raw
  • Download

Lines Matching refs:env

56     JNIEnv* env, jclass klass, jstring jpath, jboolean is_core_platform) {  in Java_Main_appendToBootClassLoader()  argument
57 ScopedUtfChars utf(env, jpath); in Java_Main_appendToBootClassLoader()
78 Java_Main_setDexDomain(env, klass, int_index, is_core_platform); in Java_Main_appendToBootClassLoader()
96 static jobject NewInstance(JNIEnv* env, jclass klass) { in NewInstance() argument
97 jmethodID constructor = env->GetMethodID(klass, "<init>", "()V"); in NewInstance()
101 return env->NewObject(klass, constructor); in NewInstance()
105 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverField() argument
106 ScopedUtfChars utf_name(env, name); in Java_JNI_canDiscoverField()
107 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canDiscoverField()
108 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canDiscoverField()
110 env->ExceptionClear(); in Java_JNI_canDiscoverField()
118 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canGetField() argument
119 ScopedUtfChars utf_name(env, name); in Java_JNI_canGetField()
120 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canGetField()
121 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canGetField()
123 env->ExceptionClear(); in Java_JNI_canGetField()
127 env->GetStaticIntField(klass, field); in Java_JNI_canGetField()
129 jobject obj = NewInstance(env, klass); in Java_JNI_canGetField()
131 env->ExceptionDescribe(); in Java_JNI_canGetField()
132 env->ExceptionClear(); in Java_JNI_canGetField()
135 env->GetIntField(obj, field); in Java_JNI_canGetField()
138 if (env->ExceptionOccurred()) { in Java_JNI_canGetField()
139 env->ExceptionDescribe(); in Java_JNI_canGetField()
140 env->ExceptionClear(); in Java_JNI_canGetField()
148 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canSetField() argument
149 ScopedUtfChars utf_name(env, name); in Java_JNI_canSetField()
150 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canSetField()
151 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canSetField()
153 env->ExceptionClear(); in Java_JNI_canSetField()
157 env->SetStaticIntField(klass, field, 42); in Java_JNI_canSetField()
159 jobject obj = NewInstance(env, klass); in Java_JNI_canSetField()
161 env->ExceptionDescribe(); in Java_JNI_canSetField()
162 env->ExceptionClear(); in Java_JNI_canSetField()
165 env->SetIntField(obj, field, 42); in Java_JNI_canSetField()
168 if (env->ExceptionOccurred()) { in Java_JNI_canSetField()
169 env->ExceptionDescribe(); in Java_JNI_canSetField()
170 env->ExceptionClear(); in Java_JNI_canSetField()
178 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverMethod() argument
179 ScopedUtfChars utf_name(env, name); in Java_JNI_canDiscoverMethod()
180 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canDiscoverMethod()
181 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canDiscoverMethod()
183 env->ExceptionClear(); in Java_JNI_canDiscoverMethod()
191 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodA() argument
192 ScopedUtfChars utf_name(env, name); in Java_JNI_canInvokeMethodA()
193 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canInvokeMethodA()
194 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canInvokeMethodA()
196 env->ExceptionClear(); in Java_JNI_canInvokeMethodA()
201 env->CallStaticIntMethodA(klass, method, nullptr); in Java_JNI_canInvokeMethodA()
203 jobject obj = NewInstance(env, klass); in Java_JNI_canInvokeMethodA()
205 env->ExceptionDescribe(); in Java_JNI_canInvokeMethodA()
206 env->ExceptionClear(); in Java_JNI_canInvokeMethodA()
209 env->CallIntMethodA(obj, method, nullptr); in Java_JNI_canInvokeMethodA()
212 if (env->ExceptionOccurred()) { in Java_JNI_canInvokeMethodA()
213 env->ExceptionDescribe(); in Java_JNI_canInvokeMethodA()
214 env->ExceptionClear(); in Java_JNI_canInvokeMethodA()
222 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodV() argument
223 ScopedUtfChars utf_name(env, name); in Java_JNI_canInvokeMethodV()
224 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canInvokeMethodV()
225 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canInvokeMethodV()
227 env->ExceptionClear(); in Java_JNI_canInvokeMethodV()
232 env->CallStaticIntMethod(klass, method); in Java_JNI_canInvokeMethodV()
234 jobject obj = NewInstance(env, klass); in Java_JNI_canInvokeMethodV()
236 env->ExceptionDescribe(); in Java_JNI_canInvokeMethodV()
237 env->ExceptionClear(); in Java_JNI_canInvokeMethodV()
240 env->CallIntMethod(obj, method); in Java_JNI_canInvokeMethodV()
243 if (env->ExceptionOccurred()) { in Java_JNI_canInvokeMethodV()
244 env->ExceptionDescribe(); in Java_JNI_canInvokeMethodV()
245 env->ExceptionClear(); in Java_JNI_canInvokeMethodV()
256 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canDiscoverConstructor() argument
257 ScopedUtfChars utf_args(env, args); in Java_JNI_canDiscoverConstructor()
258 jmethodID constructor = env->GetMethodID(klass, "<init>", utf_args.c_str()); in Java_JNI_canDiscoverConstructor()
260 env->ExceptionClear(); in Java_JNI_canDiscoverConstructor()
268 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorA() argument
269 ScopedUtfChars utf_args(env, args); in Java_JNI_canInvokeConstructorA()
270 jmethodID constructor = env->GetMethodID(klass, "<init>", utf_args.c_str()); in Java_JNI_canInvokeConstructorA()
272 env->ExceptionClear(); in Java_JNI_canInvokeConstructorA()
282 env->NewObjectA(klass, constructor, initargs); in Java_JNI_canInvokeConstructorA()
283 if (env->ExceptionOccurred()) { in Java_JNI_canInvokeConstructorA()
284 env->ExceptionDescribe(); in Java_JNI_canInvokeConstructorA()
285 env->ExceptionClear(); in Java_JNI_canInvokeConstructorA()
293 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorV() argument
294 ScopedUtfChars utf_args(env, args); in Java_JNI_canInvokeConstructorV()
295 jmethodID constructor = env->GetMethodID(klass, "<init>", utf_args.c_str()); in Java_JNI_canInvokeConstructorV()
297 env->ExceptionClear(); in Java_JNI_canInvokeConstructorV()
308 env->NewObject(klass, constructor, initargs[0], initargs[1]); in Java_JNI_canInvokeConstructorV()
309 if (env->ExceptionOccurred()) { in Java_JNI_canInvokeConstructorV()
310 env->ExceptionDescribe(); in Java_JNI_canInvokeConstructorV()
311 env->ExceptionClear(); in Java_JNI_canInvokeConstructorV()