/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
RSTestCore.java | 25 import java.util.Timer; 52 /* Periodic timer for ensuring future tests get scheduled */ 53 private Timer mTimer; 117 mTimer = new Timer();
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerCircleView.java | 17 package com.android.deskclock.timer; 31 import com.android.deskclock.data.Timer; 34 * Custom view that draws timer progress as a circle. 38 /** The size of the dot indicating the progress through the timer. */ 44 /** The color indicating the remaining portion of the timer. */ 47 /** The color indicating the completed portion of the timer. */ 50 /** The size of the stroke that paints the timer circle. */ 57 private Timer mTimer; 85 void update(Timer timer) { [all...] |
TimerItem.java | 17 package com.android.deskclock.timer; 33 import com.android.deskclock.data.Timer; 39 * This view is a visual representation of a {@link Timer}. 46 /** Formats and displays the text in the timer. */ 49 /** Displays timer progress as a color circle that changes from white to red. */ 52 /** A button that either resets the timer or adds time to it, depending on its state. */ 55 /** Displays the label associated with the timer. Tapping it presents an edit dialog. */ 58 /** The last state of the timer that was rendered; used to avoid expensive operations. */ 59 private Timer.State mLastState; 87 * Updates this view to display the latest state of the {@code timer} [all...] |
TimerService.java | 17 package com.android.deskclock.timer; 27 import com.android.deskclock.data.Timer; 34 * <p>This service exists solely to allow {@link android.app.AlarmManager} and timer notifications 48 /** Shows the tab with timers; scrolls to a specific timer. */ 52 /** Starts the sole timer. */ 54 /** Resets the timer. */ 56 /** Adds an extra minute to the timer. */ 59 /** Extra for many actions specific to a given timer. */ 73 public static Intent createTimerExpiredIntent(Context context, Timer timer) { 138 final Timer timer = DataModel.getDataModel().getTimer(timerId); local [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/ |
WakeLockAnomalyDetector.java | 113 BatteryStats.Timer timer = uid.getAggregatedPartialWakelockTimer(); local 115 return timer != null ? timer.getCurrentDurationMsLocked(elapsedRealtimeMs) : 0; 120 BatteryStats.Timer timer = uid.getAggregatedPartialWakelockTimer(); local 121 BatteryStats.Timer subTimer = timer != null ? timer.getSubTimer() : null;
|
/packages/apps/UnifiedEmail/src/com/android/mail/perf/ |
Timer.java | 36 * Timer.startTiming("myEvent"); 38 * Timer.stopTiming("myEvent"); 41 * The other way is to instantiate a timer that can be passed around, and started and paused. The 42 * timer will accumulate the results for each tag, and dump the results when asked. 45 * Timer timer = new Timer(); 48 * timer.start("tagA"); 50 * timer.pause("tagA"); 54 * timer.dumpResults() [all...] |
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
ScheduleMultipleDeviceMetricCollector.java | 33 import java.util.Timer; 72 private Timer mTimer; 125 mTimer = new Timer();
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/ |
Thunk.c | 22 Sets the counter value for Timer #0 in a legacy 8254 timer.
24 @param Count - The 16-bit counter value to program into Timer #0 of the legacy 8254 timer.
209 // Save current rate of DXE Timer
211 Private->Timer->GetTimerPeriod (Private->Timer, &TimerPeriod);
214 // Disable DXE Timer while executing in real mode
216 Private->Timer->SetTimerPeriod (Private->Timer, 0); [all...] |
/device/linaro/bootloader/edk2/Omap35xxPkg/Library/Omap35xxTimerLib/ |
TimerLib.c | 32 UINTN Timer = PcdGet32(PcdOmap35xxFreeTimer);
33 UINT32 TimerBaseAddress = TimerBase(Timer);
46 // Start Timer
49 // Disable OMAP Watchdog timer (WDT2)
123 // Timer starts with the reload value
128 // Timer counts up to 0xFFFFFFFF
|
/external/autotest/server/site_tests/firmware_BaseECKeyboard/ |
firmware_BaseECKeyboard.py | 7 from threading import Timer 62 Timer(self.KEY_PRESS_DELAY, press_action).start()
|
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
Announcer.java | 8 import java.util.Timer; 54 * @see javax.jmdns.impl.tasks.DNSTask#start(java.util.Timer) 57 public void start(Timer timer) { 59 timer.schedule(this, DNSConstants.ANNOUNCE_WAIT_INTERVAL, DNSConstants.ANNOUNCE_WAIT_INTERVAL);
|
Renewer.java | 8 import java.util.Timer; 52 * @see javax.jmdns.impl.tasks.DNSTask#start(java.util.Timer) 55 public void start(Timer timer) { 59 timer.schedule(this, getTTL() * 500, getTTL() * 500);
|
/external/mockito/src/test/java/org/mockito/verification/ |
TimeoutTest.java | 11 import org.mockito.internal.util.Timer; 25 Timer timer; field in class:TimeoutTest 31 Timeout t = new Timeout(1, mode, timer); 33 when(timer.isCounting()).thenReturn(true); 38 InOrder inOrder = inOrder(timer); 39 inOrder.verify(timer).start(); 40 inOrder.verify(timer).isCounting(); 45 Timeout t = new Timeout(1, mode, timer); 47 when(timer.isCounting()).thenReturn(true, true, true, false) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
Pipeline.java | 50 private Timer timer; field in class:Pipeline 112 this.timer.schedule(this.myTimerTask, this.readTimeout); 122 public Pipeline(InputStream pipe, int readTimeout, Timer timer) { 125 this.timer = timer;
|
/external/tensorflow/tensorflow/compiler/xla/service/interpreter/ |
executor.cc | 93 bool InterpreterExecutor::StartTimer(Stream *stream, Timer *timer) { 94 dynamic_cast<host::HostTimer *>(timer->implementation())->Start(stream); 98 bool InterpreterExecutor::StopTimer(Stream *stream, Timer *timer) { 99 dynamic_cast<host::HostTimer *>(timer->implementation())->Stop(stream);
|
/external/v8/tools/testrunner/local/ |
commands.py | 32 from threading import Timer 112 # Pseudo object to communicate with timer thread. 115 timer = Timer(timeout, kill_process, [process, timeout_result]) 116 timer.start() 118 timer.cancel()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
TestTimer.java | 24 import java.util.Timer; 28 * A {@link Timer} for testing that can dial its clock hands to any future time. 30 public class TestTimer extends Timer { 121 throw new IllegalStateException("Timer already cancelled.");
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue8158.go | 38 time.Sleep(10 * time.Millisecond) // overwrote Panic struct with Timer struct
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue8158.go | 38 time.Sleep(10 * time.Millisecond) // overwrote Panic struct with Timer struct
|
/system/core/init/ |
firmware_handler.cpp | 32 using android::base::Timer; 118 Timer t;
|
/device/generic/goldfish/dhcp/client/ |
dhcpclient.h | 23 #include "timer.h" 93 Timer mT1, mT2;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
timeit.py | 9 Library usage: see the Timer class.
16 -r/--repeat N: how many times to repeat the timer (default 3)
33 The difference in default timer function is because on Windows,
36 time() is much more precise. On either platform, the default timer
64 __all__ = ["Timer"]
71 # On Windows, the best timer is time.clock()
74 # On most other platforms the best timer is time.time()
78 # in Timer.__init__() depend on setup being indented 4 spaces and stmt
95 """Create a timer function. Used if the "statement" is a callable."""
105 class Timer: [all...] |
/external/autotest/client/cros/power/ |
power_strip.py | 30 threading.Timer(delay, self._do_command, (command, outlet)).start()
|
/external/jmdns/src/javax/jmdns/impl/ |
DNSTaskStarter.java | 7 import java.util.Timer; 143 * The timer is used to dispatch all outgoing messages of JmDNS. It is also used to dispatch maintenance tasks for the DNS cache. 145 private final Timer _timer; 148 * The timer is used to dispatch maintenance tasks for the DNS cache. 150 private final Timer _stateTimer; 152 public static class StarterTimer extends Timer { 192 * @see java.util.Timer#cancel() 203 * @see java.util.Timer#schedule(java.util.TimerTask, long) 213 * @see java.util.Timer#schedule(java.util.TimerTask, java.util.Date) 223 * @see java.util.Timer#schedule(java.util.TimerTask, long, long [all...] |
/external/perfetto/src/base/ |
watchdog_unittest.cc | 39 // Create a timer for 20 ms and don't release wihin the time. 50 std::map<int, Watchdog::Timer> timers;
|