Searched refs:Alarm (Results 1 – 8 of 8) sorted by relevance
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
D | Alarm.java | 30 public class Alarm implements Comparable<Alarm> { class 43 public Alarm(int id, int month, int date, int hour, int minute) { in Alarm() method in Alarm 51 public Alarm() { in Alarm() method in Alarm 79 public static Alarm fromJson(String string) { in fromJson() 81 Alarm alarm = new Alarm(); in fromJson() 112 if (!(o instanceof Alarm)) { in equals() 115 Alarm alarm = (Alarm) o; in equals() 129 public int compareTo(@NonNull Alarm other) { in compareTo()
|
D | AlarmStorage.java | 68 public Alarm saveAlarm(int month, int date, int hour, int minute) { in saveAlarm() 69 Alarm alarm = new Alarm(); in saveAlarm() 88 public Set<Alarm> getAlarms() { in getAlarms() 89 Set<Alarm> alarms = new HashSet<>(); in getAlarms() 91 alarms.add(Alarm.fromJson(entry.getValue().toString())); in getAlarms() 103 public void deleteAlarm(Alarm toBeDeleted) { in deleteAlarm() 105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); in deleteAlarm()
|
D | AlarmAdapter.java | 45 private SortedList<Alarm> mAlarmList; 52 public AlarmAdapter(Context context, Set<Alarm> alarms) { in AlarmAdapter() 53 mAlarmList = new SortedList<>(Alarm.class, new SortedListCallback()); in AlarmAdapter() 71 Alarm alarm = mAlarmList.get(position); in onBindViewHolder() 84 Alarm toBeDeleted = mAlarmList.get(position); in onBindViewHolder() 100 public void addAlarm(Alarm alarm) { in addAlarm() 105 public void deleteAlarm(Alarm alarm) { in deleteAlarm() 125 private static class SortedListCallback extends SortedList.Callback<Alarm> { 128 public int compare(Alarm o1, Alarm o2) { in compare() 153 public boolean areContentsTheSame(Alarm oldItem, Alarm newItem) { in areContentsTheSame() [all …]
|
D | AlarmUtil.java | 47 public void scheduleAlarm(Alarm alarm) { in scheduleAlarm() 75 public void cancelAlarm(Alarm alarm) { in cancelAlarm() 100 public static Alarm readAlarm(Bundle extras) { in readAlarm() 107 return new Alarm(id, month, date, hour, minute); in readAlarm() 110 public static Bundle writeAlarm(Alarm alarm){ in writeAlarm()
|
D | AlarmIntentService.java | 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); in onHandleIntent()
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
D | BootBroadcastReceiver.java | 19 import com.example.android.directboot.alarms.Alarm; 60 for (Alarm alarm : alarmStorage.getAlarms()) { in onReceive()
|
D | TimePickerFragment.java | 19 import com.example.android.directboot.alarms.Alarm; 80 Alarm alarm = mAlarmStorage in onCreateView() 103 void onAlarmAdded(Alarm alarm); in onAlarmAdded()
|
D | SchedulerFragment.java | 19 import com.example.android.directboot.alarms.Alarm; 117 public void onAlarmAdded(Alarm alarm) { in onAlarmAdded() 132 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); in onReceive()
|