Home
last modified time | relevance | path

Searched refs:getDeviceStats (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAggregatedPowerStatsTest.java152 assertThat(getDeviceStats(stats, in verifyAggregatedPowerStats()
157 assertThat(getDeviceStats(stats, in verifyAggregatedPowerStats()
230 private static long[] getDeviceStats(AggregatedPowerStats stats, int... states) { in getDeviceStats() method in AggregatedPowerStatsTest
234 powerComponentStats.getDeviceStats(out, states); in getDeviceStats()
DPowerStatsAggregatorTest.java144 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in stateUpdates()
150 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in stateUpdates()
231 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in incompatiblePowerStats()
246 assertThat(powerComponentStats.getDeviceStats(values, new int[]{ in incompatiblePowerStats()
DBinaryStatePowerStatsProcessorTest.java103 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel()
107 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel()
192 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in energyConsumerModel()
196 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in energyConsumerModel()
DBluetoothPowerStatsProcessorTest.java219 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_mostlyDataTransfer()
223 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_mostlyDataTransfer()
318 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_mostlyScan()
322 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_mostlyScan()
421 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in consumedEnergyModel()
425 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in consumedEnergyModel()
DWifiPowerStatsProcessorTest.java255 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_powerController()
259 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_powerController()
368 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in consumedEnergyModel_powerController()
372 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in consumedEnergyModel_powerController()
475 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel_noPowerController()
479 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel_noPowerController()
DCpuPowerStatsProcessorTest.java236 boolean getDeviceStats(long[] outValues, int[] deviceStates) { in getDeviceStats() method in CpuPowerStatsProcessorTest.MockPowerComponentAggregatedPowerStats
237 long[] values = getDeviceStats(deviceStates); in getDeviceStats()
242 private long[] getDeviceStats(int[] deviceStates) { in getDeviceStats() method in CpuPowerStatsProcessorTest.MockPowerComponentAggregatedPowerStats
DPhoneCallPowerStatsProcessorTest.java216 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in copyEstimatesFromMobileRadioPowerStats()
219 stats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in copyEstimatesFromMobileRadioPowerStats()
DMobileRadioPowerStatsProcessorTest.java251 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in powerProfileModel()
256 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in powerProfileModel()
324 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_ON)); in energyConsumerModel()
332 aggregatedStats.getDeviceStats(deviceStats, states(POWER_STATE_OTHER, SCREEN_STATE_OTHER)); in energyConsumerModel()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPhoneCallPowerStatsProcessor.java71 mobileRadioStats.getDeviceStats(mTmpMobileRadioDeviceStats, states); in finish()
DBluetoothPowerStatsProcessor.java155 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in computeDevicePowerEstimates()
211 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in adjustDevicePowerEstimates()
DBinaryStatePowerStatsProcessor.java192 if (!stats.getDeviceStats(mTmpDeviceStatsArray, estimation.stateValues)) { in computeDevicePowerEstimates()
219 if (!stats.getDeviceStats(mTmpDeviceStatsArray, in combineDevicePowerEstimates()
DWifiPowerStatsProcessor.java184 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in computeDevicePowerEstimates()
274 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in adjustDevicePowerEstimates()
DMobileRadioPowerStatsProcessor.java235 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in computeDevicePowerEstimates()
316 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStates)) { in adjustDevicePowerEstimates()
DCpuPowerStatsProcessor.java291 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStateEstimation.stateValues)) { in computeTotals()
362 stats.getDeviceStats(mTmpDeviceStatsArray, deviceStateEstimation.stateValues); in estimatePowerByDeviceState()
DPowerStatsExporter.java154 if (!powerComponentStats.getDeviceStats(deviceStats, states)) { in populateBatteryUsageStatsBuilder()
DPowerComponentAggregatedPowerStats.java264 boolean getDeviceStats(long[] outValues, int[] deviceStates) { in getDeviceStats() method in PowerComponentAggregatedPowerStats