Home
last modified time | relevance | path

Searched refs:PowerProfile (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerProfileTest.java34 private PowerProfile mProfile;
38 mProfile = new PowerProfile(InstrumentationRegistry.getContext(), true); in setUp()
46 assertEquals(5.0, mProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND)); in testPowerProfile()
47 assertEquals(1.11, mProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE)); in testPowerProfile()
48 assertEquals(2.55, mProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE)); in testPowerProfile()
56 assertEquals(0.5, mProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)); in testPowerProfile()
57 assertEquals(100.0, mProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in testPowerProfile()
58 assertEquals(150.0, mProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in testPowerProfile()
DPowerCalculatorTest.java42 private PowerProfile mPowerProfile;
52 when(mPowerProfile.getAveragePower(PowerProfile.POWER_AUDIO)).thenReturn(12.0); in testMediaPowerCalculator()
53 when(mPowerProfile.getAveragePower(PowerProfile.POWER_VIDEO)).thenReturn(25.0); in testMediaPowerCalculator()
DMockBatteryStatsImpl.java98 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile()
/frameworks/base/core/java/com/android/internal/os/
DWifiPowerEstimator.java33 public WifiPowerEstimator(PowerProfile profile) { in WifiPowerEstimator()
35 mWifiPowerOn = profile.getAveragePower(PowerProfile.POWER_WIFI_ON); in WifiPowerEstimator()
36 mWifiPowerScan = profile.getAveragePower(PowerProfile.POWER_WIFI_SCAN); in WifiPowerEstimator()
37 mWifiPowerBatchScan = profile.getAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN); in WifiPowerEstimator()
43 private static double getWifiPowerPerPacket(PowerProfile profile) { in getWifiPowerPerPacket()
45 final double WIFI_POWER = profile.getAveragePower(PowerProfile.POWER_WIFI_ACTIVE) in getWifiPowerPerPacket()
DMobileRadioPowerCalculator.java52 public MobileRadioPowerCalculator(PowerProfile profile, BatteryStats stats) { in MobileRadioPowerCalculator()
54 profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_ACTIVE, -1); in MobileRadioPowerCalculator()
59 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in MobileRadioPowerCalculator()
61 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in MobileRadioPowerCalculator()
66 temp = profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_ON, -1); in MobileRadioPowerCalculator()
69 mPowerBins[i] = profile.getAveragePower(PowerProfile.POWER_RADIO_ON, i); in MobileRadioPowerCalculator()
72 double idle = profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE); in MobileRadioPowerCalculator()
79 mPowerScan = profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_SCANNING, 0); in MobileRadioPowerCalculator()
DSensorPowerCalculator.java31 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager, in SensorPowerCalculator()
68 private double getAverageGpsPower(PowerProfile profile, BatteryStats stats, long rawRealtimeUs, in getAverageGpsPower()
71 profile.getAveragePowerOrDefault(PowerProfile.POWER_GPS_ON, -1); in getAverageGpsPower()
81 totalPower += profile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getAverageGpsPower()
DMediaPowerCalculator.java30 public MediaPowerCalculator(PowerProfile profile) { in MediaPowerCalculator()
31 mAudioAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_AUDIO); in MediaPowerCalculator()
32 mVideoAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_VIDEO); in MediaPowerCalculator()
DBluetoothPowerCalculator.java30 public BluetoothPowerCalculator(PowerProfile profile) { in BluetoothPowerCalculator()
31 mIdleMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE); in BluetoothPowerCalculator()
32 mRxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX); in BluetoothPowerCalculator()
33 mTxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX); in BluetoothPowerCalculator()
DWifiPowerCalculator.java34 public WifiPowerCalculator(PowerProfile profile) { in WifiPowerCalculator()
35 mIdleCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE); in WifiPowerCalculator()
36 mTxCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX); in WifiPowerCalculator()
37 mRxCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX); in WifiPowerCalculator()
DMemoryPowerCalculator.java13 public MemoryPowerCalculator(PowerProfile profile) { in MemoryPowerCalculator()
14 int numBuckets = profile.getNumElements(PowerProfile.POWER_MEMORY); in MemoryPowerCalculator()
17 powerAverages[i] = profile.getAveragePower(PowerProfile.POWER_MEMORY, i); in MemoryPowerCalculator()
DBatteryStatsHelper.java84 private PowerProfile mPowerProfile;
158 public static boolean checkHasWifiPowerReporting(BatteryStats stats, PowerProfile profile) { in checkHasWifiPowerReporting()
160 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE) != 0 && in checkHasWifiPowerReporting()
161 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX) != 0 && in checkHasWifiPowerReporting()
162 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX) != 0; in checkHasWifiPowerReporting()
166 PowerProfile profile) { in checkHasBluetoothPowerReporting()
168 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE) != 0 && in checkHasBluetoothPowerReporting()
169 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX) != 0 && in checkHasBluetoothPowerReporting()
170 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX) != 0; in checkHasBluetoothPowerReporting()
282 public PowerProfile getPowerProfile() { in getPowerProfile()
[all …]
DCameraPowerCalculator.java28 public CameraPowerCalculator(PowerProfile profile) { in CameraPowerCalculator()
29 mCameraPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_CAMERA); in CameraPowerCalculator()
DFlashlightPowerCalculator.java26 public FlashlightPowerCalculator(PowerProfile profile) { in FlashlightPowerCalculator()
27 mFlashlightPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_FLASHLIGHT); in FlashlightPowerCalculator()
DCpuPowerCalculator.java26 private final PowerProfile mProfile;
28 public CpuPowerCalculator(PowerProfile profile) { in CpuPowerCalculator()
54 PowerProfile.POWER_CPU_ACTIVE); in calculateApp()
DWakelockPowerCalculator.java28 public WakelockPowerCalculator(PowerProfile profile) { in WakelockPowerCalculator()
29 mPowerWakelock = profile.getAveragePower(PowerProfile.POWER_CPU_IDLE); in WakelockPowerCalculator()
DPowerProfile.java41 public class PowerProfile { class
243 public PowerProfile(Context context) { in PowerProfile() method in PowerProfile
251 public PowerProfile(Context context, boolean forTest) { in PowerProfile() method in PowerProfile
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemAppActivity.java23 import com.android.powermodel.PowerProfile;
48 public ModemAppPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
DModemRemainderActivity.java23 import com.android.powermodel.PowerProfile;
54 public ModemRemainderPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
DModemGlobalActivity.java23 import com.android.powermodel.PowerProfile;
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DPowerProfile.java47 public class PowerProfile { class
87 private final PowerProfile mResult;
106 mResult = new PowerProfile(); in Parser()
113 PowerProfile parse() throws ParseException { in parse()
516 public static PowerProfile parse(InputStream stream) throws ParseException { in parse()
520 private PowerProfile() { in PowerProfile() method in PowerProfile
DComponentActivity.java38 public ComponentPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
DPowerReport.java59 public static PowerReport createReport(PowerProfile profile, ActivityReport activityReport) { in createReport()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerReportTest.java63 final PowerProfile profile = PowerProfile.parse(loadPowerProfileStream()); in loadPowerReport()
DPowerProfileTest.java54 final PowerProfile profile = PowerProfile.parse(is); in testReadGood()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java52 import com.android.internal.os.PowerProfile;
721 public PowerProfile getPowerProfile() { in getPowerProfile()
722 return new PowerProfile(mContext, false); in getPowerProfile()

12