/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | SystemUpdatePolicyTest.java | 269 final long millis_2018_01_01 = toMillis(2018, 1, 1); in testInstallationOptionWithoutFreeze() 281 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze() 285 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze() 286 millis_2018_01_01 + TimeUnit.HOURS.toMillis(2), p); in testInstallationOptionWithoutFreeze() 288 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(22), in testInstallationOptionWithoutFreeze() 289 millis_2018_01_01 + TimeUnit.HOURS.toMillis(4), p); in testInstallationOptionWithoutFreeze() 293 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze() 294 millis_2018_01_01 + TimeUnit.HOURS.toMillis(21), p); in testInstallationOptionWithoutFreeze() 297 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze() 300 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(19), in testInstallationOptionWithoutFreeze() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | CacheOomRankerTest.java | 175 Duration.ofMinutes(40).toMillis(), 10 * 1024L, 1000); in reRankLruCachedApps_lruImpactsOrdering() 178 Duration.ofMinutes(42).toMillis(), 20 * 1024L, 2000); in reRankLruCachedApps_lruImpactsOrdering() 181 Duration.ofMinutes(60).toMillis(), 1024L, 10000); in reRankLruCachedApps_lruImpactsOrdering() 184 Duration.ofMinutes(15).toMillis(), 100 * 1024L, 10); in reRankLruCachedApps_lruImpactsOrdering() 187 Duration.ofMinutes(17).toMillis(), 1024L, 20); in reRankLruCachedApps_lruImpactsOrdering() 191 Duration.ofMinutes(30).toMillis(), 1024L, 20); in reRankLruCachedApps_lruImpactsOrdering() 212 Duration.ofMinutes(40).toMillis(), 10 * 1024L, 1000); in reRankLruCachedApps_rssImpactsOrdering() 215 Duration.ofMinutes(42).toMillis(), 20 * 1024L, 2000); in reRankLruCachedApps_rssImpactsOrdering() 218 Duration.ofMinutes(60).toMillis(), 1024L, 10000); in reRankLruCachedApps_rssImpactsOrdering() 221 Duration.ofMinutes(15).toMillis(), 100 * 1024L, 10); in reRankLruCachedApps_rssImpactsOrdering() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | NitzDataTest.java | 51 assertEquals(TimeUnit.MINUTES.toMillis(-1 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 58 assertEquals(TimeUnit.MINUTES.toMillis(8 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 59 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst() 65 assertEquals(TimeUnit.MINUTES.toMillis(-8 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 66 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst() 76 assertEquals(TimeUnit.MINUTES.toMillis(4 * 15), nitz.getLocalOffsetMillis()); in testParse_noDstField() 83 assertEquals(TimeUnit.MINUTES.toMillis(-4 * 15), nitz.getLocalOffsetMillis()); in testParse_noDstField() 93 assertEquals(TimeUnit.MINUTES.toMillis(-32 * 15), nitz.getLocalOffsetMillis()); in testParse_androidEmulatorTimeZoneExtension() 94 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_androidEmulatorTimeZoneExtension()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | TimeZoneLookupHelperTest.java | 75 int lonSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz() 76 int lonSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz() 116 int mtvSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(-8); in testLookupByNitzByNitz() 117 int mtvSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz() 120 int mtvWinterOffsetMillis = (int) TimeUnit.HOURS.toMillis(-7); in testLookupByNitzByNitz() 229 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown() 230 Integer expectedDstOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown() 257 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown() 284 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown() 301 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 73 private static final long ONE_HOUR_MILLIS = Duration.ofHours(1).toMillis(); 75 public static final long BELOW_HYBRID_THRESHOLD = TimeUnit.HOURS.toMillis(2); 76 public static final long BELOW_SEVERE_HYBRID_THRESHOLD = TimeUnit.MINUTES.toMillis(30); 77 public static final long ABOVE_HYBRID_THRESHOLD = TimeUnit.HOURS.toMillis(4); 78 private static final long ABOVE_CHARGE_CYCLE_THRESHOLD = Duration.ofHours(8).toMillis(); 81 private static final long VERY_BELOW_SEVERE_HYBRID_THRESHOLD = TimeUnit.MINUTES.toMillis(15); 351 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testMaybeShowHybridWarning() 362 state.mTimeRemainingMillis = Duration.ofMinutes(10).toMillis(); in testMaybeShowHybridWarning() 372 state.mTimeRemainingMillis = Duration.ofDays(1).toMillis(); in testMaybeShowHybridWarning() 389 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | PowerUtilTest.java | 38 private static final long TEN_SEC_MILLIS = Duration.ofSeconds(10).toMillis(); 39 private static final long SEVENTEEN_MIN_MILLIS = Duration.ofMinutes(17).toMillis(); 40 private static final long FIVE_MINUTES_MILLIS = Duration.ofMinutes(5).toMillis(); 41 private static final long TEN_MINUTES_MILLIS = Duration.ofMinutes(10).toMillis(); 42 private static final long THREE_DAYS_MILLIS = Duration.ofDays(3).toMillis(); 43 private static final long TEN_HOURS_MILLIS = Duration.ofHours(10).toMillis(); 44 private static final long THIRTY_HOURS_MILLIS = Duration.ofHours(30).toMillis();
|
/frameworks/base/services/core/java/com/android/server/ |
D | PreloadsFileCacheExpirationJobService.java | 53 long keepPreloadsMinTimeoutMs = DEBUG ? TimeUnit.MINUTES.toMillis(2) in schedule() 54 : TimeUnit.DAYS.toMillis(keepPreloadsMinDays); in schedule() 55 long keepPreloadsMaxTimeoutMs = DEBUG ? TimeUnit.MINUTES.toMillis(3) in schedule() 56 : TimeUnit.DAYS.toMillis(keepPreloadsMinDays + 1); in schedule()
|
D | ZramWriteback.java | 130 .setMinimumLatency(TimeUnit.HOURS.toMillis(nextWbDelay)) in schedNextWriteback() 179 .setMinimumLatency(TimeUnit.MINUTES.toMillis(markIdleDelay)) in scheduleZramWriteback() 180 .setOverrideDeadline(TimeUnit.MINUTES.toMillis(markIdleDelay)) in scheduleZramWriteback() 187 .setMinimumLatency(TimeUnit.MINUTES.toMillis(firstWbDelay)) in scheduleZramWriteback()
|
D | PruneInstantAppsJobService.java | 36 ? TimeUnit.MINUTES.toMillis(1) : TimeUnit.DAYS.toMillis(1);
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | VibratorPerfTest.java | 57 mVibrator.vibrate(VibrationEffect.createOneShot(SECONDS.toMillis(2), in testOneShot() 65 long[] timings = new long[]{SECONDS.toMillis(1), SECONDS.toMillis(2), SECONDS.toMillis(1)}; in testWaveform()
|
/frameworks/base/tests/vcn/java/android/net/vcn/ |
D | VcnGatewayConnectionConfigTest.java | 60 TimeUnit.SECONDS.toMillis(5), 61 TimeUnit.SECONDS.toMillis(30), 62 TimeUnit.MINUTES.toMillis(1), 63 TimeUnit.MINUTES.toMillis(5), 64 TimeUnit.MINUTES.toMillis(15), 65 TimeUnit.MINUTES.toMillis(30)
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomainTest.java | 138 domain.postDelayed(testLogic, executionDelay.toMillis()); in postDelayed() 142 executionDelay.multipliedBy(10).toMillis(), TimeUnit.MILLISECONDS); in postDelayed() 174 Thread.sleep(workDuration.toMillis()); in postAndWait() 181 domain.postAndWait(testLogic, workDuration.multipliedBy(10).toMillis()); in postAndWait() 206 singleRunnableQueue.runDelayed(firstRunnable, TimeUnit.SECONDS.toMillis(10)); in singleRunnableQueue_runDelayed() 209 singleRunnableQueue.runDelayed(secondRunnable, TimeUnit.SECONDS.toMillis(10)); in singleRunnableQueue_runDelayed() 211 mTestHandler.runWithScissors(runDelayedTestRunnable, TimeUnit.SECONDS.toMillis(60)); in singleRunnableQueue_runDelayed()
|
/frameworks/base/core/java/android/net/vcn/ |
D | VcnGatewayConnectionConfig.java | 148 private static final long MINIMUM_REPEATING_RETRY_INTERVAL_MS = TimeUnit.MINUTES.toMillis(15); 152 TimeUnit.SECONDS.toMillis(1), 153 TimeUnit.SECONDS.toMillis(2), 154 TimeUnit.SECONDS.toMillis(5), 155 TimeUnit.SECONDS.toMillis(30), 156 TimeUnit.MINUTES.toMillis(1), 157 TimeUnit.MINUTES.toMillis(5), 158 TimeUnit.MINUTES.toMillis(15)
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCountTest.java | 74 setTimeMillis(TimeUnit.HOURS.toMillis(4)); in getCount_includesResultsInLastTwentyFourHours() 76 setTimeMillis(TimeUnit.HOURS.toMillis(23)); in getCount_includesResultsInLastTwentyFourHours() 87 setTimeMillis(TimeUnit.HOURS.toMillis(24)); in getCount_ignoresResultsOlderThanTwentyFourHours() 123 setTimeMillis(TimeUnit.HOURS.toMillis(24)); in record_compactsFileToLast24Hours()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderEndToEndTest.java | 79 targetDuration.toMillis(), resultDuration.toMillis(), in testTimedWork() 99 ((double) highResultDuration.toMillis()) / ((double) lowResultDuration.toMillis()), in testIterativeWork() 164 final long durationMillis = duration.toMillis(); in timedWork()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | PowerUtil.java | 39 private static final long SEVEN_MINUTES_MILLIS = TimeUnit.MINUTES.toMillis(7); 40 private static final long FIFTEEN_MINUTES_MILLIS = TimeUnit.MINUTES.toMillis(15); 41 private static final long ONE_DAY_MILLIS = TimeUnit.DAYS.toMillis(1); 42 private static final long TWO_DAYS_MILLIS = TimeUnit.DAYS.toMillis(2); 43 private static final long ONE_HOUR_MILLIS = TimeUnit.HOURS.toMillis(1); 44 private static final long ONE_MIN_MILLIS = TimeUnit.MINUTES.toMillis(1);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | SharesheetModelScorerTest.java | 63 NOW - Duration.ofHours(23).toMillis(), 64 NOW - Duration.ofHours(22).toMillis()); 66 NOW - Duration.ofHours(50).toMillis(), 67 NOW - Duration.ofHours(49).toMillis()); 69 NOW - Duration.ofDays(6).toMillis(), 70 NOW - Duration.ofDays(5).toMillis()); 72 NOW - Duration.ofDays(9).toMillis(), 73 NOW - Duration.ofDays(8).toMillis()); 75 NOW - Duration.ofDays(13).toMillis(), 76 NOW - Duration.ofDays(12).toMillis()); [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | System_Delegate.java | 58 return TimeUnit.NANOSECONDS.toMillis(mNanosTime.get()); in currentTimeMillis() 66 return TimeUnit.NANOSECONDS.toMillis(mBootNanosTime.get()); in bootTimeMillis()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 141 assertEquals(1000L, t.toMillis()); in testToMillis() 144 assertEquals(1580515200000L, t.toMillis()); in testToMillis() 146 assertEquals(1580515201000L, t.toMillis()); in testToMillis() 149 assertEquals(1577836800000L, t.toMillis()); in testToMillis() 151 assertEquals(1580515200000L, t.toMillis()); in testToMillis() 158 assertEquals(1580515200000L, t.toMillis()); in testToMillis_overflow() 364 long ms = t.toMillis(); in testSetToNow() 578 assertEquals(1194249600000L, time.toMillis()); 584 assertEquals(1173682800000L, time.toMillis()); 615 time.toMillis()); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/ |
D | LogBufferEulogizer.kt | 143 return systemClock.currentTimeMillis() - (stats?.lastModifiedTime()?.toMillis() ?: 0) in <lambda>() 148 private val MIN_WRITE_GAP = TimeUnit.MINUTES.toMillis(5) 149 private val MAX_AGE_TO_DUMP = TimeUnit.HOURS.toMillis(48)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | ExecutorImpl.java | 47 mHandler.sendMessageDelayed(m, unit.toMillis(delay)); in executeDelayed() 56 mHandler.sendMessageAtTime(m, unit.toMillis(uptimeMillis)); in executeAtTime()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 231 long timeInMillis = calculator.toMillis(ignoreDst); in normalize() 750 public long toMillis(boolean ignoreDst) { in toMillis() method in Time 752 return calculator.toMillis(ignoreDst); in toMillis() 954 long millis = time.toMillis(true); in isEpoch() 1085 public long toMillis(boolean ignoreDst) { in toMillis() method in Time.TimeCalculator 1207 toMillis(false /* use isDst */) / 1000 in toStringInternal() 1250 long am = aObject.toMillis(false /* use isDst */); in compare() 1251 long bm = bObject.toMillis(false /* use isDst */); in compare()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreConfig.java | 71 public static final long DEFAULT_IDLE_JOB_PERIOD_MS = TimeUnit.DAYS.toMillis(1); 79 public static final long DEFAULT_SESSION_EXPIRY_TIMEOUT_MS = TimeUnit.DAYS.toMillis(7); 110 TimeUnit.HOURS.toMillis(6); 122 TimeUnit.HOURS.toMillis(48); 141 TimeUnit.HOURS.toMillis(6);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 294 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBrightnessEvent() 305 assertEquals(mInjector.currentTimeMillis() - TimeUnit.SECONDS.toMillis(2), in testBrightnessEvent() 367 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testIgnoreAutomaticBrightnessChange() 425 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents() 440 mInjector.currentTimeMillis() - i * TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents() 450 long someTimeAgo = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(12); in testReadEvents() 451 long twoMonthsAgo = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(60); in testReadEvents() 556 Long.toString(System.currentTimeMillis() - TimeUnit.HOURS.toMillis(12)); in testFailedRead() 601 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testWriteThenRead() 604 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(3)); in testWriteThenRead() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedTimeoutHandler.java | 42 private long mTimeoutMs = TimeUnit.SECONDS.toMillis(mTimeout); 76 mTimeoutMs = TimeUnit.SECONDS.toMillis(mTimeout); in setTimeout()
|