/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | EnergyConsumerSnapshotTest.java | 60 private static final int VOLTAGE_0 = 4_000; 63 private static final int VOLTAGE_3 = 3_000; 68 createEnergyConsumerResult(CONSUMER_OTHER_0.id, 90_000, new int[]{47, 3}, 69 new long[]{14_000, 13_000}), 70 createEnergyConsumerResult(CONSUMER_DISPLAY.id, 14_000, null, null), 75 createEnergyConsumerResult(CONSUMER_DISPLAY.id, 24_000, null, null), 76 createEnergyConsumerResult(CONSUMER_OTHER_0.id, 90_000, new int[]{47, 3}, 77 new long[]{14_000, 13_000}), 78 createEnergyConsumerResult(CONSUMER_OTHER_2.id, 12_000, new int[]{6}, 79 new long[]{10_000}), [all …]
|
D | BatteryStatsNoteTest.java | 160 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 161 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 162 assertEquals(220_000, actualTime); in testNoteStartWakeLocked() 163 assertEquals(120_000, bgTime); in testNoteStartWakeLocked() 201 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUid() 202 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUid() 203 assertEquals(220_000, actualTime); in testNoteStartWakeLocked_isolatedUid() 204 assertEquals(120_000, bgTime); in testNoteStartWakeLocked_isolatedUid() 246 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUidRace() 247 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUidRace() [all …]
|
D | BluetoothPowerStatsProcessorTest.java | 199 mStatsRule.setTime(10_000, 10_000); in powerProfileModel_mostlyDataTransfer() 201 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_mostlyDataTransfer() local 203 processor.finish(aggregatedStats, 10_000); in powerProfileModel_mostlyDataTransfer() 300 mStatsRule.setTime(10_000, 10_000); in powerProfileModel_mostlyScan() 302 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_mostlyScan() local 304 processor.finish(aggregatedStats, 10_000); in powerProfileModel_mostlyScan() 402 mStatsRule.setTime(10_000, 10_000); in consumedEnergyModel() 409 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in consumedEnergyModel() local 411 processor.finish(aggregatedStats, 10_000); in consumedEnergyModel()
|
D | WifiPowerStatsProcessorTest.java | 233 mStatsRule.setTime(10_000, 10_000); in powerProfileModel_powerController() 235 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_powerController() local 237 processor.finish(aggregatedStats, 10_000); in powerProfileModel_powerController() 349 mStatsRule.setTime(10_000, 10_000); in consumedEnergyModel_powerController() 356 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in consumedEnergyModel_powerController() local 358 processor.finish(aggregatedStats, 10_000); in consumedEnergyModel_powerController() 453 mStatsRule.setTime(10_000, 10_000); in powerProfileModel_noPowerController() 455 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_noPowerController() local 457 processor.finish(aggregatedStats, 10_000); in powerProfileModel_noPowerController()
|
D | PhoneCallPowerStatsProcessorTest.java | 202 mStatsRule.setTime(10_000, 10_000); in copyEstimatesFromMobileRadioPowerStats() 204 aggregatedPowerStats.addPowerStats(collector.collectStats(), 10_000); in copyEstimatesFromMobileRadioPowerStats() local 206 mobileStatsProcessor.finish(mobileRadioStats, 10_000); in copyEstimatesFromMobileRadioPowerStats() 210 phoneStatsProcessor.finish(stats, 10_000); in copyEstimatesFromMobileRadioPowerStats()
|
D | BatteryStatsUserLifecycleTests.java | 57 private static final long USER_REMOVE_TIMEOUT_MS = 5_000; 58 private static final long STOP_USER_TIMEOUT_MS = 20_000; 59 private static final long USER_UIDS_REMOVE_TIMEOUT_MS = 20_000; 60 private static final long BATTERYSTATS_POLLING_TIMEOUT_MS = 5_000;
|
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 | SystemServicePowerCalculatorTest.java | 228 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{50_000, 80_000}); in prepareBatteryStats() 239 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{20_000, 30_000, 40_000, 40_000}); in prepareBatteryStats()
|
D | BatteryStatsSensorTest.java | 55 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop() 77 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop() 81 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop() 397 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorReset() 509 assertEquals(111_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 511 assertEquals(111_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 530 assertEquals(112_000, timer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes() 532 assertEquals(112_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
|
D | IdlePowerCalculatorTest.java | 50 mStatsRule.setTime(3_000, 2_000); in testTimerBasedModel()
|
D | MobileRadioPowerStatsProcessorTest.java | 225 mStatsRule.setTime(10_000, 10_000); in powerProfileModel() 229 aggregatedStats.addPowerStats(powerStats, 10_000); in powerProfileModel() 231 processor.finish(aggregatedStats, 10_000); in powerProfileModel() 465 mStatsRule.setTime(10_000, 10_000); in prepareAggregatedStats_energyConsumerModel() 476 aggregatedStats.addPowerStats(powerStats, 10_000); in prepareAggregatedStats_energyConsumerModel() 478 processor.finish(aggregatedStats, 10_000); in prepareAggregatedStats_energyConsumerModel()
|
D | MobileRadioPowerCalculatorTest.java | 147 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel() 291 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel_multipleDefinedRat() 424 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel_legacyPowerProfile() 564 mStatsRule.setTime(12_000, 12_000); in testTimerBasedModel_byProcessState() 637 mStatsRule.setTime(12_000, 12_000); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 771 mStatsRule.setTime(10_000, 10_000); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 924 mStatsRule.setTime(12_000, 12_000); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel_legacyPowerProfile()
|
D | WakelockPowerCalculatorTest.java | 67 mStatsRule.setTime(10_000, 6_000); in testTimerBasedModel()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | ScanResultUpdaterTest.java | 80 long maxScanAge = 15_000; in testGetScanResults_filtersOldScans() 99 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testGetScanResults_invalidMaxScanAgeMillis_throwsException() 101 sru.getScanResults(20_000); in testGetScanResults_invalidMaxScanAgeMillis_throwsException() 113 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testConstructor_maxScanAge_filtersOldScans() 115 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testConstructor_maxScanAge_filtersOldScans() 116 ScanResult scan2 = buildScanResult(SSID, BSSID_2, NOW_MILLIS - 15_000); in testConstructor_maxScanAge_filtersOldScans() 117 ScanResult scan3 = buildScanResult(SSID, BSSID_3, NOW_MILLIS - 20_000); in testConstructor_maxScanAge_filtersOldScans() 132 ScanResultUpdater sru = new ScanResultUpdater(mMockClock, 15_000); in testGetScanResults_overridesConstructorMaxScanAge() 134 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testGetScanResults_overridesConstructorMaxScanAge() 135 ScanResult scan2 = buildScanResult(SSID, BSSID_2, NOW_MILLIS - 15_000); in testGetScanResults_overridesConstructorMaxScanAge() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | UserWakeupStoreTest.java | 54 private static final long TEST_TIMESTAMP = 150_000; 91 mUserWakeupStore.addUserWakeup(USER_ID_1, TEST_TIMESTAMP - 19_000); in testAddWakeups() 92 mUserWakeupStore.addUserWakeup(USER_ID_2, TEST_TIMESTAMP - 7_000); in testAddWakeups() 93 mUserWakeupStore.addUserWakeup(USER_ID_3, TEST_TIMESTAMP - 13_000); in testAddWakeups() 114 final long finalAlarmTime = TEST_TIMESTAMP - 13_000; in testAddMultipleWakeupsForUser_ensureOnlyLastWakeupRemains() 115 mUserWakeupStore.addUserWakeup(USER_ID_1, TEST_TIMESTAMP - 29_000); in testAddMultipleWakeupsForUser_ensureOnlyLastWakeupRemains() 116 mUserWakeupStore.addUserWakeup(USER_ID_1, TEST_TIMESTAMP - 7_000); in testAddMultipleWakeupsForUser_ensureOnlyLastWakeupRemains() 127 mUserWakeupStore.addUserWakeup(USER_ID_1, TEST_TIMESTAMP - 19_000); in testRemoveWakeupForUser_negativeWakeupTimeIsReturnedForUser() 128 mUserWakeupStore.addUserWakeup(USER_ID_2, TEST_TIMESTAMP - 7_000); in testRemoveWakeupForUser_negativeWakeupTimeIsReturnedForUser() 129 mUserWakeupStore.addUserWakeup(USER_ID_3, TEST_TIMESTAMP - 13_000); in testRemoveWakeupForUser_negativeWakeupTimeIsReturnedForUser() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/ |
D | CpuInfoReaderTest.java | 155 /* irqTimeMillis= */ 1_400_000, /* softirqTimeMillis= */ 80_000, in testReadCpuInfoWithTimeInState() 156 /* stealTimeMillis= */ 21_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 162 new CpuInfoReader.CpuUsageStats(/* userTimeMillis= */ 900_000, in testReadCpuInfoWithTimeInState() 164 /* idleTimeMillis= */ 1_000_000, /* iowaitTimeMillis= */ 90_000, in testReadCpuInfoWithTimeInState() 165 /* irqTimeMillis= */ 200_000, /* softirqTimeMillis= */ 100_000, in testReadCpuInfoWithTimeInState() 166 /* stealTimeMillis= */ 100_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 177 /* stealTimeMillis= */ 100_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 186 /* idleTimeMillis= */ 100_000, /* iowaitTimeMillis= */ 100_000, in testReadCpuInfoWithTimeInState() 187 /* irqTimeMillis= */ 100_000, /* softirqTimeMillis= */ 1_000_000, in testReadCpuInfoWithTimeInState() 188 /* stealTimeMillis= */ 1_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | RampAnimatorTest.java | 64 mRampAnimator.setAnimationTimeLimits(2_000, 2_000); in testAnimationStep_respectTimeLimits() 80 mRampAnimator.setAnimationTimeLimits(2_000, 2_000); in testAnimationStep_ignoreTimeLimits()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | BigIntegerPerfTest.java | 66 for (int i = 10; i <= 10_000; i *= 10) { in repeatInner() 90 for (int i = 5; i <= 5_000; i *= 10) { in repeatHarmonic1000() 111 for (int i = 5; i <= 5_000; i *= 10) { in repeatToString() 151 for (int i = 10; i <= 10_000; i *= 10) { in repeatEApprox() 152 BigInteger refRes = eApprox(100_000, i); in repeatEApprox() 153 BigInteger newRes = eApprox(100_000, i); in repeatEApprox() 159 "eApprox(" + 100_000 + "," + i + ") incorrectly produced " + refRes); in repeatEApprox() 203 for (int i = 10; i <= 10_000; i *= 10) { in repeatModInverse()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionDeviceConfig.java | 34 private static final long DEFAULT_MEDIA_BUTTON_RECEIVER_FGS_ALLOWLIST_DURATION_MS = 10_000; 45 private static final long DEFAULT_MEDIA_SESSION_CALLBACK_FGS_ALLOWLIST_DURATION_MS = 10_000; 57 = 10_000;
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastConstants.java | 60 private static final long DEFAULT_TIMEOUT = 10_000 * Build.HW_TIMEOUT_MULTIPLIER; 62 10_000 * Build.HW_TIMEOUT_MULTIPLIER; 213 private static final long DEFAULT_DELAY_CACHED_MILLIS = +120_000; 222 private static final long DEFAULT_DELAY_URGENT_MILLIS = -120_000; 232 private static final long DEFAULT_DELAY_FOREGROUND_PROC_MILLIS = -120_000; 242 private static final long DEFAULT_DELAY_PERSISTENT_PROC_MILLIS = -120_000; 278 private static final long DEFAULT_PENDING_COLD_START_CHECK_INTERVAL_MILLIS = 30_000;
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsHandlerThread.java | 28 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000; 29 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
|
/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/apex/jobscheduler/service/java/com/android/server/ |
D | AppSchedulingModuleThread.java | 34 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000; 35 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BackgroundThread.java | 32 private static final long SLOW_DISPATCH_THRESHOLD_MS = 10_000; 33 private static final long SLOW_DELIVERY_THRESHOLD_MS = 30_000;
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | SystemServerCpuThreadReader.java | 128 result.threadCpuTimesUs[i] = processCpuUsage.threadCpuTimesMillis[i] * 1_000; in readAbsolute() 130 processCpuUsage.selectedThreadCpuTimesMillis[i] * 1_000; in readAbsolute()
|