Home
last modified time | relevance | path

Searched refs:stateValues (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsProcessor.java110 MultiStateStats.States[] deviceStatesTrackedPerUid, int[] stateValues, int state) { in combineDeviceStateEstimationsRecursively() argument
112 DeviceStateEstimation dse = getDeviceStateEstimate(stateValues); in combineDeviceStateEstimationsRecursively()
114 deviceStatesTrackedPerUid, stateValues); in combineDeviceStateEstimationsRecursively()
116 cdse = new CombinedDeviceStateEstimate(deviceStatesTrackedPerUid, stateValues); in combineDeviceStateEstimationsRecursively()
127 stateValues[state] = stateValue; in combineDeviceStateEstimationsRecursively()
129 deviceStatesTrackedPerUid, stateValues, state + 1); in combineDeviceStateEstimationsRecursively()
133 deviceStatesTrackedPerUid, stateValues, state + 1); in combineDeviceStateEstimationsRecursively()
160 for (int[] stateValues : uidStateCombinations) { in addUidStateEstimations()
162 getCombinedDeviceStateEstimate(uidStatesTrackedForDevice, stateValues); in addUidStateEstimations()
166 + concatLabels(uidStatesTrackedForDevice, stateValues)); in addUidStateEstimations()
[all …]
DBinaryStatePowerStatsProcessor.java192 if (!stats.getDeviceStats(mTmpDeviceStatsArray, estimation.stateValues)) { in computeDevicePowerEstimates()
205 stats.setDeviceStats(estimation.stateValues, mTmpDeviceStatsArray); in computeDevicePowerEstimates()
220 deviceStateEstimation.stateValues)) { in combineDevicePowerEstimates()
239 proportionalEstimate.stateValues)) { in computeUidActivityTotals()
264 proportionalEstimate.stateValues)) { in computeUidPowerEstimates()
269 stats.setUidStats(uid, proportionalEstimate.stateValues, in computeUidPowerEstimates()
DBluetoothPowerStatsProcessor.java104 computeDevicePowerEstimates(stats, estimation.stateValues, intermediates); in finish()
113 adjustDevicePowerEstimates(stats, estimation.stateValues, in finish()
250 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidActivityTotals()
273 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidPowerEstimates()
301 stats.setUidStats(uid, proportionalEstimate.stateValues, mTmpUidStatsArray); in computeUidPowerEstimates()
DWifiPowerStatsProcessor.java132 computeDevicePowerEstimates(stats, estimation.stateValues, intermediates); in finish()
141 adjustDevicePowerEstimates(stats, estimation.stateValues, in finish()
318 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidActivityTotals()
333 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidPowerEstimates()
376 stats.setUidStats(uid, proportionalEstimate.stateValues, mTmpUidStatsArray); in computeUidPowerEstimates()
380 + " states: " + Arrays.toString(proportionalEstimate.stateValues) in computeUidPowerEstimates()
DMobileRadioPowerStatsProcessor.java184 computeDevicePowerEstimates(stats, estimation.stateValues, intermediates); in finish()
192 adjustDevicePowerEstimates(stats, estimation.stateValues, in finish()
355 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidRxTxTotals()
370 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in computeUidPowerEstimates()
385 stats.setUidStats(uid, proportionalEstimate.stateValues, mTmpUidStatsArray); in computeUidPowerEstimates()
389 + " states: " + Arrays.toString(proportionalEstimate.stateValues) in computeUidPowerEstimates()
DCpuPowerStatsProcessor.java291 if (!stats.getDeviceStats(mTmpDeviceStatsArray, deviceStateEstimation.stateValues)) { in computeTotals()
362 stats.getDeviceStats(mTmpDeviceStatsArray, deviceStateEstimation.stateValues); in estimatePowerByDeviceState()
387 stats.setDeviceStats(deviceStateEstimation.stateValues, mTmpDeviceStatsArray); in estimatePowerByDeviceState()
465 if (!stats.getUidStats(mTmpUidStatsArray, uid, proportionalEstimate.stateValues)) { in estimateUidPowerConsumption()
486 stats.setUidStats(uid, proportionalEstimate.stateValues, mTmpUidStatsArray); in estimateUidPowerConsumption()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsProcessorTest.java86 .map(dse -> dse.stateValues).map(Arrays::toString).toList(); in deviceStateEstimatesToStrings()
94 .map(dse -> dse.stateValues).map(Arrays::toString).toList()) in combinedDeviceStatsToStrings()
106 .map(dse -> dse.stateValues).map(Arrays::toString).toList() in uidStateEstimatesToStrings()
113 .map(pe -> trackedStatesToString(uidStateConfig, pe.stateValues)) in uidStateEstimatesToStrings()
119 int[] stateValues) { in trackedStatesToString() argument
132 sb.append(stateValues[i]); in trackedStatesToString()