/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/ |
ConstantTimeClock.c | 32 time_t time (time_t *timer)
34 *timer = 0;
35 return *timer;
38 struct tm * gmtime (const time_t *timer)
|
/external/syslinux/gpxe/src/net/ |
retry.c | 22 #include <gpxe/timer.h> 32 * A retry timer is a binary exponential backoff timer. It can be 35 * This implementation of the timer is designed to satisfy RFC 2988 36 * and therefore be usable as a TCP retransmission timer. 51 * Start timer 53 * @v timer Retry timer 55 * This starts the timer running with the current timeout value. If 56 * stop_timer() is not called before the timer expires, the timer wil 176 struct retry_timer *timer; local [all...] |
/external/libcxxabi/test/support/ |
timer.hpp | 13 // Define LIBCXXABI_NO_TIMER to disable testing with a timer. 19 class timer class 25 timer() : m_start(Clock::now()) {} function in class:timer 27 timer(timer const &) = delete; 28 timer & operator=(timer const &) = delete; 30 ~timer() 44 class timer class 47 timer() {} function in class:timer [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++abi/test/support/ |
timer.hpp | 13 // Define LIBCXXABI_NO_TIMER to disable testing with a timer. 19 class timer class 25 timer() : m_start(Clock::now()) {} function in class:timer 27 timer(timer const &) = delete; 28 timer & operator=(timer const &) = delete; 30 ~timer() 44 class timer class 47 timer() {} function in class:timer [all...] |
/external/deqp/framework/delibs/deutil/ |
deTimer.c | 21 * \brief Periodic timer. 39 HANDLE timer; member in struct:deTimer_s 44 const deTimer* timer = (const deTimer*)lpParameter; local 47 timer->callback(timer->callbackArg); 52 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); local 54 if (!timer) 57 timer->callback = callback; 58 timer->callbackArg = arg; 59 timer->timer = 0 165 timer_t timer; member in struct:deTimer_s 172 const deTimer* timer = (const deTimer*)val.sival_ptr; local 178 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); local 383 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); local [all...] |
deTimer.h | 23 * \brief Periodic timer. 35 void deTimer_destroy (deTimer* timer); 37 deBool deTimer_scheduleSingle (deTimer* timer, int milliseconds); 38 deBool deTimer_scheduleInterval (deTimer* timer, int milliseconds); 40 deBool deTimer_isActive (const deTimer* timer); 41 void deTimer_disable (deTimer* timer);
|
/external/syslinux/gpxe/src/include/gpxe/ |
retry.h | 20 /** A retry timer */ 24 /** Timer is currently running */ 42 /** Timer expired callback 44 * @v timer Retry timer 47 * The timer will already be stopped when this method is 51 void ( * expired ) ( struct retry_timer *timer, int over ); 54 extern void start_timer ( struct retry_timer *timer ); 55 extern void start_timer_fixed ( struct retry_timer *timer, 57 extern void stop_timer ( struct retry_timer *timer ); [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsDurationTimerTest.java | 39 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, local 42 // TimeBase running, timer not running: current and max are 0 44 assertFalse(timer.isRunningLocked()); 45 assertEquals(0, timer.getCurrentDurationMsLocked(300)); 46 assertEquals(0, timer.getMaxDurationMsLocked(301)); 47 assertEquals(0, timer.getTotalDurationMsLocked(301)); 49 // Start timer: current, total, and max advance 50 timer.startRunningLocked(700); 51 assertTrue(timer.isRunningLocked()); 52 assertEquals(800, timer.getCurrentDurationMsLocked(1500)) 112 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, local [all...] |
BatteryStatsTimerTest.java | 29 import com.android.internal.os.BatteryStatsImpl.Timer; 37 class TestTimer extends Timer { 135 * to the timer. 142 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 143 timer.nextComputeCurrentCount = 3000; 145 // Test that starting the timer counts the unplugged time and counters 146 timer.nextComputeRunTime = 4; 147 timer.onTimeStarted(10, 20, 50); 148 Assert.assertEquals(50, timer.lastComputeRunTimeRealtime); 149 Assert.assertEquals(4, timer.getUnpluggedTime()) 224 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 259 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 359 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 401 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 437 TestTimer timer = new TestTimer(clocks, 0, timeBase); local 460 TestTimer timer = new TestTimer(clocks, 0, timeBase); local [all...] |
BatteryStatsSamplingTimerTest.java | 31 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, local 34 timer.onTimeStarted(100, 100, 100); 37 timer.update(10, 1); 39 timer.update(20, 2); 41 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 42 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); 44 timer.endSample(); 46 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 47 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); 49 timer.onTimeStopped(200, 200, 200) 59 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, local 103 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); local 146 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); local [all...] |
BatteryStatsDualTimerTest.java | 38 final BatteryStatsImpl.DualTimer timer = new BatteryStatsImpl.DualTimer(clocks, local 41 assertTrue(timeBase.hasObserver(timer)); 42 assertFalse(subTimeBase.hasObserver(timer)); 43 assertFalse(timeBase.hasObserver(timer.getSubTimer())); 44 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())); 46 // Timer is running so resetting it should not remove it from timerbases. 48 timer.startRunningLocked(clocks.realtime); 49 timer.reset(true); 50 assertTrue(timeBase.hasObserver(timer)); 51 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())) [all...] |
BatteryStatsStopwatchTimerTest.java | 35 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, local 43 timer.startRunningLocked(updateTime(clocks, 100)); // start 45 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 46 timer.startRunningLocked(updateTime(clocks, 110)); // start 47 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 48 timer.stopRunningLocked(updateTime(clocks, 120)); // stop 49 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 50 timer.stopRunningLocked(updateTime(clocks, 130)); // stop 51 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 54 timer.startRunningLocked(updateTime(clocks, 200)); // star [all...] |
/external/libchrome/base/timer/ |
mock_timer_unittest.cc | 5 #include "base/timer/mock_timer.h" 18 base::MockTimer timer(false, false); 20 timer.Start(FROM_HERE, delay, 23 EXPECT_EQ(delay, timer.GetCurrentDelay()); 24 EXPECT_TRUE(timer.IsRunning()); 25 timer.Fire(); 26 EXPECT_FALSE(timer.IsRunning()); 32 base::MockTimer timer(true, true); 34 timer.Start(FROM_HERE, delay, 37 timer.Fire() [all...] |
/bionic/libc/bionic/ |
posix_timers.cpp | 52 // end up with one of our POSIX timer threads handling it (meaning that the intended recipient 53 // doesn't). glibc uses SIGRTMIN for its POSIX timer implementation, so in the absence of any 62 // The fields below are only needed for a SIGEV_THREAD timer. 66 atomic_bool deleted; // Set when the timer is deleted, to prevent further calling of callback. 69 static __kernel_timer_t to_kernel_timer_id(timer_t timer) { 70 return reinterpret_cast<PosixTimer*>(timer)->kernel_timer_id; 74 PosixTimer* timer = reinterpret_cast<PosixTimer*>(arg); local 85 // This signal was sent because a timer fired, so call the callback. 87 // All events to the callback will be ignored when the timer is deleted. 88 if (atomic_load(&timer->deleted) == true) 107 PosixTimer* timer = reinterpret_cast<PosixTimer*>(malloc(sizeof(PosixTimer))); local 191 PosixTimer* timer = reinterpret_cast<PosixTimer*>(id); local 214 PosixTimer* timer= reinterpret_cast<PosixTimer*>(id); local [all...] |
/cts/tests/tests/os/src/android/os/health/cts/ |
TimerStatTest.java | 35 TimerStat timer = new TimerStat(); local 37 Assert.assertEquals(0, timer.getCount()); 38 Assert.assertEquals(0, timer.getTime()); 46 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); local 48 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); 50 timer.setCount(12); 52 Assert.assertEquals(12, timer.getCount()); 53 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); 61 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); local 63 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()) 76 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); local [all...] |
/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...] |
TimerModel.java | 41 import com.android.deskclock.timer.TimerKlaxon; 42 import com.android.deskclock.timer.TimerService; 51 import static com.android.deskclock.data.Timer.State.EXPIRED; 52 import static com.android.deskclock.data.Timer.State.RESET; 55 * All {@link Timer} data is accessed via this model. 84 /** Update timer notification when locale changes. */ 95 /** The listeners to notify when a timer is added, updated or removed. */ 98 /** Delegate that builds platform-specific timer notifications. */ 103 * ids in this collection. If a timer was already expired when the app was started its id will 116 private List<Timer> mTimers 216 Timer timer = new Timer(-1, RESET, length, length, Timer.UNUSED, Timer.UNUSED, length, local [all...] |
/external/jemalloc/test/include/test/ |
timer.h | 1 /* Simple timer, for use in benchmark reporting. */ 8 void timer_start(timedelta_t *timer); 9 void timer_stop(timedelta_t *timer); 10 uint64_t timer_usec(const timedelta_t *timer);
|
/external/eigen/bench/ |
sparse_lu.cpp | 34 timer.reset(); \ 36 timer.start(); \ 39 } timer.stop(); } 49 BenchTimer timer; timer.start(); local 51 timer.stop(); 53 std::cout << ":\t" << timer.value() << endl; 61 timer.reset(); timer.start(); 63 timer.stop() 77 BenchTimer timer; local 99 BenchTimer timer; local [all...] |
/external/valgrind/memcheck/tests/linux/ |
timerfd-syscall.stderr.exp | 8 relative timer test (at 500 ms) ... 9 waiting timer ... 10 got timer ticks (1) after 0.5 s 11 absolute timer test (at 500 ms) ... 12 waiting timer ... 13 got timer ticks (1) after 0.5 s 14 sequential timer test (100 ms clock) ... 19 waiting timer ... 20 got about 20 timer ticks after about 2s 22 waiting timer (flush the single tick) .. [all...] |
/external/icu/icu4c/source/tools/ctestfw/unicode/ |
utimer.h | 58 * UTimer timer; 128 * void perf(UTimer* timer, UChar* source, int32_t sourceLen, UChar* target, int32_t targetLen, int32_t loopCount,UNormalizationMode mode, UErrorCode* error){ 133 * utimer_getTime(timer); 172 static int uprv_initFrequency(UTimer* timer) 174 return QueryPerformanceFrequency(&timer->placeHolder); 176 static void uprv_start(UTimer* timer) 178 QueryPerformanceCounter(&timer->start); 194 static int32_t uprv_initFrequency(UTimer* /*timer*/) 198 static void uprv_start(UTimer* timer) 200 gettimeofday(&timer->start, 0) 269 UTimer timer; local [all...] |
/external/jemalloc/test/src/ |
timer.c | 4 timer_start(timedelta_t *timer) 7 nstime_init(&timer->t0, 0); 8 nstime_update(&timer->t0); 12 timer_stop(timedelta_t *timer) 15 nstime_copy(&timer->t1, &timer->t0); 16 nstime_update(&timer->t1); 20 timer_usec(const timedelta_t *timer) 24 nstime_copy(&delta, &timer->t1); 25 nstime_subtract(&delta, &timer->t0) [all...] |
/external/mockito/src/test/java/org/mockito/internal/util/ |
TimerTest.java | 22 Timer timer = new Timer(duration); local 25 timer.start(); 28 Assertions.assertThat(timer.isCounting()).isTrue(); 34 Timer timer = new Timer(0); local 35 timer.start(); 41 Assertions.assertThat(timer.isCounting()).isFalse() [all...] |
/prebuilts/jdk/jdk8/darwin-x86/jre/lib/management/ |
jmxremote.access | 54 # javax.management.timer: 56 # create javax.management.monitor.*,javax.management.timer.* \ 74 # Timer and Monitor MBeans defined by the JMX API. 78 create javax.management.monitor.*,javax.management.timer.* \
|
/prebuilts/jdk/jdk8/linux-x86/jre/lib/management/ |
jmxremote.access | 54 # javax.management.timer: 56 # create javax.management.monitor.*,javax.management.timer.* \ 74 # Timer and Monitor MBeans defined by the JMX API. 78 create javax.management.monitor.*,javax.management.timer.* \
|