Home
last modified time | relevance | path

Searched refs:Stopwatches (Results 1 – 6 of 6) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java66 long actionTime = intent.getLongExtra(Stopwatches.MESSAGE_TIME, Utils.getTimeNow()); in onStartCommand()
67 boolean showNotif = intent.getBooleanExtra(Stopwatches.SHOW_NOTIF, true); in onStartCommand()
69 if (actionType.equals(Stopwatches.START_STOPWATCH)) { in onStartCommand()
77 } else if (actionType.equals(Stopwatches.LAP_STOPWATCH)) { in onStartCommand()
86 } else if (actionType.equals(Stopwatches.STOP_STOPWATCH)) { in onStartCommand()
94 } else if (actionType.equals(Stopwatches.RESET_STOPWATCH)) { in onStartCommand()
99 } else if (actionType.equals(Stopwatches.RESET_AND_LAUNCH_STOPWATCH)) { in onStartCommand()
105 } else if (actionType.equals(Stopwatches.SHARE_STOPWATCH)) { in onStartCommand()
110 Intent.EXTRA_SUBJECT, Stopwatches.getShareTitle(getApplicationContext())); in onStartCommand()
111 shareIntent.putExtra(Intent.EXTRA_TEXT, Stopwatches.buildShareResults( in onStartCommand()
[all …]
DStopwatchFragment.java46 int mState = Stopwatches.STOPWATCH_RESET;
124 lapTime.setText(Stopwatches.formatTimeText(mLaps.get(position).mLapTime, in getView()
126 toalTime.setText(Stopwatches.formatTimeText(mLaps.get(position).mTotalTime, in getView()
232 intent.putExtra(Stopwatches.MESSAGE_TIME, time); in rightButtonAction()
233 intent.putExtra(Stopwatches.SHOW_NOTIF, false); in rightButtonAction()
235 case Stopwatches.STOPWATCH_RUNNING: in rightButtonAction()
240 intent.setAction(Stopwatches.STOP_STOPWATCH); in rightButtonAction()
244 case Stopwatches.STOPWATCH_RESET: in rightButtonAction()
245 case Stopwatches.STOPWATCH_STOPPED: in rightButtonAction()
248 intent.setAction(Stopwatches.START_STOPWATCH); in rightButtonAction()
[all …]
DStopwatches.java23 public class Stopwatches { class
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java48 import com.android.deskclock.stopwatch.Stopwatches;
182 editor.remove (Stopwatches.PREF_START_TIME); in clearSwSharedPref()
183 editor.remove (Stopwatches.PREF_ACCUM_TIME); in clearSwSharedPref()
184 editor.remove (Stopwatches.PREF_STATE); in clearSwSharedPref()
185 int lapNum = prefs.getInt(Stopwatches.PREF_LAP_NUM, Stopwatches.STOPWATCH_RESET); in clearSwSharedPref()
187 String key = Stopwatches.PREF_LAP_TIME + Integer.toString(i); in clearSwSharedPref()
190 editor.remove(Stopwatches.PREF_LAP_NUM); in clearSwSharedPref()
DCircleTimerView.java13 import com.android.deskclock.stopwatch.Stopwatches;
265 editor.remove (Stopwatches.PREF_START_TIME); in clearSharedPref()
266 editor.remove (Stopwatches.PREF_ACCUM_TIME); in clearSharedPref()
267 editor.remove (Stopwatches.PREF_STATE); in clearSharedPref()
DDeskClock.java44 import com.android.deskclock.stopwatch.Stopwatches;
162 stopwatchIntent.setAction(Stopwatches.KILL_NOTIF); in onResume()
178 intent.setAction(Stopwatches.SHOW_NOTIF); in onPause()