/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 49 import com.android.deskclock.timer.ExpiredTimersActivity; 50 import com.android.deskclock.timer.TimerKlaxon; 51 import com.android.deskclock.timer.TimerService; 171 for (Timer timer : getMutableTimers()) { in getTimer() 172 if (timer.getId() == timerId) { in getTimer() 173 return timer; in getTimer() 197 Timer timer = new Timer(-1, RESET, length, length, Long.MIN_VALUE, length, label, in addTimer() local 201 timer = TimerDAO.addTimer(mContext, timer); in addTimer() 204 getMutableTimers().add(0, timer); in addTimer() 212 timerListener.timerAdded(timer); in addTimer() [all …]
|
D | TimerDAO.java | 108 public static Timer addTimer(Context context, Timer timer) { in addTimer() argument 122 editor.putInt(STATE + id, timer.getState().getValue()); in addTimer() 123 editor.putLong(LENGTH + id, timer.getLength()); in addTimer() 124 editor.putLong(TOTAL_LENGTH + id, timer.getTotalLength()); in addTimer() 125 editor.putLong(LAST_START_TIME + id, timer.getLastStartTime()); in addTimer() 126 editor.putLong(REMAINING_TIME + id, timer.getRemainingTime()); in addTimer() 127 editor.putString(LABEL + id, timer.getLabel()); in addTimer() 128 editor.putBoolean(DELETE_AFTER_USE + id, timer.getDeleteAfterUse()); in addTimer() 133 return new Timer(id, timer.getState(), timer.getLength(), timer.getTotalLength(), in addTimer() 134 timer.getLastStartTime(), timer.getRemainingTime(), timer.getLabel(), in addTimer() [all …]
|
D | DataModel.java | 309 public void removeTimer(Timer timer) { in removeTimer() argument 311 mTimerModel.removeTimer(timer); in removeTimer() 317 public void startTimer(Timer timer) { in startTimer() argument 319 mTimerModel.updateTimer(timer.start()); in startTimer() 325 public void pauseTimer(Timer timer) { in pauseTimer() argument 327 mTimerModel.updateTimer(timer.pause()); in pauseTimer() 334 public void expireTimer(Service service, Timer timer) { in expireTimer() argument 336 mTimerModel.expireTimer(service, timer); in expireTimer() 347 public void resetOrDeleteTimer(Timer timer, @StringRes int eventLabelId) { in resetOrDeleteTimer() argument 349 mTimerModel.resetOrDeleteTimer(timer, eventLabelId); in resetOrDeleteTimer() [all …]
|
D | TimerListener.java | 27 void timerAdded(Timer timer); in timerAdded() argument 38 void timerRemoved(Timer timer); in timerRemoved() argument
|
D | Timer.java | 256 final Timer timer = (Timer) o; in equals() 258 return mId == timer.mId; in equals()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | ExpiredTimersActivity.java | 15 package com.android.deskclock.timer; 78 for (Timer timer : getExpiredTimers()) { in onCreate() 79 addTimer(timer); in onCreate() 139 private void addTimer(Timer timer) { in addTimer() argument 145 timerItem.setTag(timer.getId()); in addTimer() 158 final Timer timer = getExpiredTimers().get(index); in addTimer() 159 DataModel.getDataModel().addTimerMinute(timer); in addTimer() 175 private void removeTimer(Timer timer) { in removeTimer() argument 178 final View timerView = mExpiredTimersView.findViewWithTag(timer.getId()); in removeTimer() 224 final Timer timer = getExpiredTimers().get(i); in run() local [all …]
|
D | TimerItemFragment.java | 17 package com.android.deskclock.timer; 40 public static TimerItemFragment newInstance(Timer timer) { in newInstance() argument 43 args.putInt(KEY_TIMER_ID, timer.getId()); in newInstance() 72 final Timer timer = getTimer(); in updateTime() local 73 view.update(timer); in updateTime() 74 return !timer.isReset(); in updateTime() 91 final Timer timer = getTimer(); in onClick() local 92 if (timer.isPaused()) { in onClick() 93 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_deskclock); in onClick() 94 } else if (timer.isRunning() || timer.isExpired()) { in onClick() [all …]
|
D | TimerService.java | 17 package com.android.deskclock.timer; 52 public static Intent createTimerExpiredIntent(Context context, Timer timer) { in createTimerExpiredIntent() argument 53 final int timerId = timer == null ? -1 : timer.getId(); in createTimerExpiredIntent() 105 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onStartCommand() local 108 if (timer == null) { in onStartCommand() 115 DataModel.getDataModel().startTimer(timer); in onStartCommand() 119 DataModel.getDataModel().pauseTimer(timer); in onStartCommand() 123 DataModel.getDataModel().addTimerMinute(timer); in onStartCommand() 127 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_notification); in onStartCommand() 130 DataModel.getDataModel().expireTimer(this, timer); in onStartCommand()
|
D | TimerFragment.java | 17 package com.android.deskclock.timer; 183 final Timer timer = DataModel.getDataModel().getMostRecentExpiredTimer(); in onResume() local 184 showTimerId = timer == null ? -1 : timer.getId(); in onResume() 189 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onResume() local 190 if (timer != null) { in onResume() 191 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onResume() 239 final Timer timer = getTimer(); in setFabAppearance() local 240 if (timer == null) { in setFabAppearance() 246 switch (timer.getState()) { in setFabAppearance() 269 final Timer timer = getTimer(); in onFabClick() local [all …]
|
D | TimerItem.java | 17 package com.android.deskclock.timer; 75 void update(Timer timer) { in update() argument 77 mTimerText.setTime(timer.getRemainingTime(), false, true); in update() 80 mCircleView.update(timer); in update() 83 final String label = timer.getLabel(); in update() 90 mCircleView.setVisibility(timer.isExpired() && blinkOff ? INVISIBLE : VISIBLE); in update() 91 mTimerText.showTime(!timer.isPaused() || !blinkOff); in update() 94 if (timer.getState() != mLastState) { in update() 95 mLastState = timer.getState(); in update()
|
D | TimerPagerAdapter.java | 17 package com.android.deskclock.timer; 68 final Timer timer = fragment.getTimer(); in getItemPosition() local 70 final int position = getTimers().indexOf(timer); in getItemPosition() 80 final Timer timer = getTimers().get(position); in instantiateItem() local 83 final String tag = getClass().getSimpleName() + timer.getId(); in instantiateItem() 91 fragment = TimerItemFragment.newInstance(timer); in instantiateItem() 99 mFragments.put(timer.getId(), fragment); in instantiateItem() 142 public void timerAdded(Timer timer) { in timerAdded() argument 147 public void timerRemoved(Timer timer) { in timerRemoved() argument
|
D | TimerReceiver.java | 17 package com.android.deskclock.timer; 39 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onReceive() local 40 context.startService(TimerService.createTimerExpiredIntent(context, timer)); in onReceive()
|
D | TimerCircleView.java | 17 package com.android.deskclock.timer; 84 void update(Timer timer) { in update() argument 85 if (mTimer != timer) { in update() 86 mTimer = timer; in update()
|
D | TimerKlaxon.java | 17 package com.android.deskclock.timer;
|
D | TimerView.java | 17 package com.android.deskclock.timer;
|
D | TimerSetupView.java | 17 package com.android.deskclock.timer;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleDeskClockApiCalls.java | 184 Timer timer = null; in handleTimerIntent() local 200 timer = timers.get(0); in handleTimerIntent() 204 timer = DataModel.getDataModel().getTimer(timerId); in handleTimerIntent() 205 if (timer == null) { in handleTimerIntent() 210 if (timer == null) { in handleTimerIntent() 213 timerId = timer.getId(); in handleTimerIntent() 218 DataModel.getDataModel().resetOrDeleteTimer(timer, eventLabel); in handleTimerIntent() 219 if (timer.isExpired() && timer.getDeleteAfterUse()) { in handleTimerIntent() 228 DataModel.getDataModel().startTimer(timer); in handleTimerIntent() 234 DataModel.getDataModel().pauseTimer(timer); in handleTimerIntent()
|
D | LabelDialogFragment.java | 70 public static LabelDialogFragment newInstance(Timer timer) { in newInstance() argument 72 args.putString(KEY_LABEL, timer.getLabel()); in newInstance() 73 args.putInt(KEY_TIMER_ID, timer.getId()); in newInstance() 131 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel() local 132 if (timer != null) { in setLabel() 133 DataModel.getDataModel().setTimerLabel(timer, label); in setLabel()
|
D | HandleApiCalls.java | 40 import com.android.deskclock.timer.TimerFragment; 351 Timer timer = null; in handleSetTimer() local 357 timer = t; in handleSetTimer() 362 if (timer == null) { in handleSetTimer() 363 timer = DataModel.getDataModel().addTimer(lengthMillis, label, skipUi); in handleSetTimer() 368 DataModel.getDataModel().startTimer(timer); in handleSetTimer() 376 .putExtra(HandleDeskClockApiCalls.EXTRA_TIMER_ID, timer.getId())); in handleSetTimer()
|
/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/Bluetooth/src/com/android/bluetooth/btservice/ |
D | bluetooth.proto | 98 // Media timer in milliseconds. 101 // Media timer in milliseconds. 104 // Media timer in milliseconds.
|
/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/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.java | 44 import com.android.deskclock.timer.CountingTimerView;
|