Home
last modified time | relevance | path

Searched refs:done (Results 1 – 25 of 47) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/channels/
DFutureLikeCompletionHandler.java24 boolean done; field in FutureLikeCompletionHandler
30 if (done) { in completed()
34 this.done = true; in completed()
42 if (done) { in failed()
46 this.done = true; in failed()
54 while (!done) { in get()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java96 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
98 public void realRun() { done.countDown(); }}; in testExecute()
100 assertTrue(done.await(LONG_DELAY_MS, MILLISECONDS)); in testExecute()
109 final CountDownLatch done = new CountDownLatch(1); in testGetActiveCount() local
114 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() argument
121 await(done); in testGetActiveCount()
336 final CountDownLatch done = new CountDownLatch(1); in testGetLargestPoolSize() local
341 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetLargestPoolSize() argument
348 await(done); in testGetLargestPoolSize()
380 final CountDownLatch done = new CountDownLatch(1); in testGetPoolSize() local
[all …]
DScheduledExecutorTest.java55 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
57 public void realRun() { done.countDown(); }}; in testExecute()
59 assertTrue(done.await(LONG_DELAY_MS, MILLISECONDS)); in testExecute()
70 final CountDownLatch done = new CountDownLatch(1); in testSchedule1() local
73 done.countDown(); in testSchedule1()
80 assertTrue(done.await(0L, MILLISECONDS)); in testSchedule1()
91 final CountDownLatch done = new CountDownLatch(1); in testSchedule3() local
94 done.countDown(); in testSchedule3()
98 await(done); in testSchedule3()
111 final CountDownLatch done = new CountDownLatch(1); in testSchedule4() local
[all …]
DScheduledExecutorSubclassTest.java112 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
114 public void realRun() { done.countDown(); }}; in testExecute()
116 await(done); in testExecute()
124 final CountDownLatch done = new CountDownLatch(1); in testSchedule1() local
126 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() argument
130 done.countDown(); in testSchedule1()
147 final CountDownLatch done = new CountDownLatch(1); in testSchedule3() local
150 done.countDown(); in testSchedule3()
154 await(done); in testSchedule3()
167 final CountDownLatch done = new CountDownLatch(1); in testSchedule4() local
[all …]
DExecutorCompletionServiceTest.java162 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable() local
165 protected void done() { done.set(true); } in testNewTaskForCallable() method in ExecutorCompletionServiceTest.MyCallableFuture
184 assertTrue("completed task must have set done", done.get()); in testNewTaskForCallable()
193 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable() local
196 protected void done() { done.set(true); } in testNewTaskForRunnable() method in ExecutorCompletionServiceTest.MyRunnableFuture
215 assertTrue("completed task must have set done", done.get()); in testNewTaskForRunnable()
DCollection8Test.java79 final AtomicBoolean done = new AtomicBoolean(false); in testForEachConcurrentStressTest() local
83 try (PoolCleaner cleaner = cleaner(pool, done)) { in testForEachConcurrentStressTest() argument
87 while (!done.get()) in testForEachConcurrentStressTest()
91 while (!done.get()) { in testForEachConcurrentStressTest()
DJSR166TestCase.java1642 private volatile boolean done = false;
1643 public boolean isDone() { return done; }
1647 done = true;
1654 public volatile boolean done = false;
1658 done = true;
1664 public volatile boolean done = false;
1668 done = true;
1674 public volatile boolean done = false;
1678 done = true;
1684 public volatile boolean done = false;
[all …]
DExecutorsTest.java309 final CountDownLatch done = new CountDownLatch(1); in testDefaultThreadFactory() local
327 done.countDown(); in testDefaultThreadFactory()
332 await(done); in testDefaultThreadFactory()
342 final CountDownLatch done = new CountDownLatch(1); in testPrivilegedThreadFactory() local
364 done.countDown(); in testPrivilegedThreadFactory()
369 await(done); in testPrivilegedThreadFactory()
DAtomicIntegerArrayTest.java288 boolean done = true; in realRun()
293 done = false; in realRun()
298 if (done) in realRun()
/libcore/ojluni/src/main/java/javax/crypto/
DExemptionMechanism.java64 private boolean done = false; field in ExemptionMechanism
260 if (done && (key != null)) { in isCryptoAllowed()
316 done = false; in init()
348 done = false; in init()
380 done = false; in init()
405 done = true; in genExemptionBlob()
438 done = true; in genExemptionBlob()
474 done = true; in genExemptionBlob()
DCipherInputStream.java84 private boolean done = false; field in CipherInputStream
116 if (done) return -1; in getMoreData()
125 done = true; in getMoreData()
329 if (!done) { in close()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DScheduledExecutorTest.java77 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
79 public void realRun() { done.countDown(); }}; in testExecute()
81 assertTrue(done.await(LONG_DELAY_MS, MILLISECONDS)); in testExecute()
92 final CountDownLatch done = new CountDownLatch(1); in testSchedule1() local
95 done.countDown(); in testSchedule1()
102 assertTrue(done.await(0L, MILLISECONDS)); in testSchedule1()
113 final CountDownLatch done = new CountDownLatch(1); in testSchedule3() local
116 done.countDown(); in testSchedule3()
120 await(done); in testSchedule3()
133 final CountDownLatch done = new CountDownLatch(1); in testSchedule4() local
[all …]
DExecutorCompletionServiceTest.java223 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable() local
226 @Override protected void done() { done.set(true); } in testNewTaskForCallable() method in ExecutorCompletionServiceTest.MyCallableFuture
244 assertTrue("completed task must have set done", done.get()); in testNewTaskForCallable()
253 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable() local
256 @Override protected void done() { done.set(true); } in testNewTaskForRunnable() method in ExecutorCompletionServiceTest.MyRunnableFuture
274 assertTrue("completed task must have set done", done.get()); in testNewTaskForRunnable()
DForkJoinPoolTest.java239 final CountDownLatch done = new CountDownLatch(1); in testGetPoolSize() local
248 done.await(); in testGetPoolSize()
254 done.countDown(); in testGetPoolSize()
405 final CountDownLatch done = new CountDownLatch(1);
408 ForkJoinTask a = p.submit(awaiter(done));
409 ForkJoinTask b = p.submit(awaiter(done));
410 ForkJoinTask c = p.submit(awaiter(done));
414 done.countDown();
422 final CountDownLatch done = new CountDownLatch(1);
425 ForkJoinTask a = p.submit(awaiter(done));
[all …]
DExecutorsTest.java332 final CountDownLatch done = new CountDownLatch(1); in testDefaultThreadFactory() local
350 done.countDown(); in testDefaultThreadFactory()
355 await(done); in testDefaultThreadFactory()
365 final CountDownLatch done = new CountDownLatch(1); in testPrivilegedThreadFactory() local
387 done.countDown(); in testPrivilegedThreadFactory()
392 await(done); in testPrivilegedThreadFactory()
DJSR166TestCase.java1751 private volatile boolean done = false;
1752 public boolean isDone() { return done; }
1756 done = true;
1763 public volatile boolean done = false;
1767 done = true;
1773 public volatile boolean done = false;
1777 done = true;
1783 public volatile boolean done = false;
1787 done = true;
1793 public volatile boolean done = false;
[all …]
DAtomicLongArrayTest.java310 boolean done = true; in realRun()
315 done = false; in realRun()
320 if (done) in realRun()
DAtomicIntegerArrayTest.java311 boolean done = true; in realRun()
316 done = false; in realRun()
321 if (done) in realRun()
/libcore/ojluni/src/main/java/sun/util/locale/
DStringTokenIterator.java41 private boolean done; field in StringTokenIterator
71 return done; in isDone()
82 done = true; in next()
98 done = false; in setStart()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java231 done: for (;;) { in longAccumulate()
244 break done; in longAccumulate() local
281 break done; in longAccumulate() local
290 break done; in longAccumulate() local
315 done: for (;;) { in doubleAccumulate()
328 break done; in doubleAccumulate() local
364 break done; in doubleAccumulate() local
372 break done; in doubleAccumulate() local
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java147 assertTrue("Threads already finished", !t1.done && !t2.done); in threadWakeup()
153 assertTrue("Threads did not finish", t1.done && t2.done); in threadWakeup()
578 public volatile boolean done; field in WakeupTestThread
581 done = false; in run()
589 done = true; in run()
DSystemTest.java135 final AtomicBoolean done = new AtomicBoolean(); in testArrayCopyConcurrentModification() local
144 while (!done.get()) { in testArrayCopyConcurrentModification()
159 done.set(true); in testArrayCopyConcurrentModification()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixCopyFile.java157 boolean done = false; in copyDirectory()
207 done = true; in copyDirectory()
211 if (!done) { in copyDirectory()
342 boolean done = false; in copySpecial()
363 done = true; in copySpecial()
365 if (!done) { in copySpecial()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DcreateElementNS06.java65 boolean done; in runTest()
/libcore/luni/src/test/java/libcore/dalvik/system/
DInMemoryDexClassLoaderTest.java109 int done = 0; in readFileToByteBufferDirect() local
110 while (done != file.length()) { in readFileToByteBufferDirect()
111 done += raf.getChannel().read(buffer); in readFileToByteBufferDirect()

12