Lines Matching refs:instance
128 final AlarmInstance instance = AlarmInstance.getNextUpcomingInstanceByAlarmId( in dismissAlarm() local
130 if (instance == null) { in dismissAlarm()
137 dismissAlarmInstance(instance, activity); in dismissAlarm()
140 public static void dismissAlarmInstance(AlarmInstance instance, Activity activity) { in dismissAlarmInstance() argument
144 final Date alarmTime = instance.getAlarmTime().getTime(); in dismissAlarmInstance()
147 if (instance.mAlarmState == FIRED_STATE || instance.mAlarmState == SNOOZE_STATE) { in dismissAlarmInstance()
149 AlarmStateManager.deleteInstanceAndUpdateParent(context, instance); in dismissAlarmInstance()
150 } else if (Utils.isAlarmWithin24Hours(instance)) { in dismissAlarmInstance()
152 AlarmStateManager.setPreDismissState(context, instance); in dismissAlarmInstance()
164 LOGGER.i("Alarm dismissed: " + instance); in dismissAlarmInstance()
193 final AlarmInstance instance = AlarmInstance.getNextUpcomingInstanceByAlarmId( in doInBackground() local
195 if (instance == null || instance.mAlarmState > FIRED_STATE) { in doInBackground()
512 private void setupInstance(AlarmInstance instance, boolean skipUi) { in setupInstance() argument
513 instance = AlarmInstance.addInstance(this.getContentResolver(), instance); in setupInstance()
514 AlarmStateManager.registerInstance(this, instance, true); in setupInstance()
515 AlarmUtils.popAlarmSetToast(this, instance.getAlarmTime().getTimeInMillis()); in setupInstance()
521 final Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId) in setupInstance()
522 .putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, instance.mAlarmId) in setupInstance()