Home
last modified time | relevance | path

Searched refs:State (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadStateTest.java23 Thread.State [] exStates = { Thread.State.NEW, Thread.State.RUNNABLE,
24 Thread.State.BLOCKED, Thread.State.WAITING,
25 Thread.State.TIMED_WAITING, Thread.State.TERMINATED };
32 assertEquals(exStates[i], Thread.State.valueOf(spNames[i])); in test_valueOfLString()
38 Thread.State.valueOf(s); in test_valueOfLString()
47 Thread.State [] thStates = Thread.State.values(); in test_values()
49 for(Thread.State ts:thStates) { in test_values()
54 boolean isContain(Thread.State state) { in isContain()
55 for(Thread.State ts:exStates) { in isContain()
DOldThreadTest.java306 Thread.State state = Thread.currentThread().getState(); in test_getState()
308 assertEquals(Thread.State.RUNNABLE, state); in test_getState()
347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
350 assertEquals(Thread.State.RUNNABLE, th.getState()); in test_getState()
355 assertEquals(Thread.State.WAITING, th.getState()); in test_getState()
360 assertEquals(Thread.State.BLOCKED, th.getState()); in test_getState()
366 assertEquals(Thread.State.TIMED_WAITING, th.getState()); in test_getState()
371 assertEquals(Thread.State.TERMINATED, th.getState()); in test_getState()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java54 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()
/libcore/libart/src/main/java/java/lang/
DThread.java78 public enum State { enum in Thread
590 public State getState() { in getState()
591 return State.values()[nativeGetStatus(hasBeenStarted)]; in getState()
603 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java628 Thread.State s = thread.getState(); in waitForThreadToEnterWaitState()
629 if (s == Thread.State.BLOCKED || in waitForThreadToEnterWaitState()
630 s == Thread.State.WAITING || in waitForThreadToEnterWaitState()
631 s == Thread.State.TIMED_WAITING) in waitForThreadToEnterWaitState()
633 else if (s == Thread.State.TERMINATED) in waitForThreadToEnterWaitState()
711 if (t.getState() != Thread.State.TERMINATED) { in awaitTermination()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java158 .lookup(Thread.State.class); in test_specialTypes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java946 Thread.State state = Thread.currentThread().getState(); in test_getState()
948 assertEquals(Thread.State.RUNNABLE, state); in test_getState()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinPool.java1007 Thread wt; Thread.State s; in isApparentlyUnblocked()
1010 (s = wt.getState()) != Thread.State.BLOCKED && in isApparentlyUnblocked()
1011 s != Thread.State.WAITING && in isApparentlyUnblocked()
1012 s != Thread.State.TIMED_WAITING); in isApparentlyUnblocked()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf151 stateOrProvinceName = State or Province Name (full name)