Lines Matching refs:fid

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()
794 PrettyDescriptor(type).c_str(), fid); in CheckFieldAccess()
801 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
807 field->PrettyField().c_str(), mirror::Class::PrettyDescriptor(c).c_str(), fid); in CheckFieldAccess()
814 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
1098 jfieldID fid = arg.f; in TracePossibleHeapValue() local
1099 ArtField* f = jni::DecodeArtField(fid); in TracePossibleHeapValue()
1102 StringAppendF(msg, " (%p)", fid); in TracePossibleHeapValue()
1324 ArtField* CheckFieldID(jfieldID fid) REQUIRES_SHARED(Locks::mutator_lock_) { in CheckFieldID() argument
1325 if (fid == nullptr) { in CheckFieldID()
1329 ArtField* f = jni::DecodeArtField(fid); in CheckFieldID()
1333 AbortF("invalid jfieldID: %p", fid); in CheckFieldID()
1991 static jobject ToReflectedField(JNIEnv* env, jclass cls, jfieldID fid, jboolean isStatic) { in ToReflectedField() argument
1995 JniValueType args[4] = {{.E = env}, {.c = cls}, {.f = fid}, {.I = isStatic}}; in ToReflectedField()
1998 result.L = baseEnv(env)->ToReflectedField(env, cls, fid, isStatic); in ToReflectedField()
2298 static jtype GetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid) { \
2299 return GetField(__FUNCTION__, env, c, fid, true, ptype).shorty; \
2302 static jtype Get##name##Field(JNIEnv* env, jobject obj, jfieldID fid) { \
2303 return GetField(__FUNCTION__, env, obj, fid, false, ptype).shorty; \
2306 static void SetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid, jtype v) { \
2309 SetField(__FUNCTION__, env, c, fid, true, ptype, value); \
2312 static void Set##name##Field(JNIEnv* env, jobject obj, jfieldID fid, jtype v) { \
2315 SetField(__FUNCTION__, env, obj, fid, false, ptype, value); \
2922 static JniValueType GetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in GetField() argument
2927 JniValueType args[3] = {{.E = env}, {.L = obj}, {.f = fid}}; in GetField()
2930 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in GetField()
2935 result.L = baseEnv(env)->GetStaticObjectField(env, down_cast<jclass>(obj), fid); in GetField()
2937 result.L = baseEnv(env)->GetObjectField(env, obj, fid); in GetField()
2943 result.Z = baseEnv(env)->GetStaticBooleanField(env, down_cast<jclass>(obj), fid); in GetField()
2945 result.Z = baseEnv(env)->GetBooleanField(env, obj, fid); in GetField()
2951 result.B = baseEnv(env)->GetStaticByteField(env, down_cast<jclass>(obj), fid); in GetField()
2953 result.B = baseEnv(env)->GetByteField(env, obj, fid); in GetField()
2959 result.C = baseEnv(env)->GetStaticCharField(env, down_cast<jclass>(obj), fid); in GetField()
2961 result.C = baseEnv(env)->GetCharField(env, obj, fid); in GetField()
2967 result.S = baseEnv(env)->GetStaticShortField(env, down_cast<jclass>(obj), fid); in GetField()
2969 result.S = baseEnv(env)->GetShortField(env, obj, fid); in GetField()
2975 result.I = baseEnv(env)->GetStaticIntField(env, down_cast<jclass>(obj), fid); in GetField()
2977 result.I = baseEnv(env)->GetIntField(env, obj, fid); in GetField()
2983 result.J = baseEnv(env)->GetStaticLongField(env, down_cast<jclass>(obj), fid); in GetField()
2985 result.J = baseEnv(env)->GetLongField(env, obj, fid); in GetField()
2991 result.F = baseEnv(env)->GetStaticFloatField(env, down_cast<jclass>(obj), fid); in GetField()
2993 result.F = baseEnv(env)->GetFloatField(env, obj, fid); in GetField()
2999 result.D = baseEnv(env)->GetStaticDoubleField(env, down_cast<jclass>(obj), fid); in GetField()
3001 result.D = baseEnv(env)->GetDoubleField(env, obj, fid); in GetField()
3017 static void SetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in SetField() argument
3022 JniValueType args[4] = {{.E = env}, {.L = obj}, {.f = fid}, value}; in SetField()
3026 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in SetField()
3030 baseEnv(env)->SetStaticObjectField(env, down_cast<jclass>(obj), fid, value.L); in SetField()
3032 baseEnv(env)->SetObjectField(env, obj, fid, value.L); in SetField()
3037 baseEnv(env)->SetStaticBooleanField(env, down_cast<jclass>(obj), fid, value.Z); in SetField()
3039 baseEnv(env)->SetBooleanField(env, obj, fid, value.Z); in SetField()
3044 baseEnv(env)->SetStaticByteField(env, down_cast<jclass>(obj), fid, value.B); in SetField()
3046 baseEnv(env)->SetByteField(env, obj, fid, value.B); in SetField()
3051 baseEnv(env)->SetStaticCharField(env, down_cast<jclass>(obj), fid, value.C); in SetField()
3053 baseEnv(env)->SetCharField(env, obj, fid, value.C); in SetField()
3058 baseEnv(env)->SetStaticShortField(env, down_cast<jclass>(obj), fid, value.S); in SetField()
3060 baseEnv(env)->SetShortField(env, obj, fid, value.S); in SetField()
3065 baseEnv(env)->SetStaticIntField(env, down_cast<jclass>(obj), fid, value.I); in SetField()
3067 baseEnv(env)->SetIntField(env, obj, fid, value.I); in SetField()
3072 baseEnv(env)->SetStaticLongField(env, down_cast<jclass>(obj), fid, value.J); in SetField()
3074 baseEnv(env)->SetLongField(env, obj, fid, value.J); in SetField()
3079 baseEnv(env)->SetStaticFloatField(env, down_cast<jclass>(obj), fid, value.F); in SetField()
3081 baseEnv(env)->SetFloatField(env, obj, fid, value.F); in SetField()
3086 baseEnv(env)->SetStaticDoubleField(env, down_cast<jclass>(obj), fid, value.D); in SetField()
3088 baseEnv(env)->SetDoubleField(env, obj, fid, value.D); in SetField()