Home
last modified time | relevance | path

Searched refs:numLaps (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java148 private void setNotification(long clockBaseTime, boolean clockRunning, int numLaps) { in setNotification() argument
191 if (numLaps > 0) { in setNotification()
193 context.getString(R.string.sw_notification_lap_number), numLaps); in setNotification()
243 private void saveNotification(long clockTime, boolean clockRunning, int numLaps) { in saveNotification() argument
267 int numLaps = prefs.getInt(Stopwatches.PREF_LAP_NUM, -1); in showSavedNotification() local
278 setNotification(clockBaseTime, clockRunning, numLaps); in showSavedNotification()
309 int numLaps = prefs.getInt(Stopwatches.PREF_LAP_NUM, Stopwatches.STOPWATCH_RESET); in readLapsFromPrefs() local
310 long[] laps = new long[numLaps]; in readLapsFromPrefs()
312 for (int lap_i = 0; lap_i < numLaps; lap_i++) { in readLapsFromPrefs()
315 if (lap == prevLapElapsedTime && lap_i == numLaps - 1) { in readLapsFromPrefs()
[all …]
DStopwatchFragment.java556 int numLaps = input.length; in getLapShareTimes() local
557 long[] output = new long[numLaps]; in getLapShareTimes()
559 for (int lap_i = numLaps - 1; lap_i >= 0; lap_i--) { in getLapShareTimes()
727 int numLaps = prefs.getInt(Stopwatches.PREF_LAP_NUM, Stopwatches.STOPWATCH_RESET); in readFromSharedPref() local
730 if (oldLaps == null || oldLaps.length < numLaps) { in readFromSharedPref()
731 long[] laps = new long[numLaps]; in readFromSharedPref()
733 for (int lap_i = 0; lap_i < numLaps; lap_i++) { in readFromSharedPref()
736 laps[numLaps - lap_i - 1] = lap - prevLapElapsedTime; in readFromSharedPref()