Home
last modified time | relevance | path

Searched refs:fid (Results 1 – 10 of 10) sorted by relevance

/art/test/1975-hello-structural-transformation/
Dstructural_transform.cc49 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/
Djni_internal.h78 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()
Djni_internal_test.cc179 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 …]
Dcheck_jni.cc358 bool CheckInstanceFieldID(ScopedObjectAccess& soa, jobject java_object, jfieldID fid) in CheckInstanceFieldID() argument
373 ArtField* f = CheckFieldID(fid); in CheckInstanceFieldID()
450 bool CheckStaticFieldID(ScopedObjectAccess& soa, jclass java_class, jfieldID fid) in CheckStaticFieldID() argument
453 ArtField* f = CheckFieldID(fid); in CheckStaticFieldID()
458 AbortF("static jfieldID %p not valid for class %s", fid, in CheckStaticFieldID()
768 bool CheckFieldAccess(ScopedObjectAccess& soa, jobject obj, jfieldID fid, bool is_static, in CheckFieldAccess() argument
771 if (is_static && !CheckStaticFieldID(soa, down_cast<jclass>(obj), fid)) { in CheckFieldAccess()
774 if (!is_static && !CheckInstanceFieldID(soa, obj, fid)) { in CheckFieldAccess()
777 ArtField* field = jni::DecodeArtField(fid); in CheckFieldAccess()
781 field->IsStatic() ? "static" : "non-static", field->PrettyField().c_str(), fid); in CheckFieldAccess()
[all …]
Djni_internal.cc641 static jobject ToReflectedField(JNIEnv* env, jclass, jfieldID fid, jboolean) { in ToReflectedField() argument
642 CHECK_NON_NULL_ARGUMENT(fid); in ToReflectedField()
644 ArtField* f = jni::DecodeArtField(fid); in ToReflectedField()
1475 static jobject GetObjectField(JNIEnv* env, jobject obj, jfieldID fid) { in GetObjectField() argument
1477 CHECK_NON_NULL_ARGUMENT(fid); in GetObjectField()
1479 ArtField* f = jni::DecodeArtField<kEnableIndexIds>(fid); in GetObjectField()
1485 static jobject GetStaticObjectField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticObjectField() argument
1486 CHECK_NON_NULL_ARGUMENT(fid); in GetStaticObjectField()
1488 ArtField* f = jni::DecodeArtField<kEnableIndexIds>(fid); in GetStaticObjectField()
1493 static void SetObjectField(JNIEnv* env, jobject java_object, jfieldID fid, jobject java_value) { in SetObjectField() argument
[all …]
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc45 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/
Dstructural_transform_methods.cc68 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/runtime/
Dwell_known_classes.cc186 jfieldID fid; in CacheField() local
190 fid = jni::EncodeArtField</*kEnableIndexIds*/ true>( in CacheField()
193 fid = jni::EncodeArtField</*kEnableIndexIds*/ false>( in CacheField()
197 if (fid == nullptr) { in CacheField()
207 return fid; in CacheField()
/art/test/common/
Druntime_state.cc426 jfieldID fid = env->FromReflectedField(fld); in Java_Main_genericFieldOffset() local
428 ArtField* af = jni::DecodeArtField(fid); in Java_Main_genericFieldOffset()
/art/tools/hiddenapi/
Dhiddenapi_test.cc186 const dex::FieldId& fid = dex_file.GetFieldId(field.GetIndex()); in GetFieldHiddenFlags() local
187 if (strcmp(name, dex_file.GetFieldName(fid)) == 0) { in GetFieldHiddenFlags()