/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
D | AlarmUtil.java | 46 public void scheduleAlarm(Alarm alarm) { in scheduleAlarm() argument 48 intent.putExtra(AlarmIntentService.ALARM_KEY, alarm); in scheduleAlarm() 50 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in scheduleAlarm() 52 alarmTime.set(Calendar.MONTH, alarm.month); in scheduleAlarm() 53 alarmTime.set(Calendar.DATE, alarm.date); in scheduleAlarm() 54 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in scheduleAlarm() 55 alarmTime.set(Calendar.MINUTE, alarm.minute); in scheduleAlarm() 63 alarm.hour, alarm.minute, in scheduleAlarm() 64 alarm.month, alarm.date)); in scheduleAlarm() 72 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 | 103 Alarm alarm = new Alarm(); in fromJson() local 106 alarm.id = jsonObject.getInt("id"); in fromJson() 107 alarm.month = jsonObject.getInt("month"); in fromJson() 108 alarm.date = jsonObject.getInt("date"); in fromJson() 109 alarm.hour = jsonObject.getInt("hour"); in fromJson() 110 alarm.minute = jsonObject.getInt("minute"); in fromJson() 115 return alarm; in fromJson() 137 Alarm alarm = (Alarm) o; in equals() local 138 return id == alarm.id && in equals() 139 month == alarm.month && in equals() [all …]
|
D | AlarmIntentService.java | 46 Alarm alarm = intent.getParcelableExtra(ALARM_KEY); in onHandleIntent() local 55 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, in onHandleIntent() 56 alarm.minute)); in onHandleIntent() 57 notificationManager.notify(alarm.id, builder.build()); in onHandleIntent() 60 alarmStorage.deleteAlarm(alarm); in onHandleIntent() 62 wentOffIntent.putExtra(ALARM_KEY, 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 = intent.getParcelableExtra(AlarmIntentService.ALARM_KEY); 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/ndk/platforms/android-12/include/ |
D | unistd.h | 152 extern unsigned int alarm(unsigned int);
|
/development/ndk/platforms/android-8/include/ |
D | unistd.h | 145 extern unsigned int alarm(unsigned int);
|
/development/ndk/platforms/android-9/include/ |
D | unistd.h | 149 extern unsigned int alarm(unsigned int);
|
/development/ndk/platforms/android-3/include/ |
D | unistd.h | 141 extern unsigned int alarm(unsigned int);
|
/development/ndk/platforms/android-21/include/ |
D | unistd.h | 153 extern unsigned int alarm(unsigned int);
|
/development/ndk/platforms/android-5/arch-arm/symbols/ |
D | libc.so.functions.txt | 127 alarm
|
/development/ndk/platforms/android-17/arch-x86/symbols/ |
D | libc.so.functions.txt | 128 alarm
|
/development/ndk/platforms/android-12/arch-x86/symbols/ |
D | libc.so.functions.txt | 128 alarm
|
/development/ndk/platforms/android-3/arch-arm/symbols/ |
D | libc.so.functions.txt | 140 alarm
|
/development/ndk/platforms/android-19/arch-x86/symbols/ |
D | libc.so.functions.txt | 128 alarm
|
/development/ndk/platforms/android-8/arch-arm/symbols/ |
D | libc.so.functions.txt | 131 alarm
|
/development/ndk/platforms/android-16/arch-mips/symbols/ |
D | libc.so.functions.txt | 129 alarm
|