Searched refs:powerComponentStats (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsExporter.java | 131 PowerComponentAggregatedPowerStats powerComponentStats = stats.getPowerComponentStats( in populateBatteryUsageStatsBuilder() local 133 if (powerComponentStats == null) { in populateBatteryUsageStatsBuilder() 137 PowerStats.Descriptor descriptor = powerComponentStats.getPowerStatsDescriptor(); in populateBatteryUsageStatsBuilder() 154 if (!powerComponentStats.getDeviceStats(deviceStats, states)) { in populateBatteryUsageStatsBuilder() 169 powerComponentStats, layout); in populateBatteryUsageStatsBuilder() 176 PowerComponentAggregatedPowerStats powerComponentStats, in populateUidBatteryConsumers() argument 179 PowerStats.Descriptor descriptor = powerComponentStats.getPowerStatsDescriptor(); in populateUidBatteryConsumers() 192 powerComponentStats.collectUids(uids); in populateUidBatteryConsumers() 207 if (!powerComponentStats.getUidStats(uidStats, uid, states)) { in populateUidBatteryConsumers()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsAggregatorTest.java | 141 PowerComponentAggregatedPowerStats powerComponentStats = stats.getPowerComponentStats( in stateUpdates() 144 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in stateUpdates() 150 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in stateUpdates() 156 assertThat(powerComponentStats.getUidStats(values, TEST_UID, new int[]{ in stateUpdates() 163 assertThat(powerComponentStats.getUidStats(values, TEST_UID, new int[]{ in stateUpdates() 170 assertThat(powerComponentStats.getUidStats(values, TEST_UID, new int[]{ in stateUpdates() 224 PowerComponentAggregatedPowerStats powerComponentStats = in incompatiblePowerStats() 231 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in incompatiblePowerStats() 236 assertThat(powerComponentStats.getUidStats(values, TEST_UID, new int[]{ in incompatiblePowerStats() 246 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in incompatiblePowerStats() [all …]
|
D | AggregatedPowerStatsTest.java | 231 PowerComponentAggregatedPowerStats powerComponentStats = in getDeviceStats() local 233 long[] out = new long[powerComponentStats.getPowerStatsDescriptor().statsArrayLength]; in getDeviceStats() 234 powerComponentStats.getDeviceStats(out, states); in getDeviceStats() 239 PowerComponentAggregatedPowerStats powerComponentStats = in getStateStats() local 241 long[] out = new long[powerComponentStats.getPowerStatsDescriptor().stateStatsArrayLength]; in getStateStats() 242 powerComponentStats.getStateStats(out, key, states); in getStateStats() 247 PowerComponentAggregatedPowerStats powerComponentStats = in getUidDeviceStats() local 249 long[] out = new long[powerComponentStats.getPowerStatsDescriptor().uidStatsArrayLength]; in getUidDeviceStats() 250 powerComponentStats.getUidStats(out, uid, states); in getUidDeviceStats()
|
D | BinaryStatePowerStatsProcessorTest.java | 272 PowerComponentAggregatedPowerStats powerComponentStats = in createAggregatedPowerStats() local 274 processor.start(powerComponentStats, 0); in createAggregatedPowerStats() 276 powerComponentStats.setState(STATE_POWER, POWER_STATE_OTHER, 0); in createAggregatedPowerStats() 277 powerComponentStats.setState(STATE_SCREEN, SCREEN_STATE_ON, 0); 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() 281 return powerComponentStats; in createAggregatedPowerStats()
|