Home
last modified time | relevance | path

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

/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/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt234 if (nextAlarm == null || instance.alarmTime.before(nextAlarm.alarmTime)) { in <lambda>()
249 time = AlarmUtils.getFormattedTime(context, nextAlarm.alarmTime) in <lambda>()
282 val alarmTime: Long = nextAlarm.alarmTime.timeInMillis in <lambda>() constant
290 val info = AlarmClockInfo(alarmTime, viewIntent) in <lambda>()
328 nextRepeatedInstance.alarmTime == instance.alarmTime) { in <lambda>()
329 nextRepeatedInstance = alarm.createInstanceAfter(instance.alarmTime) in <lambda>()
334 AlarmUtils.getFormattedTime(context, nextRepeatedInstance.alarmTime)) in <lambda>()
483 scheduleInstanceStateChange(context, instance.alarmTime, in <lambda>()
545 instance.alarmTime = newAlarmTime in <lambda>()
551 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()
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>()
/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()
510 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()
DHandleApiCalls.kt289 val time = DateFormat.getTimeFormat(this).format(alarmInstance.alarmTime.time) in handleSetAlarm()
427 popAlarmSetToast(this, variableInstance.alarmTime.timeInMillis) in setupInstance()
514 val alarmTime: Date = instance.alarmTime.time in dismissAlarmInstance() constant
515 val time = DateFormat.getTimeFormat(context).format(alarmTime) in dismissAlarmInstance()
543 alarmInstance.alarmTime.time) in snoozeAlarm()
DUtils.kt298 val alarmTime = Calendar.getInstance() in getNextAlarmLOrLater() constant
299 alarmTime.timeInMillis = triggerTime in getNextAlarmLOrLater()
300 return AlarmUtils.getFormattedTime(context, alarmTime) in getNextAlarmLOrLater()
317 val nextAlarmTime: Calendar = alarmInstance.alarmTime in isAlarmWithin24Hours()
DFetchMatchingAlarmsAction.kt114 val nextTime: Calendar = nextAlarm.alarmTime in run()
/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()
/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.java2434 long alarmTime = begin + 5 * ONE_MINUTE_MILLIS; in internalTestDirty() local
2439 alert.put(CalendarContract.CalendarAlerts.ALARM_TIME, alarmTime); in internalTestDirty()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1128 long alarmTime = SystemClock.elapsedRealtime() + mTimeout; in maybeInitTimeout() local
1129 mTimeoutAlarm.schedule(alarmTime); in maybeInitTimeout()
1197 long alarmTime = now + timeout; in scheduleKick() local
1198 mKickAlarm.schedule(alarmTime); in scheduleKick()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2147 final long alarmTime = SystemClock.elapsedRealtime() in enter() local
2149 mProvisioningTimeoutAlarm.schedule(alarmTime); in enter()
2304 final long alarmTime = SystemClock.elapsedRealtime() in ensureDhcpAction() local
2306 mDhcpActionTimeoutAlarm.schedule(alarmTime); in ensureDhcpAction()