Home
last modified time | relevance | path

Searched refs:timer1 (Results 1 – 3 of 3) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerServiceTest.java74 Timer timer1 = dataModel.addTimer(60000L, null, false); in verifyIntentsHonored_whileTimersFire()
76 dataModel.startTimer(timer1); in verifyIntentsHonored_whileTimersFire()
78 timer1 = dataModel.getTimer(timer1.getId()); in verifyIntentsHonored_whileTimersFire()
82 dataModel.expireTimer(null, timer1); in verifyIntentsHonored_whileTimersFire()
96 dataModel.resetTimer(dataModel.getTimer(timer1.getId())); in verifyIntentsHonored_whileTimersFire()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java394 public int compare(Timer timer1, Timer timer2) {
395 return Integer.compare(timer2.getId(), timer1.getId());
416 public int compare(Timer timer1, Timer timer2) {
417 final int stateIndex1 = stateExpiryOrder.indexOf(timer1.getState());
422 final State state = timer1.getState();
424 order = Long.compare(timer1.getLength(), timer2.getLength());
426 order = Long.compare(timer1.getRemainingTime(), timer2.getRemainingTime());
DTimer.kt346 var ID_COMPARATOR = Comparator<Timer> { timer1, timer2 -> timer2.id.compareTo(timer1.id) } in <lambda>() method
363 override fun compare(timer1: Timer, timer2: Timer): Int { in <lambda>()
364 val stateIndex1 = stateExpiryOrder.indexOf(timer1.state) in <lambda>()
369 val state = timer1.state in <lambda>()
371 timer1.length.compareTo(timer2.length) in <lambda>()
373 timer1.lastRemainingTime.compareTo(timer2.lastRemainingTime) in <lambda>()