/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 | WifiPowerCalculatorTest.java | 48 .setAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE, 360.0) 49 .setAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX, 480.0) 50 .setAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX, 720.0) 51 .setAveragePower(PowerProfile.POWER_WIFI_ON, 360.0) 52 .setAveragePower(PowerProfile.POWER_WIFI_SCAN, 480.0) 53 .setAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN, 720.0) 54 .setAveragePower(PowerProfile.POWER_WIFI_ACTIVE, 1080.0)
|
D | MobileRadioPowerCalculatorTest.java | 52 .setAveragePowerUnspecified(PowerProfile.POWER_RADIO_ACTIVE) 53 .setAveragePowerUnspecified(PowerProfile.POWER_RADIO_ON) 54 .setAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE, 360.0) 55 .setAveragePower(PowerProfile.POWER_RADIO_SCANNING, 720.0) 56 .setAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX, 1440.0) 57 .setAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX,
|
D | PowerCalculatorTest.java | 44 private PowerProfile mPowerProfile; 54 when(mPowerProfile.getAveragePower(PowerProfile.POWER_AUDIO)).thenReturn(12.0); in testMediaPowerCalculator() 55 when(mPowerProfile.getAveragePower(PowerProfile.POWER_VIDEO)).thenReturn(25.0); in testMediaPowerCalculator()
|
D | BluetoothPowerCalculatorTest.java | 44 .setAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE, 10.0) 45 .setAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX, 50.0) 46 .setAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX, 100.0) 47 .setAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_OPERATING_VOLTAGE, 3700);
|
D | IdlePowerCalculatorTest.java | 37 .setAveragePower(PowerProfile.POWER_CPU_IDLE, 720.0) 38 .setAveragePower(PowerProfile.POWER_CPU_SUSPEND, 360.0);
|
D | BatteryUsageStatsRule.java | 52 private final PowerProfile mPowerProfile; 65 mPowerProfile = spy(new PowerProfile(context, true /* forTest */)); in BatteryUsageStatsRule() 156 public PowerProfile getPowerProfile() {
|
D | BatteryChargeCalculatorTest.java | 43 mStatsRule.setAveragePower(PowerProfile.POWER_BATTERY_CAPACITY, 1234.0); in testDischargeTotals() 82 mStatsRule.setAveragePower(PowerProfile.POWER_BATTERY_CAPACITY, 4000.0); in testDischargeTotals_chargeUahUnavailable()
|
/frameworks/base/core/java/android/os/connectivity/ |
D | WifiActivityEnergyInfo.java | 29 import com.android.internal.os.PowerProfile; 112 PowerProfile powerProfile = new PowerProfile(context); in calculateEnergyMicroJoules() 114 PowerProfile.POWER_WIFI_CONTROLLER_IDLE); in calculateEnergyMicroJoules() 116 PowerProfile.POWER_WIFI_CONTROLLER_RX); in calculateEnergyMicroJoules() 118 PowerProfile.POWER_WIFI_CONTROLLER_TX); in calculateEnergyMicroJoules() 120 PowerProfile.POWER_WIFI_CONTROLLER_OPERATING_VOLTAGE) / 1000.0; in calculateEnergyMicroJoules()
|
/frameworks/base/core/java/com/android/internal/os/ |
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 | WifiPowerCalculator.java | 56 public WifiPowerCalculator(PowerProfile profile) { in WifiPowerCalculator() 58 profile.getAveragePower(PowerProfile.POWER_WIFI_ON)); in WifiPowerCalculator() 60 profile.getAveragePower(PowerProfile.POWER_WIFI_SCAN)); in WifiPowerCalculator() 62 profile.getAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN)); in WifiPowerCalculator() 64 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE)); in WifiPowerCalculator() 66 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX)); in WifiPowerCalculator() 68 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX)); in WifiPowerCalculator() 313 private static double getWifiPowerPerPacket(PowerProfile profile) { in getWifiPowerPerPacket() 317 profile.getAveragePower(PowerProfile.POWER_WIFI_ACTIVE) / 3600; in getWifiPowerPerPacket()
|
D | MobileRadioPowerCalculator.java | 51 public MobileRadioPowerCalculator(PowerProfile profile) { in MobileRadioPowerCalculator() 54 profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_ACTIVE, -1); in MobileRadioPowerCalculator() 57 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in MobileRadioPowerCalculator() 59 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in MobileRadioPowerCalculator() 67 if (profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_ON, -1) != -1) { in MobileRadioPowerCalculator() 70 profile.getAveragePower(PowerProfile.POWER_RADIO_ON, i)); in MobileRadioPowerCalculator() 73 double idle = profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE); in MobileRadioPowerCalculator() 83 profile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_SCANNING, 0)); in MobileRadioPowerCalculator()
|
D | IdlePowerCalculator.java | 40 public IdlePowerCalculator(PowerProfile powerProfile) { in IdlePowerCalculator() 42 powerProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND) in IdlePowerCalculator() 45 powerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE) in IdlePowerCalculator()
|
D | MemoryPowerCalculator.java | 17 public MemoryPowerCalculator(PowerProfile profile) { in MemoryPowerCalculator() 18 int numBuckets = profile.getNumElements(PowerProfile.POWER_MEMORY); in MemoryPowerCalculator() 22 profile.getAveragePower(PowerProfile.POWER_MEMORY, i)); in MemoryPowerCalculator()
|
D | PhonePowerCalculator.java | 34 public PhonePowerCalculator(PowerProfile powerProfile) { in PhonePowerCalculator() 36 powerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE)); in PhonePowerCalculator()
|
D | AudioPowerCalculator.java | 41 public AudioPowerCalculator(PowerProfile powerProfile) { in AudioPowerCalculator() 43 powerProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in AudioPowerCalculator()
|
D | VideoPowerCalculator.java | 38 public VideoPowerCalculator(PowerProfile powerProfile) { in VideoPowerCalculator() 40 powerProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in VideoPowerCalculator()
|
D | AmbientDisplayPowerCalculator.java | 34 public AmbientDisplayPowerCalculator(PowerProfile powerProfile) { in AmbientDisplayPowerCalculator() 36 powerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)); in AmbientDisplayPowerCalculator()
|
D | CameraPowerCalculator.java | 34 public CameraPowerCalculator(PowerProfile profile) { in CameraPowerCalculator() 36 profile.getAveragePower(PowerProfile.POWER_CAMERA)); in CameraPowerCalculator()
|
D | FlashlightPowerCalculator.java | 32 public FlashlightPowerCalculator(PowerProfile profile) { in FlashlightPowerCalculator() 34 profile.getAveragePower(PowerProfile.POWER_FLASHLIGHT)); in FlashlightPowerCalculator()
|
D | BluetoothPowerCalculator.java | 44 public BluetoothPowerCalculator(PowerProfile profile) { in BluetoothPowerCalculator() 45 mIdleMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE); in BluetoothPowerCalculator() 46 mRxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX); in BluetoothPowerCalculator() 47 mTxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX); in BluetoothPowerCalculator()
|
D | GnssPowerCalculator.java | 36 public GnssPowerCalculator(PowerProfile profile) { in GnssPowerCalculator() 37 mAveragePowerGnssOn = profile.getAveragePowerOrDefault(PowerProfile.POWER_GPS_ON, -1); in GnssPowerCalculator() 42 PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i); in GnssPowerCalculator()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
D | ModemRemainderActivity.java | 23 import com.android.powermodel.PowerProfile; 54 public ModemRemainderPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
|
D | ModemAppActivity.java | 23 import com.android.powermodel.PowerProfile; 48 public ModemAppPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile()
|
/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
|