Home
last modified time | relevance | path

Searched refs:State (Results 1 – 23 of 23) 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.java307 Thread.State state = Thread.currentThread().getState(); in test_getState()
309 assertEquals(Thread.State.RUNNABLE, state); in test_getState()
348 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
351 assertEquals(Thread.State.RUNNABLE, th.getState()); in test_getState()
356 assertEquals(Thread.State.WAITING, th.getState()); in test_getState()
361 assertEquals(Thread.State.BLOCKED, th.getState()); in test_getState()
367 assertEquals(Thread.State.TIMED_WAITING, th.getState()); in test_getState()
372 assertEquals(Thread.State.TERMINATED, th.getState()); in test_getState()
/libcore/luni/src/benchmark/native/
Dlibcore_io_Memory_bench.cpp23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) { in swap_bench()
61 static void BM_swapShorts_aligned(benchmark::State& state) { in BM_swapShorts_aligned()
66 static void BM_swapInts_aligned(benchmark::State& state) { in BM_swapInts_aligned()
71 static void BM_swapLongs_aligned(benchmark::State& state) { in BM_swapLongs_aligned()
78 static void BM_swapShorts_unaligned_1(benchmark::State& state) { in BM_swapShorts_unaligned_1()
83 static void BM_swapInts_unaligned_1(benchmark::State& state) { in BM_swapInts_unaligned_1()
88 static void BM_swapLongs_unaligned_1(benchmark::State& state) { in BM_swapLongs_unaligned_1()
95 static void BM_swapShorts_unaligned_2(benchmark::State& state) { in BM_swapShorts_unaligned_2()
100 static void BM_swapInts_unaligned_2(benchmark::State& state) { in BM_swapInts_unaligned_2()
105 static void BM_swapLongs_unaligned_2(benchmark::State& state) { in BM_swapLongs_unaligned_2()
/libcore/ojluni/src/main/java/sun/net/
DProgressSource.java36 public enum State { NEW, CONNECTED, UPDATE, DELETE }; enum in ProgressSource
51 private State state;
76 this.state = State.NEW; in ProgressSource()
84 state = State.CONNECTED; in connected()
94 state = State.DELETE; in close()
140 public State getState() { in getState()
167 state = State.CONNECTED; in updateProgress()
169 state = State.UPDATE; in updateProgress()
DProgressEvent.java48 private ProgressSource.State state;
53 …Source source, URL url, String method, String contentType, ProgressSource.State state, long progre… in ProgressEvent()
105 public ProgressSource.State getState() { in getState()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchKey.java51 private static enum State { READY, SIGNALLED }; enum in AbstractWatchKey
60 private State state;
72 this.state = State.READY; in AbstractWatchKey()
94 if (state == State.READY) { in signal()
95 state = State.SIGNALLED; in signal()
175 if (state == State.SIGNALLED && isValid()) { in reset()
177 state = State.READY; in reset()
/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/ojluni/src/main/java/sun/security/provider/certpath/
DState.java43 interface State extends Cloneable { interface
DBuilder.java88 (State currentState, List<CertStore> certStores) in getMatchingCerts()
99 abstract void verifyCert(X509Certificate cert, State currentState, in verifyCert()
DForwardState.java54 class ForwardState implements State {
DForwardBuilder.java109 Collection<X509Certificate> getMatchingCerts(State currentState, in getMatchingCerts()
693 void verifyCert(X509Certificate cert, State currentState, in verifyCert()
/libcore/ojluni/src/main/java/sun/misc/
DVM.java28 import static java.lang.Thread.State.*;
377 public static Thread.State toThreadState(int threadStatus) { in toThreadState()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1215 Thread.State s = thread.getState();
1216 if (s == Thread.State.BLOCKED ||
1217 s == Thread.State.WAITING ||
1218 s == Thread.State.TIMED_WAITING)
1220 else if (s == Thread.State.TERMINATED)
1239 Thread.State s = thread.getState();
1240 if (s == Thread.State.BLOCKED ||
1241 s == Thread.State.WAITING ||
1242 s == Thread.State.TIMED_WAITING) {
1248 else if (s == Thread.State.TERMINATED)
[all …]
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java138 public java.lang.Thread.State getState() { throw new RuntimeException("Stub!"); } in getState()
160 public static enum State { enum in Thread
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DVM.java123 public static java.lang.Thread.State toThreadState(int threadStatus) { in toThreadState()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java278 public java.lang.Thread.State getState() { in getState()
484 public static enum State { enum in Thread
492 private State() { in State() method in Thread.State
/libcore/ojluni/src/main/java/java/lang/
DThread.java1312 if (getState() == Thread.State.TERMINATED) { in getThreadGroup()
1924 public enum State { enum in Thread
1997 public State getState() { in getState()
2003 return State.values()[nativeGetStatus(started)]; in getState()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java132 @libcore.util.NonNull public java.lang.Thread.State getState() { throw new RuntimeException("Stub!"… in getState()
148 public static enum State { enum in Thread
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java172 .lookup(Thread.State.class); in test_specialTypes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java952 Thread.State state = Thread.currentThread().getState(); in test_getState()
954 assertEquals(Thread.State.RUNNABLE, state); in test_getState()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java1339 Thread wt; Thread.State s; in isApparentlyUnblocked()
1342 (s = wt.getState()) != Thread.State.BLOCKED && in isApparentlyUnblocked()
1343 s != Thread.State.WAITING && in isApparentlyUnblocked()
1344 s != Thread.State.TIMED_WAITING); in isApparentlyUnblocked()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf151 stateOrProvinceName = State or Province Name (full name)
/libcore/
Dopenjdk_java_files.bp1656 "ojluni/src/main/java/sun/security/provider/certpath/State.java",