Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java65 private static final int NEW = 0; field in FutureTask
108 this.state = NEW; // ensure visibility of callable in FutureTask()
125 this.state = NEW; // ensure visibility of callable in FutureTask()
133 return state != NEW; in isDone()
137 if (!(state == NEW && in cancel()
138 U.compareAndSwapInt(this, STATE, NEW, in cancel()
202 if (U.compareAndSwapInt(this, STATE, NEW, COMPLETING)) { in set()
220 if (U.compareAndSwapInt(this, STATE, NEW, COMPLETING)) { in setException()
228 if (state != NEW || in run()
233 if (c != null && state == NEW) { in run()
[all …]
/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/main/native/
DUNIXProcess_md.c215 #define NEW(type, n) ((type *) xmalloc(env, (n) * sizeof(type))) macro
259 pathv = NEW(char*, count+1); in splitPath()
268 pathv[i] = NEW(char, q - p + addSlash + 1); in splitPath()
497 errmsg = NEW(char, newsize); in throwIOException()
853 if ((c = NEW(ChildStuff, 1)) == NULL) return -1; in UNIXProcess_forkAndExec()
868 if ((c->argv = NEW(const char *, argc + 3)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
875 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.java347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
/libcore/ojluni/src/main/java/sun/misc/
DVM.java371 return NEW; in toThreadState()
/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.java1449 static final int NEW = 0;
1453 int state = NEW;
/libcore/ojluni/src/main/java/java/lang/
DThread.java1743 NEW, enumConstant