/art/test/1975-hello-structural-transformation/ |
D | structural_transform.cc | 49 jfieldID fid = reinterpret_cast<jfieldID>(static_cast<intptr_t>(fid_val)); in Java_art_Test1975_readNativeFields() local 51 jobject val = env->GetStaticObjectField(f_class, fid); in Java_art_Test1975_readNativeFields() 57 env->ToReflectedField(f_class, fid, true), in Java_art_Test1975_readNativeFields() 69 jfieldID fid = env->FromReflectedField(env->GetObjectArrayElement(f, i)); in Java_art_Test1975_getNativeFields() local 70 jlong lfid = static_cast<jlong>(reinterpret_cast<intptr_t>(fid)); in Java_art_Test1975_getNativeFields()
|
/art/runtime/jni/ |
D | jni_internal.h | 78 static bool IsIndexId(jfieldID fid) { in IsIndexId() argument 79 return kEnableIndexIds && ((reinterpret_cast<uintptr_t>(fid) % 2) != 0); in IsIndexId() 84 static inline ArtField* DecodeArtField(jfieldID fid) { in DecodeArtField() argument 85 if (IsIndexId<kEnableIndexIds>(fid)) { in DecodeArtField() 86 return Runtime::Current()->GetJniIdManager()->DecodeFieldId(fid); in DecodeArtField() 88 return reinterpret_cast<ArtField*>(fid); in DecodeArtField()
|
D | jni_internal_test.cc | 179 jfieldID fid = env_->GetFieldID(nullptr, "count", "I"); in GetFieldIdBadArgumentTest() local 180 EXPECT_EQ(nullptr, fid); in GetFieldIdBadArgumentTest() 183 fid = env_->GetFieldID(c, nullptr, "I"); in GetFieldIdBadArgumentTest() 184 EXPECT_EQ(nullptr, fid); in GetFieldIdBadArgumentTest() 187 fid = env_->GetFieldID(c, "count", nullptr); in GetFieldIdBadArgumentTest() 188 EXPECT_EQ(nullptr, fid); in GetFieldIdBadArgumentTest() 202 …jfieldID fid = env_->GetStaticFieldID(nullptr, "CASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in GetStaticFieldIdBadArgumentTest() local 203 EXPECT_EQ(nullptr, fid); in GetStaticFieldIdBadArgumentTest() 206 fid = env_->GetStaticFieldID(c, nullptr, "Ljava/util/Comparator;"); in GetStaticFieldIdBadArgumentTest() 207 EXPECT_EQ(nullptr, fid); in GetStaticFieldIdBadArgumentTest() [all …]
|
D | check_jni.cc | 364 bool CheckInstanceFieldID(ScopedObjectAccess& soa, jobject java_object, jfieldID fid) in CheckInstanceFieldID() argument 379 ArtField* f = CheckFieldID(fid); in CheckInstanceFieldID() 456 bool CheckStaticFieldID(ScopedObjectAccess& soa, jclass java_class, jfieldID fid) in CheckStaticFieldID() argument 459 ArtField* f = CheckFieldID(fid); in CheckStaticFieldID() 464 AbortF("static jfieldID %p not valid for class %s", fid, in CheckStaticFieldID() 774 bool CheckFieldAccess(ScopedObjectAccess& soa, jobject obj, jfieldID fid, bool is_static, in CheckFieldAccess() argument 777 if (is_static && !CheckStaticFieldID(soa, down_cast<jclass>(obj), fid)) { in CheckFieldAccess() 780 if (!is_static && !CheckInstanceFieldID(soa, obj, fid)) { in CheckFieldAccess() 783 ArtField* field = jni::DecodeArtField(fid); in CheckFieldAccess() 787 field->IsStatic() ? "static" : "non-static", field->PrettyField().c_str(), fid); in CheckFieldAccess() [all …]
|
D | jni_internal.cc | 721 static jobject ToReflectedField(JNIEnv* env, jclass, jfieldID fid, jboolean) { in ToReflectedField() argument 722 CHECK_NON_NULL_ARGUMENT(fid); in ToReflectedField() 724 ArtField* f = jni::DecodeArtField(fid); in ToReflectedField() 1554 static jobject GetObjectField(JNIEnv* env, jobject obj, jfieldID fid) { in GetObjectField() argument 1556 CHECK_NON_NULL_ARGUMENT(fid); in GetObjectField() 1558 ArtField* f = jni::DecodeArtField<kEnableIndexIds>(fid); in GetObjectField() 1564 static jobject GetStaticObjectField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticObjectField() argument 1565 CHECK_NON_NULL_ARGUMENT(fid); in GetStaticObjectField() 1567 ArtField* f = jni::DecodeArtField<kEnableIndexIds>(fid); in GetStaticObjectField() 1572 static void SetObjectField(JNIEnv* env, jobject java_object, jfieldID fid, jobject java_value) { in SetObjectField() argument [all …]
|
/art/test/1985-structural-redefine-stack-scope/ |
D | stack_scope.cc | 45 jfieldID fid = env->FromReflectedField(field); in Java_Main_NativeFieldScopeCheck() local 52 ReflectiveHandle<ArtField> rf(fhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck() 53 ReflectiveHandle<ArtField> bf(bhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck() 78 CHECK_EQ(fid, jni::EncodeArtField(rf)); in Java_Main_NativeFieldScopeCheck()
|
/art/test/1976-hello-structural-static-methods/ |
D | structural_transform_methods.cc | 68 jmethodID fid = env->FromReflectedMethod(env->GetObjectArrayElement(m, i)); in Java_art_Test1976_getMethodIds() local 69 jlong lmid = static_cast<jlong>(reinterpret_cast<intptr_t>(fid)); in Java_art_Test1976_getMethodIds()
|
/art/test/common/ |
D | runtime_state.cc | 471 jfieldID fid = env->FromReflectedField(fld); in Java_Main_genericFieldOffset() local 473 ArtField* af = jni::DecodeArtField(fid); in Java_Main_genericFieldOffset()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 188 const dex::FieldId& fid = dex_file.GetFieldId(field.GetIndex()); in GetFieldHiddenFlags() local 189 if (strcmp(name, dex_file.GetFieldName(fid)) == 0) { in GetFieldHiddenFlags()
|