HomeSort by relevance Sort by last modified time
    Searched refs:stopwatch (Results 1 - 25 of 208) sorted by null

1 2 3 4 5 6 7 8 9

  /external/guava/guava-tests/test/com/google/common/base/
StopwatchTest.java 30 * Unit test for {@link Stopwatch}.
38 private final Stopwatch stopwatch = new Stopwatch(ticker); field in class:StopwatchTest
41 Stopwatch startedStopwatch = Stopwatch.createStarted();
46 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
52 assertFalse(stopwatch.isRunning());
53 assertEquals(0, stopwatch.elapsed(NANOSECONDS))
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
StopwatchTest.java 29 * Unit test for {@link Stopwatch}.
37 private final Stopwatch stopwatch = new Stopwatch(ticker); field in class:StopwatchTest
40 Stopwatch startedStopwatch = Stopwatch.createStarted();
45 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
51 assertFalse(stopwatch.isRunning());
52 assertEquals(0, stopwatch.elapsed(NANOSECONDS))
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
RateLimiterTest.java 51 private final FakeStopwatch stopwatch = new FakeStopwatch(); field in class:RateLimiterTest
54 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
118 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
120 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
127 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
129 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
136 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
138 stopwatch.sleepMillis(400);
145 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
146 stopwatch.sleepMillis(1000); // max capacity reache
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
RateLimiter.java 27 import com.google.common.base.Stopwatch;
137 static RateLimiter create(SleepingStopwatch stopwatch, double permitsPerSecond) {
138 RateLimiter rateLimiter = new SmoothBursty(stopwatch, 1.0 /* maxBurstSeconds */);
174 SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
175 RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
184 private final SleepingStopwatch stopwatch; field in class:RateLimiter
202 RateLimiter(SleepingStopwatch stopwatch) {
203 this.stopwatch = checkNotNull(stopwatch);
229 doSetRate(permitsPerSecond, stopwatch.readMicros())
    [all...]
SmoothRateLimiter.java 230 SmoothWarmingUp(SleepingStopwatch stopwatch, long warmupPeriod, TimeUnit timeUnit) {
231 super(stopwatch);
284 SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) {
285 super(stopwatch);
332 private SmoothRateLimiter(SleepingStopwatch stopwatch) {
333 super(stopwatch);
ServiceManager.java 37 import com.google.common.base.Stopwatch;
416 final Map<Service, Stopwatch> startupTimers = Maps.newIdentityHashMap();
483 Stopwatch stopwatch = startupTimers.get(service); local
484 if (stopwatch == null) {
485 startupTimers.put(service, Stopwatch.createStarted());
595 for (Entry<Service, Stopwatch> entry : startupTimers.entrySet()) {
597 Stopwatch stopWatch = entry.getValue();
598 if (!stopWatch.isRunning() && !(service instanceof NoOpService))
644 Stopwatch stopwatch = startupTimers.get(service); local
    [all...]
  /external/libchrome/base/debug/
task_annotator.cc 36 tracked_objects::TaskStopwatch stopwatch; local
37 stopwatch.Start();
39 stopwatch.StartTime() - pending_task->EffectiveTimePosted();
61 stopwatch.Stop();
63 stopwatch);
  /packages/apps/DeskClock/src/com/android/deskclock/data/
StopwatchModel.java 33 * All {@link Stopwatch} data is accessed via this model.
44 /** Used to create and destroy system notifications related to the stopwatch. */
47 /** Update stopwatch notification when locale changes. */
51 /** The listeners to notify when the stopwatch or its laps change. */
54 /** Delegate that builds platform-specific stopwatch notifications. */
58 /** The current state of the stopwatch. */
59 private Stopwatch mStopwatch;
61 /** A mutable copy of the recorded stopwatch laps. */
70 // Update stopwatch notification when locale changes.
76 * @param stopwatchListener to be notified when stopwatch changes or laps are adde
198 final Stopwatch stopwatch = getStopwatch(); local
224 final Stopwatch stopwatch = getStopwatch(); local
    [all...]
StopwatchDAO.java 21 import com.android.deskclock.data.Stopwatch.State;
27 import static com.android.deskclock.data.Stopwatch.State.RESET;
30 * This class encapsulates the transfer of data between {@link Stopwatch} and {@link Lap} domain
35 /** Key to a preference that stores the state of the stopwatch. */
38 /** Key to a preference that stores the last start time of the stopwatch. */
41 /** Key to a preference that stores the epoch time when the stopwatch last started. */
44 /** Key to a preference that stores the accumulated elapsed time of the stopwatch. */
56 * @return the stopwatch from permanent storage or a reset stopwatch if none exists
58 static Stopwatch getStopwatch(SharedPreferences prefs)
    [all...]
StopwatchNotificationBuilder.java 36 import com.android.deskclock.stopwatch.StopwatchService;
45 * Builds notification to reflect the latest state of the stopwatch and recorded laps.
49 public Notification build(Context context, NotificationModel nm, Stopwatch stopwatch) {
61 final boolean running = stopwatch.isRunning();
64 final long base = SystemClock.elapsedRealtime() - stopwatch.getTotalTime();
115 // Right button: Reset (dismisses notification and resets stopwatch)
125 // Indicate the stopwatch is paused.
135 .setAutoCancel(stopwatch.isPaused())
  /external/guice/core/src/com/google/inject/internal/
InternalInjectorCreator.java 30 import com.google.inject.internal.util.Stopwatch;
61 private final Stopwatch stopwatch = new Stopwatch(); field in class:InternalInjectorCreator
104 shells = shellBuilder.build(initializer, bindingData, stopwatch, errors);
105 stopwatch.resetAndLog("Injector construction");
124 stopwatch.resetAndLog("Binding initialization");
129 stopwatch.resetAndLog("Binding indexing");
132 stopwatch.resetAndLog("Collecting injection requests");
135 stopwatch.resetAndLog("Binding validation")
    [all...]
InjectorShell.java 33 import com.google.inject.internal.util.Stopwatch;
126 Stopwatch stopwatch,
155 stopwatch.resetAndLog("Module execution");
161 stopwatch.resetAndLog("Interceptors creation");
171 stopwatch.resetAndLog("TypeListeners & ProvisionListener creation");
174 stopwatch.resetAndLog("Scopes creation");
177 stopwatch.resetAndLog("Converters creation");
188 stopwatch.resetAndLog("Binding creation");
191 stopwatch.resetAndLog("Module annotated method scanners creation")
    [all...]
  /external/libchrome/base/
run_loop.cc 33 // Use task stopwatch to exclude the loop run time from the current task, if
35 tracked_objects::TaskStopwatch stopwatch;
36 stopwatch.Start();
38 stopwatch.Stop();
tracked_objects_unittest.cc 147 // Check that creating and destroying a stopwatch without starting it doesn't
149 TaskStopwatch stopwatch; local
215 TaskStopwatch stopwatch; local
216 stopwatch.Start();
220 stopwatch.Stop();
222 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
606 TaskStopwatch stopwatch; local
607 stopwatch.Start();
609 stopwatch.Stop();
611 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
635 TaskStopwatch stopwatch; local
737 TaskStopwatch stopwatch; local
755 TaskStopwatch stopwatch; local
774 TaskStopwatch stopwatch; local
885 TaskStopwatch stopwatch; local
952 TaskStopwatch stopwatch; local
1016 TaskStopwatch stopwatch; local
1048 TaskStopwatch stopwatch; local
1085 TaskStopwatch stopwatch; local
1126 TaskStopwatch stopwatch; local
    [all...]
tracked_objects.cc 569 const TaskStopwatch& stopwatch) {
570 int32_t run_duration = stopwatch.RunDurationMs();
590 if (stopwatch.heap_tracking_enabled()) {
591 base::debug::ThreadHeapUsage heap_usage = stopwatch.heap_usage().usage();
617 const TaskStopwatch& stopwatch) {
624 ThreadData* current_thread_data = stopwatch.GetThreadData();
633 TrackedTime start_of_run = stopwatch.StartTime();
639 current_thread_data->TallyADeath(*births, queue_duration, stopwatch);
646 const TaskStopwatch& stopwatch) {
662 ThreadData* current_thread_data = stopwatch.GetThreadData()
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
GifTranscoder.java 22 import com.google.common.base.Stopwatch;
48 Stopwatch stopwatch = Stopwatch.createStarted(); local
50 stopwatch.stop();
51 final long elapsedMs = stopwatch.elapsed(TimeUnit.MILLISECONDS);
  /external/caliper/caliper/src/main/java/com/google/caliper/worker/
MacrobenchmarkWorker.java 29 import com.google.common.base.Stopwatch;
42 private final Stopwatch stopwatch; field in class:MacrobenchmarkWorker
50 this.stopwatch = Stopwatch.createUnstarted(ticker);
68 stopwatch.start();
70 long nanos = stopwatch.stop().elapsed(NANOSECONDS);
71 stopwatch.reset();
  /external/guava/guava-tests/benchmark/com/google/common/base/
StopwatchBenchmark.java 20 import com.google.common.base.Stopwatch;
26 * most useful result because it's ambiguous to what extent the stopwatch
32 @Benchmark long stopwatch(int reps) { method in class:StopwatchBenchmark
35 Stopwatch s = Stopwatch.createStarted();
  /external/libmojo/mojo/edk/system/
waiter_unittest.cc 61 test::Stopwatch stopwatch; variable
66 stopwatch.Start();
68 elapsed = stopwatch.Elapsed();
209 test::Stopwatch stopwatch; local
216 stopwatch.Start();
218 elapsed = stopwatch.Elapsed();
223 stopwatch.Start();
226 elapsed = stopwatch.Elapsed()
    [all...]
  /external/libchrome/base/threading/
worker_pool_posix.cc 100 tracked_objects::TaskStopwatch stopwatch; local
101 stopwatch.Start();
103 stopwatch.Stop();
106 pending_task.birth_tally, pending_task.time_posted, stopwatch);
  /packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
StopwatchCircleView.java 17 package com.android.deskclock.stopwatch;
33 import com.android.deskclock.data.Stopwatch;
125 final Stopwatch stopwatch = getStopwatch(); local
130 final long currentLapTime = stopwatch.getTotalTime() - priorLap.getAccumulatedTime();
164 // If the stopwatch is not running it does not require continuous updates.
165 if (stopwatch.isRunning()) {
170 private Stopwatch getStopwatch() {
StopwatchFragment.java 17 package com.android.deskclock.stopwatch;
54 import com.android.deskclock.data.Stopwatch;
67 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
70 * Fragment that shows the stopwatch and recorded laps.
83 /** Scheduled to update the stopwatch time and current lap time while stopwatch is running. */
86 /** Updates the user interface in response to stopwatch changes. */
98 /** Draws the reference lap while the stopwatch is running. */
101 /** The View containing both TextViews of the stopwatch. */
107 /** Displays the current stopwatch time (seconds and above only). *
496 final Stopwatch stopwatch = getStopwatch(); local
520 final Stopwatch stopwatch = getStopwatch(); local
545 final Stopwatch stopwatch = getStopwatch(); local
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
ConsoleOutput.java 27 import com.google.common.base.Stopwatch;
58 private final Stopwatch stopwatch; field in class:ConsoleOutput
61 ConsoleOutput(@Stdout PrintWriter stdout, int numberOfTrials, Stopwatch stopwatch) {
64 this.stopwatch = stopwatch;
145 stdout.format("Execution complete: %s.%n", stopwatch.stop());
  /packages/apps/DeskClock/src/com/android/deskclock/
HandleShortcuts.java 24 import com.android.deskclock.stopwatch.StopwatchService;
27 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
45 // Open DeskClock positioned on the stopwatch tab.
46 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH);
54 // Open DeskClock positioned on the stopwatch tab.
55 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH);
  /system/extras/tests/sdcard/
Android.mk 26 stopwatch.cpp \

Completed in 4370 milliseconds

1 2 3 4 5 6 7 8 9