Home
last modified time | relevance | path

Searched refs:PowerProfile (Results 1 – 25 of 28) 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.java92 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile()
DKernelUidCpuFreqTimeReaderTest.java70 private PowerProfile mPowerProfile;
DBatteryStatsCpuTimesTest.java87 PowerProfile mPowerProfile;
/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.java80 private PowerProfile mPowerProfile;
153 public static boolean checkHasWifiPowerReporting(BatteryStats stats, PowerProfile profile) { in checkHasWifiPowerReporting()
155 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE) != 0 && in checkHasWifiPowerReporting()
156 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX) != 0 && in checkHasWifiPowerReporting()
157 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX) != 0; in checkHasWifiPowerReporting()
161 PowerProfile profile) { in checkHasBluetoothPowerReporting()
163 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE) != 0 && in checkHasBluetoothPowerReporting()
164 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX) != 0 && in checkHasBluetoothPowerReporting()
165 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX) != 0; in checkHasBluetoothPowerReporting()
270 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.java39 public class PowerProfile { class
227 public PowerProfile(Context context) { in PowerProfile() method in PowerProfile
235 public PowerProfile(Context context, boolean forTest) { in PowerProfile() method in PowerProfile
DKernelUidCpuFreqTimeReader.java109 public long[] readFreqs(@NonNull PowerProfile powerProfile) { in readFreqs()
133 public long[] readFreqs(BufferedReader reader, PowerProfile powerProfile) in readFreqs()
DBatteryStatsImpl.java963 protected PowerProfile mPowerProfile;
6397 PowerProfile.POWER_GPS_OPERATING_VOLTAGE) / 1000.0; in getGpsBatteryDrainMaMs()
6406 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
10233 public void setPowerProfileLocked(PowerProfile profile) { in setPowerProfileLocked()
11309 PowerProfile.POWER_WIFI_CONTROLLER_OPERATING_VOLTAGE) / 1000.0; in updateWifiState()
11387 PowerProfile.POWER_MODEM_CONTROLLER_OPERATING_VOLTAGE) / 1000.0; in updateMobileRadioState()
11391 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_SLEEP) in updateMobileRadioState()
11393 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE) in updateMobileRadioState()
11395 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in updateMobileRadioState()
11400 PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in updateMobileRadioState()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java46 import com.android.internal.os.PowerProfile;
600 public PowerProfile getPowerProfile() { in getPowerProfile()
601 return new PowerProfile(mContext, false); in getPowerProfile()
DWifiServiceImpl.java98 import com.android.internal.os.PowerProfile;
224 PowerProfile mPowerProfile;
1678 PowerProfile.POWER_WIFI_CONTROLLER_IDLE); in reportActivityInfo()
1680 PowerProfile.POWER_WIFI_CONTROLLER_RX); in reportActivityInfo()
1682 PowerProfile.POWER_WIFI_CONTROLLER_TX); in reportActivityInfo()
1684 PowerProfile.POWER_WIFI_CONTROLLER_OPERATING_VOLTAGE) / 1000.0; in reportActivityInfo()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java71 import com.android.internal.os.PowerProfile;
190 PowerProfile powerProfile = new PowerProfile(context); in StatsCompanionService()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java59 import com.android.internal.os.PowerProfile;
182 mStats.setPowerProfileLocked(new PowerProfile(context)); in BatteryStatsService()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java96 import com.android.internal.os.PowerProfile;
197 @Mock PowerProfile mPowerProfile;

12