Searched refs:timer (Results 1 - 2 of 2) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DSamplingProfiler.java73 private final Timer timer = new Timer("SamplingProfiler", true); field in class:SamplingProfiler
285 timer.scheduleAtFixedRate(sampler, 0, interval);
316 timer.cancel();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTimerTest.java46 // Should we terminate the timer at a specific timerCounter?
49 // The timer we belong to
50 Timer timer = null; field in class:TimerTest.TimerTestTask
56 timer = t;
66 if (terminateCount == timerCounter && timer != null) {
67 timer.cancel();
238 // Ensure that a call to cancel from within a timer ensures no more
961 * uncaught exception handler and terminate the timer's thread.

Completed in 81 milliseconds