• Home
  • Raw
  • Download

Lines Matching refs:fid

340   bool CheckInstanceFieldID(ScopedObjectAccess& soa, jobject java_object, jfieldID fid)  in CheckInstanceFieldID()  argument
355 ArtField* f = CheckFieldID(fid); in CheckInstanceFieldID()
432 bool CheckStaticFieldID(ScopedObjectAccess& soa, jclass java_class, jfieldID fid) in CheckStaticFieldID() argument
435 ArtField* f = CheckFieldID(fid); in CheckStaticFieldID()
440 AbortF("static jfieldID %p not valid for class %s", fid, in CheckStaticFieldID()
745 bool CheckFieldAccess(ScopedObjectAccess& soa, jobject obj, jfieldID fid, bool is_static, in CheckFieldAccess() argument
748 if (is_static && !CheckStaticFieldID(soa, down_cast<jclass>(obj), fid)) { in CheckFieldAccess()
751 if (!is_static && !CheckInstanceFieldID(soa, obj, fid)) { in CheckFieldAccess()
754 ArtField* field = jni::DecodeArtField(fid); in CheckFieldAccess()
758 field->IsStatic() ? "static" : "non-static", field->PrettyField().c_str(), fid); in CheckFieldAccess()
765 PrettyDescriptor(type).c_str(), fid); in CheckFieldAccess()
772 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
778 field->PrettyField().c_str(), mirror::Class::PrettyDescriptor(c).c_str(), fid); in CheckFieldAccess()
785 field->PrettyField().c_str(), o->PrettyTypeOf().c_str(), fid); in CheckFieldAccess()
1036 jfieldID fid = arg.f; in TracePossibleHeapValue() local
1037 ArtField* f = jni::DecodeArtField(fid); in TracePossibleHeapValue()
1040 StringAppendF(msg, " (%p)", fid); in TracePossibleHeapValue()
1262 ArtField* CheckFieldID(jfieldID fid) REQUIRES_SHARED(Locks::mutator_lock_) { in CheckFieldID() argument
1263 if (fid == nullptr) { in CheckFieldID()
1267 ArtField* f = jni::DecodeArtField(fid); in CheckFieldID()
1271 AbortF("invalid jfieldID: %p", fid); in CheckFieldID()
1928 static jobject ToReflectedField(JNIEnv* env, jclass cls, jfieldID fid, jboolean isStatic) { in ToReflectedField() argument
1932 JniValueType args[4] = {{.E = env}, {.c = cls}, {.f = fid}, {.I = isStatic}}; in ToReflectedField()
1935 result.L = baseEnv(env)->ToReflectedField(env, cls, fid, isStatic); in ToReflectedField()
2235 static jtype GetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid) { \
2236 return GetField(__FUNCTION__, env, c, fid, true, ptype).shorty; \
2239 static jtype Get##name##Field(JNIEnv* env, jobject obj, jfieldID fid) { \
2240 return GetField(__FUNCTION__, env, obj, fid, false, ptype).shorty; \
2243 static void SetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid, jtype v) { \
2246 SetField(__FUNCTION__, env, c, fid, true, ptype, value); \
2249 static void Set##name##Field(JNIEnv* env, jobject obj, jfieldID fid, jtype v) { \
2252 SetField(__FUNCTION__, env, obj, fid, false, ptype, value); \
2858 static JniValueType GetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in GetField() argument
2863 JniValueType args[3] = {{.E = env}, {.L = obj}, {.f = fid}}; in GetField()
2866 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in GetField()
2871 result.L = baseEnv(env)->GetStaticObjectField(env, down_cast<jclass>(obj), fid); in GetField()
2873 result.L = baseEnv(env)->GetObjectField(env, obj, fid); in GetField()
2879 result.Z = baseEnv(env)->GetStaticBooleanField(env, down_cast<jclass>(obj), fid); in GetField()
2881 result.Z = baseEnv(env)->GetBooleanField(env, obj, fid); in GetField()
2887 result.B = baseEnv(env)->GetStaticByteField(env, down_cast<jclass>(obj), fid); in GetField()
2889 result.B = baseEnv(env)->GetByteField(env, obj, fid); in GetField()
2895 result.C = baseEnv(env)->GetStaticCharField(env, down_cast<jclass>(obj), fid); in GetField()
2897 result.C = baseEnv(env)->GetCharField(env, obj, fid); in GetField()
2903 result.S = baseEnv(env)->GetStaticShortField(env, down_cast<jclass>(obj), fid); in GetField()
2905 result.S = baseEnv(env)->GetShortField(env, obj, fid); in GetField()
2911 result.I = baseEnv(env)->GetStaticIntField(env, down_cast<jclass>(obj), fid); in GetField()
2913 result.I = baseEnv(env)->GetIntField(env, obj, fid); in GetField()
2919 result.J = baseEnv(env)->GetStaticLongField(env, down_cast<jclass>(obj), fid); in GetField()
2921 result.J = baseEnv(env)->GetLongField(env, obj, fid); in GetField()
2927 result.F = baseEnv(env)->GetStaticFloatField(env, down_cast<jclass>(obj), fid); in GetField()
2929 result.F = baseEnv(env)->GetFloatField(env, obj, fid); in GetField()
2935 result.D = baseEnv(env)->GetStaticDoubleField(env, down_cast<jclass>(obj), fid); in GetField()
2937 result.D = baseEnv(env)->GetDoubleField(env, obj, fid); in GetField()
2953 static void SetField(const char* function_name, JNIEnv* env, jobject obj, jfieldID fid, in SetField() argument
2958 JniValueType args[4] = {{.E = env}, {.L = obj}, {.f = fid}, value}; in SetField()
2962 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in SetField()
2966 baseEnv(env)->SetStaticObjectField(env, down_cast<jclass>(obj), fid, value.L); in SetField()
2968 baseEnv(env)->SetObjectField(env, obj, fid, value.L); in SetField()
2973 baseEnv(env)->SetStaticBooleanField(env, down_cast<jclass>(obj), fid, value.Z); in SetField()
2975 baseEnv(env)->SetBooleanField(env, obj, fid, value.Z); in SetField()
2980 baseEnv(env)->SetStaticByteField(env, down_cast<jclass>(obj), fid, value.B); in SetField()
2982 baseEnv(env)->SetByteField(env, obj, fid, value.B); in SetField()
2987 baseEnv(env)->SetStaticCharField(env, down_cast<jclass>(obj), fid, value.C); in SetField()
2989 baseEnv(env)->SetCharField(env, obj, fid, value.C); in SetField()
2994 baseEnv(env)->SetStaticShortField(env, down_cast<jclass>(obj), fid, value.S); in SetField()
2996 baseEnv(env)->SetShortField(env, obj, fid, value.S); in SetField()
3001 baseEnv(env)->SetStaticIntField(env, down_cast<jclass>(obj), fid, value.I); in SetField()
3003 baseEnv(env)->SetIntField(env, obj, fid, value.I); in SetField()
3008 baseEnv(env)->SetStaticLongField(env, down_cast<jclass>(obj), fid, value.J); in SetField()
3010 baseEnv(env)->SetLongField(env, obj, fid, value.J); in SetField()
3015 baseEnv(env)->SetStaticFloatField(env, down_cast<jclass>(obj), fid, value.F); in SetField()
3017 baseEnv(env)->SetFloatField(env, obj, fid, value.F); in SetField()
3022 baseEnv(env)->SetStaticDoubleField(env, down_cast<jclass>(obj), fid, value.D); in SetField()
3024 baseEnv(env)->SetDoubleField(env, obj, fid, value.D); in SetField()