Home
last modified time | relevance | path

Searched refs:currentMillis (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlarmSchedulerTest.java175 long currentMillis = System.currentTimeMillis(); in testNonAllDayEvent() local
176 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testNonAllDayEvent()
183 currentMillis); in testNonAllDayEvent()
192 long currentMillis = startMillisLocal - DateUtils.DAY_IN_MILLIS; in testAllDayEvent() local
199 currentMillis); in testAllDayEvent()
208 long currentMillis = startMillisLocal - DateUtils.DAY_IN_MILLIS; in testAllDayAndNonAllDayEvents() local
215 currentMillis); in testAllDayAndNonAllDayEvents()
221 long currentMillis = System.currentTimeMillis(); in testExpiredReminder() local
222 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testExpiredReminder()
228 currentMillis); in testExpiredReminder()
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java111 int batchSize, long currentMillis) { in scheduleNextAlarm() argument
115 currentMillis); in scheduleNextAlarm()
118 context.getContentResolver(), alarmManager, batchSize, currentMillis); in scheduleNextAlarm()
131 long currentMillis) { in queryUpcomingEvents() argument
135 final long localStartMin = currentMillis; in queryUpcomingEvents()
178 int batchSize, long currentMillis) { in queryNextReminderAndSchedule() argument
253 if (alarmTime > currentMillis && alarmTime < nextAlarmTime) { in queryNextReminderAndSchedule()
281 scheduleAlarm(context, nextAlarmEventId, nextAlarmTime, currentMillis, alarmManager); in queryNextReminderAndSchedule()
291 long currentMillis, AlarmManagerInterface alarmManager) { in scheduleAlarm() argument
295 long maxAlarmTime = currentMillis + MAX_ALARM_ELAPSED_MS; in scheduleAlarm()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DCalendarInteractionUtils.java29 public static String getDisplayedDatetime(long startMillis, long endMillis, long currentMillis, in getDisplayedDatetime() argument
39 currentTime.set(currentMillis); in getDisplayedDatetime()
49 localStartMillis, currentMillis, currentTime.gmtoff); in getDisplayedDatetime()
71 currentMillis, currentTime.gmtoff); in getDisplayedDatetime()
146 long currentMillis, long localGmtOffset) { in isTodayOrTomorrow() argument
148 int currentDay = Time.getJulianDay(currentMillis, localGmtOffset); in isTodayOrTomorrow()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAlarmManager.java279 final long currentMillis = System.currentTimeMillis(); in scheduleNextAlarmLocked() local
280 final long start = currentMillis - SCHEDULE_ALARM_SLACK; in scheduleNextAlarmLocked()
295 currentMillis - CLEAR_OLD_ALARM_THRESHOLD) }; in scheduleNextAlarmLocked()
302 final long tmpAlarmTime = CalendarAlerts.findNextAlarmTime(resolver, currentMillis); in scheduleNextAlarmLocked()
366 String.valueOf(currentMillis), String.valueOf(start), String.valueOf(nextAlarmTime), in scheduleNextAlarmLocked()
367 String.valueOf(currentMillis) }; in scheduleNextAlarmLocked()
471 scheduleAlarm(currentMillis); in scheduleNextAlarmLocked()
479 currentMillis + ALARM_CHECK_WHEN_NO_ALARM_IS_SCHEDULED_INTERVAL_MILLIS); in scheduleNextAlarmLocked()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java442 SQLiteDatabase db, Cursor updatedContactCursor, Long currentMillis) { in insertUpdatedContactsAndNumberPrefix() argument
528 insert.bindLong(14, currentMillis); in insertUpdatedContactsAndNumberPrefix()
616 final Long currentMillis = System.currentTimeMillis(); in updateSmartDialDatabase() local
687 insertUpdatedContactsAndNumberPrefix(db, updatedPhoneCursor, currentMillis); in updateSmartDialDatabase()
710 + currentMillis, in updateSmartDialDatabase()
794 editor.putLong(LAST_UPDATED_MILLIS, currentMillis); in updateSmartDialDatabase()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java1404 public static String getDisplayedDatetime(long startMillis, long endMillis, long currentMillis, in getDisplayedDatetime() argument
1414 currentTime.set(currentMillis); in getDisplayedDatetime()
1424 localStartMillis, currentMillis, currentTime.gmtoff); in getDisplayedDatetime()
1446 currentMillis, currentTime.gmtoff); in getDisplayedDatetime()
1519 long currentMillis, long localGmtOffset) { in isTodayOrTomorrow() argument
1521 int currentDay = Time.getJulianDay(currentMillis, localGmtOffset); in isTodayOrTomorrow()
DAllInOneActivity.java540 long currentMillis = System.currentTimeMillis(); in onResume() local
542 if (currentMillis > mIntentEventStartMillis && currentMillis < mIntentEventEndMillis) { in onResume()
543 selectedTime = currentMillis; in onResume()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSwipeDetector.java315 public float computeVelocity(float delta, long currentMillis) { in computeVelocity() argument
317 mCurrentMillis = currentMillis; in computeVelocity()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleDayPickerFragment.java130 long currentMillis = midnight.toMillis(true);
136 long millisToMidnight = midnight.normalize(true) - currentMillis;