Home
last modified time | relevance | path

Searched refs:Timer (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java51 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 …]
DTimer.java30 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 …]
DDataModel.java430 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 …]
DTimerDAO.java21 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 …]
DTimerListener.java27 void timerAdded(Timer timer); in timerAdded()
33 void timerUpdated(Timer before, Timer after); in timerUpdated()
38 void timerRemoved(Timer timer); in timerRemoved()
DTimerNotificationBuilder.java57 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/
DFakeUid.java21 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/
DExpiredTimersActivity.java37 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 …]
DTimerPagerAdapter.java30 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()
DTimerFragment.java46 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 …]
DTimerItemFragment.java29 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()
DTimerCircleView.java31 import com.android.deskclock.data.Timer;
57 private Timer mTimer;
85 void update(Timer timer) { in update()
DTimerItem.java33 import com.android.deskclock.data.Timer;
59 private Timer.State mLastState;
89 void update(Timer timer) { in update()
DTimerService.java27 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/
DThrottle.java22 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()
DHtmlSanitizer.java21 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/
DItemDragListener.java29 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/
DMainActivity.java31 import java.util.Timer;
40 private final Timer mTimer = new Timer("com.google.android.car.obd2app.collection");
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java34 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()
DLabelDialogFragment.java42 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/
DWakeLockAnomalyDetector.java113 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/
DTimer.java58 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/
DMmsNetworkManager.java30 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/
DMessageHeaderView.java53 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/
DWpsDialog.java37 import java.util.Timer;
55 private Timer mTimer;
196 mTimer = new Timer(false); in onStart()

12