Home
last modified time | relevance | path

Searched refs:periodic (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java297 boolean periodic = isPeriodic(); in run()
298 if (!canRunInCurrentRunState(periodic)) in run()
300 else if (!periodic) in run()
315 boolean canRunInCurrentRunState(boolean periodic) { in canRunInCurrentRunState() argument
316 return isRunningOrShutdown(periodic ? in canRunInCurrentRunState()
/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorSubclassTest.java844 for (Future<?> periodic : periodics) { in testShutdown_cancellation()
845 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
846 assertTrue(effectivePeriodicPolicy ^ periodic.isDone()); in testShutdown_cancellation()
869 for (Future<?> periodic : periodics) { in testShutdown_cancellation()
870 assertTrue(periodic.cancel(false)); in testShutdown_cancellation()
871 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
872 assertTrue(periodic.isDone()); in testShutdown_cancellation()
DScheduledExecutorTest.java793 for (Future<?> periodic : periodics) { in testShutdown_cancellation()
794 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
795 assertTrue(effectivePeriodicPolicy ^ periodic.isDone()); in testShutdown_cancellation()
818 for (Future<?> periodic : periodics) { in testShutdown_cancellation()
819 assertTrue(periodic.cancel(false)); in testShutdown_cancellation()
820 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
821 assertTrue(periodic.isDone()); in testShutdown_cancellation()