/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | EnergyConsumerSnapshotTest.java | 70 new long[]{14_000, 13_000}), 78 new long[]{14_000, 13_000}), 95 new long[]{9_000, 18_000, 14_000, 6_000}), 102 new long[]{6_000, 14_000, 18_000, 11_000}), 105 new long[]{10_000, 8_000}), 131 expectedChargeUC = calculateChargeConsumedUC(14_000, VOLTAGE_0, 24_000, VOLTAGE_1); in testUpdateAndGetDelta() 136 expectedChargeUC = calculateChargeConsumedUC(90_000, VOLTAGE_0, 90_000, VOLTAGE_1); in testUpdateAndGetDelta() 150 expectedChargeUC = calculateChargeConsumedUC(24_000, VOLTAGE_1, 36_000, VOLTAGE_2); in testUpdateAndGetDelta() 166 expectedChargeUC = calculateChargeConsumedUC(12_000, VOLTAGE_1, 13_000, VOLTAGE_3); in testUpdateAndGetDelta() 196 expectedChargeUC = calculateChargeConsumedUC(9_000, VOLTAGE_3, 11_000, VOLTAGE_4); in testUpdateAndGetDelta() [all …]
|
H A D | BatteryStatsNoteTest.java | 613 assertEquals(50_000, bi.getDisplayScreenOnTime(0, 250_000)); in testNoteScreenStateTimersLocked() 622 assertEquals(110_000, bi.getDisplayScreenOnTime(0, 350_000)); in testNoteScreenStateTimersLocked() 631 assertEquals(110_000, bi.getDisplayScreenOnTime(0, 500_000)); in testNoteScreenStateTimersLocked() 665 assertEquals(50_000, bi.getDisplayScreenOnTime(0, 250_000)); in testNoteScreenStateTimersLocked_multiDisplay() 676 assertEquals(110_000, bi.getDisplayScreenOnTime(0, 350_000)); in testNoteScreenStateTimersLocked_multiDisplay() 687 assertEquals(110_000, bi.getDisplayScreenOnTime(0, 500_000)); in testNoteScreenStateTimersLocked_multiDisplay() 758 assertEquals(50_000, bi.getDisplayScreenOnTime(1, 2250_000)); in testNoteScreenStateTimersLocked_multiDisplay() 1269 newChargesA.put(uid1, 7_000); blame1A += 7_000; in testUpdateCustomMeasuredEnergyStatsLocked() 1274 newChargesB.put(uid1, 63_000); blame1B += 63_000; in testUpdateCustomMeasuredEnergyStatsLocked() 1275 newChargesB.put(uid2, 15_000); blame2B += 15_000; in testUpdateCustomMeasuredEnergyStatsLocked() [all …]
|
H A D | BatteryStatsUserLifecycleTests.java | 52 private static final long USER_REMOVE_TIMEOUT_MS = 5_000; 53 private static final long STOP_USER_TIMEOUT_MS = 20_000; 54 private static final long USER_UIDS_REMOVE_TIMEOUT_MS = 20_000; 55 private static final long BATTERYSTATS_POLLING_TIMEOUT_MS = 5_000;
|
H A D | SystemServicePowerCalculatorTest.java | 215 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{50_000, 80_000}); in prepareBatteryStats() 226 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{20_000, 30_000, 40_000, 40_000}); in prepareBatteryStats()
|
H A 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()
|
H A D | BatteryStatsSensorTest.java | 43 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop() 65 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop() 69 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()
|
H A D | IdlePowerCalculatorTest.java | 44 mStatsRule.setTime(3_000, 2_000); in testTimerBasedModel()
|
H A D | BatteryUsageStatsStoreTest.java | 101 assertThat(batteryUsageStats.getDischargeDurationMs()).isEqualTo(1_000_000 - 1_000); in testStoreSnapshot() 172 mMockClock.realtime + 500_000, mMockClock.uptime + 500_000, in prepareBatteryStats() 173 mMockClock.currentTime + 500_000); in prepareBatteryStats()
|
H A D | MobileRadioPowerCalculatorTest.java | 141 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel() 283 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel_multipleDefinedRat() 416 mStatsRule.setTime(10_000, 10_000); in testCounterBasedModel_legacyPowerProfile() 556 mStatsRule.setTime(12_000, 12_000); in testTimerBasedModel_byProcessState() 629 mStatsRule.setTime(12_000, 12_000); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 763 mStatsRule.setTime(10_000, 10_000); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 916 mStatsRule.setTime(12_000, 12_000); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel_legacyPowerProfile()
|
H A D | WakelockPowerCalculatorTest.java | 59 mStatsRule.setTime(10_000, 6_000); in testTimerBasedModel()
|
H A 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()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/ |
H A D | CpuInfoReaderTest.java | 156 /* stealTimeMillis= */ 21_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 162 new CpuInfoReader.CpuUsageStats(/* userTimeMillis= */ 900_000, in testReadCpuInfoWithTimeInState() 165 /* irqTimeMillis= */ 200_000, /* softirqTimeMillis= */ 100_000, in testReadCpuInfoWithTimeInState() 166 /* stealTimeMillis= */ 100_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 186 /* idleTimeMillis= */ 100_000, /* iowaitTimeMillis= */ 100_000, in testReadCpuInfoWithTimeInState() 188 /* stealTimeMillis= */ 1_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithTimeInState() 268 new CpuInfoReader.CpuUsageStats(/* userTimeMillis= */ 900_000, in testReadCpuInfoWithoutTimeInState() 271 /* irqTimeMillis= */ 200_000, /* softirqTimeMillis= */ 100_000, in testReadCpuInfoWithoutTimeInState() 292 /* idleTimeMillis= */ 100_000, /* iowaitTimeMillis= */ 100_000, in testReadCpuInfoWithoutTimeInState() 294 /* stealTimeMillis= */ 1_000, /* guestTimeMillis= */ 0, in testReadCpuInfoWithoutTimeInState() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare/ |
H A D | AgentTrendCalculatorTest.java | 163 assertEquals(25_000, trendCalculator.getTimeToCrossLowerThresholdMs()); in testNoAffordabilityNotes() 173 assertEquals(308_000, trendCalculator.getTimeToCrossLowerThresholdMs()); in testNoAffordabilityNotes() 255 assertEquals(5_000, trendCalculator.getTimeToCrossUpperThresholdMs()); in testSimpleTrendToThreshold_Balance() 267 assertEquals(5_000, trendCalculator.getTimeToCrossLowerThresholdMs()); in testSimpleTrendToThreshold_Balance() 300 trendCalculator.reset(0, 10_000, affordabilityNotes); in testSelectCorrectThreshold_Balance() 308 assertEquals(5_000, trendCalculator.getTimeToCrossUpperThresholdMs()); in testSelectCorrectThreshold_Balance() 342 trendCalculator.reset(35, 10_000, affordabilityNotes); in testTrendsToBothThresholds_Balance() 357 assertEquals(3_000, trendCalculator.getTimeToCrossLowerThresholdMs()); in testTrendsToBothThresholds_Balance() 418 trendCalculator.reset(10_000, 0, affordabilityNotes); in testSelectCorrectThreshold() 431 trendCalculator.reset(10_000, 4, affordabilityNotes); in testSelectCorrectThreshold() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BroadcastConstants.java | 64 private static final long DEFAULT_TIMEOUT = 10_000 * Build.HW_TIMEOUT_MULTIPLIER; 65 private static final long DEFAULT_SLOW_TIME = 5_000 * Build.HW_TIMEOUT_MULTIPLIER; 66 private static final long DEFAULT_DEFERRAL = 5_000 * Build.HW_TIMEOUT_MULTIPLIER; 70 10_000 * Build.HW_TIMEOUT_MULTIPLIER; 238 private static final long DEFAULT_DELAY_CACHED_MILLIS = +120_000; 247 private static final long DEFAULT_DELAY_URGENT_MILLIS = -120_000; 257 private static final long DEFAULT_DELAY_FOREGROUND_PROC_MILLIS = -120_000; 267 private static final long DEFAULT_DELAY_PERSISTENT_PROC_MILLIS = -120_000; 302 private static final long DEFAULT_PENDING_COLD_START_CHECK_INTERVAL_MILLIS = 30_000;
|
/aosp14/frameworks/base/services/core/java/com/android/server/media/ |
H A 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;
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | ReferenceTestUtils.java | 40 if (q.remove(5_000) == ref) { in createCollectionWaiter() 53 long deadline = SystemClock.uptimeMillis() + 5_000; in waitForCondition()
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
H A 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;
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A 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;
|
/aosp14/frameworks/base/apex/jobscheduler/framework/java/android/app/tare/ |
H A D | EconomyManager.java | 84 multiplier *= 1_000; in parseCreditValue() 427 public static final long DEFAULT_AM_MAX_CONSUMPTION_LIMIT_CAKES = arcToCake(15_000); 532 public static final long DEFAULT_JS_INITIAL_CONSUMPTION_LIMIT_CAKES = arcToCake(29_000); 534 public static final long DEFAULT_JS_MIN_CONSUMPTION_LIMIT_CAKES = arcToCake(17_000); 537 public static final long DEFAULT_JS_MAX_CONSUMPTION_LIMIT_CAKES = arcToCake(250_000);
|
/aosp14/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/ |
H A D | TestJobActivity.java | 35 public static final int JOB_INITIAL_BACKOFF = 10_000; 36 public static final int JOB_MINIMUM_LATENCY = 5_000;
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/ |
H A D | SystemServerCpuThreadReader.java | 128 result.threadCpuTimesUs[i] = processCpuUsage.threadCpuTimesMillis[i] * 1_000; in readAbsolute() 130 processCpuUsage.selectedThreadCpuTimesMillis[i] * 1_000; in readAbsolute()
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | DisplayAreaOrganizer.java | 117 public static final int FEATURE_SYSTEM_LAST = 10_000; 128 public static final int FEATURE_VENDOR_LAST = FEATURE_VENDOR_FIRST + 10_000;
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
H A D | VibratorManagerServiceTest.java | 124 private static final int TEST_TIMEOUT_MILLIS = 1_000; 825 new long[]{10_000, 10_000}, new int[]{128, 255}, 1); in vibrate_withOngoingRepeatingVibration_ignoresEffect() 858 new long[]{10, 10_000}, new int[]{255, 0}, 1); in vibrate_withOngoingRepeatingVibrationBeingCancelled_playsAfterPreviousIsCancelled() 883 new long[]{10_000, 10_000}, new int[]{128, 255}, 1); in vibrate_withNewSameImportanceVibrationAndBothRepeating_cancelsOngoingEffect() 891 new long[]{10_000, 10_000}, new int[]{128, 255}, 1); in vibrate_withNewSameImportanceVibrationAndBothRepeating_cancelsOngoingEffect() 913 new long[]{10, 10_000}, new int[]{255, 0}, 1); in vibrate_withNewSameImportanceVibrationButOngoingIsRepeating_ignoreNewVibration() 937 new long[]{10_000, 10_000}, new int[]{128, 255}, 1); in vibrate_withNewUnknownUsageVibrationAndRepeating_cancelsOngoingEffect() 945 new long[]{10_000, 10_000}, new int[]{128, 255}, 1); in vibrate_withNewUnknownUsageVibrationAndRepeating_cancelsOngoingEffect() 991 new long[]{10_000, 10_000}, new int[]{128, 255}, -1); in vibrate_withOngoingHigherImportanceVibration_ignoresEffect() 1018 new long[]{10_000, 10_000}, new int[]{128, 255}, -1); in vibrate_withOngoingLowerImportanceVibration_cancelsOngoingEffect() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/ |
H A D | AttentionDetector.java | 69 static final long DEFAULT_PRE_DIM_CHECK_DURATION_MILLIS = 2_000; 330 if (millis < 0 || millis > 13_000) { in getPreDimCheckDurationMillis() 345 if (millis < 0 || millis > 10_000) { in getPostDimCheckDurationMillis()
|