Searched refs:mPowerStatsInternal (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryExternalStatsWorkerTest.java | 73 private TestPowerStatsInternal mPowerStatsInternal; field in BatteryExternalStatsWorkerTest 85 mPowerStatsInternal = new TestPowerStatsInternal(); in setUp() 101 displayIds[i] = mPowerStatsInternal.addEnergyConsumer( in testTargetedEnergyConsumerQuerying() 104 mPowerStatsInternal.incrementEnergyConsumption(displayIds[i], 12345 + i); in testTargetedEnergyConsumerQuerying() 108 final int wifiId = mPowerStatsInternal.addEnergyConsumer(EnergyConsumerType.WIFI, 0, in testTargetedEnergyConsumerQuerying() 111 mPowerStatsInternal.incrementEnergyConsumption(wifiId, 23456); in testTargetedEnergyConsumerQuerying() 113 final int btId = mPowerStatsInternal.addEnergyConsumer(EnergyConsumerType.BLUETOOTH, 0, in testTargetedEnergyConsumerQuerying() 116 mPowerStatsInternal.incrementEnergyConsumption(btId, 34567); in testTargetedEnergyConsumerQuerying() 118 final int gnssId = mPowerStatsInternal.addEnergyConsumer(EnergyConsumerType.GNSS, 0, in testTargetedEnergyConsumerQuerying() 121 mPowerStatsInternal.incrementEnergyConsumption(gnssId, 787878); in testTargetedEnergyConsumerQuerying() [all …]
|
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | StatsPullAtomCallbackImpl.java | 46 private PowerStatsInternal mPowerStatsInternal; field in StatsPullAtomCallbackImpl 66 Channel[] channels = mPowerStatsInternal.getEnergyMeterInfo(); in initPullOnDevicePowerMeasurement() 83 energyMeasurements = mPowerStatsInternal.readEnergyMeterAsync(new int[0]) in pullOnDevicePowerMeasurement() 109 PowerEntity[] entities = mPowerStatsInternal.getPowerEntityInfo(); in initSubsystemSleepState() 133 results = mPowerStatsInternal.getStateResidencyAsync(new int[0]) in pullSubsystemSleepState() 162 mPowerStatsInternal = powerStatsInternal; in StatsPullAtomCallbackImpl()
|
D | PowerStatsService.java | 110 private PowerStatsInternal mPowerStatsInternal; field in PowerStatsService 292 mPowerStatsInternal = new LocalService(); in onStart() 293 publishLocalService(PowerStatsInternal.class, mPowerStatsInternal); in onStart() 299 mPullAtomCallback = mInjector.createStatsPullerImpl(mContext, mPowerStatsInternal); in onSystemServicesReady()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/ |
D | PmicMonitor.java | 57 private final PowerStatsInternal mPowerStatsInternal; field in PmicMonitor 67 mPowerStatsInternal = LocalServices.getService(PowerStatsInternal.class); in PmicMonitor() 96 final EnergyConsumer[] energyConsumers = mPowerStatsInternal.getEnergyConsumerInfo(); in capturePeriodicDisplayPower() 112 mPowerStatsInternal.getEnergyConsumedAsync(energyConsumerIds.toArray()); in capturePeriodicDisplayPower() 157 if (mPowerStatsInternal == null) { in start()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsCollector.java | 241 private final PowerStatsInternal mPowerStatsInternal; field in PowerStatsCollector.ConsumedEnergyRetrieverImpl 244 mPowerStatsInternal = powerStatsInternal; in ConsumedEnergyRetrieverImpl() 249 if (mPowerStatsInternal == null) { in getEnergyConsumerIds() 253 EnergyConsumer[] energyConsumerInfo = mPowerStatsInternal.getEnergyConsumerInfo(); in getEnergyConsumerIds() 280 mPowerStatsInternal.getEnergyConsumedAsync(energyConsumerIds); in getConsumedEnergyUws()
|
D | BatteryExternalStatsWorker.java | 147 private PowerStatsInternal mPowerStatsInternal = null; field in BatteryExternalStatsWorker 216 mPowerStatsInternal = psi; in systemServicesReady() 220 if (mPowerStatsInternal != null) { in systemServicesReady() 961 return mPowerStatsInternal.getEnergyConsumedAsync(consumerIds); 970 if (mEnergyConsumerSnapshot == null || mPowerStatsInternal == null) return null; 1014 if (mPowerStatsInternal == null) { 1017 final EnergyConsumer[] energyConsumers = mPowerStatsInternal.getEnergyConsumerInfo();
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 223 private PowerStatsInternal mPowerStatsInternal = null; field in BatteryStatsService 266 PowerEntity[] entities = mPowerStatsInternal.getPowerEntityInfo(); in populatePowerEntityMaps() 290 if (mPowerStatsInternal == null || mEntityNames.isEmpty() || mStateNames.isEmpty()) { in fillLowPowerStats() 297 results = mPowerStatsInternal.getStateResidencyAsync(new int[0]) in fillLowPowerStats() 333 if (mPowerStatsInternal == null || mEntityNames.isEmpty() || mStateNames.isEmpty()) { in getSubsystemLowPowerStats() 340 results = mPowerStatsInternal.getStateResidencyAsync(new int[0]) in getSubsystemLowPowerStats() 661 mPowerStatsInternal = LocalServices.getService(PowerStatsInternal.class); in systemServicesReady() 662 if (mPowerStatsInternal != null) { in systemServicesReady()
|