Home
last modified time | relevance | path

Searched refs:getTimeInMillis (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DUtilsTest.java71 .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/
DTimestampUtils.java28 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/
DNotificationControllerTest.java60 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()
DAppLocalePickerActivityTest.java336 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/
DDailyLoggingAlarmScheduler.java53 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/
DDatePreferenceController.java120 datePicker.setMinDate(calendar.getTimeInMillis()); in buildDatePicker()
125 datePicker.setMaxDate(calendar.getTimeInMillis()); in buildDatePicker()
136 long when = c.getTimeInMillis(); in setDate()
DTimePreferenceController.java124 long when = c.getTimeInMillis(); in setTime()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DDatePickerFragment.java63 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/
DBluetoothPbapUtilsTest.java267 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/
DDatePickerFragmentTest.java70 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/
DNotificationController.java156 lastNotificationTime = Calendar.getInstance().getTimeInMillis(); in createNotificationInfoWithNewUidAndCount()
180 return time.getTimeInMillis() < lastNotificationTime; in isNotificationFrequent()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DInstantRecordHelper.java131 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/
DRecentAppsItemManager.java121 UsageStatsManager.INTERVAL_BEST, mCalendar.getTimeInMillis(), in loadDisplayableRecentApps()
160 if (stat.getLastTimeUsed() < mCalendar.getTimeInMillis()) { in shouldIncludePkgInRecents()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java152 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/
DRecentAppsPreferenceController.java167 UsageStatsManager.INTERVAL_BEST, mCal.getTimeInMillis(), in reloadData()
212 if (stat.getLastTimeUsed() < mCal.getTimeInMillis()) { in shouldIncludePkgInRecents()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java490 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/
DRecentAppsPreferenceController.java211 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/
DInstantRecordInternal.java37 public long getTimeInMillis() { in getTimeInMillis() method in InstantRecordInternal
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessorTest.java757 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/
DTimerSetupViewTest.java242 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/
DStructXfrmLifetimeCurTest.java48 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
DStructXfrmUsersaInfoTest.java82 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/logging/
DFileLogTest.java83 new File(mTempDir, "log-" + i).setLastModified(threeDaysAgo.getTimeInMillis()); in testOldFileTruncated()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java120 String toText = DateUtils.formatDateTime(context, Calendar.getInstance().getTimeInMillis(), in formatDataUsageInCycle()
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DPeriodicCallbackModelTest.java93 final long now = c.getTimeInMillis(); in getMidnightDelay()

12