Lines Matching refs:Alarm
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()
158 public boolean areItemsTheSame(Alarm item1, Alarm item2) { in areItemsTheSame()