/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CpuPowerCalculatorTest.java | 67 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 272; field in CpuPowerCalculatorTest 138 callback.onUidCpuTime(APP_UID2, 3000L); in testTimerBasedModel() 151 callback.onUidCpuTime(APP_UID2, new long[]{3333000, 4444000}); in testTimerBasedModel() 159 callback.onUidCpuTime(APP_UID2, 6333L); in testTimerBasedModel() 167 callback.onUidCpuTime(APP_UID2, new long[]{3333, 4444}); in testTimerBasedModel() 175 callback.onUidCpuTime(APP_UID2, new long[]{3300, 33, 4400, 44}); in testTimerBasedModel() 199 UidBatteryConsumer uidConsumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testTimerBasedModel() 239 callback.onUidCpuTime(APP_UID2, new long[]{3333000, 4444000}); in testMeasuredEnergyBasedModel() 247 callback.onUidCpuTime(APP_UID2, new long[]{3333, 4444}); in testMeasuredEnergyBasedModel() 271 UidBatteryConsumer uidConsumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testMeasuredEnergyBasedModel() [all …]
|
D | BluetoothPowerStatsProcessorTest.java | 72 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 101; field in BluetoothPowerStatsProcessorTest 178 mockUidTraffic(APP_UID2, 300, 400)); in powerProfileModel_mostlyDataTransfer() 193 mockUidTraffic(APP_UID2, 3300, 4400)); in powerProfileModel_mostlyDataTransfer() 197 mUidScanTimes.put(APP_UID2, 300); in powerProfileModel_mostlyDataTransfer() 253 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel_mostlyDataTransfer() 258 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel_mostlyDataTransfer() 279 mockUidTraffic(APP_UID2, 300, 400)); in powerProfileModel_mostlyScan() 293 mockUidTraffic(APP_UID2, 3300, 4400)); in powerProfileModel_mostlyScan() 298 mUidScanTimes.put(APP_UID2, 5000); in powerProfileModel_mostlyScan() 352 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel_mostlyScan() [all …]
|
D | SystemServicePowerCalculatorTest.java | 70 private static final int APP_UID2 = 200; field in SystemServicePowerCalculatorTest 134 assertThat(mStatsRule.getUidBatteryConsumer(APP_UID2) in testPowerProfileBasedModel() 168 assertThat(mStatsRule.getUidBatteryConsumer(APP_UID2) in testMeasuredEnergyBasedModel() 196 callback.onUidCpuTime(APP_UID2, 3000L); in prepareBatteryStats() 209 callback.onUidCpuTime(APP_UID2, new long[]{3_000_000, 4_000_000}); in prepareBatteryStats() 218 callback.onUidCpuTime(APP_UID2, 6333L); in prepareBatteryStats() 227 callback.onUidCpuTime(APP_UID2, new long[]{3333, 4444}); in prepareBatteryStats() 238 callback.onUidCpuTime(APP_UID2, new long[]{3300, 33, 4400, 44}); in prepareBatteryStats() 264 BinderCallsStats.CallStat stat2 = new BinderCallsStats.CallStat(APP_UID2, in prepareBatteryStats() 271 mMockBatteryStats.noteBinderCallStats(APP_UID2, 100, callStats); in prepareBatteryStats()
|
D | ScreenPowerCalculatorTest.java | 49 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 43; field in ScreenPowerCalculatorTest 76 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP, true, in testMeasuredEnergyBasedModel() 84 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP_SLEEPING, false, in testMeasuredEnergyBasedModel() 109 UidBatteryConsumer uid2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testMeasuredEnergyBasedModel() 164 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP, true, in testMeasuredEnergyBasedModel_multiDisplay() 186 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP_SLEEPING, false, in testMeasuredEnergyBasedModel_multiDisplay() 217 UidBatteryConsumer uid2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testMeasuredEnergyBasedModel_multiDisplay() 253 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP, true, in testPowerProfileBasedModel() 258 setProcState(APP_UID2, ActivityManager.PROCESS_STATE_TOP_SLEEPING, false, in testPowerProfileBasedModel() 279 UidBatteryConsumer uid2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testPowerProfileBasedModel() [all …]
|
D | UserPowerCalculatorTest.java | 49 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 272; field in UserPowerCalculatorTest 73 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 75 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 94 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID2))).isNull(); in testSpecificUser() 107 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2))).isNull(); in testSpecificUser() 113 prepareUidBatteryConsumer(USER2, APP_UID2, 2222, 3333, 4444, 5555); in prepareUidBatteryConsumers()
|
D | PowerStatsExporterTest.java | 58 private static final int APP_UID2 = 84; field in PowerStatsExporterTest 140 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 142 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 168 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_subRange() 170 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_subRange() 191 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in combinedProcessStates() 211 powerStats.uidStats.put(APP_UID2, uidStats2); in recordBatteryHistory() 221 mHistory.recordProcessStateChange(1000, 1000, APP_UID2, in recordBatteryHistory() 255 mHistory.recordProcessStateChange(7000, 7000, APP_UID2, in recordBatteryHistory()
|
D | BinaryStatePowerStatsProcessorTest.java | 55 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 101; field in BinaryStatePowerStatsProcessorTest 93 processor.noteStateChange(stats, buildHistoryItem(7000, true, APP_UID2)); in powerProfileModel() 135 stats.getUidStats(uidStats, APP_UID2, in powerProfileModel() 140 stats.getUidStats(uidStats, APP_UID2, in powerProfileModel() 177 processor.noteStateChange(stats, buildHistoryItem(7000, true, APP_UID2)); in energyConsumerModel() 227 stats.getUidStats(uidStats, APP_UID2, in energyConsumerModel() 232 stats.getUidStats(uidStats, APP_UID2, in energyConsumerModel() 279 powerComponentStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in createAggregatedPowerStats()
|
D | WifiPowerStatsProcessorTest.java | 75 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 101; field in WifiPowerStatsProcessorTest 223 mockNetworkStatsEntry("wifi", APP_UID2, 0, 0, in powerProfileModel_powerController() 228 mockWifiScanTimes(APP_UID2, 100, 200); in powerProfileModel_powerController() 291 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel_powerController() 296 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel_powerController() 339 mockNetworkStatsEntry("wifi", APP_UID2, 0, 0, in consumedEnergyModel_powerController() 344 mockWifiScanTimes(APP_UID2, 100, 200); in consumedEnergyModel_powerController() 404 aggregatedStats.getUidStats(uidStats, APP_UID2, in consumedEnergyModel_powerController() 409 aggregatedStats.getUidStats(uidStats, APP_UID2, in consumedEnergyModel_powerController() 444 mockNetworkStatsEntry("wifi", APP_UID2, 0, 0, in powerProfileModel_noPowerController() [all …]
|
D | BluetoothPowerStatsCollectorTest.java | 55 private static final int APP_UID2 = 24; field in BluetoothPowerStatsCollectorTest 151 mPowerStatsUidResolver.noteIsolatedUidAdded(ISOLATED_UID, APP_UID2); in setup() 208 long[] actual2 = powerStats.uidStats.get(APP_UID2); in collectStats() 240 mockUidTraffic(APP_UID2, 300, 400), in collectPowerStats() 253 mockUidTraffic(APP_UID2, 3300, 4400), in collectPowerStats() 258 mUidScanTimes.put(APP_UID2, 300); in collectPowerStats()
|
D | MobileRadioPowerStatsProcessorTest.java | 76 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 101; field in MobileRadioPowerStatsProcessorTest 192 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in powerProfileModel() 213 mockNetworkStatsEntry("cellular", APP_UID2, 0, 0, in powerProfileModel() 292 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel() 298 aggregatedStats.getUidStats(uidStats, APP_UID2, in powerProfileModel() 364 aggregatedStats.getUidStats(uidStats, APP_UID2, in energyConsumerModel() 370 aggregatedStats.getUidStats(uidStats, APP_UID2, in energyConsumerModel() 431 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in prepareAggregatedStats_energyConsumerModel() 456 mockNetworkStatsEntry("cellular", APP_UID2, 0, 0, in prepareAggregatedStats_energyConsumerModel()
|
D | WifiPowerStatsCollectorTest.java | 64 private static final int APP_UID2 = 24; field in WifiPowerStatsCollectorTest 184 return APP_UID2; in setup() 290 long[] actual2 = powerStats.uidStats.get(APP_UID2); in verifyUidStats() 338 mockNetworkStatsEntry(APP_UID2, 4000, 40, 2000, 20); in collectPowerStats() 342 mockWifiScanTimes(APP_UID2, 3000, 4000); in collectPowerStats() 357 mockNetworkStatsEntry(APP_UID2, 8000, 80, 4000, 40); in collectPowerStats() 361 mockWifiScanTimes(APP_UID2, 3100, 4200); in collectPowerStats()
|
D | GnssPowerCalculatorTest.java | 46 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 222; field in GnssPowerCalculatorTest 93 BatteryStatsImpl.Uid uidStats2 = mStatsRule.getUidStats(APP_UID2); in testMeasuredEnergyBasedModel() 113 UidBatteryConsumer consumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testMeasuredEnergyBasedModel()
|
D | MobileRadioPowerCalculatorTest.java | 72 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 101; field in MobileRadioPowerCalculatorTest 129 9_500_000_000L, APP_UID2, 9500, 9500); in testCounterBasedModel() 138 mockNetworkStatsEntry("cellular", APP_UID2, 0, 0, in testCounterBasedModel() 192 UidBatteryConsumer uidConsumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testCounterBasedModel() 249 9_500_000_000L, APP_UID2, 9500, 9500); in testCounterBasedModel_multipleDefinedRat() 258 mockNetworkStatsEntry("cellular", APP_UID2, 0, 0, in testCounterBasedModel_multipleDefinedRat() 349 UidBatteryConsumer uidConsumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testCounterBasedModel_multipleDefinedRat() 406 9_500_000_000L, APP_UID2, 9500, 9500); in testCounterBasedModel_legacyPowerProfile() 415 mockNetworkStatsEntry("cellular", APP_UID2, 0, 0, in testCounterBasedModel_legacyPowerProfile() 469 UidBatteryConsumer uidConsumer2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testCounterBasedModel_legacyPowerProfile() [all …]
|
D | MobileRadioPowerStatsCollectorTest.java | 71 private static final int APP_UID2 = 24; field in MobileRadioPowerStatsCollectorTest 174 return APP_UID2; in setup() 283 long[] actual2 = powerStats.uidStats.get(APP_UID2); in collectStats() 326 long[] actual2 = powerStats.uidStats.get(APP_UID2); in collectStats_noPerNetworkTypeData() 446 mockNetworkStatsEntry(APP_UID2, rxBytes2, rxPackets2, txBytes2, txPackets2), in mockNetworkStats() 456 .addEntry(new NetworkStats.Entry("mobile", APP_UID2, 0, 0, in mockNetworkStats()
|
D | BatteryUsageStatsTest.java | 74 private static final int APP_UID2 = 314; field in BatteryUsageStatsTest 208 } else if (uidBatteryConsumer.getUid() == APP_UID2) { in testAdd() 327 addUidBatteryConsumer(builder, batteryStats, APP_UID2, "bar", in buildBatteryUsageStats2()
|
/frameworks/base/core/tests/coretests/src/android/companion/virtual/audio/ |
D | VirtualAudioSessionTest.java | 63 private static final int APP_UID2 = 200; field in VirtualAudioSessionTest 144 int[] appUids = new int[]{APP_UID, APP_UID2}; in onAppsNeedingAudioRoutingChanged_receiveManyTimes_reroutedAppsSizeIsCorrect()
|