Home
last modified time | relevance | path

Searched refs:laps (Results 1 – 3 of 3) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatches.java56 public static String buildShareResults(Context context, String time, long[] laps) { in buildShareResults() argument
58 int lapsNum = laps == null? 0 : laps.length; in buildShareResults()
64 results += String.format("%d. %s\n", i, getTimeText(laps[lapsNum-i])); in buildShareResults()
69 public static String buildShareResults(Context context, long time, long[] laps) { in buildShareResults() argument
70 return buildShareResults(context, getTimeText(time), laps); in buildShareResults()
DStopwatchFragment.java188 long [] laps = new long[size]; in getLapTimes() local
190 laps[i] = mLaps.get(i).mTotalTime; in getLapTimes()
192 return laps; in getLapTimes()
196 public void setLapTimes(long [] laps) { in setLapTimes() argument
197 if (laps == null || laps.length == 0) { in setLapTimes()
201 int size = laps.length; in setLapTimes()
204 mLaps.add(new Lap (laps[i], 0)); in setLapTimes()
208 totalTime += laps[i]; in setLapTimes()
684 long [] laps = mLapsAdapter.getLapTimes(); in writeToSharedPref() local
685 if (laps != null) { in writeToSharedPref()
[all …]
DStopwatchService.java310 long[] laps = new long[numLaps]; in readLapsFromPrefs() local
318 laps[numLaps - lap_i - 1] = lap - prevLapElapsedTime; in readLapsFromPrefs()
321 return laps; in readLapsFromPrefs()
387 long laps[] = readLapsFromPrefs(); in writeSharedPrefsLap() local
388 int numLaps = laps.length; in writeSharedPrefsLap()
389 long lapTime = laps[1]; in writeSharedPrefsLap()