Searched refs:timers (Results 1 - 5 of 5) sorted by relevance
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | Timers.java | 57 public static TimerObj findTimer(ArrayList<TimerObj> timers, int timerId) { argument 58 for (TimerObj t : timers) { 66 public static TimerObj findExpiredTimer(ArrayList<TimerObj> timers) { argument 67 for (TimerObj t : timers) { 75 public static ArrayList<TimerObj> timersInUse(ArrayList<TimerObj> timers) { argument 76 final ArrayList<TimerObj> result = new ArrayList<>(timers); 85 public static ArrayList<TimerObj> timersInTimesUp(ArrayList<TimerObj> timers) { argument 86 final ArrayList<TimerObj> result = new ArrayList<>(timers);
|
H A D | TimerObj.java | 267 public static void getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers) { argument 270 timers.add(getTimerFromSharedPrefs(prefs, timerId)); 273 Collections.sort(timers, new Comparator<TimerObj>() { 281 public static void getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers, argument 287 timers.add(timer); 292 public static void putTimersInSharedPrefs(SharedPreferences prefs, List<TimerObj> timers) { argument 293 for (TimerObj timer : timers) { 299 final List<TimerObj> timers = new ArrayList<>(); 300 getTimersFromSharedPrefs(prefs, timers); 301 for (TimerObj timer : timers) { [all...] |
H A D | TimerReceiver.java | 55 // This action does not need the timers data 61 // Get the updated timers data. 68 // These actions do not provide a timer ID, but do use the timers data 114 // Found no running timers. 128 // Stop Ringtone if all timers are not in times-up status 159 // Stop Ringtone if no timers are in times-up status 187 // Stop Ringtone if no timers are in times-up status 219 // Scan all timers and find the one that will expire next. 284 // No running timers. 289 // We have at least one timer running and other timers stoppe 395 getNextRunningTimer( ArrayList<TimerObj> timers, boolean requireNextUpdate, long now) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | HandleDeskClockApiCalls.java | 70 // shows the tab with timers 190 // Opens the UI for timers 226 // not stopped or not started respectively. This method checks all timers to find only 232 final List<TimerObj> timers = new ArrayList<>(); 234 TimerObj.getTimersFromSharedPrefs(prefs, timers); 235 if (timers.isEmpty()) { 247 if (timers.size() > 1) { 254 timer = timers.get(0); 264 timer = getTimerWithStateToIgnore(timers, TimerObj.STATE_RUNNING); 285 timer = getTimerWithStatesToInclude(timers, statesToInclud 344 getTimerWithStateToIgnore(List<TimerObj> timers, int stateToIgnore) argument 369 getTimerWithStatesToInclude( List<TimerObj> timers, Set<Integer> statesToInclude, String action) argument [all...] |
H A D | HandleApiCalls.java | 350 final List<TimerObj> timers = new ArrayList<>(); 351 TimerObj.getTimersFromSharedPrefs(prefs, timers); 352 for (TimerObj t : timers) {
|
Completed in 488 milliseconds