/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 51 import static com.android.deskclock.data.Timer.State.EXPIRED; 52 import static com.android.deskclock.data.Timer.State.RESET; 116 private List<Timer> mTimers; 119 private List<Timer> mExpiredTimers; 122 private List<Timer> mMissedTimers; 167 List<Timer> getTimers() { in getTimers() 174 List<Timer> getExpiredTimers() { in getExpiredTimers() 181 private List<Timer> getMissedTimers() { in getMissedTimers() 189 Timer getTimer(int timerId) { in getTimer() 190 for (Timer timer : getMutableTimers()) { in getTimer() [all …]
|
D | Timer.java | 30 import static com.android.deskclock.data.Timer.State.EXPIRED; 31 import static com.android.deskclock.data.Timer.State.MISSED; 32 import static com.android.deskclock.data.Timer.State.PAUSED; 33 import static com.android.deskclock.data.Timer.State.RESET; 34 import static com.android.deskclock.data.Timer.State.RUNNING; 39 public final class Timer { class 108 Timer(int id, State state, long length, long totalLength, long lastStartTime, in Timer() method in Timer 193 Timer start() { in start() 198 return new Timer(mId, RUNNING, mLength, mTotalLength, now(), wallClock(), mRemainingTime, in start() 205 Timer pause() { in pause() [all …]
|
D | DataModel.java | 430 public List<Timer> getTimers() { in getTimers() 438 public List<Timer> getExpiredTimers() { in getExpiredTimers() 447 public Timer getTimer(int timerId) { in getTimer() 456 public Timer getMostRecentExpiredTimer() { in getMostRecentExpiredTimer() 467 public Timer addTimer(long length, String label, boolean deleteAfterUse) { in addTimer() 475 public void removeTimer(Timer timer) { in removeTimer() 483 public void startTimer(Timer timer) { in startTimer() 491 public void startTimer(Service service, Timer timer) { in startTimer() 493 final Timer started = timer.start(); in startTimer() 507 public void pauseTimer(Timer timer) { in pauseTimer() [all …]
|
D | TimerDAO.java | 21 import com.android.deskclock.data.Timer.State; 29 import static com.android.deskclock.data.Timer.State.RESET; 72 static List<Timer> getTimers(SharedPreferences prefs) { in getTimers() 75 final List<Timer> timers = new ArrayList<>(timerIds.size()); in getTimers() 88 final long lastStartTime = prefs.getLong(LAST_START_TIME + id, Timer.UNUSED); in getTimers() 90 Timer.UNUSED); in getTimers() 94 timers.add(new Timer(id, state, length, totalLength, lastStartTime, in getTimers() 105 static Timer addTimer(SharedPreferences prefs, Timer timer) { in addTimer() 130 return new Timer(id, timer.getState(), timer.getLength(), timer.getTotalLength(), in addTimer() 138 static void updateTimer(SharedPreferences prefs, Timer timer) { in updateTimer() [all …]
|
D | TimerListener.java | 27 void timerAdded(Timer timer); in timerAdded() 33 void timerUpdated(Timer before, Timer after); in timerUpdated() 38 void timerRemoved(Timer timer); in timerRemoved()
|
D | TimerNotificationBuilder.java | 57 public Notification build(Context context, NotificationModel nm, List<Timer> unexpired) { in build() 58 final Timer timer = unexpired.get(0); in build() 213 Notification buildHeadsUp(Context context, List<Timer> expired) { in buildHeadsUp() 214 final Timer timer = expired.get(0); in buildHeadsUp() 295 List<Timer> missedTimers) { in buildMissed() 296 final Timer timer = missedTimers.get(0); in buildMissed() 377 private static long getChronometerBase(Timer timer) { in getChronometerBase()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | FakeUid.java | 21 import android.os.BatteryStats.Timer; 49 public Timer getAggregatedPartialWakelockTimer() { in getAggregatedPartialWakelockTimer() 54 public ArrayMap<String, ? extends Timer> getSyncStats() { in getSyncStats() 59 public ArrayMap<String, ? extends Timer> getJobStats() { in getJobStats() 187 public Timer getAudioTurnedOnTimer() { in getAudioTurnedOnTimer() 192 public Timer getVideoTurnedOnTimer() { in getVideoTurnedOnTimer() 197 public Timer getFlashlightTurnedOnTimer() { in getFlashlightTurnedOnTimer() 202 public Timer getCameraTurnedOnTimer() { in getCameraTurnedOnTimer() 207 public Timer getForegroundActivityTimer() { in getForegroundActivityTimer() 212 public Timer getForegroundServiceTimer() { in getForegroundServiceTimer() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | ExpiredTimersActivity.java | 37 import com.android.deskclock.data.Timer; 65 final List<Timer> expiredTimers = getExpiredTimers(); in onCreate() 99 for (Timer timer : expiredTimers) { in onCreate() 160 private void addTimer(Timer timer) { in addTimer() 180 final Timer timer = DataModel.getDataModel().getTimer(timerId); in addTimer() 186 final List<Timer> expiredTimers = getExpiredTimers(); in addTimer() 197 private void removeTimer(Timer timer) { in removeTimer() 211 final List<Timer> expiredTimers = getExpiredTimers(); in removeTimer() 239 private List<Timer> getExpiredTimers() { in getExpiredTimers() 254 final Timer timer = DataModel.getDataModel().getTimer(timerItem.getId()); in run() [all …]
|
D | TimerPagerAdapter.java | 30 import com.android.deskclock.data.Timer; 69 final Timer timer = fragment.getTimer(); in getItemPosition() 82 final Timer timer = getTimers().get(position); in instantiateItem() 145 public void timerAdded(Timer timer) { in timerAdded() 150 public void timerRemoved(Timer timer) { in timerRemoved() 155 public void timerUpdated(Timer before, Timer after) { in timerUpdated() 173 Timer getTimer(int index) { in getTimer() 177 private List<Timer> getTimers() { in getTimers()
|
D | TimerFragment.java | 46 import com.android.deskclock.data.Timer; 176 final Timer timer = DataModel.getDataModel().getMostRecentExpiredTimer(); in onStart() 182 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onStart() 201 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onResume() 241 final Timer timer = getTimer(); in updateFab() 331 final Timer timer = getTimer(); in onFabClick() 370 final Timer timer = DataModel.getDataModel().addTimer(timerLength, "", false); in onFabClick() 392 final Timer timer = getTimer(); in onLeftButtonClick() 550 private void animateTimerRemove(final Timer timerToRemove) { in animateTimerRemove() 579 private void animateToView(final View toView, final Timer timerToRemove, in animateToView() [all …]
|
D | TimerItemFragment.java | 29 import com.android.deskclock.data.Timer; 41 public static TimerItemFragment newInstance(Timer timer) { in newInstance() 59 final Timer timer = getTimer(); in onCreateView() 79 final Timer timer = getTimer(); in updateTime() 91 Timer getTimer() { in getTimer() 98 final Timer timer = getTimer(); in onClick() 128 final Timer clickedTimer = getTimer(); in onClick()
|
D | TimerCircleView.java | 31 import com.android.deskclock.data.Timer; 57 private Timer mTimer; 85 void update(Timer timer) { in update()
|
D | TimerItem.java | 33 import com.android.deskclock.data.Timer; 59 private Timer.State mLastState; 89 void update(Timer timer) { in update()
|
D | TimerService.java | 27 import com.android.deskclock.data.Timer; 73 public static Intent createTimerExpiredIntent(Context context, Timer timer) { in createTimerExpiredIntent() 138 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onStartCommand()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | Throttle.java | 22 import java.util.Timer; 44 private static Timer TIMER = new Timer(); 47 private final Timer mTimer; 86 int maxTimeout, Clock clock, Timer timer) { in Throttle()
|
D | HtmlSanitizer.java | 21 import com.android.mail.perf.Timer; 401 Timer.startTiming("sanitizingHTMLEmail"); in sanitizeHtml() 405 Timer.stopTiming("sanitizingHTMLEmail"); in sanitizeHtml()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ItemDragListener.java | 29 import java.util.Timer; 46 private final Timer mHoverTimer; 50 this(dragHost, new Timer(), DEFAULT_SPRING_TIMEOUT); in ItemDragListener() 54 this(dragHost, new Timer(), springTimeout); in ItemDragListener() 58 protected ItemDragListener(H dragHost, Timer timer, int springTimeout) { in ItemDragListener()
|
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/ |
D | MainActivity.java | 31 import java.util.Timer; 40 private final Timer mTimer = new Timer("com.google.android.car.obd2app.collection");
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleApiCalls.java | 34 import com.android.deskclock.data.Timer; 399 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleShowTimers() 401 final Timer newestTimer = timers.get(timers.size() - 1); in handleShowTimers() 424 if (lengthMillis < Timer.MIN_LENGTH) { in handleSetTimer() 435 Timer timer = null; in handleSetTimer() 436 for (Timer t : DataModel.getDataModel().getTimers()) { in handleSetTimer()
|
D | LabelDialogFragment.java | 42 import com.android.deskclock.data.Timer; 78 public static LabelDialogFragment newInstance(Timer timer) { in newInstance() 189 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/ |
D | WakeLockAnomalyDetector.java | 113 BatteryStats.Timer timer = uid.getAggregatedPartialWakelockTimer(); in getCurrentDurationMs() 120 BatteryStats.Timer timer = uid.getAggregatedPartialWakelockTimer(); in getBackgroundTotalDurationMs() 121 BatteryStats.Timer subTimer = timer != null ? timer.getSubTimer() : null; in getBackgroundTotalDurationMs()
|
/packages/apps/UnifiedEmail/src/com/android/mail/perf/ |
D | Timer.java | 58 public class Timer { class 81 public Timer() { in Timer() method in Timer 85 public Timer(boolean enable) { in Timer() method in Timer
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsNetworkManager.java | 30 import java.util.Timer; 83 private Timer mExtensionTimer; 254 mExtensionTimer = new Timer(MMS_NETWORK_EXTENSION_TIMER, true/*daemon*/); in startNetworkExtensionTimerLocked()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageHeaderView.java | 53 import com.android.mail.perf.Timer; 395 Timer t = new Timer(); in render() 1455 Timer perf = new Timer(); in onLayout() 1463 Timer t = new Timer(); in onMeasure() 1464 if (Timer.ENABLE_TIMER && !mPreMeasuring) { in onMeasure()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WpsDialog.java | 37 import java.util.Timer; 55 private Timer mTimer; 196 mTimer = new Timer(false); in onStart()
|