Home
last modified time | relevance | path

Searched refs:getDeclaredField (Results 1 – 25 of 65) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java165 f = TestField.class.getDeclaredField("shortField"); in test_equalsLjava_lang_Object()
172 .getDeclaredField("shortField"))); in test_equalsLjava_lang_Object()
174 .equals(A.class.getDeclaredField("shortField"))); in test_equalsLjava_lang_Object()
187 Field f = TestField.class.getDeclaredField("doubleField"); in test_getLjava_lang_Object()
193 f = TestField.class.getDeclaredField("doubleSField"); in test_getLjava_lang_Object()
207 f = TestField.class.getDeclaredField("doubleField"); in test_getLjava_lang_Object()
219 f = TestField.class.getDeclaredField("intField"); in test_getLjava_lang_Object()
231 f = TestField.class.getDeclaredField("doubleSField"); in test_getLjava_lang_Object()
373 objectField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
376 booleanField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
[all …]
DGenericArrayTypeTest.java36 Field field = clazz.getDeclaredField("array"); in testGetGenericComponentType()
53 Field field = clazz.getDeclaredField("array"); in testParameterizedComponentType()
DParameterizedTypeTest.java67 Field field = clazz.getDeclaredField("e"); in testParameterizedMemeber()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java29 Field field = getClass().getDeclaredField("MY_LONG"); in testLongFieldReflection()
54 Field valuesField = Thread.State.class.getDeclaredField("$VALUES"); in testSyntheticModifier()
64 Field blockedField = Thread.State.class.getDeclaredField("BLOCKED"); in testEnumValueField()
65 assertTrue(Thread.State.class.getDeclaredField("BLOCKED").isEnumConstant()); in testEnumValueField()
80 Field transientField = ClassWithATransientField.class.getDeclaredField("transientField"); in testTransientModifier()
91 Field transientField = ClassWithATransientField.class.getDeclaredField("transientField"); in testToGenericString()
DReflectionTest.java95 Field fieldOne = C.class.getDeclaredField("fieldOne"); in testFieldToString()
100 Field fieldTwo = C.class.getDeclaredField("fieldTwo"); in testFieldToString()
106 Field fieldThree = C.class.getDeclaredField("fieldThree"); in testFieldToString()
112 Field fieldFour = C.class.getDeclaredField("fieldFour"); in testFieldToString()
119 Field fieldFive = C.class.getDeclaredField("fieldFive"); in testFieldToString()
192 D.class.getDeclaredField("noField"); in testGetDeclaredFieldNotFound()
208 D.class.getDeclaredField(null); in testGetDeclaredFieldNull()
221 D.class.getDeclaredField("fieldOne"); in testGetDeclaredFieldIsNotRecursive()
247 C.class.getDeclaredField("fieldOne"); // public in testGetDeclaredFieldIsAllVisibilities()
248 C.class.getDeclaredField("fieldTwo"); // private in testGetDeclaredFieldIsAllVisibilities()
[all …]
DClassLoaderReflectionTest.java71 assertEquals(aClass, aListClass.getDeclaredField("field").getType()); in testField()
101 Field bString = fClass.getDeclaredField("bString"); in testFieldGenericType()
103 Field listA = fClass.getDeclaredField("listA"); in testFieldGenericType()
144 Field f1 = B.class.getDeclaredField("field"); in testFieldsOfDifferentClassLoadersAreNotEqual()
145 Field f2 = bClass.getDeclaredField("field"); in testFieldsOfDifferentClassLoadersAreNotEqual()
DMissingClassesTest.java64 loadableClass.getDeclaredField("field"); in testGetFieldFails()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java166 (Thread.class.getDeclaredField("threadLocals"));
168 (Thread.class.getDeclaredField("inheritableThreadLocals"));
170 (Thread.class.getDeclaredField("inheritedAccessControlContext"));
224 (Thread.class.getDeclaredField("group")); in createThreadGroup()
226 (ThreadGroup.class.getDeclaredField("parent")); in createThreadGroup()
DSynchronousQueue.java264 (SNode.class.getDeclaredField("match"));
266 (SNode.class.getDeclaredField("next"));
488 (TransferStack.class.getDeclaredField("head"));
556 (QNode.class.getDeclaredField("item"));
558 (QNode.class.getDeclaredField("next"));
798 (TransferQueue.class.getDeclaredField("head"));
800 (TransferQueue.class.getDeclaredField("tail"));
802 (TransferQueue.class.getDeclaredField("cleanMe"));
DExchanger.java608 (Exchanger.class.getDeclaredField("bound"));
610 (Exchanger.class.getDeclaredField("slot"));
613 (Node.class.getDeclaredField("match"));
616 (Thread.class.getDeclaredField("parkBlocker"));
DFutureTask.java465 (FutureTask.class.getDeclaredField("state"));
467 (FutureTask.class.getDeclaredField("runner"));
469 (FutureTask.class.getDeclaredField("waiters"));
DLinkedTransferQueue.java519 (Node.class.getDeclaredField("item"));
521 (Node.class.getDeclaredField("next"));
523 (Node.class.getDeclaredField("waiter"));
1545 (LinkedTransferQueue.class.getDeclaredField("head"));
1547 (LinkedTransferQueue.class.getDeclaredField("tail"));
1549 (LinkedTransferQueue.class.getDeclaredField("sweepVotes"));
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DStriped64.java113 (Cell.class.getDeclaredField("value"));
354 (Striped64.class.getDeclaredField("base"));
356 (Striped64.class.getDeclaredField("cellsBusy"));
359 (Thread.class.getDeclaredField("threadLocalRandomProbe"));
DAtomicBoolean.java29 (AtomicBoolean.class.getDeclaredField("value"));
DAtomicReference.java29 (AtomicReference.class.getDeclaredField("value"));
DAtomicStampedReference.java169 (AtomicStampedReference.class.getDeclaredField("pair"));
DAtomicInteger.java34 (AtomicInteger.class.getDeclaredField("value"));
DAtomicMarkableReference.java169 (AtomicMarkableReference.class.getDeclaredField("pair"));
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLockSupport.java386 (Thread.class.getDeclaredField("parkBlocker"));
388 (Thread.class.getDeclaredField("threadLocalRandomSecondarySeed"));
DAbstractQueuedSynchronizer.java507 (Node.class.getDeclaredField("next"));
509 (Node.class.getDeclaredField("prev"));
511 (Node.class.getDeclaredField("thread"));
513 (Node.class.getDeclaredField("waitStatus"));
2270 (AbstractQueuedSynchronizer.class.getDeclaredField("state"));
2272 (AbstractQueuedSynchronizer.class.getDeclaredField("head"));
2274 (AbstractQueuedSynchronizer.class.getDeclaredField("tail"));
DStampedLock.java1384 (StampedLock.class.getDeclaredField("state"));
1386 (StampedLock.class.getDeclaredField("whead"));
1388 (StampedLock.class.getDeclaredField("wtail"));
1391 (WNode.class.getDeclaredField("status"));
1393 (WNode.class.getDeclaredField("next"));
1395 (WNode.class.getDeclaredField("cowait"));
1398 (Thread.class.getDeclaredField("parkBlocker"));
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java41 klass.getDeclaredField("f"); in timeClass_getDeclaredField()
76 Field f = klass.getDeclaredField("f"); in timeField_setInt()
85 Field f = klass.getDeclaredField("f"); in timeField_getInt()
DPropertyAccessBenchmark.java34 x = View.class.getDeclaredField("x"); in setUp()
/libcore/luni/src/test/java/sun/misc/
DUnsafeTest.java61 Field f = unsafeClass.getDeclaredField("theUnsafe"); in getUnsafe()
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java31 Field intrinsicDisabledField = Reference.class.getDeclaredField("disableIntrinsic"); in setUp()

123