Lines Matching refs:env
264 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() argument
267 ScopedLocalRef<jstring> s(env, env->NewStringUTF(msg)); in ThrowNewException()
288 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException()
290 ScopedObjectAccess soa(env); in ThrowNewException()
297 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
301 ScopedObjectAccess soa(env); in ThrowNewException()
591 static jclass FindClass(JNIEnv* env, const char* name) { in FindClass() argument
596 ScopedObjectAccess soa(env); in FindClass()
608 static jmethodID FromReflectedMethod(JNIEnv* env, jobject jlr_method) { in FromReflectedMethod() argument
610 ScopedObjectAccess soa(env); in FromReflectedMethod()
614 static jfieldID FromReflectedField(JNIEnv* env, jobject jlr_field) { in FromReflectedField() argument
616 ScopedObjectAccess soa(env); in FromReflectedField()
620 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument
622 ScopedObjectAccess soa(env); in ToReflectedMethod()
628 reflect_method = env->AllocObject(WellKnownClasses::java_lang_reflect_Constructor); in ToReflectedMethod()
630 reflect_method = env->AllocObject(WellKnownClasses::java_lang_reflect_Method); in ToReflectedMethod()
632 if (env->ExceptionCheck()) { in ToReflectedMethod()
635 SetObjectField(env, reflect_method, in ToReflectedMethod()
640 static jobject ToReflectedField(JNIEnv* env, jclass, jfieldID fid, jboolean) { in ToReflectedField() argument
642 ScopedObjectAccess soa(env); in ToReflectedField()
645 jobject reflect_field = env->AllocObject(WellKnownClasses::java_lang_reflect_Field); in ToReflectedField()
646 if (env->ExceptionCheck()) { in ToReflectedField()
649 SetObjectField(env, reflect_field, in ToReflectedField()
654 static jclass GetObjectClass(JNIEnv* env, jobject java_object) { in GetObjectClass() argument
656 ScopedObjectAccess soa(env); in GetObjectClass()
661 static jclass GetSuperclass(JNIEnv* env, jclass java_class) { in GetSuperclass() argument
663 ScopedObjectAccess soa(env); in GetSuperclass()
670 static jboolean IsAssignableFrom(JNIEnv* env, jclass java_class1, jclass java_class2) { in IsAssignableFrom() argument
673 ScopedObjectAccess soa(env); in IsAssignableFrom()
679 static jboolean IsInstanceOf(JNIEnv* env, jobject jobj, jclass java_class) { in IsInstanceOf() argument
685 ScopedObjectAccess soa(env); in IsInstanceOf()
692 static jint Throw(JNIEnv* env, jthrowable java_exception) { in Throw() argument
693 ScopedObjectAccess soa(env); in Throw()
703 static jint ThrowNew(JNIEnv* env, jclass c, const char* msg) { in ThrowNew() argument
705 return ThrowNewException(env, c, msg, nullptr); in ThrowNew()
708 static jboolean ExceptionCheck(JNIEnv* env) { in ExceptionCheck() argument
709 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? JNI_TRUE : JNI_FALSE; in ExceptionCheck()
712 static void ExceptionClear(JNIEnv* env) { in ExceptionClear() argument
713 ScopedObjectAccess soa(env); in ExceptionClear()
717 static void ExceptionDescribe(JNIEnv* env) { in ExceptionDescribe() argument
718 ScopedObjectAccess soa(env); in ExceptionDescribe()
742 ScopedLocalRef<jthrowable> exception(env, in ExceptionDescribe()
744 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception.get())); in ExceptionDescribe()
745 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe()
750 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe()
764 static jthrowable ExceptionOccurred(JNIEnv* env) { in ExceptionOccurred() argument
765 ScopedObjectAccess soa(env); in ExceptionOccurred()
774 static jint PushLocalFrame(JNIEnv* env, jint capacity) { in PushLocalFrame() argument
776 ScopedObjectAccess soa(env); in PushLocalFrame()
780 static_cast<JNIEnvExt*>(env)->PushFrame(capacity); in PushLocalFrame()
784 static jobject PopLocalFrame(JNIEnv* env, jobject java_survivor) { in PopLocalFrame() argument
785 ScopedObjectAccess soa(env); in PopLocalFrame()
791 static jint EnsureLocalCapacity(JNIEnv* env, jint desired_capacity) { in EnsureLocalCapacity() argument
793 ScopedObjectAccess soa(env); in EnsureLocalCapacity()
797 static jobject NewGlobalRef(JNIEnv* env, jobject obj) { in NewGlobalRef() argument
798 ScopedObjectAccess soa(env); in NewGlobalRef()
811 static void DeleteGlobalRef(JNIEnv* env, jobject obj) { in DeleteGlobalRef() argument
815 JavaVMExt* vm = reinterpret_cast<JNIEnvExt*>(env)->vm; in DeleteGlobalRef()
817 Thread* self = reinterpret_cast<JNIEnvExt*>(env)->self; in DeleteGlobalRef()
826 static jweak NewWeakGlobalRef(JNIEnv* env, jobject obj) { in NewWeakGlobalRef() argument
827 ScopedObjectAccess soa(env); in NewWeakGlobalRef()
831 static void DeleteWeakGlobalRef(JNIEnv* env, jweak obj) { in DeleteWeakGlobalRef() argument
833 ScopedObjectAccess soa(env); in DeleteWeakGlobalRef()
838 static jobject NewLocalRef(JNIEnv* env, jobject obj) { in NewLocalRef() argument
839 ScopedObjectAccess soa(env); in NewLocalRef()
848 static void DeleteLocalRef(JNIEnv* env, jobject obj) { in DeleteLocalRef() argument
852 ScopedObjectAccess soa(env); in DeleteLocalRef()
853 IndirectReferenceTable& locals = reinterpret_cast<JNIEnvExt*>(env)->locals; in DeleteLocalRef()
855 uint32_t cookie = reinterpret_cast<JNIEnvExt*>(env)->local_ref_cookie; in DeleteLocalRef()
867 static jboolean IsSameObject(JNIEnv* env, jobject obj1, jobject obj2) { in IsSameObject() argument
871 ScopedObjectAccess soa(env); in IsSameObject()
877 static jobject AllocObject(JNIEnv* env, jclass java_class) { in AllocObject() argument
879 ScopedObjectAccess soa(env); in AllocObject()
887 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument
892 jobject result = NewObjectV(env, java_class, mid, args); in NewObject()
897 static jobject NewObjectV(JNIEnv* env, jclass java_class, jmethodID mid, va_list args) { in NewObjectV() argument
900 ScopedObjectAccess soa(env); in NewObjectV()
910 CallNonvirtualVoidMethodV(env, local_result, java_class, mid, args); in NewObjectV()
917 static jobject NewObjectA(JNIEnv* env, jclass java_class, jmethodID mid, jvalue* args) { in NewObjectA() argument
920 ScopedObjectAccess soa(env); in NewObjectA()
930 CallNonvirtualVoidMethodA(env, local_result, java_class, mid, args); in NewObjectA()
937 static jmethodID GetMethodID(JNIEnv* env, jclass java_class, const char* name, const char* sig) { in GetMethodID() argument
941 ScopedObjectAccess soa(env); in GetMethodID()
945 static jmethodID GetStaticMethodID(JNIEnv* env, jclass java_class, const char* name, in GetStaticMethodID() argument
950 ScopedObjectAccess soa(env); in GetStaticMethodID()
954 static jobject CallObjectMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallObjectMethod() argument
959 ScopedObjectAccess soa(env); in CallObjectMethod()
965 static jobject CallObjectMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallObjectMethodV() argument
968 ScopedObjectAccess soa(env); in CallObjectMethodV()
973 static jobject CallObjectMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallObjectMethodA() argument
976 ScopedObjectAccess soa(env); in CallObjectMethodA()
982 static jboolean CallBooleanMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallBooleanMethod() argument
987 ScopedObjectAccess soa(env); in CallBooleanMethod()
993 static jboolean CallBooleanMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallBooleanMethodV() argument
996 ScopedObjectAccess soa(env); in CallBooleanMethodV()
1000 static jboolean CallBooleanMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallBooleanMethodA() argument
1003 ScopedObjectAccess soa(env); in CallBooleanMethodA()
1008 static jbyte CallByteMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallByteMethod() argument
1013 ScopedObjectAccess soa(env); in CallByteMethod()
1019 static jbyte CallByteMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallByteMethodV() argument
1022 ScopedObjectAccess soa(env); in CallByteMethodV()
1026 static jbyte CallByteMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallByteMethodA() argument
1029 ScopedObjectAccess soa(env); in CallByteMethodA()
1034 static jchar CallCharMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallCharMethod() argument
1039 ScopedObjectAccess soa(env); in CallCharMethod()
1045 static jchar CallCharMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallCharMethodV() argument
1048 ScopedObjectAccess soa(env); in CallCharMethodV()
1052 static jchar CallCharMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallCharMethodA() argument
1055 ScopedObjectAccess soa(env); in CallCharMethodA()
1060 static jdouble CallDoubleMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallDoubleMethod() argument
1065 ScopedObjectAccess soa(env); in CallDoubleMethod()
1071 static jdouble CallDoubleMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallDoubleMethodV() argument
1074 ScopedObjectAccess soa(env); in CallDoubleMethodV()
1078 static jdouble CallDoubleMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallDoubleMethodA() argument
1081 ScopedObjectAccess soa(env); in CallDoubleMethodA()
1086 static jfloat CallFloatMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallFloatMethod() argument
1091 ScopedObjectAccess soa(env); in CallFloatMethod()
1097 static jfloat CallFloatMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallFloatMethodV() argument
1100 ScopedObjectAccess soa(env); in CallFloatMethodV()
1104 static jfloat CallFloatMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallFloatMethodA() argument
1107 ScopedObjectAccess soa(env); in CallFloatMethodA()
1112 static jint CallIntMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallIntMethod() argument
1117 ScopedObjectAccess soa(env); in CallIntMethod()
1123 static jint CallIntMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallIntMethodV() argument
1126 ScopedObjectAccess soa(env); in CallIntMethodV()
1130 static jint CallIntMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallIntMethodA() argument
1133 ScopedObjectAccess soa(env); in CallIntMethodA()
1138 static jlong CallLongMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallLongMethod() argument
1143 ScopedObjectAccess soa(env); in CallLongMethod()
1149 static jlong CallLongMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallLongMethodV() argument
1152 ScopedObjectAccess soa(env); in CallLongMethodV()
1156 static jlong CallLongMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallLongMethodA() argument
1159 ScopedObjectAccess soa(env); in CallLongMethodA()
1164 static jshort CallShortMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallShortMethod() argument
1169 ScopedObjectAccess soa(env); in CallShortMethod()
1175 static jshort CallShortMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallShortMethodV() argument
1178 ScopedObjectAccess soa(env); in CallShortMethodV()
1182 static jshort CallShortMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallShortMethodA() argument
1185 ScopedObjectAccess soa(env); in CallShortMethodA()
1190 static void CallVoidMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallVoidMethod() argument
1195 ScopedObjectAccess soa(env); in CallVoidMethod()
1200 static void CallVoidMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallVoidMethodV() argument
1203 ScopedObjectAccess soa(env); in CallVoidMethodV()
1207 static void CallVoidMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallVoidMethodA() argument
1210 ScopedObjectAccess soa(env); in CallVoidMethodA()
1214 static jobject CallNonvirtualObjectMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualObjectMethod() argument
1219 ScopedObjectAccess soa(env); in CallNonvirtualObjectMethod()
1226 static jobject CallNonvirtualObjectMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualObjectMethodV() argument
1230 ScopedObjectAccess soa(env); in CallNonvirtualObjectMethodV()
1235 static jobject CallNonvirtualObjectMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualObjectMethodA() argument
1239 ScopedObjectAccess soa(env); in CallNonvirtualObjectMethodA()
1244 static jboolean CallNonvirtualBooleanMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualBooleanMethod() argument
1250 ScopedObjectAccess soa(env); in CallNonvirtualBooleanMethod()
1256 static jboolean CallNonvirtualBooleanMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualBooleanMethodV() argument
1260 ScopedObjectAccess soa(env); in CallNonvirtualBooleanMethodV()
1264 static jboolean CallNonvirtualBooleanMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualBooleanMethodA() argument
1268 ScopedObjectAccess soa(env); in CallNonvirtualBooleanMethodA()
1272 static jbyte CallNonvirtualByteMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualByteMethod() argument
1277 ScopedObjectAccess soa(env); in CallNonvirtualByteMethod()
1283 static jbyte CallNonvirtualByteMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualByteMethodV() argument
1287 ScopedObjectAccess soa(env); in CallNonvirtualByteMethodV()
1291 static jbyte CallNonvirtualByteMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualByteMethodA() argument
1295 ScopedObjectAccess soa(env); in CallNonvirtualByteMethodA()
1299 static jchar CallNonvirtualCharMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualCharMethod() argument
1304 ScopedObjectAccess soa(env); in CallNonvirtualCharMethod()
1310 static jchar CallNonvirtualCharMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualCharMethodV() argument
1314 ScopedObjectAccess soa(env); in CallNonvirtualCharMethodV()
1318 static jchar CallNonvirtualCharMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualCharMethodA() argument
1322 ScopedObjectAccess soa(env); in CallNonvirtualCharMethodA()
1326 static jshort CallNonvirtualShortMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualShortMethod() argument
1331 ScopedObjectAccess soa(env); in CallNonvirtualShortMethod()
1337 static jshort CallNonvirtualShortMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualShortMethodV() argument
1341 ScopedObjectAccess soa(env); in CallNonvirtualShortMethodV()
1345 static jshort CallNonvirtualShortMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualShortMethodA() argument
1349 ScopedObjectAccess soa(env); in CallNonvirtualShortMethodA()
1353 static jint CallNonvirtualIntMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualIntMethod() argument
1358 ScopedObjectAccess soa(env); in CallNonvirtualIntMethod()
1364 static jint CallNonvirtualIntMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualIntMethodV() argument
1368 ScopedObjectAccess soa(env); in CallNonvirtualIntMethodV()
1372 static jint CallNonvirtualIntMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualIntMethodA() argument
1376 ScopedObjectAccess soa(env); in CallNonvirtualIntMethodA()
1380 static jlong CallNonvirtualLongMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualLongMethod() argument
1385 ScopedObjectAccess soa(env); in CallNonvirtualLongMethod()
1391 static jlong CallNonvirtualLongMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualLongMethodV() argument
1395 ScopedObjectAccess soa(env); in CallNonvirtualLongMethodV()
1399 static jlong CallNonvirtualLongMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualLongMethodA() argument
1403 ScopedObjectAccess soa(env); in CallNonvirtualLongMethodA()
1407 static jfloat CallNonvirtualFloatMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualFloatMethod() argument
1412 ScopedObjectAccess soa(env); in CallNonvirtualFloatMethod()
1418 static jfloat CallNonvirtualFloatMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualFloatMethodV() argument
1422 ScopedObjectAccess soa(env); in CallNonvirtualFloatMethodV()
1426 static jfloat CallNonvirtualFloatMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualFloatMethodA() argument
1430 ScopedObjectAccess soa(env); in CallNonvirtualFloatMethodA()
1434 static jdouble CallNonvirtualDoubleMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualDoubleMethod() argument
1439 ScopedObjectAccess soa(env); in CallNonvirtualDoubleMethod()
1445 static jdouble CallNonvirtualDoubleMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualDoubleMethodV() argument
1449 ScopedObjectAccess soa(env); in CallNonvirtualDoubleMethodV()
1453 static jdouble CallNonvirtualDoubleMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualDoubleMethodA() argument
1457 ScopedObjectAccess soa(env); in CallNonvirtualDoubleMethodA()
1461 static void CallNonvirtualVoidMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualVoidMethod() argument
1466 ScopedObjectAccess soa(env); in CallNonvirtualVoidMethod()
1471 static void CallNonvirtualVoidMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualVoidMethodV() argument
1475 ScopedObjectAccess soa(env); in CallNonvirtualVoidMethodV()
1479 static void CallNonvirtualVoidMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualVoidMethodA() argument
1483 ScopedObjectAccess soa(env); in CallNonvirtualVoidMethodA()
1487 static jfieldID GetFieldID(JNIEnv* env, jclass java_class, const char* name, const char* sig) { in GetFieldID() argument
1491 ScopedObjectAccess soa(env); in GetFieldID()
1495 static jfieldID GetStaticFieldID(JNIEnv* env, jclass java_class, const char* name, in GetStaticFieldID() argument
1500 ScopedObjectAccess soa(env); in GetStaticFieldID()
1504 static jobject GetObjectField(JNIEnv* env, jobject obj, jfieldID fid) { in GetObjectField() argument
1507 ScopedObjectAccess soa(env); in GetObjectField()
1513 static jobject GetStaticObjectField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticObjectField() argument
1515 ScopedObjectAccess soa(env); in GetStaticObjectField()
1520 static void SetObjectField(JNIEnv* env, jobject java_object, jfieldID fid, jobject java_value) { in SetObjectField() argument
1523 ScopedObjectAccess soa(env); in SetObjectField()
1530 static void SetStaticObjectField(JNIEnv* env, jclass, jfieldID fid, jobject java_value) { in SetStaticObjectField() argument
1532 ScopedObjectAccess soa(env); in SetStaticObjectField()
1541 ScopedObjectAccess soa(env); \
1548 ScopedObjectAccess soa(env); \
1555 ScopedObjectAccess soa(env); \
1562 ScopedObjectAccess soa(env); \
1566 static jboolean GetBooleanField(JNIEnv* env, jobject obj, jfieldID fid) { in GetBooleanField() argument
1570 static jbyte GetByteField(JNIEnv* env, jobject obj, jfieldID fid) { in GetByteField() argument
1574 static jchar GetCharField(JNIEnv* env, jobject obj, jfieldID fid) { in GetCharField() argument
1578 static jshort GetShortField(JNIEnv* env, jobject obj, jfieldID fid) { in GetShortField() argument
1582 static jint GetIntField(JNIEnv* env, jobject obj, jfieldID fid) { in GetIntField() argument
1586 static jlong GetLongField(JNIEnv* env, jobject obj, jfieldID fid) { in GetLongField() argument
1590 static jfloat GetFloatField(JNIEnv* env, jobject obj, jfieldID fid) { in GetFloatField() argument
1594 static jdouble GetDoubleField(JNIEnv* env, jobject obj, jfieldID fid) { in GetDoubleField() argument
1598 static jboolean GetStaticBooleanField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticBooleanField() argument
1602 static jbyte GetStaticByteField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticByteField() argument
1606 static jchar GetStaticCharField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticCharField() argument
1610 static jshort GetStaticShortField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticShortField() argument
1614 static jint GetStaticIntField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticIntField() argument
1618 static jlong GetStaticLongField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticLongField() argument
1622 static jfloat GetStaticFloatField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticFloatField() argument
1626 static jdouble GetStaticDoubleField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticDoubleField() argument
1630 static void SetBooleanField(JNIEnv* env, jobject obj, jfieldID fid, jboolean v) { in SetBooleanField() argument
1634 static void SetByteField(JNIEnv* env, jobject obj, jfieldID fid, jbyte v) { in SetByteField() argument
1638 static void SetCharField(JNIEnv* env, jobject obj, jfieldID fid, jchar v) { in SetCharField() argument
1642 static void SetFloatField(JNIEnv* env, jobject obj, jfieldID fid, jfloat v) { in SetFloatField() argument
1646 static void SetDoubleField(JNIEnv* env, jobject obj, jfieldID fid, jdouble v) { in SetDoubleField() argument
1650 static void SetIntField(JNIEnv* env, jobject obj, jfieldID fid, jint v) { in SetIntField() argument
1654 static void SetLongField(JNIEnv* env, jobject obj, jfieldID fid, jlong v) { in SetLongField() argument
1658 static void SetShortField(JNIEnv* env, jobject obj, jfieldID fid, jshort v) { in SetShortField() argument
1662 static void SetStaticBooleanField(JNIEnv* env, jclass, jfieldID fid, jboolean v) { in SetStaticBooleanField() argument
1666 static void SetStaticByteField(JNIEnv* env, jclass, jfieldID fid, jbyte v) { in SetStaticByteField() argument
1670 static void SetStaticCharField(JNIEnv* env, jclass, jfieldID fid, jchar v) { in SetStaticCharField() argument
1674 static void SetStaticFloatField(JNIEnv* env, jclass, jfieldID fid, jfloat v) { in SetStaticFloatField() argument
1678 static void SetStaticDoubleField(JNIEnv* env, jclass, jfieldID fid, jdouble v) { in SetStaticDoubleField() argument
1682 static void SetStaticIntField(JNIEnv* env, jclass, jfieldID fid, jint v) { in SetStaticIntField() argument
1686 static void SetStaticLongField(JNIEnv* env, jclass, jfieldID fid, jlong v) { in SetStaticLongField() argument
1690 static void SetStaticShortField(JNIEnv* env, jclass, jfieldID fid, jshort v) { in SetStaticShortField() argument
1694 static jobject CallStaticObjectMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticObjectMethod() argument
1698 ScopedObjectAccess soa(env); in CallStaticObjectMethod()
1705 static jobject CallStaticObjectMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticObjectMethodV() argument
1707 ScopedObjectAccess soa(env); in CallStaticObjectMethodV()
1712 static jobject CallStaticObjectMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticObjectMethodA() argument
1714 ScopedObjectAccess soa(env); in CallStaticObjectMethodA()
1719 static jboolean CallStaticBooleanMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticBooleanMethod() argument
1723 ScopedObjectAccess soa(env); in CallStaticBooleanMethod()
1729 static jboolean CallStaticBooleanMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticBooleanMethodV() argument
1731 ScopedObjectAccess soa(env); in CallStaticBooleanMethodV()
1735 static jboolean CallStaticBooleanMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticBooleanMethodA() argument
1737 ScopedObjectAccess soa(env); in CallStaticBooleanMethodA()
1741 static jbyte CallStaticByteMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticByteMethod() argument
1745 ScopedObjectAccess soa(env); in CallStaticByteMethod()
1751 static jbyte CallStaticByteMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticByteMethodV() argument
1753 ScopedObjectAccess soa(env); in CallStaticByteMethodV()
1757 static jbyte CallStaticByteMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticByteMethodA() argument
1759 ScopedObjectAccess soa(env); in CallStaticByteMethodA()
1763 static jchar CallStaticCharMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticCharMethod() argument
1767 ScopedObjectAccess soa(env); in CallStaticCharMethod()
1773 static jchar CallStaticCharMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticCharMethodV() argument
1775 ScopedObjectAccess soa(env); in CallStaticCharMethodV()
1779 static jchar CallStaticCharMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticCharMethodA() argument
1781 ScopedObjectAccess soa(env); in CallStaticCharMethodA()
1785 static jshort CallStaticShortMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticShortMethod() argument
1789 ScopedObjectAccess soa(env); in CallStaticShortMethod()
1795 static jshort CallStaticShortMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticShortMethodV() argument
1797 ScopedObjectAccess soa(env); in CallStaticShortMethodV()
1801 static jshort CallStaticShortMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticShortMethodA() argument
1803 ScopedObjectAccess soa(env); in CallStaticShortMethodA()
1807 static jint CallStaticIntMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticIntMethod() argument
1811 ScopedObjectAccess soa(env); in CallStaticIntMethod()
1817 static jint CallStaticIntMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticIntMethodV() argument
1819 ScopedObjectAccess soa(env); in CallStaticIntMethodV()
1823 static jint CallStaticIntMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticIntMethodA() argument
1825 ScopedObjectAccess soa(env); in CallStaticIntMethodA()
1829 static jlong CallStaticLongMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticLongMethod() argument
1833 ScopedObjectAccess soa(env); in CallStaticLongMethod()
1839 static jlong CallStaticLongMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticLongMethodV() argument
1841 ScopedObjectAccess soa(env); in CallStaticLongMethodV()
1845 static jlong CallStaticLongMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticLongMethodA() argument
1847 ScopedObjectAccess soa(env); in CallStaticLongMethodA()
1851 static jfloat CallStaticFloatMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticFloatMethod() argument
1855 ScopedObjectAccess soa(env); in CallStaticFloatMethod()
1861 static jfloat CallStaticFloatMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticFloatMethodV() argument
1863 ScopedObjectAccess soa(env); in CallStaticFloatMethodV()
1867 static jfloat CallStaticFloatMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticFloatMethodA() argument
1869 ScopedObjectAccess soa(env); in CallStaticFloatMethodA()
1873 static jdouble CallStaticDoubleMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticDoubleMethod() argument
1877 ScopedObjectAccess soa(env); in CallStaticDoubleMethod()
1883 static jdouble CallStaticDoubleMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticDoubleMethodV() argument
1885 ScopedObjectAccess soa(env); in CallStaticDoubleMethodV()
1889 static jdouble CallStaticDoubleMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticDoubleMethodA() argument
1891 ScopedObjectAccess soa(env); in CallStaticDoubleMethodA()
1895 static void CallStaticVoidMethod(JNIEnv* env, jclass, jmethodID mid, ...) { in CallStaticVoidMethod() argument
1899 ScopedObjectAccess soa(env); in CallStaticVoidMethod()
1904 static void CallStaticVoidMethodV(JNIEnv* env, jclass, jmethodID mid, va_list args) { in CallStaticVoidMethodV() argument
1906 ScopedObjectAccess soa(env); in CallStaticVoidMethodV()
1910 static void CallStaticVoidMethodA(JNIEnv* env, jclass, jmethodID mid, jvalue* args) { in CallStaticVoidMethodA() argument
1912 ScopedObjectAccess soa(env); in CallStaticVoidMethodA()
1916 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) { in NewString() argument
1925 ScopedObjectAccess soa(env); in NewString()
1930 static jstring NewStringUTF(JNIEnv* env, const char* utf) { in NewStringUTF() argument
1934 ScopedObjectAccess soa(env); in NewStringUTF()
1939 static jsize GetStringLength(JNIEnv* env, jstring java_string) { in GetStringLength() argument
1941 ScopedObjectAccess soa(env); in GetStringLength()
1945 static jsize GetStringUTFLength(JNIEnv* env, jstring java_string) { in GetStringUTFLength() argument
1947 ScopedObjectAccess soa(env); in GetStringUTFLength()
1951 static void GetStringRegion(JNIEnv* env, jstring java_string, jsize start, jsize length, in GetStringRegion() argument
1954 ScopedObjectAccess soa(env); in GetStringRegion()
1965 static void GetStringUTFRegion(JNIEnv* env, jstring java_string, jsize start, jsize length, in GetStringUTFRegion() argument
1968 ScopedObjectAccess soa(env); in GetStringUTFRegion()
1979 static const jchar* GetStringChars(JNIEnv* env, jstring java_string, jboolean* is_copy) { in GetStringChars() argument
1981 ScopedObjectAccess soa(env); in GetStringChars()
2004 static void ReleaseStringChars(JNIEnv* env, jstring java_string, const jchar* chars) { in ReleaseStringChars() argument
2006 ScopedObjectAccess soa(env); in ReleaseStringChars()
2014 static const jchar* GetStringCritical(JNIEnv* env, jstring java_string, jboolean* is_copy) { in GetStringCritical() argument
2016 ScopedObjectAccess soa(env); in GetStringCritical()
2032 static void ReleaseStringCritical(JNIEnv* env, jstring java_string, const jchar* chars) { in ReleaseStringCritical() argument
2034 ScopedObjectAccess soa(env); in ReleaseStringCritical()
2043 static const char* GetStringUTFChars(JNIEnv* env, jstring java_string, jboolean* is_copy) { in GetStringUTFChars() argument
2050 ScopedObjectAccess soa(env); in GetStringUTFChars()
2061 static void ReleaseStringUTFChars(JNIEnv* env, jstring, const char* chars) { in ReleaseStringUTFChars() argument
2065 static jsize GetArrayLength(JNIEnv* env, jarray java_array) { in GetArrayLength() argument
2067 ScopedObjectAccess soa(env); in GetArrayLength()
2076 static jobject GetObjectArrayElement(JNIEnv* env, jobjectArray java_array, jsize index) { in GetObjectArrayElement() argument
2078 ScopedObjectAccess soa(env); in GetObjectArrayElement()
2084 static void SetObjectArrayElement(JNIEnv* env, jobjectArray java_array, jsize index, in SetObjectArrayElement() argument
2087 ScopedObjectAccess soa(env); in SetObjectArrayElement()
2094 static jbooleanArray NewBooleanArray(JNIEnv* env, jsize length) { in NewBooleanArray() argument
2095 return NewPrimitiveArray<jbooleanArray, mirror::BooleanArray>(env, length); in NewBooleanArray()
2098 static jbyteArray NewByteArray(JNIEnv* env, jsize length) { in NewByteArray() argument
2099 return NewPrimitiveArray<jbyteArray, mirror::ByteArray>(env, length); in NewByteArray()
2102 static jcharArray NewCharArray(JNIEnv* env, jsize length) { in NewCharArray() argument
2103 return NewPrimitiveArray<jcharArray, mirror::CharArray>(env, length); in NewCharArray()
2106 static jdoubleArray NewDoubleArray(JNIEnv* env, jsize length) { in NewDoubleArray() argument
2107 return NewPrimitiveArray<jdoubleArray, mirror::DoubleArray>(env, length); in NewDoubleArray()
2110 static jfloatArray NewFloatArray(JNIEnv* env, jsize length) { in NewFloatArray() argument
2111 return NewPrimitiveArray<jfloatArray, mirror::FloatArray>(env, length); in NewFloatArray()
2114 static jintArray NewIntArray(JNIEnv* env, jsize length) { in NewIntArray() argument
2115 return NewPrimitiveArray<jintArray, mirror::IntArray>(env, length); in NewIntArray()
2118 static jlongArray NewLongArray(JNIEnv* env, jsize length) { in NewLongArray() argument
2119 return NewPrimitiveArray<jlongArray, mirror::LongArray>(env, length); in NewLongArray()
2122 static jobjectArray NewObjectArray(JNIEnv* env, jsize length, jclass element_jclass, in NewObjectArray() argument
2131 ScopedObjectAccess soa(env); in NewObjectArray()
2169 static jshortArray NewShortArray(JNIEnv* env, jsize length) { in NewShortArray() argument
2170 return NewPrimitiveArray<jshortArray, mirror::ShortArray>(env, length); in NewShortArray()
2173 static void* GetPrimitiveArrayCritical(JNIEnv* env, jarray java_array, jboolean* is_copy) { in GetPrimitiveArrayCritical() argument
2175 ScopedObjectAccess soa(env); in GetPrimitiveArrayCritical()
2194 static void ReleasePrimitiveArrayCritical(JNIEnv* env, jarray java_array, void* elements, in ReleasePrimitiveArrayCritical() argument
2197 ScopedObjectAccess soa(env); in ReleasePrimitiveArrayCritical()
2208 static jboolean* GetBooleanArrayElements(JNIEnv* env, jbooleanArray array, jboolean* is_copy) { in GetBooleanArrayElements() argument
2209 return GetPrimitiveArray<jbooleanArray, jboolean, mirror::BooleanArray>(env, array, is_copy); in GetBooleanArrayElements()
2212 static jbyte* GetByteArrayElements(JNIEnv* env, jbyteArray array, jboolean* is_copy) { in GetByteArrayElements() argument
2213 return GetPrimitiveArray<jbyteArray, jbyte, mirror::ByteArray>(env, array, is_copy); in GetByteArrayElements()
2216 static jchar* GetCharArrayElements(JNIEnv* env, jcharArray array, jboolean* is_copy) { in GetCharArrayElements() argument
2217 return GetPrimitiveArray<jcharArray, jchar, mirror::CharArray>(env, array, is_copy); in GetCharArrayElements()
2220 static jdouble* GetDoubleArrayElements(JNIEnv* env, jdoubleArray array, jboolean* is_copy) { in GetDoubleArrayElements() argument
2221 return GetPrimitiveArray<jdoubleArray, jdouble, mirror::DoubleArray>(env, array, is_copy); in GetDoubleArrayElements()
2224 static jfloat* GetFloatArrayElements(JNIEnv* env, jfloatArray array, jboolean* is_copy) { in GetFloatArrayElements() argument
2225 return GetPrimitiveArray<jfloatArray, jfloat, mirror::FloatArray>(env, array, is_copy); in GetFloatArrayElements()
2228 static jint* GetIntArrayElements(JNIEnv* env, jintArray array, jboolean* is_copy) { in GetIntArrayElements() argument
2229 return GetPrimitiveArray<jintArray, jint, mirror::IntArray>(env, array, is_copy); in GetIntArrayElements()
2232 static jlong* GetLongArrayElements(JNIEnv* env, jlongArray array, jboolean* is_copy) { in GetLongArrayElements() argument
2233 return GetPrimitiveArray<jlongArray, jlong, mirror::LongArray>(env, array, is_copy); in GetLongArrayElements()
2236 static jshort* GetShortArrayElements(JNIEnv* env, jshortArray array, jboolean* is_copy) { in GetShortArrayElements() argument
2237 return GetPrimitiveArray<jshortArray, jshort, mirror::ShortArray>(env, array, is_copy); in GetShortArrayElements()
2240 static void ReleaseBooleanArrayElements(JNIEnv* env, jbooleanArray array, jboolean* elements, in ReleaseBooleanArrayElements() argument
2242 ReleasePrimitiveArray<jbooleanArray, jboolean, mirror::BooleanArray>(env, array, elements, in ReleaseBooleanArrayElements()
2246 static void ReleaseByteArrayElements(JNIEnv* env, jbyteArray array, jbyte* elements, jint mode) { in ReleaseByteArrayElements() argument
2247 ReleasePrimitiveArray<jbyteArray, jbyte, mirror::ByteArray>(env, array, elements, mode); in ReleaseByteArrayElements()
2250 static void ReleaseCharArrayElements(JNIEnv* env, jcharArray array, jchar* elements, jint mode) { in ReleaseCharArrayElements() argument
2251 ReleasePrimitiveArray<jcharArray, jchar, mirror::CharArray>(env, array, elements, mode); in ReleaseCharArrayElements()
2254 static void ReleaseDoubleArrayElements(JNIEnv* env, jdoubleArray array, jdouble* elements, in ReleaseDoubleArrayElements() argument
2256 ReleasePrimitiveArray<jdoubleArray, jdouble, mirror::DoubleArray>(env, array, elements, mode); in ReleaseDoubleArrayElements()
2259 static void ReleaseFloatArrayElements(JNIEnv* env, jfloatArray array, jfloat* elements, in ReleaseFloatArrayElements() argument
2261 ReleasePrimitiveArray<jfloatArray, jfloat, mirror::FloatArray>(env, array, elements, mode); in ReleaseFloatArrayElements()
2264 static void ReleaseIntArrayElements(JNIEnv* env, jintArray array, jint* elements, jint mode) { in ReleaseIntArrayElements() argument
2265 ReleasePrimitiveArray<jintArray, jint, mirror::IntArray>(env, array, elements, mode); in ReleaseIntArrayElements()
2268 static void ReleaseLongArrayElements(JNIEnv* env, jlongArray array, jlong* elements, jint mode) { in ReleaseLongArrayElements() argument
2269 ReleasePrimitiveArray<jlongArray, jlong, mirror::LongArray>(env, array, elements, mode); in ReleaseLongArrayElements()
2272 static void ReleaseShortArrayElements(JNIEnv* env, jshortArray array, jshort* elements, in ReleaseShortArrayElements() argument
2274 ReleasePrimitiveArray<jshortArray, jshort, mirror::ShortArray>(env, array, elements, mode); in ReleaseShortArrayElements()
2277 static void GetBooleanArrayRegion(JNIEnv* env, jbooleanArray array, jsize start, jsize length, in GetBooleanArrayRegion() argument
2279 GetPrimitiveArrayRegion<jbooleanArray, jboolean, mirror::BooleanArray>(env, array, start, in GetBooleanArrayRegion()
2283 static void GetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, jsize length, in GetByteArrayRegion() argument
2285 GetPrimitiveArrayRegion<jbyteArray, jbyte, mirror::ByteArray>(env, array, start, length, buf); in GetByteArrayRegion()
2288 static void GetCharArrayRegion(JNIEnv* env, jcharArray array, jsize start, jsize length, in GetCharArrayRegion() argument
2290 GetPrimitiveArrayRegion<jcharArray, jchar, mirror::CharArray>(env, array, start, length, buf); in GetCharArrayRegion()
2293 static void GetDoubleArrayRegion(JNIEnv* env, jdoubleArray array, jsize start, jsize length, in GetDoubleArrayRegion() argument
2295 GetPrimitiveArrayRegion<jdoubleArray, jdouble, mirror::DoubleArray>(env, array, start, length, in GetDoubleArrayRegion()
2299 static void GetFloatArrayRegion(JNIEnv* env, jfloatArray array, jsize start, jsize length, in GetFloatArrayRegion() argument
2301 GetPrimitiveArrayRegion<jfloatArray, jfloat, mirror::FloatArray>(env, array, start, length, in GetFloatArrayRegion()
2305 static void GetIntArrayRegion(JNIEnv* env, jintArray array, jsize start, jsize length, in GetIntArrayRegion() argument
2307 GetPrimitiveArrayRegion<jintArray, jint, mirror::IntArray>(env, array, start, length, buf); in GetIntArrayRegion()
2310 static void GetLongArrayRegion(JNIEnv* env, jlongArray array, jsize start, jsize length, in GetLongArrayRegion() argument
2312 GetPrimitiveArrayRegion<jlongArray, jlong, mirror::LongArray>(env, array, start, length, buf); in GetLongArrayRegion()
2315 static void GetShortArrayRegion(JNIEnv* env, jshortArray array, jsize start, jsize length, in GetShortArrayRegion() argument
2317 GetPrimitiveArrayRegion<jshortArray, jshort, mirror::ShortArray>(env, array, start, length, in GetShortArrayRegion()
2321 static void SetBooleanArrayRegion(JNIEnv* env, jbooleanArray array, jsize start, jsize length, in SetBooleanArrayRegion() argument
2323 SetPrimitiveArrayRegion<jbooleanArray, jboolean, mirror::BooleanArray>(env, array, start, in SetBooleanArrayRegion()
2327 static void SetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, jsize length, in SetByteArrayRegion() argument
2329 SetPrimitiveArrayRegion<jbyteArray, jbyte, mirror::ByteArray>(env, array, start, length, buf); in SetByteArrayRegion()
2332 static void SetCharArrayRegion(JNIEnv* env, jcharArray array, jsize start, jsize length, in SetCharArrayRegion() argument
2334 SetPrimitiveArrayRegion<jcharArray, jchar, mirror::CharArray>(env, array, start, length, buf); in SetCharArrayRegion()
2337 static void SetDoubleArrayRegion(JNIEnv* env, jdoubleArray array, jsize start, jsize length, in SetDoubleArrayRegion() argument
2339 SetPrimitiveArrayRegion<jdoubleArray, jdouble, mirror::DoubleArray>(env, array, start, length, in SetDoubleArrayRegion()
2343 static void SetFloatArrayRegion(JNIEnv* env, jfloatArray array, jsize start, jsize length, in SetFloatArrayRegion() argument
2345 SetPrimitiveArrayRegion<jfloatArray, jfloat, mirror::FloatArray>(env, array, start, length, in SetFloatArrayRegion()
2349 static void SetIntArrayRegion(JNIEnv* env, jintArray array, jsize start, jsize length, in SetIntArrayRegion() argument
2351 SetPrimitiveArrayRegion<jintArray, jint, mirror::IntArray>(env, array, start, length, buf); in SetIntArrayRegion()
2354 static void SetLongArrayRegion(JNIEnv* env, jlongArray array, jsize start, jsize length, in SetLongArrayRegion() argument
2356 SetPrimitiveArrayRegion<jlongArray, jlong, mirror::LongArray>(env, array, start, length, buf); in SetLongArrayRegion()
2359 static void SetShortArrayRegion(JNIEnv* env, jshortArray array, jsize start, jsize length, in SetShortArrayRegion() argument
2361 SetPrimitiveArrayRegion<jshortArray, jshort, mirror::ShortArray>(env, array, start, length, in SetShortArrayRegion()
2365 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNatives() argument
2367 return RegisterNativeMethods(env, java_class, methods, method_count, true); in RegisterNatives()
2370 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNativeMethods() argument
2377 ScopedObjectAccess soa(env); in RegisterNativeMethods()
2431 static jint UnregisterNatives(JNIEnv* env, jclass java_class) { in UnregisterNatives() argument
2433 ScopedObjectAccess soa(env); in UnregisterNatives()
2461 static jint MonitorEnter(JNIEnv* env, jobject java_object) NO_THREAD_SAFETY_ANALYSIS { in MonitorEnter() argument
2463 ScopedObjectAccess soa(env); in MonitorEnter()
2473 static jint MonitorExit(JNIEnv* env, jobject java_object) NO_THREAD_SAFETY_ANALYSIS { in MonitorExit() argument
2475 ScopedObjectAccess soa(env); in MonitorExit()
2485 static jint GetJavaVM(JNIEnv* env, JavaVM** vm) { in GetJavaVM() argument
2496 static jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity) { in NewDirectByteBuffer() argument
2514 jobject result = env->NewObject(WellKnownClasses::java_nio_DirectByteBuffer, in NewDirectByteBuffer()
2517 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? nullptr : result; in NewDirectByteBuffer()
2520 static void* GetDirectBufferAddress(JNIEnv* env, jobject java_buffer) { in GetDirectBufferAddress() argument
2521 return reinterpret_cast<void*>(env->GetLongField( in GetDirectBufferAddress()
2525 static jlong GetDirectBufferCapacity(JNIEnv* env, jobject java_buffer) { in GetDirectBufferCapacity() argument
2526 return static_cast<jlong>(env->GetIntField( in GetDirectBufferCapacity()
2530 static jobjectRefType GetObjectRefType(JNIEnv* env, jobject java_object) { in GetObjectRefType() argument
2538 ScopedObjectAccess soa(env); in GetObjectRefType()
2540 if (static_cast<JNIEnvExt*>(env)->locals.Get<kWithoutReadBarrier>(ref) != in GetObjectRefType()
2552 if (static_cast<JNIEnvExt*>(env)->self->HandleScopeContains(java_object)) { in GetObjectRefType()
2579 static JniT NewPrimitiveArray(JNIEnv* env, jsize length) { in NewPrimitiveArray() argument
2584 ScopedObjectAccess soa(env); in NewPrimitiveArray()
2605 static ElementT* GetPrimitiveArray(JNIEnv* env, ArrayT java_array, jboolean* is_copy) { in GetPrimitiveArray() argument
2607 ScopedObjectAccess soa(env); in GetPrimitiveArray()
2633 static void ReleasePrimitiveArray(JNIEnv* env, ArrayT java_array, ElementT* elements, jint mode) { in ReleasePrimitiveArray() argument
2635 ScopedObjectAccess soa(env); in ReleasePrimitiveArray()
2679 static void GetPrimitiveArrayRegion(JNIEnv* env, JArrayT java_array, in GetPrimitiveArrayRegion() argument
2682 ScopedObjectAccess soa(env); in GetPrimitiveArrayRegion()
2699 static void SetPrimitiveArrayRegion(JNIEnv* env, JArrayT java_array, in SetPrimitiveArrayRegion() argument
2702 ScopedObjectAccess soa(env); in SetPrimitiveArrayRegion()
3087 static jint GetEnv(JavaVM* vm, void** env, jint version) { in GetEnv() argument
3095 if (vm == nullptr || env == nullptr) { in GetEnv()
3100 *env = nullptr; in GetEnv()
3103 *env = thread->GetJniEnv(); in GetEnv()
3427 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods, in RegisterNativeMethods() argument
3429 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in RegisterNativeMethods()
3433 JNI::RegisterNativeMethods(env, c.get(), methods, method_count, false); in RegisterNativeMethods()