/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | FakeUid.java | 21 import android.os.BatteryStats.Timer; 49 public Timer getAggregatedPartialWakelockTimer() { in getAggregatedPartialWakelockTimer() 54 public Timer getMulticastWakelockStats() { in getMulticastWakelockStats() 59 public ArrayMap<String, ? extends Timer> getSyncStats() { in getSyncStats() 64 public ArrayMap<String, ? extends Timer> getJobStats() { in getJobStats() 162 public Timer getWifiScanTimer() { in getWifiScanTimer() 182 public Timer getWifiScanBackgroundTimer() { in getWifiScanBackgroundTimer() 202 public Timer getAudioTurnedOnTimer() { in getAudioTurnedOnTimer() 207 public Timer getVideoTurnedOnTimer() { in getVideoTurnedOnTimer() 212 public Timer getFlashlightTurnedOnTimer() { in getFlashlightTurnedOnTimer() [all …]
|
/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 Timer getMulticastWakelockStats() { in getMulticastWakelockStats() 59 public ArrayMap<String, ? extends Timer> getSyncStats() { in getSyncStats() 64 public ArrayMap<String, ? extends Timer> getJobStats() { in getJobStats() 162 public Timer getWifiScanTimer() { in getWifiScanTimer() 182 public Timer getWifiScanBackgroundTimer() { in getWifiScanBackgroundTimer() 202 public Timer getAudioTurnedOnTimer() { in getAudioTurnedOnTimer() 207 public Timer getVideoTurnedOnTimer() { in getVideoTurnedOnTimer() 212 public Timer getFlashlightTurnedOnTimer() { in getFlashlightTurnedOnTimer() [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() 161 private void addTimer(Timer timer) { in addTimer() 181 final Timer timer = DataModel.getDataModel().getTimer(timerId); in addTimer() 187 final List<Timer> expiredTimers = getExpiredTimers(); in addTimer() 198 private void removeTimer(Timer timer) { in removeTimer() 212 final List<Timer> expiredTimers = getExpiredTimers(); in removeTimer() 240 private List<Timer> getExpiredTimers() { in getExpiredTimers() 255 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 | 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 | 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() 549 private void animateTimerRemove(final Timer timerToRemove) { in animateTimerRemove() 578 private void animateToView(final View toView, final Timer timerToRemove, in animateToView() [all …]
|
D | TimerCircleView.java | 31 import com.android.deskclock.data.Timer; 57 private Timer mTimer; 85 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()
|
D | TimerItem.java | 33 import com.android.deskclock.data.Timer; 59 private Timer.State mLastState; 89 void update(Timer timer) { in update()
|
D | TimerReceiver.java | 25 import com.android.deskclock.data.Timer; 39 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onReceive()
|
/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/apps/DeskClock/src/com/android/deskclock/ |
D | HandleApiCalls.java | 35 import com.android.deskclock.data.Timer; 392 final Timer selectedTimer = getSelectedTimer(dataUri); in handleDismissTimer() 404 final List<Timer> expiredTimers = DataModel.getDataModel().getExpiredTimers(); in handleDismissTimer() 406 for (Timer timer : expiredTimers) { in handleDismissTimer() 422 private Timer getSelectedTimer(Uri dataUri) { in getSelectedTimer() 444 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleShowTimers() 446 final Timer newestTimer = timers.get(timers.size() - 1); in handleShowTimers() 469 if (lengthMillis < Timer.MIN_LENGTH) { in handleSetTimer() 480 Timer timer = null; in handleSetTimer() 481 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/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/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/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchViewManager.java | 55 import java.util.Timer; 73 private final Timer mTimer; 99 new Timer(), new Handler(Looper.getMainLooper())); in SearchViewManager() 108 Timer timer, in SearchViewManager()
|