/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleConditionProviderTest.java | 98 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule() 101 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule() 122 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 127 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 155 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 178 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_endSchedule() 195 conditionId, cal, now.getTimeInMillis() - 1000, now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule() 199 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule() 203 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule() 204 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetBeforeInSchedule() [all …]
|
D | ScheduleCalendarTest.java | 81 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 84 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 87 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startToday() 107 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endToday() 111 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_endToday() 114 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_endToday() 134 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow() 139 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow() 142 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startTomorrow() 162 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endTomorrow() [all …]
|
D | NotificationHistoryDatabaseTest.java | 110 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune() 123 when(file.getName()).thenReturn(String.valueOf(cal.getTimeInMillis() - i)); in testPrune() 124 when(file.getAbsolutePath()).thenReturn(String.valueOf(cal.getTimeInMillis() - i)); in testPrune() 131 mDataBase.prune(retainDays, cal.getTimeInMillis()); in testPrune() 145 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune_badFileName_noCrash() 155 mDataBase.prune(retainDays, cal.getTimeInMillis()); in testPrune_badFileName_noCrash()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SmsProviderTest.java | 45 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider() 46 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider() 47 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider() 48 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | RelativeDateTimeFormatterTest.java | 62 final long baseTime = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringCTS() 118 final long base = cal.getTimeInMillis(); in test_getRelativeTimeSpanString_helper() 398 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringGerman() 427 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringFrench() 469 final long base = cal.getTimeInMillis(); in test_getRelativeDateTimeString() 516 long base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST() 523 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST() 531 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST() 537 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST() 559 final long base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringItalian() [all …]
|
D | DateIntervalFormatTest.java | 74 long timeWithCurrentYear = c.getTimeInMillis(); in test_formatDateInterval() 77 long fixedTime = c.getTimeInMillis(); in test_formatDateInterval() 81 long onTheHour = c.getTimeInMillis(); in test_formatDateInterval() 330 long jan_19_2042 = c.getTimeInMillis(); in test8862241() 332 long oct_4_2046 = c.getTimeInMillis(); in test8862241() 449 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_later_than_epoch() 469 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC() 474 long jul_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC() 517 long thisYear = c.getTimeInMillis(); in test10209343_when_this_year() 529 long oldYear = c2.getTimeInMillis(); in test10209343_when_this_year() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | DateSorter.java | 61 mBins[0] = c.getTimeInMillis(); // Today in DateSorter() 63 mBins[1] = c.getTimeInMillis(); // Yesterday in DateSorter() 65 mBins[2] = c.getTimeInMillis(); // Five days ago in DateSorter() 68 mBins[3] = c.getTimeInMillis(); // One month ago in DateSorter()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerView.java | 150 final long minDateMillis = tempDate.getTimeInMillis(); in DayPickerView() 155 final long maxDateMillis = tempDate.getTimeInMillis(); in DayPickerView() 296 if (timeInMillis < mMinDate.getTimeInMillis()) { 297 timeInMillis = mMinDate.getTimeInMillis(); 299 } else if (timeInMillis > mMaxDate.getTimeInMillis()) { 300 timeInMillis = mMaxDate.getTimeInMillis(); 319 return mSelectedDay.getTimeInMillis(); 346 return mMinDate.getTimeInMillis(); 355 return mMaxDate.getTimeInMillis(); 366 setDate(mSelectedDay.getTimeInMillis(), false, false);
|
D | DatePickerCalendarDelegate.java | 162 mDayPickerView.setMinDate(mMinDate.getTimeInMillis()); in DatePickerCalendarDelegate() 163 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis()); in DatePickerCalendarDelegate() 164 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in DatePickerCalendarDelegate() 239 mCurrentDate.setTimeInMillis(day.getTimeInMillis()); 264 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); 266 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); 338 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in setCurrentView() 409 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in onDateChanged() 553 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState() 554 mMaxDate.getTimeInMillis(), mCurrentView, listPosition, listPositionOffset); in onSaveInstanceState()
|
D | DatePickerSpinnerDelegate.java | 124 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 209 setMinDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 220 setMaxDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 296 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate() 320 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate() 380 getMinDate().getTimeInMillis(), getMaxDate().getTimeInMillis()); in onSaveInstanceState() 444 final long currentTimeMillis = oldCalendar.getTimeInMillis(); in getCalendarForLocale() 510 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setDate() 512 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setDate() 571 mCalendarView.setDate(mCurrentDate.getTimeInMillis(), false, false); in updateCalendarView()
|
D | CalendarViewLegacyDelegate.java | 506 setDate(mTempDate.getTimeInMillis()); in setMinDate() 518 return mMinDate.getTimeInMillis(); in getMinDate() 532 setDate(mMaxDate.getTimeInMillis()); in setMaxDate() 544 return mMaxDate.getTimeInMillis(); in getMaxDate() 594 return mAdapter.mSelectedDate.getTimeInMillis(); in getDate() 674 final long currentTimeMillis = oldCalendar.getTimeInMillis(); in getCalendarForLocale() 819 mFirstDayOfMonth.setTimeInMillis(date.getTimeInMillis()); in goTo() 935 final long millis = calendar.getTimeInMillis(); in setMonthDisplayed() 950 long endTimeMillis = date.getTimeInMillis() in getWeeksSinceMinDate() 951 + date.getTimeZone().getOffset(date.getTimeInMillis()); in getWeeksSinceMinDate() [all …]
|
D | DatePicker.java | 300 return mDelegate.getMinDate().getTimeInMillis(); in getMinDate() 326 return mDelegate.getMaxDate().getTimeInMillis(); in getMaxDate() 665 : mCurrentDate.getTimeInMillis(); in getAutofillValue() 693 return DateUtils.formatDateTime(mContext, mCurrentDate.getTimeInMillis(), in getFormattedCurrentDate()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MountServiceIdler.java | 102 final long today3AM = offsetFromTodayMidnight(0, 3).getTimeInMillis(); in scheduleIdlePass() 103 final long today4AM = offsetFromTodayMidnight(0, 4).getTimeInMillis(); in scheduleIdlePass() 104 final long tomorrow3AM = offsetFromTodayMidnight(1, 3).getTimeInMillis(); in scheduleIdlePass()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 152 mCalendar.setTimeInMillis(other.mCalendar.getTimeInMillis()); in set() 211 long msBefore = mCalendar.getTimeInMillis(); in switchTimezone() 234 final long ms = mCalendar.getTimeInMillis(); in normalizeInternal() 266 return getDstAdjustedMillis(false, mCalendar.getTimeInMillis()); in toMillis() 270 return getDstAdjustedMillis(true, mCalendar.getTimeInMillis()); in toMillisApplyDst() 391 return mCalendar.getTimeZone().getOffset(mCalendar.getTimeInMillis()) / 1000; in getGmtOffset() 505 tmp.set(mCalendar.getTimeInMillis()); in generateInstance()
|
/frameworks/base/core/tests/benchmarks/src/android/text/format/ |
D | AndroidTimeVsOthersBenchmark.java | 66 answer = calendar.getTimeInMillis(); in toMillis_javaUtil() 81 answer = calendar.getTimeInMillis(); in toMillis_androidIucUtil()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UnixCalendar.java | 54 public long getTimeInMillis() { in getTimeInMillis() method in UnixCalendar
|
D | UserUsageStatsService.java | 315 if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMillis()) { in reportEvent() 852 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats() 859 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats() 868 mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats() 869 stat.commitTime(mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats() 958 sDateFormat.format(mDailyExpiryDate.getTimeInMillis()) + "(" + in updateRolloverDeadline() 959 mDailyExpiryDate.getTimeInMillis() + ")"); in updateRolloverDeadline() 1133 final long beginTime = yesterday.getTimeInMillis(); in printLast24HrEvents()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 293 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState() 300 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState() 304 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
|
/frameworks/base/graphics/java/android/graphics/ |
D | GraphicsStatsService.java | 146 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm, in scheduleRotateLocked() 229 targetDay = normalizeDate(System.currentTimeMillis() - 86400000).getTimeInMillis(); in pullGraphicsStatsImpl() 232 targetDay = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in pullGraphicsStatsImpl() 296 normalizeDate(info.mStartTime).getTimeInMillis(), info.mPackageName, in pathForApp() 378 long today = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in fetchActiveBuffersLocked()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStoreSecurityLevel.java | 210 long target = calendar.getTimeInMillis() + millis; in interruptedPreservingSleep() 213 Thread.sleep(target - calendar.getTimeInMillis()); in interruptedPreservingSleep()
|
D | KeyStore2.java | 354 long target = calendar.getTimeInMillis() + millis; in interruptedPreservingSleep() 357 Thread.sleep(target - calendar.getTimeInMillis()); in interruptedPreservingSleep()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 39 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 121 return mCalendar.getTimeInMillis(); in getTime() 195 return mCalendar.getTimeInMillis(); in addDays()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsScheduler.java | 200 long adjustment = cal.getTimeInMillis() - targetWallClockTime; in alignToWallClock() 218 long adjustment = cal.getTimeInMillis() - targetWallClockTime; in alignToWallClock()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 61 mCalendar.getTimeInMillis(); in MonthDisplayHelper()
|