Home
last modified time | relevance | path

Searched refs:fieldName (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/android/compat/
DVersionCodesTest.java48 private static int getFrameworksSdkCode(String fieldName) { in getFrameworksSdkCode() argument
51 return clazz.getField(fieldName).getInt(null); in getFrameworksSdkCode()
60 private static int getLibcoreSdkCode(String fieldName) { in getLibcoreSdkCode() argument
63 return VersionCodes.class.getField(fieldName).getInt(null); in getLibcoreSdkCode()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DFieldTest.java87 Class<?> c, String fieldName, Class<? extends Annotation> annotationType, in checkDeclaredAnnotation() argument
89 Field field = c.getDeclaredField(fieldName); in checkDeclaredAnnotation()
123 Class<?> c, Class<? extends Annotation> annotationType, String fieldName, in assertGetDeclaredAnnotationsByType() argument
125 Field field = c.getDeclaredField(fieldName); in assertGetDeclaredAnnotationsByType()
156 String fieldName, String... expectedAnnotationStrings) throws Exception { in assertGetAnnotationsByType() argument
157 Field field = c.getDeclaredField(fieldName); in assertGetAnnotationsByType()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java361 String fieldName = null; in testProtectedFieldAccess() local
372 fieldName = "objectField"; in testProtectedFieldAccess()
373 objectField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
375 fieldName = "booleanField"; in testProtectedFieldAccess()
376 booleanField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
378 fieldName = "byteField"; in testProtectedFieldAccess()
379 byteField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
381 fieldName = "charField"; in testProtectedFieldAccess()
382 charField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
384 fieldName = "shortField"; in testProtectedFieldAccess()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java91 String fieldName) { in newUpdater() argument
94 return new CASUpdater<U>(tclass, fieldName, caller); in newUpdater()
96 return new LockedUpdater<U>(tclass, fieldName, caller); in newUpdater()
388 CASUpdater(final Class<T> tclass, final String fieldName, in CASUpdater() argument
402 field = tclass.getDeclaredField(fieldName); in CASUpdater()
540 LockedUpdater(final Class<T> tclass, final String fieldName, in LockedUpdater() argument
554 field = tclass.getDeclaredField(fieldName); in LockedUpdater()
DAtomicReferenceFieldUpdater.java113 String fieldName) { in newUpdater() argument
115 (tclass, vclass, fieldName, Reflection.getCallerClass()); in newUpdater()
326 final String fieldName, in AtomicReferenceFieldUpdaterImpl() argument
341 field = tclass.getDeclaredField(fieldName); in AtomicReferenceFieldUpdaterImpl()
DAtomicIntegerFieldUpdater.java91 String fieldName) { in newUpdater() argument
93 (tclass, fieldName, Reflection.getCallerClass()); in newUpdater()
390 final String fieldName, in AtomicIntegerFieldUpdaterImpl() argument
404 field = tclass.getDeclaredField(fieldName); in AtomicIntegerFieldUpdaterImpl()
/libcore/ojluni/src/test/java/lang/reflect/records/
DRecordReflectionTest.java201 String fieldName = "i"; in testReadOnlyFieldInRecord() local
202 Field f = recordClass.getDeclaredField(fieldName); in testReadOnlyFieldInRecord()
209 assertTrue(false, "should fail to set " + fieldName); in testReadOnlyFieldInRecord()
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java151 private static boolean cpuFieldContainsAes(String fieldName) { in cpuFieldContainsAes() argument
153 String regex = "^" + fieldName + "\\s*:.*\\baes\\b.*"; in cpuFieldContainsAes()
/libcore/ojluni/src/main/java/java/lang/constant/
DMethodHandleDesc.java157 String fieldName, in ofField() argument
166 return new DirectMethodHandleDescImpl(kind, owner, fieldName, mtr); in ofField()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java57 protected MyField(String fieldName, int calendarField) { in MyField() argument
58 super(fieldName, calendarField); in MyField()
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicReferenceFieldUpdaterTest.java85 …tomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest, Integer> updaterFor(String fieldName) { in updaterFor() argument
87 (AtomicReferenceFieldUpdaterTest.class, Integer.class, fieldName); in updaterFor()
DAtomicLongFieldUpdaterTest.java83 AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> updaterFor(String fieldName) { in updaterFor() argument
85 (AtomicLongFieldUpdaterTest.class, fieldName); in updaterFor()
DAtomicIntegerFieldUpdaterTest.java83 AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> updaterFor(String fieldName) { in updaterFor() argument
85 (AtomicIntegerFieldUpdaterTest.class, fieldName); in updaterFor()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomicReferenceFieldUpdaterTest.java108 …tomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest, Integer> updaterFor(String fieldName) { in updaterFor() argument
110 (AtomicReferenceFieldUpdaterTest.class, Integer.class, fieldName); in updaterFor()
DAtomicLongFieldUpdaterTest.java106 AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> updaterFor(String fieldName) { in updaterFor() argument
108 (AtomicLongFieldUpdaterTest.class, fieldName); in updaterFor()
DAtomicIntegerFieldUpdaterTest.java106 AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> updaterFor(String fieldName) { in updaterFor() argument
108 (AtomicIntegerFieldUpdaterTest.class, fieldName); in updaterFor()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java2624 abstract String fieldName(int i); in fieldName() method in ObjectStreamClass.DeserializationConstructorsCache.Key
2632 for (int i = 0; i < n; i++) h = h * 31 + fieldName(i).hashCode(); in hashCode()
2642 … for (int i = 0; i < n; i++) if (!fieldName(i).equals(other.fieldName(i))) return false; in equals()
2656 String fieldName(int i) { return fields[i].getName(); } in fieldName() method in ObjectStreamClass.DeserializationConstructorsCache.Key.Lookup
2681 String fieldName(int i) { return fieldNames[i]; } in fieldName() method in ObjectStreamClass.DeserializationConstructorsCache.Key.Impl
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java254 private static Field getUrlField(String fieldName) throws Exception { in getUrlField() argument
255 Field result = URL.class.getDeclaredField(fieldName); in getUrlField()
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp61 static void initConstant(JNIEnv* env, jclass c, const char* fieldName, int value) { in initConstant() argument
62 jfieldID field = env->GetStaticFieldID(c, fieldName, "I"); in initConstant()