Home
last modified time | relevance | path

Searched refs:NEW (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DFutureTask.java93 private static final int NEW = 0; field in FutureTask
136 this.state = NEW; // ensure visibility of callable in FutureTask()
153 this.state = NEW; // ensure visibility of callable in FutureTask()
161 return state != NEW; in isDone()
165 if (!(state == NEW && STATE.compareAndSet in cancel()
166 (this, NEW, mayInterruptIfRunning ? INTERRUPTING : CANCELLED))) in cancel()
229 if (STATE.compareAndSet(this, NEW, COMPLETING)) { in set()
247 if (STATE.compareAndSet(this, NEW, COMPLETING)) { in setException()
255 if (state != NEW || in run()
260 if (c != null && state == NEW) { in run()
[all …]
DThreadPoolExecutor.java942 if (t.getState() != Thread.State.NEW) in addWorker()
/libcore/ojluni/src/main/java/sun/net/
DProgressSource.java36 public enum State { NEW, CONNECTED, UPDATE, DELETE }; enumConstant
76 this.state = State.NEW; in ProgressSource()
/libcore/ojluni/src/test/java/lang/StackWalker/
DReflectionFrames.java92 .invoke(null, How.NEW)); in testNewStackInspector()
114 .invoke(null, How.NEW)); in testNewStackInspector()
138 .invoke(null, How.NEW)); in testNewStackInspector()
166 .invoke(null, How.NEW)); in testNewStackInspector()
193 .invoke(null, How.NEW)); in testNewStackInspector()
224 .invoke(null, How.NEW)); in testNewStackInspector()
757 static enum How { NEW, CONSTRUCTOR, CLASS}; enumConstant
854 case NEW: return new StackInspector(); in create()
/libcore/ojluni/src/main/native/
DUNIXProcess_md.c223 #define NEW(type, n) ((type *) xmalloc(env, (n) * sizeof(type))) macro
267 pathv = NEW(char*, count+1); in splitPath()
276 pathv[i] = NEW(char, q - p + addSlash + 1); in splitPath()
583 errmsg = NEW(char, newsize); in throwIOException()
942 if ((c = NEW(ChildStuff, 1)) == NULL) return -1; in UNIXProcess_forkAndExec()
957 if ((c->argv = NEW(const char *, argc + 3)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
964 if ((c->envv = NEW(const char *, envc + 1)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadStateTest.java23 Thread.State [] exStates = { Thread.State.NEW, Thread.State.RUNNABLE,
DOldThreadTest.java348 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
/libcore/ojluni/src/main/java/java/lang/
DStackStreamFactory.java104 NEW, // the stream is new and stack walking has not started enumConstant
212 case NEW: in checkState()
246 checkState(NEW); in walk()
303 checkState(NEW); in doStackWalk()
DThread.java2041 NEW, enumConstant
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java124 private static final int NEW = 0; // 0x0 field in FutureTask
/libcore/ojluni/src/main/java/sun/misc/
DVM.java389 return NEW; in toThreadState()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DVM.java391 return NEW; in toThreadState()
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java161 NEW, enumConstant
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java151 NEW, enumConstant
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java487 NEW, enumConstant
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java1201 assertEquals(LatchAwaiter.NEW, r1.state); in testSaturatedExecute4()
1202 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1203 assertEquals(LatchAwaiter.NEW, r3.state); in testSaturatedExecute4()
1212 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DThreadPoolExecutorSubclassTest.java1230 assertEquals(LatchAwaiter.NEW, r1.state); in testSaturatedExecute4()
1231 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1232 assertEquals(LatchAwaiter.NEW, r3.state); in testSaturatedExecute4()
1241 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DJSR166TestCase.java1489 static final int NEW = 0;
1493 int state = NEW;
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadPoolExecutorTest.java1223 assertEquals(LatchAwaiter.NEW, r1.state); in testSaturatedExecute4()
1224 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1225 assertEquals(LatchAwaiter.NEW, r3.state); in testSaturatedExecute4()
1234 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DThreadPoolExecutorSubclassTest.java1252 assertEquals(LatchAwaiter.NEW, r1.state); in testSaturatedExecute4()
1253 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1254 assertEquals(LatchAwaiter.NEW, r3.state); in testSaturatedExecute4()
1263 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DJSR166TestCase.java1761 static final int NEW = 0;
1765 int state = NEW;
/libcore/api/
Dcurrent.txt4421 enum_constant public static final java.lang.Thread.State NEW;