/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
D | AlarmUtil.java | 47 public void scheduleAlarm(Alarm alarm) { in scheduleAlarm() argument 49 Bundle extras = writeAlarm(alarm); in scheduleAlarm() 53 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in scheduleAlarm() 55 alarmTime.set(Calendar.MONTH, alarm.month); in scheduleAlarm() 56 alarmTime.set(Calendar.DATE, alarm.date); in scheduleAlarm() 57 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in scheduleAlarm() 58 alarmTime.set(Calendar.MINUTE, alarm.minute); in scheduleAlarm() 66 alarm.hour, alarm.minute, in scheduleAlarm() 67 alarm.month, alarm.date)); in scheduleAlarm() 75 public void cancelAlarm(Alarm alarm) { in cancelAlarm() argument [all …]
|
D | AlarmStorage.java | 69 Alarm alarm = new Alarm(); in saveAlarm() local 71 alarm.id = SECURE_RANDOM.nextInt(); in saveAlarm() 72 alarm.month = month; in saveAlarm() 73 alarm.date = date; in saveAlarm() 74 alarm.hour = hour; in saveAlarm() 75 alarm.minute = minute; in saveAlarm() 77 editor.putString(String.valueOf(alarm.id), alarm.toJson()); in saveAlarm() 79 return alarm; in saveAlarm() 105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); in deleteAlarm() local 106 if (alarm.id == toBeDeleted.id) { in deleteAlarm() [all …]
|
D | Alarm.java | 81 Alarm alarm = new Alarm(); in fromJson() local 84 alarm.id = jsonObject.getInt("id"); in fromJson() 85 alarm.month = jsonObject.getInt("month"); in fromJson() 86 alarm.date = jsonObject.getInt("date"); in fromJson() 87 alarm.hour = jsonObject.getInt("hour"); in fromJson() 88 alarm.minute = jsonObject.getInt("minute"); in fromJson() 93 return alarm; in fromJson() 115 Alarm alarm = (Alarm) o; in equals() local 116 return id == alarm.id && in equals() 117 month == alarm.month && in equals() [all …]
|
D | AlarmIntentService.java | 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); in onHandleIntent() local 65 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, in onHandleIntent() 66 alarm.minute)); in onHandleIntent() 67 notificationManager.notify(alarm.id, builder.build()); in onHandleIntent() 70 alarmStorage.deleteAlarm(alarm); in onHandleIntent() 72 wentOffIntent.putExtras(AlarmUtil.writeAlarm(alarm)); in onHandleIntent()
|
D | AlarmAdapter.java | 71 Alarm alarm = mAlarmList.get(position); in onBindViewHolder() local 73 alarmTime.set(Calendar.MONTH, alarm.month); in onBindViewHolder() 74 alarmTime.set(Calendar.DATE, alarm.date); in onBindViewHolder() 75 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in onBindViewHolder() 76 alarmTime.set(Calendar.MINUTE, alarm.minute); in onBindViewHolder() 100 public void addAlarm(Alarm alarm) { in addAlarm() argument 101 mAlarmList.add(alarm); in addAlarm() 105 public void deleteAlarm(Alarm alarm) { in deleteAlarm() argument 106 mAlarmList.remove(alarm); in deleteAlarm()
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
D | TimePickerFragment.java | 80 Alarm alarm = mAlarmStorage in onCreateView() 84 .getString(R.string.alarm_saved, alarm.hour, alarm.minute); in onCreateView() 87 mAlarmAddListener.onAlarmAdded(alarm); in onCreateView() 103 void onAlarmAdded(Alarm alarm); in onAlarmAdded() argument
|
D | SchedulerFragment.java | 117 public void onAlarmAdded(Alarm alarm) { in onAlarmAdded() argument 118 mAlarmAdapter.addAlarm(alarm); in onAlarmAdded() 119 mAlarmUtil.scheduleAlarm(alarm); in onAlarmAdded() 132 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); in onReceive() local 133 mAlarmAdapter.deleteAlarm(alarm); in onReceive()
|
D | BootBroadcastReceiver.java | 60 for (Alarm alarm : alarmStorage.getAlarms()) { in onReceive() 61 util.scheduleAlarm(alarm); in onReceive()
|
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
D | TimerNotificationService.java | 75 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in deleteTimer() local 80 alarm.cancel(pendingIntent); in deleteTimer()
|
D | SetTimerActivity.java | 110 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in registerWithAlarmManager() local 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent); in registerWithAlarmManager()
|
/development/samples/browseable/FindMyPhone/ |
D | _index.jd | 11 alarm on your phone.
|
/development/samples/browseable/DirectBoot/ |
D | _index.jd | 10 This sample works as a simple alarm clock. On > Android N devices, the scheduled alarms
|
/development/samples/UiAutomator/ |
D | README | 26 Test demonstrates using the UiAutomator APIs to set an alarm to
|
/development/samples/SearchableDictionary/res/raw/ |
D | definitions.txt | 273 dismay - v. fill with apprehension or alarm; cause to be unpleasantly surprised
|