Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt344 fun createIntent(context: Context?, cls: Class<*>?, alarmId: Long): Intent { in createIntent()
345 return Intent(context, cls).setData(getContentUri(alarmId)) in createIntent()
348 fun getContentUri(alarmId: Long): Uri { in getContentUri()
349 return ContentUris.withAppendedId(AlarmsColumns.CONTENT_URI, alarmId) in getContentUri()
398 fun getAlarm(cr: ContentResolver, alarmId: Long): Alarm? { in getAlarm()
399 val cursor: Cursor? = cr.query(getContentUri(alarmId), QUERY_COLUMNS, null, null, null) in getAlarm()
471 fun deleteAlarm(contentResolver: ContentResolver, alarmId: Long): Boolean { in deleteAlarm()
472 if (alarmId == INVALID_ID) return false in deleteAlarm()
473 val deletedRows: Int = contentResolver.delete(getContentUri(alarmId), "", null) in deleteAlarm()
DAlarm.java136 public static Intent createIntent(Context context, Class<?> cls, long alarmId) { in createIntent() argument
137 return new Intent(context, cls).setData(getContentUri(alarmId)); in createIntent()
140 public static Uri getContentUri(long alarmId) { in getContentUri() argument
141 return ContentUris.withAppendedId(CONTENT_URI, alarmId); in getContentUri()
190 public static Alarm getAlarm(ContentResolver cr, long alarmId) {
191 try (Cursor cursor = cr.query(getContentUri(alarmId), QUERY_COLUMNS, null, null, null)) {
260 public static boolean deleteAlarm(ContentResolver contentResolver, long alarmId) {
261 if (alarmId == INVALID_ID) return false;
262 int deletedRows = contentResolver.delete(getContentUri(alarmId), "", null);
DAlarmInstance.java171 long alarmId) { in getInstancesByAlarmId() argument
172 return getInstances(contentResolver, ALARM_ID + "=" + alarmId); in getInstancesByAlarmId()
182 long alarmId) { in getNextUpcomingInstanceByAlarmId() argument
183 final List<AlarmInstance> alarmInstances = getInstancesByAlarmId(contentResolver, alarmId); in getNextUpcomingInstanceByAlarmId()
276 long alarmId, long instanceId) { in deleteOtherInstances() argument
277 final List<AlarmInstance> instances = getInstancesByAlarmId(contentResolver, alarmId); in deleteOtherInstances()
299 public AlarmInstance(Calendar calendar, Long alarmId) { in AlarmInstance() argument
301 mAlarmId = alarmId; in AlarmInstance()
DAlarmInstance.kt65 constructor(calendar: Calendar, alarmId: Long?) : this(calendar) {
66 mAlarmId = alarmId
382 alarmId: Long in getInstancesByAlarmId()
384 return getInstances(contentResolver, InstancesColumns.ALARM_ID + "=" + alarmId) in getInstancesByAlarmId()
396 alarmId: Long in getNextUpcomingInstanceByAlarmId()
398 val alarmInstances = getInstancesByAlarmId(contentResolver, alarmId) in getNextUpcomingInstanceByAlarmId()
515 alarmId: Long, in deleteOtherInstances()
518 val instances = getInstancesByAlarmId(contentResolver, alarmId) in deleteOtherInstances()
DClockProvider.java212 String alarmId; in update() local
216 alarmId = uri.getLastPathSegment(); in update()
218 AlarmsColumns._ID + "=" + alarmId, in update()
222 alarmId = uri.getLastPathSegment(); in update()
224 InstancesColumns._ID + "=" + alarmId, in update()
231 LogUtils.v("*** notifyChange() id: " + alarmId + " url " + uri); in update()
DClockProvider.kt208 val alarmId: String? in update() constant
212 alarmId = uri.getLastPathSegment() in update()
214 BaseColumns._ID.toString() + "=" + alarmId, in update()
218 alarmId = uri.getLastPathSegment() in update()
220 BaseColumns._ID.toString() + "=" + alarmId, in update()
227 LogUtils.v("*** notifyChange() id: $alarmId url $uri") in update()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java219 long alarmId = intent.getLongExtra(SCROLL_TO_ALARM_INTENT_EXTRA, Alarm.INVALID_ID); in onResume() local
220 if (alarmId != Alarm.INVALID_ID) { in onResume()
221 setSmoothScrollStableId(alarmId); in onResume()
354 private void scrollToAlarm(long alarmId) { in scrollToAlarm() argument
359 if (id == alarmId) { in scrollToAlarm()
366 mItemAdapter.findItemById(alarmId).expand(); in scrollToAlarm()
DAlarmClockFragment.kt188 val alarmId = intent.getLongExtra(SCROLL_TO_ALARM_INTENT_EXTRA, Alarm.INVALID_ID) in onResume() constant
189 if (alarmId != Alarm.INVALID_ID) { in onResume()
190 setSmoothScrollStableId(alarmId) in onResume()
315 private fun scrollToAlarm(alarmId: Long) { in scrollToAlarm()
320 if (id == alarmId) { in scrollToAlarm()
327 mItemAdapter.findItemById(alarmId).expand() in scrollToAlarm()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt820 fun deleteAllInstances(context: Context, alarmId: Long) { in <lambda>()
821 LogUtils.i("Deleting all instances of alarm: $alarmId") in <lambda>()
823 val instances = AlarmInstance.getInstancesByAlarmId(cr, alarmId) in <lambda>()
835 fun deleteNonSnoozeInstances(context: Context, alarmId: Long) { in <lambda>()
836 LogUtils.i("Deleting all non-snooze instances of alarm: $alarmId") in <lambda>()
838 val instances = AlarmInstance.getInstancesByAlarmId(cr, alarmId) in <lambda>()
991 val alarmId = instance.mAlarmId ?: Alarm.INVALID_ID in <lambda>() constant
993 Alarm.createIntent(context, DeskClock::class.java, alarmId) in <lambda>()
994 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, alarmId) in <lambda>()
DAlarmStateManager.java755 public static void deleteAllInstances(Context context, long alarmId) { in deleteAllInstances() argument
756 LogUtils.i("Deleting all instances of alarm: " + alarmId); in deleteAllInstances()
758 List<AlarmInstance> instances = AlarmInstance.getInstancesByAlarmId(cr, alarmId); in deleteAllInstances()
770 public static void deleteNonSnoozeInstances(Context context, long alarmId) { in deleteNonSnoozeInstances() argument
771 LogUtils.i("Deleting all non-snooze instances of alarm: " + alarmId); in deleteNonSnoozeInstances()
773 List<AlarmInstance> instances = AlarmInstance.getInstancesByAlarmId(cr, alarmId); in deleteNonSnoozeInstances()
954 long alarmId = instance.mAlarmId == null ? Alarm.INVALID_ID : instance.mAlarmId; in handleIntent() local
955 final Intent viewAlarmIntent = Alarm.createIntent(context, DeskClock.class, alarmId) in handleIntent()
956 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, alarmId) in handleIntent()
DAlarmTimeClickHandler.kt102 val alarmId = alarm.id.toString() in setAlarmRepeatEnabled() constant
107 val bitSet: Int = mPreviousDaysOfWeekMap!!.getInt(alarmId) in setAlarmRepeatEnabled()
115 mPreviousDaysOfWeekMap!!.putInt(alarmId, bitSet) in setAlarmRepeatEnabled()
DAlarmTimeClickHandler.java108 final String alarmId = String.valueOf(alarm.id); in setAlarmRepeatEnabled() local
113 final int bitSet = mPreviousDaysOfWeekMap.getInt(alarmId); in setAlarmRepeatEnabled()
121 mPreviousDaysOfWeekMap.putInt(alarmId, bitSet); in setAlarmRepeatEnabled()
DAlarmNotifications.java454 final long alarmId = instance.mAlarmId == null ? Alarm.INVALID_ID : instance.mAlarmId; in createViewAlarmIntent() local
455 return Alarm.createIntent(context, DeskClock.class, alarmId) in createViewAlarmIntent()
456 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, alarmId) in createViewAlarmIntent()
DAlarmNotifications.kt585 val alarmId = instance.mAlarmId ?: Alarm.INVALID_ID in createViewAlarmIntent() constant
586 return Alarm.createIntent(context, DeskClock::class.java, alarmId) in createViewAlarmIntent()
587 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, alarmId) in createViewAlarmIntent()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java69 for (AlarmId alarmId: alarmIds) { in dismissGlobally()
70 eventIds.add(alarmId.mEventId); in dismissGlobally()