Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/
DHandleDeskClockApiCalls.java30 import com.android.deskclock.timer.TimerFullScreenFragment;
31 import com.android.deskclock.timer.TimerObj;
32 import com.android.deskclock.timer.Timers;
241 final TimerObj timer; in doInBackground() local
254 timer = timers.get(0); in doInBackground()
255 timer.deleteFromSharedPref(prefs); in doInBackground()
264 timer = getTimerWithStateToIgnore(timers, TimerObj.STATE_RUNNING); in doInBackground()
266 if (timer == null) { in doInBackground()
270 timer.setState(TimerObj.STATE_RUNNING); in doInBackground()
271 timer.mStartTime = Utils.getTimeNow() - (timer.mSetupLength - timer.mTimeLeft); in doInBackground()
[all …]
DLabelDialogFragment.java36 import com.android.deskclock.timer.TimerObj;
60 public static LabelDialogFragment newInstance(TimerObj timer, String label, String tag) { in newInstance() argument
64 args.putParcelable(KEY_TIMER, timer); in newInstance()
80 final TimerObj timer = bundle.getParcelable(KEY_TIMER); in onCreateDialog() local
91 set(alarm, timer, tag); in onCreateDialog()
119 set(alarm, timer, tag); in onCreateDialog()
137 private void set(Alarm alarm, TimerObj timer, String tag) { in set() argument
146 } else if (timer != null) { in set()
147 set(timer, tag, label); in set()
165 private void set(TimerObj timer, String tag, String label) { in set() argument
[all …]
DHandleApiCalls.java40 import com.android.deskclock.timer.TimerFullScreenFragment;
41 import com.android.deskclock.timer.TimerObj;
42 import com.android.deskclock.timer.Timers;
348 TimerObj timer = null; in handleSetTimer() local
355 timer = t; in handleSetTimer()
361 if (timer == null) { in handleSetTimer()
363 timer = new TimerObj(length, label, this /* context */); in handleSetTimer()
365 timer.mDeleteAfterUse = skipUi; in handleSetTimer()
370 timer.setState(TimerObj.STATE_RUNNING); in handleSetTimer()
371 timer.mStartTime = Utils.getTimeNow(); in handleSetTimer()
[all …]
DDeskClock.java50 import com.android.deskclock.timer.TimerFragment;
51 import com.android.deskclock.timer.TimerObj;
52 import com.android.deskclock.timer.Timers;
567 public void onDialogLabelSet(TimerObj timer, String label, String tag) { in onDialogLabelSet() argument
570 ((TimerFragment) frag).setLabel(timer, label); in onDialogLabelSet()
DAlarmInitReceiver.java28 import com.android.deskclock.timer.TimerObj;
DTimerSetupView.java31 import com.android.deskclock.timer.TimerView;
DUtils.java61 import com.android.deskclock.timer.Timers;
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java17 package com.android.deskclock.timer;
261 final TimerObj timer = new TimerObj(); in getTimerFromSharedPrefs() local
262 timer.mTimerId = timerId; in getTimerFromSharedPrefs()
263 timer.readFromSharedPref(prefs); in getTimerFromSharedPrefs()
264 return timer; in getTimerFromSharedPrefs()
285 final TimerObj timer = getTimerFromSharedPrefs(prefs, timerId); in getTimersFromSharedPrefs() local
286 if (timer.mState == state) { in getTimersFromSharedPrefs()
287 timers.add(timer); in getTimersFromSharedPrefs()
293 for (TimerObj timer : timers) { in putTimersInSharedPrefs()
294 timer.writeToSharedPref(prefs); in putTimersInSharedPrefs()
[all …]
DTimerFragmentAdapter.java17 package com.android.deskclock.timer;
54 public void addTimer(TimerObj timer) { in addTimer() argument
56 mTimerList.add(0, timer); in addTimer()
83 TimerObj timer = mTimerList.get(i); in deleteTimer() local
84 if (timer.mTimerId == id) { in deleteTimer()
85 if (timer.mView != null) { in deleteTimer()
86 timer.mView.stop(); in deleteTimer()
88 timer.deleteFromSharedPref(mSharedPrefs); in deleteTimer()
102 TimerObj timer = mTimerList.get(i); in getTimerPosition() local
103 if (timer.mTimerId == id) { in getTimerPosition()
DTimerFragment.java17 package com.android.deskclock.timer;
366 private void setTimerViewFabIcon(TimerObj timer) { in setTimerViewFabIcon() argument
368 if (deskClock == null || timer == null || mFab == null) { in setTimerViewFabIcon()
377 switch (timer.mState) { in setTimerViewFabIcon()
607 final TimerObj timer = getCurrentTimer(); in onLeftButtonClick() local
608 if (timer == null) { in onLeftButtonClick()
611 if (timer.mState == TimerObj.STATE_TIMESUP) { in onLeftButtonClick()
612 mNotificationManager.cancel(timer.mTimerId); in onLeftButtonClick()
619 deleteTimer(timer); in onLeftButtonClick()
627 deleteTimer(timer); in onLeftButtonClick()
[all …]
DTimerReceiver.java17 package com.android.deskclock.timer;
272 TimerObj timer = timersInUse.get(0); in showInUseNotification() local
273 boolean timerIsTicking = timer.isTicking(); in showInUseNotification()
274 String label = timer.getLabelOrDefault(context); in showInUseNotification()
276 long timeLeft = timerIsTicking ? timer.getTimesupTime() - now : timer.mTimeLeft; in showInUseNotification()
282 TimerObj timer = getNextRunningTimer(timersInUse, false, now); in showInUseNotification() local
283 if (timer == null) { in showInUseNotification()
292 long completionTime = timer.getTimesupTime(); in showInUseNotification()
DTimerAlertFullScreen.java15 package com.android.deskclock.timer;
30 import com.android.deskclock.timer.TimerFullScreenFragment.OnEmptyListListener;
DTimers.java17 package com.android.deskclock.timer;
DFragmentStatePagerAdapter2.java17 package com.android.deskclock.timer;
DTimerListItem.java17 package com.android.deskclock.timer;
DTimerView.java17 package com.android.deskclock.timer;
DTimerItemFragment.java17 package com.android.deskclock.timer;
DCountingTimerView.java17 package com.android.deskclock.timer;
DTimerFullScreenFragment.java17 package com.android.deskclock.timer;
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java302 final LoggingTimer timer = createLoggingTimer(action, "#executeAction"); in executeAction() local
303 timer.start(); in executeAction()
307 timer.stopAndLog(); in executeAction()
316 final LoggingTimer timer = createLoggingTimer(action, "#processBackgroundResponse"); in processBackgroundResponse() local
317 timer.start(); in processBackgroundResponse()
321 timer.stopAndLog(); in processBackgroundResponse()
328 final LoggingTimer timer = createLoggingTimer(action, "#processBackgroundFailure"); in processBackgroundFailure() local
329 timer.start(); in processBackgroundFailure()
333 timer.stopAndLog(); in processBackgroundFailure()
DBackgroundWorkerService.java142 final LoggingTimer timer = new LoggingTimer( in doBackgroundWork() local
144 timer.start(); in doBackgroundWork()
148 timer.stopAndLog(); in doBackgroundWork()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DThrottle.java86 int maxTimeout, Clock clock, Timer timer) { in Throttle() argument
93 mTimer = timer; in Throttle()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioAttachmentView.java111 mChronometer = (PausableChronometer) findViewById(R.id.timer); in onFinishInflate()
/packages/apps/Camera/src/com/android/camera/
DCameraSettings.java164 CountDownTimerPreference timer = in initPreference() local
DPhotoModule.java1467 String timer = mPreferences.getString( in onShutterButtonClick() local
1474 int seconds = Integer.parseInt(timer); in onShutterButtonClick()

12