Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerPagerAdapter.java58 return getTimers().size(); in getCount()
71 final int position = getTimers().indexOf(timer); in getItemPosition()
82 final Timer timer = getTimers().get(position); in instantiateItem()
177 return getTimers().get(index); in getTimer()
180 private List<Timer> getTimers() { in getTimers() method in TimerPagerAdapter
181 return DataModel.getDataModel().getTimers(); in getTimers()
DTimerFragment.java184 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onStart()
204 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onResume()
764 final int index = DataModel.getDataModel().getTimers().indexOf(after); in timerUpdated()
/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.java254 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertIsReset()
284 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/
DTimerModel.java168 List<Timer> getTimers() { in getTimers() method in TimerModel
317 final List<Timer> timers = new ArrayList<>(getTimers()); in updateTimersAfterReboot()
332 final List<Timer> timers = new ArrayList<>(getTimers()); in updateTimersAfterTimeSet()
350 final List<Timer> timers = new ArrayList<>(getTimers()); in resetOrDeleteExpiredTimers()
367 final List<Timer> timers = new ArrayList<>(getTimers()); in resetMissedTimers()
384 final List<Timer> timers = new ArrayList<>(getTimers()); in resetUnexpiredTimers()
476 mTimers = TimerDAO.getTimers(mPrefs); in getMutableTimers()
DDataModel.java432 public List<Timer> getTimers() { in getTimers() method in DataModel
434 return mTimerModel.getTimers(); in getTimers()
DTimerDAO.kt60 fun getTimers(prefs: SharedPreferences): MutableList<Timer> { in getTimers() method
DTimerDAO.java72 static List<Timer> getTimers(SharedPreferences prefs) { in getTimers() method in TimerDAO
DTimerModel.kt431 mTimers = TimerDAO.getTimers(mPrefs)
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java444 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleShowTimers()
481 for (Timer t : DataModel.getDataModel().getTimers()) { in handleSetTimer()