/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleDeskClockApiCalls.java | 30 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 …]
|
D | LabelDialogFragment.java | 36 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 …]
|
D | HandleApiCalls.java | 40 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 …]
|
D | DeskClock.java | 50 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()
|
D | AlarmInitReceiver.java | 28 import com.android.deskclock.timer.TimerObj;
|
D | TimerSetupView.java | 31 import com.android.deskclock.timer.TimerView;
|
D | Utils.java | 61 import com.android.deskclock.timer.Timers;
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 17 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 …]
|
D | TimerFragmentAdapter.java | 17 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()
|
D | TimerFragment.java | 17 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 …]
|
D | TimerReceiver.java | 17 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()
|
D | TimerAlertFullScreen.java | 15 package com.android.deskclock.timer; 30 import com.android.deskclock.timer.TimerFullScreenFragment.OnEmptyListListener;
|
D | Timers.java | 17 package com.android.deskclock.timer;
|
D | FragmentStatePagerAdapter2.java | 17 package com.android.deskclock.timer;
|
D | TimerListItem.java | 17 package com.android.deskclock.timer;
|
D | TimerView.java | 17 package com.android.deskclock.timer;
|
D | TimerItemFragment.java | 17 package com.android.deskclock.timer;
|
D | CountingTimerView.java | 17 package com.android.deskclock.timer;
|
D | TimerFullScreenFragment.java | 17 package com.android.deskclock.timer;
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionServiceImpl.java | 302 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()
|
D | BackgroundWorkerService.java | 142 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/ |
D | Throttle.java | 86 int maxTimeout, Clock clock, Timer timer) { in Throttle() argument 93 mTimer = timer; in Throttle()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AudioAttachmentView.java | 111 mChronometer = (PausableChronometer) findViewById(R.id.timer); in onFinishInflate()
|
/packages/apps/Camera/src/com/android/camera/ |
D | CameraSettings.java | 164 CountDownTimerPreference timer = in initPreference() local
|
D | PhotoModule.java | 1467 String timer = mPreferences.getString( in onShutterButtonClick() local 1474 int seconds = Integer.parseInt(timer); in onShutterButtonClick()
|