Searched refs:DrainType (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHelperTest.java | 92 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 98 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp() 101 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 106 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in setUp() 109 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in setUp() 119 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue() 125 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue() 131 mNormalBatterySipper.drainType = BatterySipper.DrainType.IDLE; in testShouldHideSipper_TypeIdle_ReturnTrue() 137 mNormalBatterySipper.drainType = BatterySipper.DrainType.CELL; in testShouldHideSipper_TypeCell_ReturnTrue() 143 mNormalBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in testShouldHideSipper_TypeScreen_ReturnTrue() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsHelper.java | 45 import com.android.internal.os.BatterySipper.DrainType; 499 BatterySipper bs = new BatterySipper(DrainType.UNACCOUNTED, null, amount); in refreshStats() 512 BatterySipper bs = new BatterySipper(DrainType.OVERCOUNTED, null, amount); in refreshStats() 547 final BatterySipper app = new BatterySipper(BatterySipper.DrainType.APP, u, 0); in processAppUsage() 612 addEntry(BatterySipper.DrainType.PHONE, phoneOnTimeMs, phoneOnPower); in addPhoneUsage() 639 addEntry(BatterySipper.DrainType.SCREEN, screenOnTimeMs, power); in addScreenUsage() 644 BatterySipper radio = new BatterySipper(BatterySipper.DrainType.CELL, null, 0); in addRadioUsage() 682 addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah); in addIdleUsage() 694 BatterySipper bs = new BatterySipper(DrainType.WIFI, null, 0); in addWiFiUsage() 708 BatterySipper bs = new BatterySipper(BatterySipper.DrainType.BLUETOOTH, null, 0); in addBluetoothUsage() [all …]
|
D | BatterySipper.java | 28 public DrainType drainType; 115 public enum DrainType { enum in BatterySipper 131 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() 146 if (drainType == DrainType.OVERCOUNTED) { in compareTo() 149 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
|
/frameworks/base/services/ |
D | profile-classes | 3178 Lcom/android/internal/os/BatterySipper$DrainType;
|