/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
D | UtilsTest.java | 71 .getTimeInMillis(); in getJanOfThisYearInMillis() 81 .getTimeInMillis(); in getFebOfThisYearInMillis() 459 new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(), in testIsInGivenDay() 460 new GregorianCalendar(2015, Calendar.JANUARY, 1, 0, 30).getTimeInMillis())); in testIsInGivenDay() 467 new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(), in testIsNotInGivenDay() 468 new GregorianCalendar(2015, Calendar.JANUARY, 2).getTimeInMillis())); in testIsNotInGivenDay() 478 long date2015StartMs = new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(); in testIfTimeZoneApplied() 482 new GregorianCalendar(2015, Calendar.JANUARY, 1, 10, 0).getTimeInMillis(); in testIfTimeZoneApplied()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | TimestampUtils.java | 28 return calendar.getTimeInMillis(); in getNextHourTimestamp() 35 return calendar.getTimeInMillis(); in getNextEvenHourTimestamp() 42 return calendar.getTimeInMillis(); in getLastEvenHourTimestamp() 49 return calendar.getTimeInMillis(); in getNextDayTimestamp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/ |
D | NotificationControllerTest.java | 60 long lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in incrementDismissCount_addOne() 78 long lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in testRemoveNotificationInfo_removed() 137 long lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in testShouldTriggerNotification_returnFalse_dueToOddCount() 154 long lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in testShouldTriggerNotification_returnFalse_dueToFrequency() 174 long lastNotificationTime = time.getTimeInMillis(); in testShouldTriggerNotification_return2ndTrue()
|
D | AppLocalePickerActivityTest.java | 336 Calendar.getInstance().getTimeInMillis(), notificationId); in onLocaleSelected_evaluateNotification_oddLocaleUpdate_uidAddedWithoutNotification() 365 Calendar.getInstance().getTimeInMillis(), notificationId); in onLocaleSelected_evaluateNotification_frequentLocaleUpdate_uidAddedNoNotification() 394 initSharedPreference(EN_US, uidSet, 0, 1, Calendar.getInstance().getTimeInMillis(), in onLocaleSelected_evaluateNotification_2ndOddLocaleUpdate_uidAddedNoNotification() 425 long lastNotificationTime = now.getTimeInMillis(); in testEvaluateLocaleNotification_evenLocaleUpdate_trigger2ndNotification() 455 long lastNotificationTime = now.getTimeInMillis(); in testEvaluateLocaleNotification_localeUpdateReachThreshold_noUidNorNotification() 487 initSharedPreference(EN_US, uidSet, 0, 2, now.getTimeInMillis(), in testEvaluateLocaleNotification_appChangedLocales_newLocaleCreated()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DailyLoggingAlarmScheduler.java | 53 if (lastTimestamp == -1 || lastTimestamp < oneDayAgo.getTimeInMillis()) { in setAlarm() 59 triggerAtMillis = oneMinuteFromNow.getTimeInMillis(); in setAlarm() 65 triggerAtMillis = oneDayFromNow.getTimeInMillis(); in setAlarm()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | DatePreferenceController.java | 120 datePicker.setMinDate(calendar.getTimeInMillis()); in buildDatePicker() 125 datePicker.setMaxDate(calendar.getTimeInMillis()); in buildDatePicker() 136 long when = c.getTimeInMillis(); in setDate()
|
D | TimePreferenceController.java | 124 long when = c.getTimeInMillis(); in setTime()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
D | DatePickerFragment.java | 63 long when = c.getTimeInMillis(); in onStop() 103 mDatePicker.setMinDate(calendar.getTimeInMillis()); in onActivityCreated() 109 mDatePicker.setMaxDate(calendar.getTimeInMillis()); in onActivityCreated()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtilsTest.java | 267 contactCursor.addRow(new Object[] {"id1", Calendar.getInstance().getTimeInMillis()}); in updateSecondaryVersionCounter_whenContactsAreAdded() 268 contactCursor.addRow(new Object[] {"id2", Calendar.getInstance().getTimeInMillis()}); in updateSecondaryVersionCounter_whenContactsAreAdded() 269 contactCursor.addRow(new Object[] {"id3", Calendar.getInstance().getTimeInMillis()}); in updateSecondaryVersionCounter_whenContactsAreAdded() 270 contactCursor.addRow(new Object[] {"id4", Calendar.getInstance().getTimeInMillis()}); in updateSecondaryVersionCounter_whenContactsAreAdded() 333 contactCursor.addRow(new Object[] {"id1", Calendar.getInstance().getTimeInMillis()}); in updateSecondaryVersionCounter_whenContactsAreUpdated()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/ |
D | DatePickerFragmentTest.java | 70 assertThat(datePicker.getMinDate()).isEqualTo(calendar.getTimeInMillis()); in onActivityCreated_setMinDate() 83 assertThat(datePicker.getMaxDate()).isEqualTo(calendar.getTimeInMillis()); in onActivityCreated_setMaxDate()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | NotificationController.java | 156 lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in createNotificationInfoWithNewUidAndCount() 180 return time.getTimeInMillis() < lastNotificationTime; in isNotificationFrequent()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | InstantRecordHelper.java | 131 contentValues.put(TIME_COLUMN_NAME, instantRecord.getTimeInMillis()); in populateContentValues() 138 Instant.ofEpochMilli(instantRecord.getTimeInMillis()), in populateContentValues()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | RecentAppsItemManager.java | 121 UsageStatsManager.INTERVAL_BEST, mCalendar.getTimeInMillis(), in loadDisplayableRecentApps() 160 if (stat.getLastTimeUsed() < mCalendar.getTimeInMillis()) { in shouldIncludePkgInRecents()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RecentAppStatsMixin.java | 152 UsageStatsManager.INTERVAL_BEST, mCalendar.getTimeInMillis(), in getRecentAppsStats() 178 if (stat.getLastTimeUsed() < mCalendar.getTimeInMillis()) { in shouldIncludePkgInRecents()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | RecentAppsPreferenceController.java | 167 UsageStatsManager.INTERVAL_BEST, mCal.getTimeInMillis(), in reloadData() 212 if (stat.getLastTimeUsed() < mCal.getTimeInMillis()) { in shouldIncludePkgInRecents()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Utils.java | 490 return (int) ((calTo.getTimeInMillis() - calFrom.getTimeInMillis()) / ONE_DAY_MS); in computeDateDifference() 508 return calendar.getTimeInMillis(); in getLastMillisecondOfDay() 516 return calendar.getTimeInMillis(); in getFirstMillisecondOfDay()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceController.java | 211 UsageStatsManager.INTERVAL_BEST, mCal.getTimeInMillis(), in reloadData() 256 if (stat.getLastTimeUsed() < mCal.getTimeInMillis()) { in shouldIncludePkgInRecents()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | InstantRecordInternal.java | 37 public long getTimeInMillis() { in getTimeInMillis() method in InstantRecordInternal
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | DataProcessorTest.java | 757 final long startTimestamp = startCalendar.getTimeInMillis(); in getTimestampSlots_startWithEvenHour_returnExpectedResult() 761 final long endTimestamp = endCalendar.getTimeInMillis(); in getTimestampSlots_startWithEvenHour_returnExpectedResult() 767 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithEvenHour_returnExpectedResult() 771 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithEvenHour_returnExpectedResult() 775 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithEvenHour_returnExpectedResult() 785 final long startTimestamp = startCalendar.getTimeInMillis(); in getTimestampSlots_startWithOddHour_returnExpectedResult() 789 final long endTimestamp = endCalendar.getTimeInMillis(); in getTimestampSlots_startWithOddHour_returnExpectedResult() 795 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithOddHour_returnExpectedResult() 799 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithOddHour_returnExpectedResult() 803 expectedTimestamps.add(calendar.getTimeInMillis()); in getTimestampSlots_startWithOddHour_returnExpectedResult()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 242 assertEquals(0, timerSetupView.getTimeInMillis()); in assertIsReset() 272 assertEquals(time, timerSetupView.getTimeInMillis()); in assertHasValue()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/xfrm/ |
D | StructXfrmLifetimeCurTest.java | 48 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
|
D | StructXfrmUsersaInfoTest.java | 82 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/logging/ |
D | FileLogTest.java | 83 new File(mTempDir, "log-" + i).setLastModified(threeDaysAgo.getTimeInMillis()); in testOldFileTruncated()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageUtils.java | 120 String toText = DateUtils.formatDateTime(context, Calendar.getInstance().getTimeInMillis(), in formatDataUsageInCycle()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModelTest.java | 93 final long now = c.getTimeInMillis(); in getMidnightDelay()
|