Searched refs:NEW (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/main/java/java/util/concurrent/ |
D | FutureTask.java | 64 private static final int NEW = 0; field in FutureTask 107 this.state = NEW; // ensure visibility of callable in FutureTask() 124 this.state = NEW; // ensure visibility of callable in FutureTask() 132 return state != NEW; in isDone() 136 if (!(state == NEW && in cancel() 137 UNSAFE.compareAndSwapInt(this, stateOffset, NEW, in cancel() 201 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { in set() 219 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { in setException() 227 if (state != NEW || in run() 233 if (c != null && state == NEW) { in run() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadStateTest.java | 23 Thread.State [] exStates = { Thread.State.NEW, Thread.State.RUNNABLE,
|
D | OldThreadTest.java | 347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 82 NEW, enumConstant
|