Home
last modified time | relevance | path

Searched refs:AggregatedPowerStatsConfig (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAggregatedPowerStatsTest.java51 private AggregatedPowerStatsConfig mAggregatedPowerStatsConfig;
56 mAggregatedPowerStatsConfig = new AggregatedPowerStatsConfig(); in setup()
59 AggregatedPowerStatsConfig.STATE_POWER, in setup()
60 AggregatedPowerStatsConfig.STATE_SCREEN) in setup()
62 AggregatedPowerStatsConfig.STATE_POWER, in setup()
63 AggregatedPowerStatsConfig.STATE_SCREEN, in setup()
64 AggregatedPowerStatsConfig.STATE_PROCESS_STATE); in setup()
106 stats.setDeviceState(AggregatedPowerStatsConfig.STATE_SCREEN, in prepareAggregatePowerStats()
107 AggregatedPowerStatsConfig.SCREEN_STATE_ON, 2000); in prepareAggregatePowerStats()
108 stats.setUidState(APP_1, AggregatedPowerStatsConfig.STATE_PROCESS_STATE, in prepareAggregatePowerStats()
[all …]
DPowerStatsAggregatorTest.java65 AggregatedPowerStatsConfig config = new AggregatedPowerStatsConfig(); in setup()
68 AggregatedPowerStatsConfig.STATE_POWER, in setup()
69 AggregatedPowerStatsConfig.STATE_SCREEN) in setup()
71 AggregatedPowerStatsConfig.STATE_POWER, in setup()
72 AggregatedPowerStatsConfig.STATE_SCREEN, in setup()
73 AggregatedPowerStatsConfig.STATE_PROCESS_STATE); in setup()
145 AggregatedPowerStatsConfig.POWER_STATE_OTHER, in stateUpdates()
146 AggregatedPowerStatsConfig.SCREEN_STATE_ON})) in stateUpdates()
151 AggregatedPowerStatsConfig.POWER_STATE_BATTERY, in stateUpdates()
152 AggregatedPowerStatsConfig.SCREEN_STATE_OTHER})) in stateUpdates()
[all …]
DPowerStatsProcessorTest.java18 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
19 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
20 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
42 AggregatedPowerStatsConfig.PowerComponent config = in createPowerEstimationPlan_allDeviceStatesPresentInUidStates()
43 new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_ANY) in createPowerEstimationPlan_allDeviceStatesPresentInUidStates()
63 AggregatedPowerStatsConfig.PowerComponent config = in createPowerEstimationPlan_combineDeviceStats()
64 new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_ANY) in createPowerEstimationPlan_combineDeviceStats()
101 AggregatedPowerStatsConfig.PowerComponent config) { in uidStateEstimatesToStrings()
DPhoneCallPowerStatsProcessorTest.java18 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
19 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
20 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
21 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
22 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
23 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
165 AggregatedPowerStatsConfig aggregatedPowerStatsConfig = new AggregatedPowerStatsConfig(); in copyEstimatesFromMobileRadioPowerStats()
DCpuPowerStatsProcessorTest.java22 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_BATTERY;
23 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
24 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
25 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
26 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
80 private AggregatedPowerStatsConfig.PowerComponent mConfig;
86 mConfig = new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in setup()
209 MockPowerComponentAggregatedPowerStats(AggregatedPowerStatsConfig.PowerComponent config, in MockPowerComponentAggregatedPowerStats()
[all …]
DBinaryStatePowerStatsProcessorTest.java24 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
25 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
26 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
29 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
265 AggregatedPowerStatsConfig config = new AggregatedPowerStatsConfig(); in createAggregatedPowerStats()
DMobileRadioPowerStatsProcessorTest.java26 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
29 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
30 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
31 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
178 AggregatedPowerStatsConfig.PowerComponent config = in powerProfileModel()
179 new AggregatedPowerStatsConfig.PowerComponent( in powerProfileModel()
187 new AggregatedPowerStats(mock(AggregatedPowerStatsConfig.class)), config); in powerProfileModel()
417 AggregatedPowerStatsConfig.PowerComponent config = in prepareAggregatedStats_energyConsumerModel()
[all …]
DPowerStatsExporterTest.java88 AggregatedPowerStatsConfig config = new AggregatedPowerStatsConfig(); in setup()
90 .trackDeviceStates(AggregatedPowerStatsConfig.STATE_POWER, in setup()
91 AggregatedPowerStatsConfig.STATE_SCREEN) in setup()
92 .trackUidStates(AggregatedPowerStatsConfig.STATE_POWER, in setup()
93 AggregatedPowerStatsConfig.STATE_SCREEN, in setup()
94 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in setup()
DBluetoothPowerStatsProcessorTest.java24 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
25 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
26 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
29 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
470 AggregatedPowerStatsConfig.PowerComponent config = in createAggregatedPowerStats()
471 new AggregatedPowerStatsConfig.PowerComponent( in createAggregatedPowerStats()
479 new AggregatedPowerStats(mock(AggregatedPowerStatsConfig.class)), config); in createAggregatedPowerStats()
DWifiPowerStatsProcessorTest.java26 import static com.android.server.power.stats.AggregatedPowerStatsConfig.POWER_STATE_OTHER;
27 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_ON;
28 import static com.android.server.power.stats.AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
29 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_POWER;
30 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_PROCESS_STATE;
31 import static com.android.server.power.stats.AggregatedPowerStatsConfig.STATE_SCREEN;
524 AggregatedPowerStatsConfig.PowerComponent config = in createAggregatedPowerStats()
525 new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_WIFI) in createAggregatedPowerStats()
532 new AggregatedPowerStats(mock(AggregatedPowerStatsConfig.class)), config); in createAggregatedPowerStats()
DPowerStatsSchedulerTest.java65 private AggregatedPowerStatsConfig mAggregatedPowerStatsConfig;
82 mAggregatedPowerStatsConfig = new AggregatedPowerStatsConfig(); in setup()
DBatteryStatsImplTest.java153 new AggregatedPowerStatsConfig()); in setUp()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsAggregator.java33 private final AggregatedPowerStatsConfig mAggregatedPowerStatsConfig;
37 private int mCurrentBatteryState = AggregatedPowerStatsConfig.POWER_STATE_BATTERY;
38 private int mCurrentScreenState = AggregatedPowerStatsConfig.SCREEN_STATE_OTHER;
40 public PowerStatsAggregator(AggregatedPowerStatsConfig aggregatedPowerStatsConfig, in PowerStatsAggregator()
44 for (AggregatedPowerStatsConfig.PowerComponent powerComponentsConfig : in PowerStatsAggregator()
51 AggregatedPowerStatsConfig getConfig() { in getConfig()
100 ? AggregatedPowerStatsConfig.POWER_STATE_OTHER in aggregatePowerStats()
101 : AggregatedPowerStatsConfig.POWER_STATE_BATTERY; in aggregatePowerStats()
103 mStats.setDeviceState(AggregatedPowerStatsConfig.STATE_POWER, batteryState, in aggregatePowerStats()
110 ? AggregatedPowerStatsConfig.SCREEN_STATE_ON in aggregatePowerStats()
[all …]
DPowerStatsExporter.java118 AggregatedPowerStatsConfig config = mPowerStatsAggregator.getConfig(); in populateBatteryUsageStatsBuilder()
119 List<AggregatedPowerStatsConfig.PowerComponent> powerComponents = in populateBatteryUsageStatsBuilder()
129 AggregatedPowerStatsConfig.PowerComponent powerComponent) { in populateBatteryUsageStatsBuilder()
149 if (states[AggregatedPowerStatsConfig.STATE_POWER] in populateBatteryUsageStatsBuilder()
150 != AggregatedPowerStatsConfig.POWER_STATE_BATTERY) { in populateBatteryUsageStatsBuilder()
175 AggregatedPowerStatsConfig.PowerComponent powerComponent, in populateUidBatteryConsumers()
185 .getUidStateConfig()[AggregatedPowerStatsConfig.STATE_PROCESS_STATE] in populateUidBatteryConsumers()
202 if (states[AggregatedPowerStatsConfig.STATE_POWER] in populateUidBatteryConsumers()
203 != AggregatedPowerStatsConfig.POWER_STATE_BATTERY) { in populateUidBatteryConsumers()
213 ? states[AggregatedPowerStatsConfig.STATE_PROCESS_STATE] in populateUidBatteryConsumers()
DPowerStatsProcessor.java66 private final AggregatedPowerStatsConfig.PowerComponent mConfig;
71 public PowerEstimationPlan(AggregatedPowerStatsConfig.PowerComponent config) { in PowerEstimationPlan()
158 @AggregatedPowerStatsConfig.TrackedState in addUidStateEstimations()
224 @AggregatedPowerStatsConfig.TrackedState int[] stateValues) { in getDeviceStateEstimate()
237 @AggregatedPowerStatsConfig.TrackedState int[] stateValues) { in getCombinedDeviceStateEstimate()
278 @AggregatedPowerStatsConfig.TrackedState
283 @AggregatedPowerStatsConfig.TrackedState int[] stateValues) { in DeviceStateEstimation()
295 @AggregatedPowerStatsConfig.TrackedState int[] stateValues) { in CombinedDeviceStateEstimate()
313 @AggregatedPowerStatsConfig.TrackedState
318 @AggregatedPowerStatsConfig.TrackedState int[] stateValues) { in UidStateProportionalEstimate()
[all …]
DAggregatedPowerStatsConfig.java33 public class AggregatedPowerStatsConfig { class
132 AggregatedPowerStatsConfig.STATE_LABELS_POWER), in getUidStateConfig()
135 AggregatedPowerStatsConfig.STATE_LABELS_SCREEN), in getUidStateConfig()
138 AggregatedPowerStatsConfig.STATE_LABELS_PROCESS_STATE), in getUidStateConfig()
DAggregatedPowerStats.java68 AggregatedPowerStats(AggregatedPowerStatsConfig aggregatedPowerStatsConfig) { in AggregatedPowerStats()
69 List<AggregatedPowerStatsConfig.PowerComponent> configs = in AggregatedPowerStats()
131 void setDeviceState(@AggregatedPowerStatsConfig.TrackedState int stateId, int state, in setDeviceState()
138 void setUidState(int uid, @AggregatedPowerStatsConfig.TrackedState int stateId, int state, in setUidState()
189 TypedXmlPullParser parser, AggregatedPowerStatsConfig aggregatedPowerStatsConfig) in createFromXml()
DPowerComponentAggregatedPowerStats.java60 private final AggregatedPowerStatsConfig.PowerComponent mConfig;
82 @NonNull AggregatedPowerStatsConfig.PowerComponent config) { in PowerComponentAggregatedPowerStats()
98 public AggregatedPowerStatsConfig.PowerComponent getConfig() { in getConfig()
111 void setState(@AggregatedPowerStatsConfig.TrackedState int stateId, int state, in setState()
146 void setUidState(int uid, @AggregatedPowerStatsConfig.TrackedState int stateId, int state, in setUidState()
164 void setDeviceStats(@AggregatedPowerStatsConfig.TrackedState int[] states, long[] values) { in setDeviceStats()
171 void setUidStats(int uid, @AggregatedPowerStatsConfig.TrackedState int[] states, in setUidStats()
DPowerStatsStore.java73 AggregatedPowerStatsConfig aggregatedPowerStatsConfig) { in PowerStatsStore()
349 private final AggregatedPowerStatsConfig mAggregatedPowerStatsConfig;
351 DefaultSectionReader(AggregatedPowerStatsConfig aggregatedPowerStatsConfig) { in DefaultSectionReader()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java124 import com.android.server.power.stats.AggregatedPowerStatsConfig;
201 private final AggregatedPowerStatsConfig mAggregatedPowerStatsConfig;
472 private AggregatedPowerStatsConfig createAggregatedPowerStatsConfig() { in createAggregatedPowerStatsConfig()
473 AggregatedPowerStatsConfig config = new AggregatedPowerStatsConfig(); in createAggregatedPowerStatsConfig()
476 AggregatedPowerStatsConfig.STATE_POWER, in createAggregatedPowerStatsConfig()
477 AggregatedPowerStatsConfig.STATE_SCREEN) in createAggregatedPowerStatsConfig()
479 AggregatedPowerStatsConfig.STATE_POWER, in createAggregatedPowerStatsConfig()
480 AggregatedPowerStatsConfig.STATE_SCREEN, in createAggregatedPowerStatsConfig()
481 AggregatedPowerStatsConfig.STATE_PROCESS_STATE) in createAggregatedPowerStatsConfig()
487 AggregatedPowerStatsConfig.STATE_POWER, in createAggregatedPowerStatsConfig()
[all …]
/frameworks/base/services/
Dart-wear-profile1149 Lcom/android/server/power/stats/AggregatedPowerStatsConfig$1;
1150 Lcom/android/server/power/stats/AggregatedPowerStatsConfig$PowerComponent;
1151 Lcom/android/server/power/stats/AggregatedPowerStatsConfig;
5613 …ice;->createAggregatedPowerStatsConfig()Lcom/android/server/power/stats/AggregatedPowerStatsConfig;
21742 HSPLcom/android/server/power/stats/AggregatedPowerStatsConfig$1;-><init>()V
21743 HSPLcom/android/server/power/stats/AggregatedPowerStatsConfig$PowerComponent;-><init>(I)V
21744 HSPLcom/android/server/power/stats/AggregatedPowerStatsConfig$PowerComponent;->getPowerComponentId(…
21745 HSPLcom/android/server/power/stats/AggregatedPowerStatsConfig$PowerComponent;->getProcessor()Lcom/a…
21746AggregatedPowerStatsConfig$PowerComponent;->setProcessor(Lcom/android/server/power/stats/Aggregate…
21747 …er/power/stats/AggregatedPowerStatsConfig$PowerComponent;->trackDeviceStates([I)Lcom/android/serve…
[all …]