Home
last modified time | relevance | path

Searched refs:alarmTime (Results 1 – 20 of 20) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt235 if (nextAlarm == null || instance.alarmTime.before(nextAlarm.alarmTime)) { in <lambda>()
250 time = AlarmUtils.getFormattedTime(context, nextAlarm.alarmTime) in <lambda>()
283 val alarmTime: Long = nextAlarm.alarmTime.timeInMillis in <lambda>() constant
291 val info = AlarmClockInfo(alarmTime, viewIntent) in <lambda>()
329 nextRepeatedInstance.alarmTime == instance.alarmTime) { in <lambda>()
330 nextRepeatedInstance = alarm.createInstanceAfter(instance.alarmTime) in <lambda>()
335 AlarmUtils.getFormattedTime(context, nextRepeatedInstance.alarmTime)) in <lambda>()
484 scheduleInstanceStateChange(context, instance.alarmTime, in <lambda>()
546 instance.alarmTime = newAlarmTime in <lambda>()
552 scheduleInstanceStateChange(context, instance.alarmTime, in <lambda>()
[all …]
DAlarmNotifications.kt392 AlarmUtils.getFormattedTime(context, instance.alarmTime))) in showSnoozeNotification()
442 val alarmTime: String = AlarmUtils.getFormattedTime(context, instance.alarmTime) in showMissedNotification() constant
448 alarmTime in showMissedNotification()
450 context.getString(R.string.alarm_missed_text, alarmTime, label) in showMissedNotification()
502 service, instance.alarmTime)) in showAlarmNotification()
600 val timeKey = SORT_KEY_FORMAT.format(instance.alarmTime.time) in createSortKey()
DAlarmStateManager.java240 long alarmTime = nextAlarm.getAlarmTime().getTimeInMillis(); in updateNextAlarmInAlarmManager() local
247 final AlarmClockInfo info = new AlarmClockInfo(alarmTime, viewIntent); in updateNextAlarmInAlarmManager()
659 final Calendar alarmTime = instance.getAlarmTime(); in registerInstance() local
679 if (currentTime.before(alarmTime)) { in registerInstance()
698 if (currentTime.before(alarmTime)) { in registerInstance()
710 } else if (currentTime.after(alarmTime)) { in registerInstance()
715 alarmBuffer.setTime(alarmTime.getTime()); in registerInstance()
DAlarmUpdateHandler.kt81 instance.alarmTime.timeInMillis) in <lambda>()
136 mSnackbarAnchor!!, instance.alarmTime.timeInMillis) in <lambda>()
176 val time: String = DateFormat.getTimeFormat(mAppContext).format(instance.alarmTime.time) in <lambda>()
DAlarmNotifications.java319 String alarmTime = AlarmUtils.getFormattedTime(context, instance.getAlarmTime()); in showMissedNotification() local
324 .setContentText(instance.mLabel.isEmpty() ? alarmTime : in showMissedNotification()
325 context.getString(R.string.alarm_missed_text, alarmTime, label)) in showMissedNotification()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java251 long alarmTime = startTime - in queryNextReminderAndSchedule() local
253 if (alarmTime > currentMillis && alarmTime < nextAlarmTime) { in queryNextReminderAndSchedule()
254 nextAlarmTime = alarmTime; in queryNextReminderAndSchedule()
259 timeObj.set(alarmTime); in queryNextReminderAndSchedule()
264 msg.append(", alarmTime:").append(alarmTime); in queryNextReminderAndSchedule()
290 private static void scheduleAlarm(Context context, long eventId, long alarmTime, in scheduleAlarm() argument
296 if (alarmTime > maxAlarmTime) { in scheduleAlarm()
297 alarmTime = maxAlarmTime; in scheduleAlarm()
301 alarmTime += ALARM_DELAY_MS; in scheduleAlarm()
305 time.set(alarmTime); in scheduleAlarm()
[all …]
DAlertUtils.java95 long alarmTime) {
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAlarmManager.java389 final long alarmTime = cursor.getLong(alarmTimeIndex); in scheduleNextAlarmLocked() local
396 time.set(alarmTime); in scheduleNextAlarmLocked()
403 + " alarm: " + alarmTime + schedTime); in scheduleNextAlarmLocked()
406 if (alarmTime < nextAlarmTime) { in scheduleNextAlarmLocked()
407 nextAlarmTime = alarmTime; in scheduleNextAlarmLocked()
408 } else if (alarmTime > nextAlarmTime + DateUtils.MINUTE_IN_MILLIS) { in scheduleNextAlarmLocked()
420 if (CalendarAlerts.alarmExists(resolver, eventId, startTime, alarmTime)) { in scheduleNextAlarmLocked()
432 resolver, eventId, startTime, endTime, alarmTime, minutes); in scheduleNextAlarmLocked()
441 scheduleAlarm(alarmTime); in scheduleNextAlarmLocked()
505 public void scheduleAlarm(long alarmTime) { in scheduleAlarm() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.kt71 alarmTime = calendar
141 var alarmTime: Calendar variable in com.android.deskclock.provider.AlarmInstance
168 val calendar = alarmTime
180 val calendar = alarmTime
192 val calendar = alarmTime
211 val calendar = alarmTime
404 if (instance.alarmTime.before(nextAlarmInstance.alarmTime)) { in getNextUpcomingInstanceByAlarmId()
479 if (otherInstances.alarmTime == instance.alarmTime) { in addInstance()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmUtils.kt54 val alarmTimeStr: String = getFormattedTime(context, instance.alarmTime) in getAlarmText()
101 fun popAlarmSetToast(context: Context, alarmTime: Long) { in popAlarmSetToast()
102 val alarmTimeDelta = alarmTime - System.currentTimeMillis() in popAlarmSetToast()
110 fun popAlarmSetSnackbar(snackbarAnchor: View, alarmTime: Long) { in popAlarmSetSnackbar()
111 val alarmTimeDelta = alarmTime - System.currentTimeMillis() in popAlarmSetSnackbar()
DAlarmUtils.java95 public static void popAlarmSetToast(Context context, long alarmTime) { in popAlarmSetToast() argument
96 final long alarmTimeDelta = alarmTime - System.currentTimeMillis(); in popAlarmSetToast()
103 public static void popAlarmSetSnackbar(View snackbarAnchor, long alarmTime) { in popAlarmSetSnackbar() argument
104 final long alarmTimeDelta = alarmTime - System.currentTimeMillis(); in popAlarmSetSnackbar()
DUtils.java310 final Calendar alarmTime = Calendar.getInstance(); in getNextAlarmLOrLater() local
311 alarmTime.setTimeInMillis(triggerTime); in getNextAlarmLOrLater()
312 return AlarmUtils.getFormattedTime(context, alarmTime); in getNextAlarmLOrLater()
DHandleApiCalls.java144 final Date alarmTime = instance.getAlarmTime().getTime(); in dismissAlarmInstance() local
145 final String time = DateFormat.getTimeFormat(context).format(alarmTime); in dismissAlarmInstance()
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
DAlarmSelectionAdapter.kt49 val alarmTime = row!!.findViewById<View>(R.id.digital_clock) as TextTime in getView() constant
50 alarmTime.setTime(alarm!!.hour, alarm.minutes) in getView()
DAlarmSelectionAdapter.java55 final TextTime alarmTime = (TextTime) row.findViewById(R.id.digital_clock); in getView() local
56 alarmTime.setTime(alarm.hour, alarm.minutes); in getView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryService.java230 final long alarmTime = now + new Random().nextInt(MAX_ALARM_DELAY_MILLIS); in checkTimeAndMaybeSetupUpdateAlarm() local
238 if (null != alarmManager) alarmManager.set(AlarmManager.RTC, alarmTime, pendingIntent); in checkTimeAndMaybeSetupUpdateAlarm()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2ForTesting.java82 public void scheduleAlarm(long alarmTime) { in scheduleAlarm() argument
DCalendarProvider2Test.java2415 long alarmTime = begin + 5 * ONE_MINUTE_MILLIS; in internalTestDirty() local
2420 alert.put(CalendarContract.CalendarAlerts.ALARM_TIME, alarmTime); in internalTestDirty()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1084 long alarmTime = SystemClock.elapsedRealtime() + mTimeout; in maybeInitTimeout() local
1085 mTimeoutAlarm.schedule(alarmTime); in maybeInitTimeout()
1153 long alarmTime = now + timeout; in scheduleKick() local
1154 mKickAlarm.schedule(alarmTime); in scheduleKick()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java1867 final long alarmTime = SystemClock.elapsedRealtime() in enter() local
1869 mProvisioningTimeoutAlarm.schedule(alarmTime); in enter()
2015 final long alarmTime = SystemClock.elapsedRealtime() in ensureDhcpAction() local
2017 mDhcpActionTimeoutAlarm.schedule(alarmTime); in ensureDhcpAction()