Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 15 of 15) sorted by relevance

/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmUtil.java47 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 …]
DAlarm.java81 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 …]
DAlarmStorage.java69 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 …]
DAlarmIntentService.java56 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()
DAlarmAdapter.java71 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/
DTimePickerFragment.java80 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
DSchedulerFragment.java117 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()
DBootBroadcastReceiver.java60 for (Alarm alarm : alarmStorage.getAlarms()) { in onReceive()
61 util.scheduleAlarm(alarm); in onReceive()
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DTimerNotificationService.java75 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in deleteTimer() local
80 alarm.cancel(pendingIntent); in deleteTimer()
DSetTimerActivity.java110 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.jd11 alarm on your phone.
/development/samples/browseable/DirectBoot/
D_index.jd10 This sample works as a simple alarm clock. On > Android N devices, the scheduled alarms
/development/samples/UiAutomator/
DREADME26 Test demonstrates using the UiAutomator APIs to set an alarm to
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt273 dismay - v. fill with apprehension or alarm; cause to be unpleasantly surprised
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv735 …b14618c7,platform/cts,fake_hRNw8vEWS8SKIkjC1f3jqQ@fakeemail.com,Fix false alarm zero GPS measureme…
3629 …6f9326b1d21b5,platform/cts,fake_WYa7hmHCQ42NYhfobk58Bw@fakeemail.com,CTS for wakeup alarm known-bad
4269 …3f063dd196,platform/cts,fake_NZc10x0hSy-birNpyN8Sww@fakeemail.com,Disable alarm clock tests on TVs.
4465 …643ed44c,platform/cts,fake_hRNw8vEWS8SKIkjC1f3jqQ@fakeemail.com,Fix false alarm zero GPS measureme…
7828 …connectivity,fake_09LqCaHVQiycTqbFhWzg5A@fakeemail.com,Fix timeout when waiting for PMC alarm file.
8402 …aRNTluaSTu9at5rSHu1XA@fakeemail.com,Add skip setupwizard and disable emergency alarm in test setup.
11126 …pt/telephony,fake_h6UE0ogZT4av1-CpBna6Tw@fakeemail.com,Use non-wakeable alarm for data-stall alarm.
26986 …m/bt,fake_Xh0ViHRERGyTJsvnoblSsw@fakeemail.com,Free the A2DP Source media alarm on the A2DP Source…
27410 …form/system/bt,fake_sqFNw1RVSfaYAFEo60Nchw@fakeemail.com,Set alarm's queue to NULL on alarm expired
27780 …t,fake_Xh0ViHRERGyTJsvnoblSsw@fakeemail.com,Moved the typedef of period_ms_t from alarm.h to time.h
[all …]