Home
last modified time | relevance | path

Searched refs:componentPower (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAppPower.java74 for (final ComponentPower componentPower: mComponents.values()) { in build()
75 appPowerMah += componentPower.powerMah; in build()
82 public void addComponentPower(Component component, ComponentPower componentPower) { in addComponentPower() argument
83 mComponents.put(component, componentPower); in addComponentPower()
DPowerReport.java67 final ComponentPower componentPower = entry.getValue() in createReport() local
69 if (componentPower != null) { in createReport()
70 appPower.addComponentPower(entry.getKey(), componentPower); in createReport() local
/frameworks/base/core/java/android/os/
DBatteryConsumer.java833 public T setConsumedPower(@PowerComponent int componentId, double componentPower) { in setConsumedPower() argument
834 return setConsumedPower(componentId, componentPower, POWER_MODEL_POWER_PROFILE); in setConsumedPower()
846 public T setConsumedPower(@PowerComponent int componentId, double componentPower, in setConsumedPower() argument
849 componentPower, powerModel); in setConsumedPower() local
855 public T addConsumedPower(@PowerComponent int componentId, double componentPower, in addConsumedPower() argument
858 componentPower, powerModel); in addConsumedPower() local
864 public T setConsumedPower(Key key, double componentPower, @PowerModel int powerModel) { in setConsumedPower() argument
865 mPowerComponentsBuilder.setConsumedPower(key, componentPower, powerModel); in setConsumedPower()
871 public T addConsumedPower(Key key, double componentPower, @PowerModel int powerModel) { in addConsumedPower() argument
872 mPowerComponentsBuilder.addConsumedPower(key, componentPower, powerModel); in addConsumedPower()
[all …]
DPowerComponents.java164 final double componentPower = getConsumedPower(key); in dump() local
166 if (skipEmptyComponents && componentPower == 0 && durationMs == 0) { in dump()
174 sb.append(BatteryStats.formatCharge(componentPower)); in dump()
481 public Builder setConsumedPower(BatteryConsumer.Key key, double componentPower, in setConsumedPower() argument
483 mData.putDouble(key.mPowerColumnIndex, componentPower); in setConsumedPower()
491 public Builder addConsumedPower(BatteryConsumer.Key key, double componentPower, in addConsumedPower() argument
494 mData.getDouble(key.mPowerColumnIndex) + componentPower); in addConsumedPower()
508 public Builder setConsumedPowerForCustomComponent(int componentId, double componentPower) { in setConsumedPowerForCustomComponent() argument
514 mData.putDouble(mData.layout.firstCustomConsumedPowerColumn + index, componentPower); in setConsumedPowerForCustomComponent()