Home
last modified time | relevance | path

Searched refs:STATE_PROCESS_STATE (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBinaryStatePowerStatsProcessorTest.java28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
88 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel()
89 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, 5000); in powerProfileModel()
169 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in energyConsumerModel()
170 stats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, 5000); in energyConsumerModel()
268 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in createAggregatedPowerStats()
278 powerComponentStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
279 powerComponentStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in createAggregatedPowerStats()
DMobileRadioPowerStatsProcessorTest.java30 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
182 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in powerProfileModel()
191 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in powerProfileModel()
192 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in powerProfileModel()
205 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel()
206 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel()
421 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in prepareAggregatedStats_energyConsumerModel()
430 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in prepareAggregatedStats_energyConsumerModel()
431 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in prepareAggregatedStats_energyConsumerModel()
448 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in prepareAggregatedStats_energyConsumerModel()
[all …]
DBluetoothPowerStatsProcessorTest.java28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
187 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_mostlyDataTransfer()
188 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_mostlyDataTransfer()
287 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_mostlyScan()
288 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_mostlyScan()
390 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in consumedEnergyModel()
391 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in consumedEnergyModel()
474 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in createAggregatedPowerStats()
483 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
484 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in createAggregatedPowerStats()
DWifiPowerStatsProcessorTest.java30 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
215 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_powerController()
216 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_powerController()
331 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in consumedEnergyModel_powerController()
332 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in consumedEnergyModel_powerController()
436 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_BACKGROUND, 2500); in powerProfileModel_noPowerController()
437 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND_SERVICE, in powerProfileModel_noPowerController()
527 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in createAggregatedPowerStats()
536 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
537 aggregatedStats.setUidState(APP_UID2, STATE_PROCESS_STATE, PROCESS_STATE_CACHED, 0); in createAggregatedPowerStats()
DPowerStatsProcessorTest.java19 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
45 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE); in createPowerEstimationPlan_allDeviceStatesPresentInUidStates()
66 .trackUidStates(STATE_POWER, STATE_PROCESS_STATE); in createPowerEstimationPlan_combineDeviceStats()
DAggregatedPowerStatsTest.java64 AggregatedPowerStatsConfig.STATE_PROCESS_STATE); in setup()
108 stats.setUidState(APP_1, AggregatedPowerStatsConfig.STATE_PROCESS_STATE, in prepareAggregatePowerStats()
110 stats.setUidState(APP_2, AggregatedPowerStatsConfig.STATE_PROCESS_STATE, in prepareAggregatePowerStats()
126 stats.setUidState(APP_2, AggregatedPowerStatsConfig.STATE_PROCESS_STATE, in prepareAggregatePowerStats()
DPhoneCallPowerStatsProcessorTest.java22 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
168 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE) in copyEstimatesFromMobileRadioPowerStats()
DCpuPowerStatsProcessorTest.java27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
88 .trackUidStates(STATE_POWER, STATE_SCREEN, STATE_PROCESS_STATE); in setup()
DPowerStatsAggregatorTest.java73 AggregatedPowerStatsConfig.STATE_PROCESS_STATE); in setup()
DPowerStatsExporterTest.java94 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in setup()
/frameworks/base/services/core/java/com/android/server/power/stats/
DAggregatedPowerStatsConfig.java36 public static final int STATE_PROCESS_STATE = 2; field in AggregatedPowerStatsConfig
41 STATE_PROCESS_STATE,
137 isTracked(mTrackedUidStates, STATE_PROCESS_STATE), in getUidStateConfig()
DPowerStatsExporter.java185 .getUidStateConfig()[AggregatedPowerStatsConfig.STATE_PROCESS_STATE] in populateUidBatteryConsumers()
213 ? states[AggregatedPowerStatsConfig.STATE_PROCESS_STATE] in populateUidBatteryConsumers()
DPowerStatsAggregator.java133 AggregatedPowerStatsConfig.STATE_PROCESS_STATE, in aggregatePowerStats()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java481 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
492 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
507 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
518 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
529 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
541 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
553 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()