Searched refs:alarmId (Results 1 – 8 of 8) sorted by relevance
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.java | 136 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);
|
D | AlarmInstance.java | 171 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()
|
D | ClockProvider.java | 212 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()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmClockFragment.java | 219 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()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 755 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()
|
D | AlarmTimeClickHandler.java | 108 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()
|
D | AlarmNotifications.java | 473 final long alarmId = instance.mAlarmId == null ? Alarm.INVALID_ID : instance.mAlarmId; in createViewAlarmIntent() local 474 return Alarm.createIntent(context, DeskClock.class, alarmId) in createViewAlarmIntent() 475 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, alarmId) in createViewAlarmIntent()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | GlobalDismissManager.java | 69 for (AlarmId alarmId: alarmIds) { in dismissGlobally() 70 eventIds.add(alarmId.mEventId); in dismissGlobally()
|