| /development/samples/ToyVpn/server/linux/ |
| ToyVpnServer.cpp | 209 // We use a timer to determine the status of the tunnel. It 212 int timer = 0; local 229 if (timer < 1) { 230 timer = 1; 250 if (timer > 0) { 251 timer = 0; 260 // Increase the timer. This is inaccurate but good enough, 262 timer += (timer > 0) ? 100 : -100; 266 if (timer < -16000) [all...] |
| /external/nist-sip/java/gov/nist/javax/sip/clientauthutils/ |
| CredentialsCache.java | 27 private Timer timer; field in class:CredentialsCache 48 CredentialsCache (Timer timer) { 49 this.timer = timer; 85 this.timer.schedule(timeoutTask, cacheTime*1000);
|
| /packages/apps/DeskClock/src/com/android/deskclock/timer/ |
| Timers.java | 17 package com.android.deskclock.timer; 35 public static final String TIMER_INTENT_EXTRA = "timer.intent.extra"; 74 TimerObj timer = it.next(); local 75 if (!timer.isInUse()) { 86 TimerObj timer = it.next(); local 87 if (timer.mState != TimerObj.STATE_TIMESUP) {
|
| /bionic/libc/upstream-netbsd/lib/libc/isc/ |
| ev_timers.c | 67 evTimer * timer; member in struct:__anon1024 251 ctx->cur->type == Timer && 252 ctx->cur->u.timer.this == del) { 253 evPrintf(ctx, 8, "deferring delete of timer (executing)\n"); 256 * clean up the timer. 284 evTimer *timer = id.opaque; local 289 if (heap_element(ctx->timers, timer->index) != timer) 293 timer->mode |= EV_TMR_RATE; 295 timer->mode &= ~EV_TMR_RATE 311 evTimer *timer = id.opaque; local 408 evTimer *timer = opaqueID.opaque; local 461 evTimer *timer; local [all...] |
| /external/chromium_org/third_party/WebKit/PerformanceTests/inspector/ |
| performance-test.js | 5 var Timer = function(test, callback) 16 Timer.prototype = { 96 InspectorTest.timer = new Timer(perfTest, callback); 97 InspectorTest.timer._runTest(); 103 var timer = InspectorTest.timer; 105 if (timer) 106 cookie = timer.start(functionName); 109 if (timer) [all...] |
| /external/chromium_org/v8/tools/ |
| plot-timer-events | 55 --log-timer-events -e "$calibration_script" > /dev/null 56 t_1_start=`grep "timer-event-start,\"V8.Execute\"" $calibration_log \ 58 t_1_end=`grep "timer-event-end,\"V8.Execute\"" $calibration_log \ 60 n_1=`grep "timer-event\|tick" $calibration_log | wc -l` 63 --log-internal-timer-events -e "$calibration_script" > /dev/null 64 t_2_start=`grep "timer-event-start,\"V8.Execute\"" $calibration_log \ 66 t_2_end=`grep "timer-event-end,\"V8.Execute\"" $calibration_log \ 68 n_2=`grep "timer-event\|tick" $calibration_log | wc -l` 84 -- $@ $options 2>/dev/null > timer-events.plot 88 cat timer-events.plo [all...] |
| /external/chromium_org/third_party/WebKit/Source/core/loader/ |
| LinkLoader.cpp | 69 void LinkLoader::linkLoadTimerFired(Timer<LinkLoader>* timer) 71 ASSERT_UNUSED(timer, timer == &m_linkLoadTimer); 75 void LinkLoader::linkLoadingErrorTimerFired(Timer<LinkLoader>* timer) 77 ASSERT_UNUSED(timer, timer == &m_linkLoadingErrorTimer);
|
| /external/chromium_org/third_party/WebKit/Source/modules/geolocation/testing/ |
| GeolocationClientMock.cpp | 113 void GeolocationClientMock::permissionTimerFired(Timer<GeolocationClientMock>* timer) 115 ASSERT_UNUSED(timer, timer == &m_permissionTimer); 165 void GeolocationClientMock::controllerTimerFired(Timer<GeolocationClientMock>* timer) 167 ASSERT_UNUSED(timer, timer == &m_controllerTimer);
|
| /external/chromium_org/third_party/WebKit/Source/modules/vibration/ |
| NavigatorVibration.cpp | 101 void NavigatorVibration::timerStartFired(Timer<NavigatorVibration>* timer) 103 ASSERT_UNUSED(timer, timer == &m_timerStart); 113 void NavigatorVibration::timerStopFired(Timer<NavigatorVibration>* timer) 115 ASSERT_UNUSED(timer, timer == &m_timerStop);
|
| /external/eigen/bench/ |
| benchFFT.cpp | 66 BenchTimer timer; local 67 timer.reset(); 69 timer.start(); 76 timer.stop(); 80 double mflops = 5.*nfft*log2((double)nfft) / (1e6 * timer.value() / (double)nits ); 94 cout << " NFFT=" << nfft << " " << (double(1e-6*nfft*nits)/timer.value()) << " MS/s " << mflops << "MFLOPS\n";
|
| /external/chromium_org/chrome/browser/sync/test/integration/ |
| status_change_checker.cc | 9 #include "base/timer/timer.h" 29 base::OneShotTimer<StatusChangeChecker> timer; local 30 timer.Start(FROM_HERE,
|
| /external/chromium_org/chrome/browser/ui/passwords/ |
| manage_passwords_ui_controller_mock.h | 51 void SetTimer(base::ElapsedTimer* timer) { timer_.reset(timer); }
|
| /external/jmdns/src/javax/jmdns/impl/tasks/ |
| RecordReaper.java | 7 import java.util.Timer; 38 * @see javax.jmdns.impl.tasks.DNSTask#start(java.util.Timer) 41 public void start(Timer timer) { 43 timer.schedule(this, DNSConstants.RECORD_REAPER_INTERVAL, DNSConstants.RECORD_REAPER_INTERVAL);
|
| /external/qemu/telephony/ |
| test2.c | 28 SysTimer timer = _timer; local 34 sys_timer_set( timer, now + DELAY, timer_func, timer ); 36 sys_timer_destroy( timer ); 196 SysTimer timer; local 202 /* create timer and register it */ 203 timer = sys_timer_create(); 204 sys_timer_set( timer, sys_time_ms() + INITIAL_DELAY, timer_func, timer );
|
| /external/stlport/test/eh/ |
| bug.cpp | 4 #include <boost/timer.hpp> 18 boost::timer t;
|
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
| profile.py | 35 # Sample timer for use with 41 #itimes = integer_timer # replace with C coded timer returning integers 92 def _get_time_times(timer=os.times): 93 t = timer() 104 def _get_time_resource(timer=resgetrusage): 105 t = timer() 152 def __init__(self, timer=None, bias=None): 162 if not timer: 164 self.timer = resgetrusage 168 self.timer = self.get_time = time.cloc [all...] |
| 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...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
| profile.py | 35 # Sample timer for use with 41 #itimes = integer_timer # replace with C coded timer returning integers 92 def _get_time_times(timer=os.times): 93 t = timer() 104 def _get_time_resource(timer=resgetrusage): 105 t = timer() 152 def __init__(self, timer=None, bias=None): 162 if not timer: 164 self.timer = resgetrusage 168 self.timer = self.get_time = time.cloc [all...] |
| 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/chromium_org/third_party/skia/tools/ |
| DumpRecord.cpp | 36 BenchTimer timer; local 37 timer.start(); 39 timer.end(); 41 this->print(command, timer.fCpu);
|
| /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
| CountDownTimerTest.java | 63 CountDownTimer timer = shadowCountDownTimer.start(); local 64 assertThat(timer, notNullValue()); 70 CountDownTimer timer = shadowCountDownTimer.start(); local 71 assertThat(timer, notNullValue());
|
| /external/skia/tools/ |
| DumpRecord.cpp | 14 #include "Timer.h" 36 Timer timer; local 37 timer.start(); 39 timer.end(); 41 this->print(command, timer.fCpu);
|
| /external/chromium_org/chrome/common/extensions/docs/server2/ |
| timer.py | 8 class Timer(object): 9 '''A simple timer which starts when constructed and stops when Stop is called. 17 '''Stops the timer. Must only be called once. Returns |self|. 24 '''Returns a new stopped Timer with this Timer's elapsed time + |other|'s. 29 self_and_other = Timer() 52 (closure return value, timer). 54 timer = Timer() 56 return closure(*args, **optargs), timer [all...] |
| /external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
| HTMLParserScheduler.cpp | 88 void HTMLParserScheduler::continueNextChunkTimerFired(Timer<HTMLParserScheduler>* timer) 90 ASSERT_UNUSED(timer, timer == &m_continueNextChunkTimer);
|
| /packages/apps/DeskClock/src/com/android/deskclock/ |
| LabelDialogFragment.java | 37 import com.android.deskclock.timer.TimerObj; 46 private static final String KEY_TIMER = "timer"; 61 public static LabelDialogFragment newInstance(TimerObj timer, String label, String tag) { 65 args.putParcelable(KEY_TIMER, timer); 83 final TimerObj timer = bundle.getParcelable(KEY_TIMER); local 94 set(alarm, timer, tag); 128 set(alarm, timer, tag); 138 private void set(Alarm alarm, TimerObj timer, String tag) { 147 } else if (timer != null) { 148 set(timer, tag, label) [all...] |