/art/runtime/mirror/ |
D | field-inl.h | 31 inline ObjPtr<mirror::Class> Field::GetDeclaringClass() REQUIRES_SHARED(Locks::mutator_lock_) { in GetDeclaringClass() 32 return GetFieldObject<Class>(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); in GetDeclaringClass() 35 inline Primitive::Type Field::GetTypeAsPrimitiveType() { in GetTypeAsPrimitiveType() 39 inline ObjPtr<mirror::Class> Field::GetType() { in GetType() 40 return GetFieldObject<mirror::Class>(OFFSET_OF_OBJECT_MEMBER(Field, type_)); in GetType() 44 inline void Field::SetDeclaringClass(ObjPtr<Class> c) { in SetDeclaringClass() 49 inline void Field::SetType(ObjPtr<Class> type) { in SetType()
|
D | field.h | 40 class MANAGED Field : public AccessibleObject { 45 return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, art_field_index_)); in GetArtFieldIndex() 51 return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); in GetAccessFlags() 71 return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); in GetOffset() 76 static ObjPtr<mirror::Field> CreateFromArtField(Thread* self, 97 return OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_); in DeclaringClassOffset() 101 return OFFSET_OF_OBJECT_MEMBER(Field, type_); in TypeOffset() 105 return OFFSET_OF_OBJECT_MEMBER(Field, access_flags_); in AccessFlagsOffset() 109 return OFFSET_OF_OBJECT_MEMBER(Field, art_field_index_); in ArtFieldIndexOffset() 113 return OFFSET_OF_OBJECT_MEMBER(Field, offset_); in OffsetOffset() [all …]
|
D | field.cc | 28 void Field::VisitTarget(ReflectiveValueVisitor* v) { in VisitTarget() 46 ArtField* Field::GetArtField() { in GetArtField() 57 ObjPtr<mirror::Field> Field::CreateFromArtField(Thread* self, in CreateFromArtField() 77 auto ret = hs.NewHandle(ObjPtr<Field>::DownCast(GetClassRoot<Field>()->AllocObject(self))); in CreateFromArtField()
|
/art/test/991-field-trace-2/src/art/ |
D | Test991.java | 20 import java.lang.reflect.Field; 26 static List<Field> WATCH_FIELDS = Arrays.asList(TestClass1.class.getDeclaredFields()); 32 Executable method, long location, Class<?> f_klass, Object target, Field f) { in notifyFieldAccess() 41 Executable method, long location, Class<?> f_klass, Object target, Field f, Object value) { in notifyFieldModify() 50 public void handleFieldAccess(Executable m, long l, Class<?> fk, Object t, Field f) {} in handleFieldAccess() 51 public void handleFieldModify(Executable m, long l, Class<?> fk, Object t, Field f, Object v) {} in handleFieldModify() 61 public void handleFieldAccess(Executable m, long l, Class<?> fk, Object t, Field f) { in handleFieldAccess() 67 public void handleFieldModify(Executable m, long l, Class<?> fk, Object t, Field f, Object v) { in handleFieldModify() 73 public void handleFieldModify(Executable m, long l, Class<?> fk, Object t, Field f, Object v) { in handleFieldModify() 79 public void handleFieldAccess(Executable m, long l, Class<?> fk, Object t, Field f) { in handleFieldAccess() [all …]
|
/art/test/1984-structural-redefine-field-trace/src/art/ |
D | Test1984.java | 20 import java.lang.reflect.Field; 25 Executable method, long location, Class<?> f_klass, Object target, Field f, Object value) { in notifyFieldModify() 30 Executable method, long location, Class<?> f_klass, Object target, Field f) { in notifyFieldAccess() 94 for (Field f : Transform.class.getDeclaredFields()) { in run() 106 Field.class), in run() 113 Field.class, in run() 116 for (Field f : Transform.class.getDeclaredFields()) { in run() 128 for (Field f : Transform.class.getDeclaredFields()) { in run()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 46 ObjPtr<mirror::Field> field, in VerifyFieldAccess() 80 ObjPtr<mirror::Field> f, in GetFieldValue() 140 ObjPtr<mirror::Field>* f, in CheckReceiver() 149 HandleWrapperObjPtr<mirror::Field> h_f(hs.NewHandleWrapper(f)); in CheckReceiver() 171 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get() 198 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in GetPrimitiveField() 270 ObjPtr<mirror::Field> f, in SetFieldValue() 345 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_set() 387 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in SetPrimitiveField() 468 ArtField* field = soa.Decode<mirror::Field>(javaField)->GetArtField(); in Field_getAnnotationNative() [all …]
|
/art/test/918-fields/src/art/ |
D | Test918.java | 20 import java.lang.reflect.Field; 39 Field f = base.getDeclaredField(fieldName); in testField() 62 private static native String[] getFieldName(Field f); in getFieldName() 63 private static native Class<?> getFieldDeclaringClass(Field f); in getFieldDeclaringClass() 64 private static native int getFieldModifiers(Field f); in getFieldModifiers() 65 private static native boolean isFieldSynthetic(Field f); in isFieldSynthetic()
|
/art/test/1975-hello-structural-transformation/src/art/ |
D | Test1975.java | 113 for (Field f : Transform1975.class.getFields()) { in ReadFields() 127 for (Field f : Transform1975.class.getFields()) { in ReadFields() 142 private Field f; 143 public MethodHandleWrapper(MethodHandle mh, Field f) { in MethodHandleWrapper() 150 public Field getField() { in getField() 161 public static MethodHandleWrapper[] getMethodHandles(Field[] fields) throws Exception { in getMethodHandles() 190 Field[] old_fields = Transform1975.class.getFields(); in doTest() 191 for (Field f : old_fields) { in doTest() 202 Field cur_class_field = Transform1975.class.getDeclaredField("CUR_CLASS"); in doTest() 220 for (Field f : old_fields) { in doTest() [all …]
|
/art/test/2008-redefine-then-old-reflect-field/ |
D | info.txt | 1 Tests that j.l.r.Field objects survive across redefinitions 3 We had a bug where java.lang.reflect.Field objects would be invalid after the class of the Field
|
D | expected-stdout.txt | 1 PreTransform Field public java.lang.Object art.Test2008$Transform.myField = "bar" 2 PostTransform Field public java.lang.Object art.Test2008$Transform.myField = "bar"
|
/art/test/2005-pause-all-redefine-multithreaded/src/art/ |
D | Test2005.java | 19 import java.lang.reflect.Field; 168 Field[] fields = Transform.class.getDeclaredFields(); in doRedefinition() 185 Field[] new_fields = Transform.class.getDeclaredFields(); in doRedefinition() 186 Set<Field> field_set = new HashSet(Arrays.asList(new_fields)); in doRedefinition() 191 field_set.toArray(new Field[0]), in doRedefinition() 209 Thread[] t, Class<?> redefined_class, Field[] new_fields, String default_val); in UpdateFieldValuesAndResumeThreads()
|
/art/libdexfile/dex/ |
D | class_accessor-inl.h | 81 inline void ClassAccessor::Field::Read() { in Read() 110 Field field(dex_file_, ptr_pos_, hiddenapi_ptr_pos_); in VisitFieldsAndMethods() 161 inline IterationRange<ClassAccessor::DataIterator<ClassAccessor::Field>> 164 DataIterator<Field>(dex_file_, in GetFieldsInternal() 170 DataIterator<Field>(dex_file_, in GetFieldsInternal() 183 Field field(dex_file_, ptr_pos_, hiddenapi_ptr_pos_); in GetMethodsInternal() 202 inline IterationRange<ClassAccessor::DataIterator<ClassAccessor::Field>> ClassAccessor::GetFields() in GetFields() 207 inline IterationRange<ClassAccessor::DataIterator<ClassAccessor::Field>> 213 inline IterationRange<ClassAccessor::DataIterator<ClassAccessor::Field>> 215 IterationRange<ClassAccessor::DataIterator<ClassAccessor::Field>> fields = GetFields(); in GetInstanceFields()
|
/art/test/944-transform-classloaders/src/art/ |
D | Test944.java | 173 Field pathListField = baseDexClassLoaderClass.getDeclaredField("pathList"); in checkDexFileInClassLoader() 176 Field elementArrayField = dexPathListClass.getDeclaredField("dexElements"); in checkDexFileInClassLoader() 179 Field dexFileField = dexPathListElementClass.getDeclaredField("dexFile"); in checkDexFileInClassLoader() 182 Field dexFileCookieField = dexFileClass.getDeclaredField("mCookie"); in checkDexFileInClassLoader() 183 Field dexFileInternalCookieField = dexFileClass.getDeclaredField("mInternalCookie"); in checkDexFileInClassLoader() 283 Field dexCacheField = Class.class.getDeclaredField("dexCache"); in getDexFilePointer() 286 Field dexFileField = dexCacheClass.getDeclaredField("dexFile"); in getDexFilePointer()
|
/art/test/990-field-trace/src/art/ |
D | Test990.java | 22 import java.lang.reflect.Field; 43 private Field f; 47 public FieldWrite(Executable method, Object target, Field f, Object v) { in FieldWrite() 67 private Field f; 69 public FieldRead(Executable method, Object target, Field f) { in FieldRead() 140 Executable m, long location, Class<?> f_klass, Object target, Field f, Object value) { 148 Executable m, long location, Class<?> f_klass, Object target, Field f) { 201 Executable.class, Long.TYPE, Class.class, Object.class, Field.class), 203 Executable.class, Long.TYPE, Class.class, Object.class, Field.class, Object.class),
|
/art/test/046-reflect/ |
D | expected-stdout.txt | 36 Field name is string1 38 Field type is java.lang.String 49 Field name is superInt 51 Field type is int 62 Field name is superClassInt 64 Field type is int 67 Field name is staticDouble 69 Field type is double 74 Field name is constantString 76 Field type is java.lang.String [all …]
|
/art/test/140-field-packing/src/ |
D | GapOrder.java | 21 import java.lang.reflect.Field; 46 Field field = null; in CheckField() 56 Method getOffset = Field.class.getMethod("getOffset"); in CheckField()
|
/art/test/1975-hello-structural-transformation/ |
D | expected-stdout.txt | 1 Saving Field object (ID: 0) public static java.lang.Class art.Transform1975.CUR_CLASS for later 2 Saving Field object (ID: 1) public static byte[] art.Transform1975.REDEFINED_DEX_BYTES for later 14 Field public static java.lang.Class art.Transform1975.CUR_CLASS = (ID: 5) class art.Transform1975 15 Field public static byte[] art.Transform1975.REDEFINED_DEX_BYTES = (ID: 6) [100, 101, 120, 10, 48, … 31 Field public static java.lang.Class art.Transform1975.CUR_CLASS = (ID: 5) class art.Transform1975 32 Field public static byte[] art.Transform1975.REDEFINED_DEX_BYTES = (ID: 6) [100, 101, 120, 10, 48, … 49 Field public static java.lang.Class art.Transform1975.CUR_CLASS = (ID: 5) class art.Transform1975 50 Field public static java.lang.String art.Transform1975.NEW_STRING = (ID: 11) <NULL> 51 Field public static byte[] art.Transform1975.REDEFINED_DEX_BYTES = (ID: 6) [100, 101, 120, 10, 48, … 71 Field public static java.lang.Class art.Transform1975.CUR_CLASS = (ID: 5) class art.Transform1975 [all …]
|
/art/test/1985-structural-redefine-stack-scope/src/ |
D | Main.java | 19 import java.lang.reflect.Field; 66 Field f = Transform.class.getDeclaredField("foo"); in main() 80 public static native MethodHandle NativeFieldScopeCheck(Field in, Runnable test); in NativeFieldScopeCheck()
|
/art/test/555-UnsafeGetLong-regression/src/ |
D | Main.java | 17 import java.lang.reflect.Field; 29 Field f = unsafeClass.getDeclaredField("theUnsafe"); in getUnsafe() 43 Field longField = TestClass.class.getDeclaredField("longVar"); in testUnsafeGetLong()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Field.java | 22 public class Field { class 39 public Field(String name, Type type) { in Field() method in Field
|
/art/test/496-checker-inlining-class-loader/src/ |
D | Main.java | 17 import java.lang.reflect.Field; 29 Field f = baseDexClassLoader.getDeclaredField("pathList"); in MyClassLoader() 44 Field fileNameField = dexFile.getClass().getDeclaredField("mFileName"); in MyClassLoader() 52 Field dexFileField;
|
/art/test/1987-structural-redefine-recursive-stack-scope/src/ |
D | Main.java | 19 import java.lang.reflect.Field; 60 Field f = Transform.class.getDeclaredField("foo"); in main() 89 public static native MethodHandle NativeFieldScopeCheck(Field in, Runnable test); in NativeFieldScopeCheck()
|
/art/test/575-checker-string-init-alias/src/ |
D | Main.java | 17 import java.lang.reflect.Field; 52 Field field = c.getField("staticField"); in main() 69 Field field = c.getField("staticField"); in main()
|
/art/test/717-integer-value-of/src/ |
D | Main.java | 17 import java.lang.reflect.Field; 41 Field cacheField = integerCacheClass.getDeclaredField("cache"); in testValueOfArg() 89 Field cacheField = integerCacheClass.getDeclaredField("cache"); in testValueOfConst() 91 Field lowField = integerCacheClass.getDeclaredField("low"); in testValueOfConst()
|
/art/test/1941-dispose-stress/src/art/ |
D | Trace.java | 19 import java.lang.reflect.Field; 52 public static native void watchFieldAccess(Field f); in watchFieldAccess() 53 public static native void watchFieldModification(Field f); in watchFieldModification()
|