HomeSort by relevance Sort by last modified time
    Searched refs:Lap (Results 1 - 7 of 7) sorted by null

  /packages/apps/DeskClock/src/com/android/deskclock/data/
Lap.java 20 * A read-only domain object representing a stopwatch lap.
22 public final class Lap {
24 /** The 1-based position of the lap. */
27 /** Elapsed time in ms since the lap was last started. */
33 Lap(int lapNumber, long lapTime, long accumulatedTime) {
StopwatchModel.java 65 private List<Lap> mLaps;
108 List<Lap> getLaps() {
113 * @return a newly recorded lap completed now; {@code null} if no more laps can be added
115 Lap addLap() {
121 final List<Lap> laps = getMutableLaps();
129 final Lap lap = new Lap(lapNumber, lapTime, totalTime); local
130 laps.add(0, lap);
137 return lap;
246 final Intent lap = new Intent(mContext, StopwatchService.class) local
259 final String lap = res.getString(R.string.sw_notification_lap_number, lapNumber); local
    [all...]
StopwatchDAO.java 33 * This class encapsulates the transfer of data between {@link Stopwatch} and {@link Lap} domain
50 // Prefix for a key to a preference that stores accumulated time at the end of a particular lap.
93 public static List<Lap> getLaps(Context context) {
98 final List<Lap> laps = new ArrayList<>(lapCount);
102 // Lap numbers are 1-based and so the are corresponding shared preference keys.
104 // Look up the accumulated time for the lap.
108 // Lap time is the delta between accumulated time of this lap and prior lap.
111 // Create the lap instance from the data
    [all...]
DataModel.java 507 public List<Lap> getLaps() {
513 * @return a newly recorded lap completed now; {@code null} if no more laps can be added
515 public Lap addLap() {
537 * @return the longest lap time of all recorded laps and the current lap
545 * @param time a point in time after the end of the last lap
546 * @return the elapsed time between the given {@code time} and the end of the previous lap
  /packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
LapsAdapter.java 30 import com.android.deskclock.data.Lap;
37 * Displays a list of lap times in reverse order. That is, the newest lap is at the top, the oldest
38 * lap is at the bottom.
45 /** Used to determine when the time format for the lap time column has changed length. */
58 * After recording the first lap, there is always a "current lap" in progress.
60 * @return 0 if no laps are yet recorded; lap count + 1 if any laps exist
81 // Lap will be null for the current lap
82 final Lap lap = position == 0 ? null : getLaps().get(position - 1); local
138 final Lap lap = DataModel.getDataModel().addLap(); local
190 final Lap lap = laps.get(i); local
    [all...]
StopwatchCircleView.java 31 import com.android.deskclock.data.Lap;
37 * Custom view that draws a reference lap as a circle when one exists.
41 /** The size of the dot indicating the user's position within the reference lap. */
50 /** The color indicating the remaining portion of the current lap. */
53 /** The color indicating the completed portion of the lap. */
56 /** The size of the stroke that paints the lap circle. */
59 /** The size of the stroke that paints the marker for the end of the prior lap. */
112 final List<Lap> laps = getLaps();
114 // If a reference lap does not exist or should not be drawn, draw a simple white circle.
123 // The first lap is the reference lap to which all future laps are compared
    [all...]
StopwatchFragment.java 41 import com.android.deskclock.data.Lap;
61 /** Scheduled to update the stopwatch time and current lap time while stopwatch is running. */
76 /** Draws the reference lap while the stopwatch is running. */
79 /** Displays the recorded lap times. */
130 // Draw the current stopwatch and lap times.
333 * Send stopwatch time and lap times to an external sharing application.
357 * Record and add a new lap ending now.
362 // Record a new lap.
363 final Lap lap = mLapsAdapter.addLap() local
    [all...]

Completed in 133 milliseconds