/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleConditionProviderTest.java | 94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule() 97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule() 118 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 123 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 151 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 174 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_endSchedule() 191 conditionId, cal, now.getTimeInMillis() - 1000, now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule() 195 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_alarmSetBeforeInSchedule() 199 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule() 200 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetBeforeInSchedule() [all …]
|
D | ScheduleCalendarTest.java | 80 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 83 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 86 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startToday() 106 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endToday() 110 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_endToday() 113 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_endToday() 133 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow() 138 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startTomorrow() 141 assertEquals("Expected " + expected + " was " + actual, expected.getTimeInMillis(), in testGetNextChangeTime_startTomorrow() 161 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_endTomorrow() [all …]
|
/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() 329 long jan_19_2042 = c.getTimeInMillis(); in test8862241() 331 long oct_4_2046 = c.getTimeInMillis(); in test8862241() 445 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_later_than_epoch() 465 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC() 470 long jul_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC() 513 long thisYear = c.getTimeInMillis(); in test10209343_when_this_year() 525 long oldYear = c2.getTimeInMillis(); in test10209343_when_this_year() [all …]
|
/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/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 | DatePickerSpinnerDelegate.java | 123 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 208 setMinDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 219 setMaxDate(mTempDate.getTimeInMillis()); in DatePickerSpinnerDelegate() 295 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate() 319 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate() 379 getMinDate().getTimeInMillis(), getMaxDate().getTimeInMillis()); in onSaveInstanceState() 443 final long currentTimeMillis = oldCalendar.getTimeInMillis(); in getCalendarForLocale() 509 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setDate() 511 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setDate() 570 mCalendarView.setDate(mCurrentDate.getTimeInMillis(), false, false); in updateCalendarView()
|
D | DatePickerCalendarDelegate.java | 162 mDayPickerView.setMinDate(mMinDate.getTimeInMillis()); in DatePickerCalendarDelegate() 163 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis()); in DatePickerCalendarDelegate() 164 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in DatePickerCalendarDelegate() 238 mCurrentDate.setTimeInMillis(day.getTimeInMillis()); 328 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in setCurrentView() 399 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in onDateChanged() 543 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState() 544 mMaxDate.getTimeInMillis(), mCurrentView, listPosition, listPositionOffset); in onSaveInstanceState()
|
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()
|
D | DayPickerPagerAdapter.java | 79 mMinDate.setTimeInMillis(min.getTimeInMillis()); in setRange() 80 mMaxDate.setTimeInMillis(max.getTimeInMillis()); in setRange()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ModemActivityInfo.java | 122 dest.writeInt(mTransmitPowerInfo.get(i).getTimeInMillis()); in writeToParcel() 161 transmitTimeMillis[i] = mTransmitPowerInfo.get(i).getTimeInMillis(); in getTransmitTimeMillis() 211 if(powerInfo.getTimeInMillis() < 0) { in isValid() 222 if(txVal.getTimeInMillis() != 0) { in isEmpty() 250 public int getTimeInMillis() { in getTimeInMillis() method in ModemActivityInfo.TransmitPower
|
/frameworks/base/core/java/android/webkit/ |
D | DateSorter.java | 58 mBins[0] = c.getTimeInMillis(); // Today in DateSorter() 60 mBins[1] = c.getTimeInMillis(); // Yesterday in DateSorter() 62 mBins[2] = c.getTimeInMillis(); // Five days ago in DateSorter() 65 mBins[3] = c.getTimeInMillis(); // One month ago in DateSorter()
|
/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()
|
D | GraphicsStatsService.java | 138 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm, in scheduleRotateLocked() 219 … normalizeDate(info.startTime).getTimeInMillis(), info.packageName, info.versionCode); in pathForApp() 298 long today = normalizeDate(System.currentTimeMillis()).getTimeInMillis(); in fetchActiveBuffersLocked()
|
/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/core/java/com/android/server/twilight/ |
D | TwilightService.java | 295 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState() 302 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState() 306 ca.setTime(noon.getTimeInMillis()); in calculateTwilightState()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UnixCalendar.java | 54 public long getTimeInMillis() { in getTimeInMillis() method in UnixCalendar
|
D | UserUsageStatsService.java | 171 if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMillis()) { in reportEvent() 496 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats() 503 mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats() 512 mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats() 513 stat.commitTime(mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats() 602 sDateFormat.format(mDailyExpiryDate.getTimeInMillis()) + "(" + in updateRolloverDeadline() 603 mDailyExpiryDate.getTimeInMillis() + ")"); in updateRolloverDeadline() 762 final long beginTime = yesterday.getTimeInMillis(); in printLast24HrEvents()
|
D | UsageStatsDatabase.java | 706 mCal.getTimeInMillis()); in prune() 711 mCal.getTimeInMillis()); in prune() 716 mCal.getTimeInMillis()); in prune() 721 mCal.getTimeInMillis()); in prune() 726 pruneChooserCountsOlderThan(mIntervalDirs[i], mCal.getTimeInMillis()); in prune()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 120 return mCalendar.getTimeInMillis(); in getTime() 194 return mCalendar.getTimeInMillis(); in addDays()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 60 mCalendar.getTimeInMillis(); in MonthDisplayHelper()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | NitzDataTest.java | 111 return calendar.getTimeInMillis(); in createUtcTime()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 120 return calendar.getTimeInMillis(); in parse()
|