Searched refs:stopwatch (Results 1 – 16 of 16) sorted by relevance
103 Stopwatch setStopwatch(Stopwatch stopwatch) { in setStopwatch() argument105 if (before != stopwatch) { in setStopwatch()106 StopwatchDAO.setStopwatch(mPrefs, stopwatch); in setStopwatch()107 mStopwatch = stopwatch; in setStopwatch()115 if (stopwatch.isReset()) { in setStopwatch()121 stopwatchListener.stopwatchUpdated(before, stopwatch); in setStopwatch()125 return stopwatch; in setStopwatch()198 final Stopwatch stopwatch = getStopwatch(); in getLongestLapTime() local199 final long currentLapTime = stopwatch.getTotalTime() - laps.get(0).getAccumulatedTime(); in getLongestLapTime()224 final Stopwatch stopwatch = getStopwatch(); in updateNotification() local[all …]
77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) { in setStopwatch() argument80 if (stopwatch.isReset()) { in setStopwatch()86 editor.putInt(STATE, stopwatch.getState().ordinal()) in setStopwatch()87 .putLong(LAST_START_TIME, stopwatch.getLastStartTime()) in setStopwatch()88 .putLong(LAST_WALL_CLOCK_TIME, stopwatch.getLastWallClockTime()) in setStopwatch()89 .putLong(ACCUMULATED_TIME, stopwatch.getAccumulatedTime()); in setStopwatch()
36 import com.android.deskclock.stopwatch.StopwatchService;49 public Notification build(Context context, NotificationModel nm, Stopwatch stopwatch) { in build() argument61 final boolean running = stopwatch.isRunning(); in build()64 final long base = SystemClock.elapsedRealtime() - stopwatch.getTotalTime(); in build()135 .setAutoCancel(stopwatch.isPaused()) in build()
17 package com.android.deskclock.stopwatch;496 final Stopwatch stopwatch = getStopwatch(); in updateTime() local497 final long totalTime = stopwatch.getTotalTime(); in updateTime()502 if (!stopwatch.isReset() && currentLapIsVisible) { in updateTime()520 final Stopwatch stopwatch = getStopwatch(); in updateUI() local521 if (!stopwatch.isReset()) { in updateUI()526 showOrHideLaps(stopwatch.isReset()); in updateUI()545 final Stopwatch stopwatch = getStopwatch(); in run() local546 final boolean blink = stopwatch.isPaused() in run()558 if (!stopwatch.isReset()) { in run()[all …]
17 package com.android.deskclock.stopwatch;125 final Stopwatch stopwatch = getStopwatch(); in onDraw() local130 final long currentLapTime = stopwatch.getTotalTime() - priorLap.getAccumulatedTime(); in onDraw()165 if (stopwatch.isRunning()) { in onDraw()
17 package com.android.deskclock.stopwatch;181 final Stopwatch stopwatch = getStopwatch(); in getShareText() local182 final long totalTime = stopwatch.getTotalTime(); in getShareText()
17 package com.android.deskclock.stopwatch;
48 Stopwatch stopwatch = Stopwatch.createStarted(); in transcode() local50 stopwatch.stop(); in transcode()51 final long elapsedMs = stopwatch.elapsed(TimeUnit.MILLISECONDS); in transcode()
43 import com.android.deskclock.stopwatch.StopwatchService;74 final ShortcutInfo stopwatch = createStopwatchShortcut(); in updateShortcuts() local77 Arrays.asList(alarm, timer, stopwatch, screensaver)); in updateShortcuts()
24 import com.android.deskclock.stopwatch.StopwatchService;
28 import com.android.deskclock.stopwatch.StopwatchFragment;
1dictionary=main:en_us,locale=en_US,description=English (US),date ...