Home
last modified time | relevance | path

Searched refs:getTimers (Results 1 – 5 of 5) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerFragmentTest.java146 final List<Timer> timers = new ArrayList<>(DataModel.getDataModel().getTimers()); in clearTimers()
359 DataModel.getDataModel().expireTimer(null, DataModel.getDataModel().getTimers().get(0)); in fabClick_resetsTimer()
378 DataModel.getDataModel().expireTimer(null, DataModel.getDataModel().getTimers().get(1)); in fabClick_resetsSecondTimer()
397 long remainingTime1 = DataModel.getDataModel().getTimers().get(0).getRemainingTime(); in clickAdd_addsOneMinuteToTimer()
399 long remainingTime2 = DataModel.getDataModel().getTimers().get(0).getRemainingTime(); in clickAdd_addsOneMinuteToTimer()
400 assertSame(Timer.State.RUNNING, DataModel.getDataModel().getTimers().get(0).getState()); in clickAdd_addsOneMinuteToTimer()
422 long remainingTime1 = DataModel.getDataModel().getTimers().get(1).getRemainingTime(); in clickAdd_addsOneMinuteToSecondTimer()
424 long remainingTime2 = DataModel.getDataModel().getTimers().get(1).getRemainingTime(); in clickAdd_addsOneMinuteToSecondTimer()
425 assertSame(Timer.State.RUNNING, DataModel.getDataModel().getTimers().get(1).getState()); in clickAdd_addsOneMinuteToSecondTimer()
426 assertSame(Timer.State.RESET, DataModel.getDataModel().getTimers().get(0).getState()); in clickAdd_addsOneMinuteToSecondTimer()
[all …]
DTimerSetupViewTest.java255 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertIsReset()
285 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertHasValue()
DTimerServiceTest.java63 final List<Timer> timers = new ArrayList<>(DataModel.getDataModel().getTimers()); in clearTimers()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerDAO.kt60 fun getTimers(prefs: SharedPreferences): MutableList<Timer> { in getTimers() method
DTimerModel.kt431 mTimers = TimerDAO.getTimers(mPrefs)