Home
last modified time | relevance | path

Searched refs:alarmInstance (Results 1 – 16 of 16) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DAlarmItemViewHolder.kt47 val alarmInstance = itemHolder.alarmInstance in <lambda>() constant
48 if (alarmInstance != null) { in <lambda>()
49 itemHolder.alarmTimeClickHandler.dismissAlarmInstance(alarmInstance) in <lambda>()
80 alarmInstance: AlarmInstance? in <lambda>()
82 val canBind = alarm.canPreemptivelyDismiss() && alarmInstance != null in <lambda>()
87 AlarmUtils.getAlarmText(context, alarmInstance!!, false)) in <lambda>()
DAlarmItemViewHolder.java68 final AlarmInstance alarmInstance = getItemHolder().getAlarmInstance(); in AlarmItemViewHolder()
69 if (alarmInstance != null) { in AlarmItemViewHolder()
70 getItemHolder().getAlarmTimeClickHandler().dismissAlarmInstance(alarmInstance); in AlarmItemViewHolder()
104 AlarmInstance alarmInstance) { in bindPreemptiveDismissButton() argument
105 final boolean canBind = alarm.canPreemptivelyDismiss() && alarmInstance != null; in bindPreemptiveDismissButton()
110 AlarmUtils.getAlarmText(context, alarmInstance, false)) in bindPreemptiveDismissButton()
DAlarmItemHolder.java33 public AlarmItemHolder(Alarm alarm, AlarmInstance alarmInstance, in AlarmItemHolder() argument
36 mAlarmInstance = alarmInstance; in AlarmItemHolder()
DCollapsedAlarmViewHolder.kt77 val alarmInstance = itemHolder.alarmInstance in <lambda>() constant
82 bindPreemptiveDismissButton(context, alarm, alarmInstance) in <lambda>()
DExpandedAlarmViewHolder.kt146 val alarmInstance = itemHolder.alarmInstance in <lambda>() constant
152 bindPreemptiveDismissButton(context, alarm, alarmInstance) in <lambda>()
DCollapsedAlarmViewHolder.java102 final AlarmInstance alarmInstance = itemHolder.getAlarmInstance(); in onBindItemView() local
107 bindPreemptiveDismissButton(context, alarm, alarmInstance); in onBindItemView()
DAlarmItemHolder.kt28 val alarmInstance: AlarmInstance?, constant
DExpandedAlarmViewHolder.java196 final AlarmInstance alarmInstance = itemHolder.getAlarmInstance(); in onBindItemView() local
202 bindPreemptiveDismissButton(context, alarm, alarmInstance); in onBindItemView()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClockBackupAgent.java129 AlarmInstance alarmInstance = alarm.createInstanceAfter(now); in processRestoredData() local
132 alarmInstance = AlarmInstance.addInstance(contentResolver, alarmInstance); in processRestoredData()
135 AlarmStateManager.registerInstance(context, alarmInstance, true); in processRestoredData()
136 LOGGER.i("DeskClockBackupAgent scheduled alarm instance: %s", alarmInstance); in processRestoredData()
DHandleApiCalls.java284 static void snoozeAlarm(AlarmInstance alarmInstance, Context context, Activity activity) { in snoozeAlarm() argument
288 alarmInstance.getAlarmTime().getTime()); in snoozeAlarm()
290 AlarmStateManager.setSnoozeState(context, alarmInstance, true); in snoozeAlarm()
293 LOGGER.i("Alarm snoozed: " + alarmInstance); in snoozeAlarm()
381 final AlarmInstance alarmInstance = alarm.createInstanceAfter(now); in handleSetAlarm() local
382 setupInstance(alarmInstance, skipUi); in handleSetAlarm()
385 .format(alarmInstance.getAlarmTime().getTime()); in handleSetAlarm()
DFetchMatchingAlarmsAction.java108 final AlarmInstance alarmInstance = in run()
110 if (alarmInstance != null in run()
111 && alarmInstance.mAlarmState == AlarmInstance.FIRED_STATE) { in run()
DAlarmClockFragment.java279 final AlarmInstance alarmInstance = alarm.canPreemptivelyDismiss() in onLoadFinished() local
282 new AlarmItemHolder(alarm, alarmInstance, mAlarmTimeClickHandler); in onLoadFinished()
DAlarmClockFragment.kt243 val alarmInstance = if (alarm.canPreemptivelyDismiss()) { in onLoadFinished() constant
248 val itemHolder = AlarmItemHolder(alarm, alarmInstance, mAlarmTimeClickHandler) in onLoadFinished()
DUtils.java328 public static boolean isAlarmWithin24Hours(AlarmInstance alarmInstance) { in isAlarmWithin24Hours() argument
329 final Calendar nextAlarmTime = alarmInstance.getAlarmTime(); in isAlarmWithin24Hours()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt157 fun dismissAlarmInstance(alarmInstance: AlarmInstance) { in dismissAlarmInstance()
159 mContext, AlarmStateManager.ALARM_DISMISS_TAG, alarmInstance, in dismissAlarmInstance()
162 mAlarmUpdateHandler.showPredismissToast(alarmInstance) in dismissAlarmInstance()
DAlarmTimeClickHandler.java164 public void dismissAlarmInstance(AlarmInstance alarmInstance) { in dismissAlarmInstance() argument
166 mContext, AlarmStateManager.ALARM_DISMISS_TAG, alarmInstance, in dismissAlarmInstance()
169 mAlarmUpdateHandler.showPredismissToast(alarmInstance); in dismissAlarmInstance()