/packages/apps/DeskClock/src/com/android/deskclock/data/ |
TimerListener.java | 25 * @param timer the timer that was added 27 void timerAdded(Timer timer); 30 * @param before the timer state before the update 31 * @param after the timer state after the update 33 void timerUpdated(Timer before, Timer after); 36 * @param timer the timer that was remove [all...] |
Timer.java | 29 import static com.android.deskclock.data.Timer.State.EXPIRED; 30 import static com.android.deskclock.data.Timer.State.PAUSED; 31 import static com.android.deskclock.data.Timer.State.RESET; 32 import static com.android.deskclock.data.Timer.State.RUNNING; 35 * A read-only domain object representing a countdown timer. 37 public final class Timer { 70 /** The minimum duration of a timer. */ 73 /** The maximum duration of a timer. */ 80 /** The current state of the timer. */ 83 /** The original length of the timer in milliseconds when it was created. * [all...] |
/toolchain/binutils/binutils-2.25/gold/ |
timer.h | 0 // timer.h -- helper class for time accounting -*- C++ -*- 29 class Timer 45 Timer(); 65 Timer(const Timer&); 66 Timer& operator=(const Timer&);
|
timer.cc | 0 // timer.cc -- helper class for time accounting 33 #include "timer.h" 38 // Class Timer 40 Timer::Timer() 49 Timer::start() 56 Timer::stamp(int n) 93 Timer::get_time(TimeStats *now) 108 Timer::TimeStats 109 Timer::get_elapsed_time( [all...] |
parameters.h | 31 class Timer; 61 set_timer(Timer* timer); 77 // Return the timer object. 78 Timer* 79 timer() const function in class:gold::Parameters 192 Timer* timer_; 212 set_parameters_timer(Timer* timer);
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/ |
Timer.java | 26 public class Timer { 30 public Timer() {
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
TimerTest.java | 21 import com.badlogic.gdx.utils.Timer;
22 import com.badlogic.gdx.utils.Timer.Task;
27 Timer timer = new Timer();
local 28 Task task = timer.scheduleTask(new Task() {
|
/system/core/metricsd/ |
timer.cc | 17 #include "metrics/timer.h" 29 Timer::Timer() 33 bool Timer::Start() { 40 bool Timer::Stop() { 49 bool Timer::Pause() { 65 bool Timer::Resume() { 78 bool Timer::Reset() { 84 bool Timer::HasStarted() const { 88 bool Timer::GetElapsedTime(base::TimeDelta* elapsed_time) const [all...] |
/external/libchrome/base/timer/ |
timer.cc | 5 #include "base/timer/timer.h" 18 // Timer in the thread's default task runner. It also handles the following 21 // - abandoned (orphaned) by Timer. 24 explicit BaseTimerTaskInternal(Timer* timer) 25 : timer_(timer) { 30 // destructed. If so, don't leave Timer with a dangling pointer 41 // *this will be deleted by the task runner, so Timer needs to 45 // Although Timer should not call back into *this, let's clea 47 Timer* timer = timer_; local [all...] |
timer.h | 5 // OneShotTimer and RepeatingTimer provide a simple timer API. As the names 10 // OneShotTimer and RepeatingTimer both cancel the timer when they go out of 14 // receive timer events. 36 // allows you to easily defer the timer event until the timer delay passes once 47 // IMPORTANT: If you change timer code, make sure that all tests (including 70 class BASE_EXPORT Timer { 72 // Construct a timer in repeating or one-shot mode. Start or SetTaskInfo must 75 Timer(bool retain_user_task, bool is_repeating); 77 // Construct a timer with retained task info [all...] |
/external/llvm/include/llvm/Support/ |
Timer.h | 1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===// 22 class Timer; 65 /// print - Print the current timer to standard error, and reset the "Started" 70 /// Timer - This class is used to track the amount of time spent between 73 /// By default, the Timer will print the amount of time it has captured to 74 /// standard error when the last timer is destroyed, otherwise it is printed 78 class Timer { 82 TimerGroup *TG; // The TimerGroup this Timer is in. 84 Timer **Prev, *Next; // Doubly linked list of timers in the group. 86 explicit Timer(StringRef N) : TG(nullptr) { init(N); [all...] |
/art/tools/dexfuzz/src/dexfuzz/ |
Timer.java | 24 public class Timer { 26 * The name of the timer, the phase of the program it is intended to time. 42 * Initialise a new timer with the provided name. 44 public Timer(String name) { 65 * Log the elapsed time this timer has recorded.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TimerTest.java | 22 import java.util.Timer; 39 * Timer is not cancelled. 50 // Should we terminate the timer at a specific timerCounter? 53 // The timer we belong to 54 Timer timer = null; field in class:TimerTest.TimerTestTask 59 public TimerTestTask(Timer t) { 60 timer = t; 70 if (terminateCount == timerCounter && timer != null) { 71 timer.cancel() [all...] |
TimerTaskTest.java | 20 import java.util.Timer; 26 * Timer is not cancelled. 79 Timer t = null; 87 t = new Timer(); 94 t = new Timer(); 113 t = new Timer(); 123 t = new Timer(); 138 t = new Timer(); 150 t = new Timer(); 174 Timer t = null [all...] |
/external/pdfium/testing/ |
embedder_test_timer_handling_delegate.h | 43 expiry_to_timer_map_.insert(std::pair<int, Timer>( 44 msecs + imaginary_elapsed_msecs_, Timer(++next_timer_id_, fn))); 65 Timer t = iter->second; 70 t.second(t.first); // Fire timer. 77 using Timer = std::pair<int, TimerCallback>; // ID, callback pair. 78 std::multimap<int, Timer> expiry_to_timer_map_; // Keyed by timeout.
|
/external/autotest/frontend/client/src/autotest/common/ |
CommonClassFactory.java | 4 import com.google.gwt.user.client.Timer; 12 Timer timer = new Timer() { local 20 timer.scheduleRepeating(10 * 60 * 1000);
|
/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/ |
DrawingCanvas.java | 6 import javax.swing.Timer; 12 private final Timer timer; field in class:DrawingCanvas 17 timer = new Timer(1000/60, loop); 18 timer.setRepeats(true); 25 timer.start(); 30 timer.stop();
|
/external/ImageMagick/MagickCore/ |
timer.h | 16 MagickCore timer methods. 38 } Timer; 42 Timer
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
FakeUid.java | 20 import android.os.BatteryStats.Timer; 47 public ArrayMap<String, ? extends Timer> getSyncStats() { 52 public ArrayMap<String, ? extends Timer> getJobStats() { 160 public Timer getAudioTurnedOnTimer() { 165 public Timer getVideoTurnedOnTimer() { 170 public Timer getFlashlightTurnedOnTimer() { 175 public Timer getCameraTurnedOnTimer() { 180 public Timer getForegroundActivityTimer() { 190 public Timer getProcessStateTimer(int state) { 195 public Timer getVibratorOnTimer() [all...] |
/external/libchrome/components/timers/ |
alarm_timer_chromeos.cc | 85 // alarm timer and then watches that file descriptor to see when it can be read 86 // without blocking, indicating that the timer has fired. 89 // available on a MessageLoopForIO but there is no guarantee the timer is going 90 // to be created on one. To get around this, the timer has a dedicated thread 92 // timer. 101 // Returns true if the system timer managed by this delegate is capable of 105 // Resets the timer to fire after |delay| has passed. Cancels any 109 // Stops the currently running timer. It should be safe to call this even if 110 // the timer is not running. 113 // Sets a hook that will be called when the timer fires and a task has bee [all...] |
/system/core/metricsd/include/metrics/ |
timer.h | 17 // Timer - class that provides timer tracking. 56 // Implements a Timer. 57 class Timer : public TimerInterface { 59 Timer(); 60 virtual ~Timer() {} 62 // Starts the timer. If a timer is already running, also resets current 63 // timer. Always returns true. 66 // Stops the timer and calculates the total time elapsed between now and whe [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerPagerAdapter.java | 17 package com.android.deskclock.timer; 29 import com.android.deskclock.data.Timer; 36 * This adapter produces a {@link TimerItemFragment} for each timer. 42 /** Maps each timer id to the corresponding {@link TimerItemFragment} that draws it. */ 68 final Timer timer = fragment.getTimer(); local 70 final int position = getTimers().indexOf(timer); 80 final Timer timer = getTimers().get(position); local 83 final String tag = getClass().getSimpleName() + timer.getId() [all...] |
ExpiredTimersActivity.java | 15 package com.android.deskclock.timer; 33 import com.android.deskclock.data.Timer; 40 * timers and a single button to reset them all. Each expired timer can also be reset to one minute 41 * with a button in the user interface. All other timer operations are disabled in this activity. 78 for (Timer timer : getExpiredTimers()) { 79 addTimer(timer); 82 // Update views in response to timer data changes. 137 * Create and add a new view that corresponds with the given {@code timer}. 139 private void addTimer(Timer timer) 224 final Timer timer = getExpiredTimers().get(i); local [all...] |
/prebuilts/go/darwin-x86/src/time/ |
sleep.go | 15 // Must be in sync with ../runtime/runtime.h:/^struct.Timer$ 43 // The Timer type represents a single event. 44 // When the Timer expires, the current time will be sent on C, 45 // unless the Timer was created by AfterFunc. 46 // A Timer must be created with NewTimer or AfterFunc. 47 type Timer struct { 52 // Stop prevents the Timer from firing. 53 // It returns true if the call stops the timer, false if the timer has already 57 func (t *Timer) Stop() bool [all...] |
/prebuilts/go/linux-x86/src/time/ |
sleep.go | 15 // Must be in sync with ../runtime/runtime.h:/^struct.Timer$ 43 // The Timer type represents a single event. 44 // When the Timer expires, the current time will be sent on C, 45 // unless the Timer was created by AfterFunc. 46 // A Timer must be created with NewTimer or AfterFunc. 47 type Timer struct { 52 // Stop prevents the Timer from firing. 53 // It returns true if the call stops the timer, false if the timer has already 57 func (t *Timer) Stop() bool [all...] |