Searched refs:timer2 (Results 1 – 3 of 3) sorted by relevance
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerServiceTest.java | 75 Timer timer2 = dataModel.addTimer(60000L, null, false); in verifyIntentsHonored_whileTimersFire() 77 dataModel.startTimer(timer2); in verifyIntentsHonored_whileTimersFire() 79 timer2 = dataModel.getTimer(timer2.getId()); in verifyIntentsHonored_whileTimersFire() 89 dataModel.expireTimer(null, timer2); in verifyIntentsHonored_whileTimersFire() 103 dataModel.removeTimer(dataModel.getTimer(timer2.getId())); in verifyIntentsHonored_whileTimersFire()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.java | 394 public int compare(Timer timer1, Timer timer2) { 395 return Integer.compare(timer2.getId(), timer1.getId()); 416 public int compare(Timer timer1, Timer timer2) { 418 final int stateIndex2 = stateExpiryOrder.indexOf(timer2.getState()); 424 order = Long.compare(timer1.getLength(), timer2.getLength()); 426 order = Long.compare(timer1.getRemainingTime(), timer2.getRemainingTime());
|
D | Timer.kt | 346 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>() 365 val stateIndex2 = stateExpiryOrder.indexOf(timer2.state) in <lambda>() 371 timer1.length.compareTo(timer2.length) in <lambda>() 373 timer1.lastRemainingTime.compareTo(timer2.lastRemainingTime) in <lambda>()
|