Home
last modified time | relevance | path

Searched refs:cancelled (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/main/java/java/util/
DTimerTask.java32 boolean cancelled; field in TimerTask
93 boolean willRun = !cancelled && when > 0; in cancel()
94 cancelled = true; in cancel()
DTimer.java146 if (timers[i].cancelled) { in deleteIfCancelled()
170 private boolean cancelled; field in Timer.TimerImpl
205 if (cancelled) { in run()
226 if (task.cancelled) { in run()
251 if (task.cancelled) { in run()
289 cancelled = true; in run()
306 cancelled = true; in cancel()
557 if (impl.cancelled) { in scheduleImpl()
572 if (task.cancelled) { in scheduleImpl()
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java429 final CountDownLatch cancelled = new CountDownLatch(1); in testCancelInterrupt_ThrowsSecurityException() local
434 await(cancelled); in testCancelInterrupt_ThrowsSecurityException()
460 cancelled.countDown(); in testCancelInterrupt_ThrowsSecurityException()
502 final CountDownLatch cancelled = new CountDownLatch(1); in testCancelNoInterrupt() local
507 await(cancelled); in testCancelNoInterrupt()
516 cancelled.countDown(); in testCancelNoInterrupt()
614 final CountDownLatch cancelled = new CountDownLatch(1); in testTimedGet_Cancellation() local
624 await(cancelled); in testTimedGet_Cancellation()
649 cancelled.countDown(); in testTimedGet_Cancellation()
DThreadPoolExecutorSubclassTest.java25 boolean cancelled; field in ThreadPoolExecutorSubclassTest.CustomTask
42 lock.lock(); try { return cancelled; } finally { lock.unlock() ; } in isCancelled()
48 cancelled = true; in cancel()
/libcore/luni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java251 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel()
252 if (cancelled && removeOnCancel && heapIndex >= 0) in cancel()
254 return cancelled; in cancel()