Home
last modified time | relevance | path

Searched refs:toMillis (Results 1 – 25 of 195) sorted by relevance

12345678

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java56 private static final long STARTING_TIME = TimeUnit.DAYS.toMillis(1000);
100 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_appInstalledSameDayNeverUsed_isInvalid()
114 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
128 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unusedApp_isValid()
142 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unusedApp_isValid()
156 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unknownLastUse_isFilteredOut()
171 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unknownLastUse_isFilteredOut()
186 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_oldAppRecentlyUsed_isNotValid()
187 registerLastUse(PACKAGE_NAME, TimeUnit.DAYS.toMillis(999)); in test_oldAppRecentlyUsed_isNotValid()
201 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
[all …]
DAppsAsyncLoaderTest.java59 private static final long STARTING_TIME = TimeUnit.DAYS.toMillis(1000);
228 TimeUnit.DAYS.toMillis(800), in test_multipleApps_processCorrectly()
229 TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly()
230 registerLastUse(PACKAGE_CLEARABLE, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly()
231 registerApp(clearable, 0, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly()
235 TimeUnit.DAYS.toMillis(1000), in test_multipleApps_processCorrectly()
236 TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly()
237 registerLastUse(PACKAGE_TOO_NEW_TO_DELETE, TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly()
238 registerApp(tooNewtoDelete, 1, TimeUnit.DAYS.toMillis(1000)); in test_multipleApps_processCorrectly()
241 PACKAGE_SYSTEM, TimeUnit.DAYS.toMillis(800), TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly()
[all …]
DStorageManagerUpsellDialogTest.java45 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90))) in testNoThanksMaximumShownTimes()
50 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 2)); in testNoThanksMaximumShownTimes()
51 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 2))) in testNoThanksMaximumShownTimes()
56 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 3)); in testNoThanksMaximumShownTimes()
57 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 3))) in testNoThanksMaximumShownTimes()
62 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 4)); in testNoThanksMaximumShownTimes()
63 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 4))) in testNoThanksMaximumShownTimes()
68 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 5)); in testNoThanksMaximumShownTimes()
69 assertThat(StorageManagerUpsellDialog.shouldShow(context, TimeUnit.DAYS.toMillis(90 * 5))) in testNoThanksMaximumShownTimes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java101 final long tonight = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(12); in calcPoints_shouldNotDrawPointForFutureDate()
105 tonight - TimeUnit.DAYS.toMillis(5), tonight - TimeUnit.DAYS.toMillis(4), 743823454L)); in calcPoints_shouldNotDrawPointForFutureDate()
107 tonight - TimeUnit.DAYS.toMillis(4), tonight - TimeUnit.DAYS.toMillis(3), 64396L)); in calcPoints_shouldNotDrawPointForFutureDate()
109 tonight - TimeUnit.DAYS.toMillis(3), tonight - TimeUnit.DAYS.toMillis(2), 2832L)); in calcPoints_shouldNotDrawPointForFutureDate()
111 tonight - TimeUnit.DAYS.toMillis(2), tonight - TimeUnit.DAYS.toMillis(1), 83849690L)); in calcPoints_shouldNotDrawPointForFutureDate()
113 tonight - TimeUnit.DAYS.toMillis(1), tonight, 1883657L)); in calcPoints_shouldNotDrawPointForFutureDate()
116 tonight, tonight + TimeUnit.DAYS.toMillis(1), 0L)); in calcPoints_shouldNotDrawPointForFutureDate()
118 tonight + TimeUnit.DAYS.toMillis(1), tonight + TimeUnit.DAYS.toMillis(2), 0L)); in calcPoints_shouldNotDrawPointForFutureDate()
120 tonight + TimeUnit.DAYS.toMillis(2), tonight + TimeUnit.DAYS.toMillis(3), 0L)); in calcPoints_shouldNotDrawPointForFutureDate()
122 tonight + TimeUnit.DAYS.toMillis(3), tonight + TimeUnit.DAYS.toMillis(4), 0L)); in calcPoints_shouldNotDrawPointForFutureDate()
[all …]
DDataUsageSummaryPreferenceTest.java141 - TimeUnit.DAYS.toMillis(baseUnit) - TimeUnit.HOURS.toMillis(smudge); in testCarrierUpdateTime_shouldFormatDaysCorrectly()
156 - TimeUnit.HOURS.toMillis(baseUnit) - TimeUnit.MINUTES.toMillis(smudge); in testCarrierUpdateTime_shouldFormatHoursCorrectly()
171 - TimeUnit.MINUTES.toMillis(baseUnit) - TimeUnit.SECONDS.toMillis(smudge); in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
183 final long updateTime = System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(45); in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly()
195 final long updateTime = System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(45); in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow()
207 final long updateTime = System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(2); in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime()
219 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont()
233 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(7); in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont()
266 final long cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(23); in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
291 final long cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(daysLeft) in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
[all …]
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DFavoriteChannelEvaluatorTest.java34 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2);
36 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1);
37 private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.toMillis(1);
94 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); in testMultiChannelsWithSimpleWatchLogs()
98 durationMs += TimeUnit.MINUTES.toMillis(30); in testMultiChannelsWithSimpleWatchLogs()
120 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1), in testTwoChannelsWithSameWatchDuration()
121 TimeUnit.MINUTES.toMillis(30)); in testTwoChannelsWithSameWatchDuration()
124 System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(30), in testTwoChannelsWithSameWatchDuration()
125 TimeUnit.MINUTES.toMillis(30)); in testTwoChannelsWithSameWatchDuration()
138 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(3), in testTwoChannelsWithDifferentWatchDuration()
[all …]
DRecentChannelEvaluatorTest.java36 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2);
38 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1);
39 private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.toMillis(1);
96 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); in testMultiChannelsWithSimpleWatchLogs()
99 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1)); in testMultiChannelsWithSimpleWatchLogs()
100 latestWatchEndTimeMs += TimeUnit.HOURS.toMillis(1); in testMultiChannelsWithSimpleWatchLogs()
128 long durationMs = TimeUnit.MINUTES.toMillis(10); in testScoreIncreasesWithNewWatchLog()
155 addWatchLog(newChannelId, latestWatchedEndTimeMs, TimeUnit.MINUTES.toMillis(10)); in testScoreDecreasesWithIncrementOfWatchedLogUpdatedTime()
DRoutineWatchEvaluatorTest.java150 createDummyProgram(todayAtHourMin(0, 0), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram()
160 createDummyProgram(todayAtHourMin(23, 30), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram()
170 createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram()
180 createDummyProgram(tomorrowAtHourMin(23, 30), TimeUnit.HOURS.toMillis(1))); in testProgramTime_createFromProgram()
190 createDummyProgram(todayAtHourMin(18, 0), TimeUnit.HOURS.toMillis(18))); in testProgramTime_createFromProgram()
205 createDummyProgram(todayAtHourMin(21, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore()
209 createDummyProgram(todayAtHourMin(22, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore()
213 createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore()
217 createDummyProgram(tomorrowAtHourMin(20, 0), TimeUnit.HOURS.toMillis(3))); in testCalculateOverlappedIntervalScore()
DRecommenderTest.java45 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2);
47 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1);
48 private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.toMillis(1);
248 System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(10)); in testListener_onRecommendationChanged()
255 channelId, latestWatchEndTimeMs, TimeUnit.MINUTES.toMillis(10))) in testListener_onRecommendationChanged()
257 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(10); in testListener_onRecommendationChanged()
DChannelRecordTest.java43 mLatestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1); in setUp()
125 mLatestWatchEndTimeMs += TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog()
127 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DInputTaskSchedulerTest.java64 private static final long LISTENER_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(1);
141 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1))); in testAddSchedule_start()
149 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
156 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
171 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoFail()
180 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoFail()
201 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveUseLessSession()
208 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveUseLessSession()
228 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)); in testUpdateSchedule_noCancel()
243 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(2)); in testUpdateSchedule_cancel()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java55 private static final long MILLIS_IN_A_DAY = TimeUnit.DAYS.toMillis(1);
56 private static final long WARNING_AGE = TimeUnit.HOURS.toMillis(6L);
347 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
348 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
349 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
350 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
351 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
352 return (updateAgeMillis / TimeUnit.MINUTES.toMillis(1)) * TimeUnit.MINUTES.toMillis(1); in calculateTruncatedUpdateAge()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreference.java55 private static final long MILLIS_IN_A_DAY = TimeUnit.DAYS.toMillis(1);
56 private static final long WARNING_AGE = TimeUnit.HOURS.toMillis(6L);
347 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
348 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
349 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
350 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
351 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
352 return (updateAgeMillis / TimeUnit.MINUTES.toMillis(1)) * TimeUnit.MINUTES.toMillis(1); in calculateTruncatedUpdateAge()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramInfo.java64 TimeUnit.MINUTES.toMillis(15),
65 TimeUnit.MINUTES.toMillis(45),
66 TimeUnit.MINUTES.toMillis(90),
67 TimeUnit.MINUTES.toMillis(60),
68 TimeUnit.MINUTES.toMillis(30),
69 TimeUnit.MINUTES.toMillis(45),
70 TimeUnit.MINUTES.toMillis(60),
71 TimeUnit.MINUTES.toMillis(90),
72 TimeUnit.HOURS.toMillis(5)
/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java36 private static final long ONE_HOUR_MILLIS = TimeUnit.HOURS.toMillis(1);
135 long toMillis = mProgramManager.getToUtcMillis(); in focusSearchAccessibility() local
138 if (focusedEntry.entryEndUtcMillis >= toMillis) { in focusSearchAccessibility()
139 scrollByTime(focusedEntry.entryEndUtcMillis - toMillis + HALF_HOUR_MILLIS); in focusSearchAccessibility()
148 long toMillis = mProgramManager.getToUtcMillis(); in focusSearch() local
159 if (focusedEntry.entryEndUtcMillis >= toMillis + ONE_HOUR_MILLIS) { in focusSearch()
169 if (focusedEntry.entryEndUtcMillis != toMillis) { in focusSearch()
171 scrollByTime(focusedEntry.entryEndUtcMillis - toMillis); in focusSearch()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java165 long start = mTempTime.toMillis(true); in updateUri()
169 long end = mTempTime.toMillis(true); in updateUri()
258 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff)); in setUpAdapter()
334 Time.getJulianDay(mSelectedDay.toMillis(true), mSelectedDay.gmtoff) in onCreateLoader()
364 goTo(mSelectedDay.toMillis(true), false, true, false); in doResumeUpdates()
413 Time.getJulianDay(event.selectedTime.toMillis(true), event.selectedTime.gmtoff) in handleEvent()
414 - Time.getJulianDay(mFirstVisibleDay.toMillis(true), mFirstVisibleDay.gmtoff) in handleEvent()
421 boolean delayAnimation = goTo(event.selectedTime.toMillis(true), animate, true, false); in handleEvent()
DSimpleDayPickerFragment.java130 long currentMillis = midnight.toMillis(true);
151 goTo(day.toMillis(true), true, true, false);
206 Time.getJulianDay(mSelectedDay.toMillis(false), mSelectedDay.gmtoff)); in setUpAdapter()
290 outState.putLong(KEY_CURRENT_TIME, mSelectedDay.toMillis(true)); in onSaveInstanceState()
305 goTo(mSelectedDay.toMillis(true), false, false, false); in doResumeUpdates()
357 return mSelectedDay.toMillis(true); in getSelectedTime()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java201 info.cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(numDays) in refreshUi_endTimeIsGreaterThanOneDay_setsBillingCycleText()
202 + TimeUnit.HOURS.toMillis(1); in refreshUi_endTimeIsGreaterThanOneDay_setsBillingCycleText()
217 info.cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(22); in refreshUi_endTimeIsLessThanOneDay_setsBillingCycleText()
268 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(numDays)); in refreshUi_hasCarrierName_hasOldUpdate_setsCarrierInfoText()
301 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(numDays)); in refreshUi_noCarrierName_hasOldUpdate_setsCarrierInfoText()
322 - TimeUnit.HOURS.toMillis(1)); in refreshUi_hasUpdateTimeOlderThanWarning_setsCarrierInfoStyle()
341 + TimeUnit.HOURS.toMillis(1)); in refreshUi_hasUpdateTimeYoungerThanWarning_setsCarrierInfoStyle()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java112 private static final long REQUEST_CURRENT_POSITION_INTERVAL = TimeUnit.SECONDS.toMillis(1);
113 private static final long MAX_PLACEHOLDER_PROGRAM_DURATION = TimeUnit.MINUTES.toMillis(30);
116 private static final long PREFETCH_TIME_OFFSET_FROM_PROGRAM_END = TimeUnit.MINUTES.toMillis(1);
117 private static final long PREFETCH_DURATION_FOR_NEXT = TimeUnit.HOURS.toMillis(2);
119 private static final long ALLOWED_START_TIME_OFFSET = TimeUnit.DAYS.toMillis(14);
120 private static final long TWO_WEEKS_MS = TimeUnit.DAYS.toMillis(14);
122 @VisibleForTesting static final long REQUEST_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3);
130 private static final long PROGRAM_START_TIME_THRESHOLD = TimeUnit.SECONDS.toMillis(3);
1181 delay = TimeUnit.SECONDS.toMillis(5); in schedulePrefetchPrograms()
1184 delay = TimeUnit.SECONDS.toMillis(30); in schedulePrefetchPrograms()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java75 static final long PERIODIC_PROGRAM_UPDATE_MIN_MS = TimeUnit.MINUTES.toMillis(5);
77 private static final long PERIODIC_PROGRAM_UPDATE_MAX_MS = TimeUnit.MINUTES.toMillis(10);
78 private static final long PROGRAM_PREFETCH_UPDATE_WAIT_MS = TimeUnit.SECONDS.toMillis(5);
80 private static final long CURRENT_PROGRAM_UPDATE_WAIT_MS = TimeUnit.SECONDS.toMillis(5);
81 @VisibleForTesting static final long PROGRAM_GUIDE_SNAP_TIME_MS = TimeUnit.MINUTES.toMillis(30);
84 private static final long FETCH_HOURS_MS = TimeUnit.HOURS.toMillis(24);
86 private static final long BUFFER_HOURS_MS = TimeUnit.HOURS.toMillis(6);
304 TimeUnit.HOURS.toMillis(mBackendKnobsFlags.programGuideMaxHours()); in prefetchChannel()
583 mEndTimeMs = mStartTimeMs + TimeUnit.HOURS.toMillis(getFetchDuration()); in ProgramsPrefetchTask()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryService.java86 private static final long UPDATE_FREQUENCY_MILLIS = TimeUnit.DAYS.toMillis(4);
92 private static final int MAX_ALARM_DELAY_MILLIS = (int)TimeUnit.HOURS.toMillis(6);
98 private static final long VERY_LONG_TIME_MILLIS = TimeUnit.DAYS.toMillis(14);
108 public static final long NO_CANCEL_DOWNLOAD_PERIOD_MILLIS = TimeUnit.SECONDS.toMillis(30);
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrChannelRecordDurationOptionFragment.java64 mDurations.add(TimeUnit.MINUTES.toMillis(10)); in onCreateActions()
65 mDurations.add(TimeUnit.MINUTES.toMillis(30)); in onCreateActions()
66 mDurations.add(TimeUnit.HOURS.toMillis(1)); in onCreateActions()
67 mDurations.add(TimeUnit.HOURS.toMillis(3)); in onCreateActions()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java54 private static final long MILLIS_IN_A_DAY = TimeUnit.DAYS.toMillis(1);
55 private static final long MILLIS_IN_AN_HOUR = TimeUnit.HOURS.toMillis(1);
56 private static final long MILLIS_IN_A_MINUTE = TimeUnit.MINUTES.toMillis(1);
57 private static final long MILLIS_IN_A_SECOND = TimeUnit.SECONDS.toMillis(1);
61 static final long WARNING_AGE = TimeUnit.HOURS.toMillis(6L);
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java85 .setEndTimeUtcMillis(TimeUnit.MINUTES.toMillis(30))
91 .setStartTimeUtcMillis(TimeUnit.MINUTES.toMillis(30))
92 .setEndTimeUtcMillis(TimeUnit.MINUTES.toMillis(60))
159 clock.setBootTimeMillis(getStartTimeMs() + TimeUnit.HOURS.toMillis(-12)); in loadData()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java88 mClock.time += TimeUnit.DAYS.toMillis(91); in testNotificationNotShownIfShownTooManyTimes()
108 mClock.time += TimeUnit.DAYS.toMillis(14); in testNotificationNotShownIfDismissedTooManyTimes()
134 mClock.time = TimeUnit.DAYS.toMillis(14); in testDismissNotificationDelay()
156 mClock.time = TimeUnit.DAYS.toMillis(90); in testNoThanksNotificationDelay()

12345678