Lines Matching refs:fid
343 bool CheckInstanceFieldID(ScopedObjectAccess& soa, jobject java_object, jfieldID fid) in CheckInstanceFieldID() argument
358 ArtField* f = CheckFieldID(fid); in CheckInstanceFieldID()
435 bool CheckStaticFieldID(ScopedObjectAccess& soa, jclass java_class, jfieldID fid) in CheckStaticFieldID() argument
438 ArtField* f = CheckFieldID(fid); in CheckStaticFieldID()
443 AbortF("static jfieldID %p not valid for class %s", fid, in CheckStaticFieldID()
750 bool CheckFieldAccess(ScopedObjectAccess& soa, jobject obj, jfieldID fid, bool is_static, in CheckFieldAccess() argument
753 if (is_static && !CheckStaticFieldID(soa, down_cast<jclass>(obj), fid)) { in CheckFieldAccess()
756 if (!is_static && !CheckInstanceFieldID(soa, obj, fid)) { in CheckFieldAccess()
759 ArtField* field = jni::DecodeArtField(fid); in CheckFieldAccess()
763 field->IsStatic() ? "static" : "non-static", field->PrettyField().c_str(), fid); in CheckFieldAccess()
770 PrettyDescriptor(type).c_str(), fid); in CheckFieldAccess()
777 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
783 field->PrettyField().c_str(), mirror::Class::PrettyDescriptor(c).c_str(), fid); in CheckFieldAccess()
790 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
1041 jfieldID fid = arg.f; in TracePossibleHeapValue() local
1042 ArtField* f = jni::DecodeArtField(fid); in TracePossibleHeapValue()
1045 StringAppendF(msg, " (%p)", fid); in TracePossibleHeapValue()
1267 ArtField* CheckFieldID(jfieldID fid) REQUIRES_SHARED(Locks::mutator_lock_) { in CheckFieldID() argument
1268 if (fid == nullptr) { in CheckFieldID()
1272 ArtField* f = jni::DecodeArtField(fid); in CheckFieldID()
1276 AbortF("invalid jfieldID: %p", fid); in CheckFieldID()
1933 static jobject ToReflectedField(JNIEnv* env, jclass cls, jfieldID fid, jboolean isStatic) { in ToReflectedField() argument
1937 JniValueType args[4] = {{.E = env}, {.c = cls}, {.f = fid}, {.I = isStatic}}; in ToReflectedField()
1940 result.L = baseEnv(env)->ToReflectedField(env, cls, fid, isStatic); in ToReflectedField()
2240 static jtype GetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid) { \
2241 return GetField(__FUNCTION__, env, c, fid, true, ptype).shorty; \
2244 static jtype Get##name##Field(JNIEnv* env, jobject obj, jfieldID fid) { \
2245 return GetField(__FUNCTION__, env, obj, fid, false, ptype).shorty; \
2248 static void SetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid, jtype v) { \
2251 SetField(__FUNCTION__, env, c, fid, true, ptype, value); \
2254 static void Set##name##Field(JNIEnv* env, jobject obj, jfieldID fid, jtype v) { \
2257 SetField(__FUNCTION__, env, obj, fid, false, ptype, value); \
2863 static JniValueType GetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in GetField() argument
2868 JniValueType args[3] = {{.E = env}, {.L = obj}, {.f = fid}}; in GetField()
2871 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in GetField()
2876 result.L = baseEnv(env)->GetStaticObjectField(env, down_cast<jclass>(obj), fid); in GetField()
2878 result.L = baseEnv(env)->GetObjectField(env, obj, fid); in GetField()
2884 result.Z = baseEnv(env)->GetStaticBooleanField(env, down_cast<jclass>(obj), fid); in GetField()
2886 result.Z = baseEnv(env)->GetBooleanField(env, obj, fid); in GetField()
2892 result.B = baseEnv(env)->GetStaticByteField(env, down_cast<jclass>(obj), fid); in GetField()
2894 result.B = baseEnv(env)->GetByteField(env, obj, fid); in GetField()
2900 result.C = baseEnv(env)->GetStaticCharField(env, down_cast<jclass>(obj), fid); in GetField()
2902 result.C = baseEnv(env)->GetCharField(env, obj, fid); in GetField()
2908 result.S = baseEnv(env)->GetStaticShortField(env, down_cast<jclass>(obj), fid); in GetField()
2910 result.S = baseEnv(env)->GetShortField(env, obj, fid); in GetField()
2916 result.I = baseEnv(env)->GetStaticIntField(env, down_cast<jclass>(obj), fid); in GetField()
2918 result.I = baseEnv(env)->GetIntField(env, obj, fid); in GetField()
2924 result.J = baseEnv(env)->GetStaticLongField(env, down_cast<jclass>(obj), fid); in GetField()
2926 result.J = baseEnv(env)->GetLongField(env, obj, fid); in GetField()
2932 result.F = baseEnv(env)->GetStaticFloatField(env, down_cast<jclass>(obj), fid); in GetField()
2934 result.F = baseEnv(env)->GetFloatField(env, obj, fid); in GetField()
2940 result.D = baseEnv(env)->GetStaticDoubleField(env, down_cast<jclass>(obj), fid); in GetField()
2942 result.D = baseEnv(env)->GetDoubleField(env, obj, fid); in GetField()
2958 static void SetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in SetField() argument
2963 JniValueType args[4] = {{.E = env}, {.L = obj}, {.f = fid}, value}; in SetField()
2967 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in SetField()
2971 baseEnv(env)->SetStaticObjectField(env, down_cast<jclass>(obj), fid, value.L); in SetField()
2973 baseEnv(env)->SetObjectField(env, obj, fid, value.L); in SetField()
2978 baseEnv(env)->SetStaticBooleanField(env, down_cast<jclass>(obj), fid, value.Z); in SetField()
2980 baseEnv(env)->SetBooleanField(env, obj, fid, value.Z); in SetField()
2985 baseEnv(env)->SetStaticByteField(env, down_cast<jclass>(obj), fid, value.B); in SetField()
2987 baseEnv(env)->SetByteField(env, obj, fid, value.B); in SetField()
2992 baseEnv(env)->SetStaticCharField(env, down_cast<jclass>(obj), fid, value.C); in SetField()
2994 baseEnv(env)->SetCharField(env, obj, fid, value.C); in SetField()
2999 baseEnv(env)->SetStaticShortField(env, down_cast<jclass>(obj), fid, value.S); in SetField()
3001 baseEnv(env)->SetShortField(env, obj, fid, value.S); in SetField()
3006 baseEnv(env)->SetStaticIntField(env, down_cast<jclass>(obj), fid, value.I); in SetField()
3008 baseEnv(env)->SetIntField(env, obj, fid, value.I); in SetField()
3013 baseEnv(env)->SetStaticLongField(env, down_cast<jclass>(obj), fid, value.J); in SetField()
3015 baseEnv(env)->SetLongField(env, obj, fid, value.J); in SetField()
3020 baseEnv(env)->SetStaticFloatField(env, down_cast<jclass>(obj), fid, value.F); in SetField()
3022 baseEnv(env)->SetFloatField(env, obj, fid, value.F); in SetField()
3027 baseEnv(env)->SetStaticDoubleField(env, down_cast<jclass>(obj), fid, value.D); in SetField()
3029 baseEnv(env)->SetDoubleField(env, obj, fid, value.D); in SetField()