/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerProfileTest.java | 34 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()
|
D | PowerCalculatorTest.java | 42 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()
|
D | MockBatteryStatsImpl.java | 98 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WifiPowerEstimator.java | 33 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()
|
D | MobileRadioPowerCalculator.java | 52 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()
|
D | SensorPowerCalculator.java | 31 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()
|
D | MediaPowerCalculator.java | 30 public MediaPowerCalculator(PowerProfile profile) { in MediaPowerCalculator() 31 mAudioAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_AUDIO); in MediaPowerCalculator() 32 mVideoAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_VIDEO); in MediaPowerCalculator()
|
D | BluetoothPowerCalculator.java | 30 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()
|
D | WifiPowerCalculator.java | 34 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()
|
D | MemoryPowerCalculator.java | 13 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()
|
D | BatteryStatsHelper.java | 84 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 …]
|
D | CameraPowerCalculator.java | 28 public CameraPowerCalculator(PowerProfile profile) { in CameraPowerCalculator() 29 mCameraPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_CAMERA); in CameraPowerCalculator()
|
D | FlashlightPowerCalculator.java | 26 public FlashlightPowerCalculator(PowerProfile profile) { in FlashlightPowerCalculator() 27 mFlashlightPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_FLASHLIGHT); in FlashlightPowerCalculator()
|
D | CpuPowerCalculator.java | 26 private final PowerProfile mProfile; 28 public CpuPowerCalculator(PowerProfile profile) { in CpuPowerCalculator() 54 PowerProfile.POWER_CPU_ACTIVE); in calculateApp()
|
D | WakelockPowerCalculator.java | 28 public WakelockPowerCalculator(PowerProfile profile) { in WakelockPowerCalculator() 29 mPowerWakelock = profile.getAveragePower(PowerProfile.POWER_CPU_IDLE); in WakelockPowerCalculator()
|
D | PowerProfile.java | 41 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/ |
D | ModemAppActivity.java | 23 import com.android.powermodel.PowerProfile; 48 public ModemAppPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
|
D | ModemRemainderActivity.java | 23 import com.android.powermodel.PowerProfile; 54 public ModemRemainderPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
|
D | ModemGlobalActivity.java | 23 import com.android.powermodel.PowerProfile;
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | PowerProfile.java | 47 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
|
D | ComponentActivity.java | 38 public ComponentPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
|
D | PowerReport.java | 59 public static PowerReport createReport(PowerProfile profile, ActivityReport activityReport) { in createReport()
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | PowerReportTest.java | 63 final PowerProfile profile = PowerProfile.parse(loadPowerProfileStream()); in loadPowerReport()
|
D | PowerProfileTest.java | 54 final PowerProfile profile = PowerProfile.parse(is); in testReadGood()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 52 import com.android.internal.os.PowerProfile; 721 public PowerProfile getPowerProfile() { in getPowerProfile() 722 return new PowerProfile(mContext, false); in getPowerProfile()
|