/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 109 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 110 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 111 assertEquals(220_000, actualTime); in testNoteStartWakeLocked() 112 assertEquals(120_000, bgTime); in testNoteStartWakeLocked() 264 bi.updateTimeBasesLocked(true, Display.STATE_UNKNOWN, 100_000, 100_000); in testNoteScreenStateTimersLocked() 268 assertEquals(150_000, bi.computeBatteryRealtime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked() 269 assertEquals(100_000, bi.computeBatteryScreenOffRealtime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked() 270 assertEquals(50_000, bi.getScreenOnTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked() 271 assertEquals(0, bi.getScreenDozeTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked() 275 assertEquals(250_000, bi.computeBatteryRealtime(350_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked() [all …]
|
D | BatteryStatsDurationTimerTest.java | 116 timeBase.setRunning(true, /* uptimeUs */ 0, /* realtimeUs */ 100_000); in testReset() 125 assertEquals(0, timer.getCurrentDurationMsLocked(12_000)); in testReset() 152 timeBase.setRunning(true, /* uptimeUs */ 0, /* realtimeUs */ 100_000); in testResetAndDetach() 161 clocks.uptime = clocks.realtime = 7_000; in testResetAndDetach() 162 assertEquals(0, timer.getCurrentDurationMsLocked(8_000)); in testResetAndDetach()
|
D | BatteryStatsSensorTest.java | 42 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop() 64 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop() 68 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop() 385 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorReset() 497 assertEquals(111_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 499 assertEquals(111_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 518 assertEquals(112_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 520 assertEquals(112_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
|
D | BatteryStatsUserLifecycleTests.java | 52 private static final long USER_REMOVE_TIMEOUT_MS = 5_000; 53 private static final long STOP_USER_TIMEOUT_MS = 10_000; 54 private static final long BATTERYSTATS_POLLING_TIMEOUT_MS = 5_000;
|
D | BatteryStatsBackgroundStatsTest.java | 81 assertEquals(106_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase() 88 assertEquals(114_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase() 96 assertEquals(227_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase() 103 assertEquals(227_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase() 152 assertEquals(150_000, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testScreenOffBgTimeBase()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/ |
D | FingerprintMixerTest.java | 90 int iterations = 100_000; in getAddend_withDifferentKey_returnsDifferentResult() 109 int iterations = 100_000; in getMultiplicand_withDifferentKey_returnsDifferentResult() 125 int iterations = 100_000; in getMultiplicand_isOdd() 139 int iterations = 100_000; in mix_randomlyDistributesBits() 164 int iterations = 100_000; in mix_doesNotProduceSameNumberAsInput()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastConstants.java | 45 private static final long DEFAULT_TIMEOUT = 10_000; 46 private static final long DEFAULT_SLOW_TIME = 5_000; 47 private static final long DEFAULT_DEFERRAL = 5_000; 50 private static final long DEFAULT_ALLOW_BG_ACTIVITY_START_TIMEOUT = 10_000;
|
D | AppCompactor.java | 90 @VisibleForTesting static final long DEFAULT_COMPACT_THROTTLE_1 = 5_000; 91 @VisibleForTesting static final long DEFAULT_COMPACT_THROTTLE_2 = 10_000; 93 @VisibleForTesting static final long DEFAULT_COMPACT_THROTTLE_4 = 10_000;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLinkLayerStatsTest.java | 141 mWifiLinkLayerStats.timeStampInMs += 10_000; in afterSourceSwitchTheRatesShouldGetReset() 146 mWifiLinkLayerStats.timeStampInMs += 10_000; in afterSourceSwitchTheRatesShouldGetReset() 155 mWifiLinkLayerStats.timeStampInMs += 10_000; in afterSourceSwitchTheRatesShouldGetReset() 161 mWifiLinkLayerStats.timeStampInMs += 10_000; in afterSourceSwitchTheRatesShouldGetReset()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | ReferenceTestUtils.java | 40 if (q.remove(5_000) == ref) { in createCollectionWaiter() 53 long deadline = SystemClock.uptimeMillis() + 5_000; in waitForCondition()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BackgroundThread.java | 31 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000; 32 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
|
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/ |
D | TestJobActivity.java | 35 public static final int JOB_INITIAL_BACKOFF = 10_000; 36 public static final int JOB_MINIMUM_LATENCY = 5_000;
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 113 checkFormatBytes(1_000, FLAG_SI_UNITS, "1.00", 1_000); in testFormatBytesSi() 123 checkFormatBytes(1_000, FLAG_IEC_UNITS, "0.98", 1_003); in testFormatBytesIec()
|
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 114 Thread.sleep(60_000); in main() 117 Thread.sleep(15_000); in main() 119 Thread.sleep(75_000); in main()
|
/frameworks/base/core/java/android/util/ |
D | DataUnit.java | 36 KILOBYTES { @Override public long toBytes(long v) { return v * 1_000; } }, in toBytes()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | SlowReceiver.java | 27 private static final long RECEIVER_DELAY = 6_000;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderWorkSourceTest.java | 88 final long timeoutMs = System.currentTimeMillis() + 30_000; in setUp() 91 Thread.sleep(1_000); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManagerTest.java | 43 private static final int TEST_A11Y_TIMEOUT_TIME = 5_000;
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 114 return totalTimeMillis / 60_000; in totalMinutes() 329 + ": " + (deltaTime / 1_000) + "s " in endLastStateLocked()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | ContentCaptureManager.java | 268 public static final int DEFAULT_IDLE_FLUSHING_FREQUENCY_MS = 5_000; 270 public static final int DEFAULT_TEXT_CHANGE_FLUSHING_FREQUENCY_MS = 1_000;
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 181 advanceElapsedClock(30_000); // 30 seconds in testGetRescheduleJobForPeriodic_minPeriod() 187 assertEquals(nextWindowStartTime + i * 30_000, rescheduledJob.getEarliestRunTime()); in testGetRescheduleJobForPeriodic_minPeriod() 189 advanceElapsedClock(30_000); // 30 seconds in testGetRescheduleJobForPeriodic_minPeriod()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 235 .setMinimumLatency(60_000) in testWouldBeReadyWithConstraint_RequestedTimingDelay() 256 .setOverrideDeadline(300_000) in testWouldBeReadyWithConstraint_RequestedOverrideDeadline() 412 .setOverrideDeadline(300_000) in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
|
/frameworks/base/services/appprediction/java/com/android/server/appprediction/ |
D | AppPredictionManagerService.java | 58 private static final int MAX_TEMP_SERVICE_DURATION_MS = 1_000 * 60 * 2; // 2 minutes
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentResolverTest.java | 51 private int mSize = 256_000;
|
/frameworks/base/tests/net/java/android/net/ |
D | TcpKeepalivePacketDataTest.java | 123 final int wnd = 48_000; in testParcel()
|