Home
last modified time | relevance | path

Searched refs:drainType (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java106 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
112 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp()
115 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
120 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in setUp()
123 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in setUp()
126 mWifiBatterySipper.drainType = BatterySipper.DrainType.WIFI; in setUp()
129 mBluetoothBatterySipper.drainType = BatterySipper.DrainType.BLUETOOTH; in setUp()
132 mIdleBatterySipper.drainType = BatterySipper.DrainType.IDLE; in setUp()
142 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
148 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java28 public DrainType drainType; field in BatterySipper
131 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() argument
133 this.drainType = drainType; in BatterySipper()
145 if (drainType != other.drainType) { in compareTo()
146 if (drainType == DrainType.OVERCOUNTED) { in compareTo()
149 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
DBatteryStatsHelper.java751 private BatterySipper addEntry(DrainType drainType, long time, double power) { in addEntry() argument
752 BatterySipper bs = new BatterySipper(drainType, null, 0); in addEntry()
841 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers()
842 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers()
843 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED in removeHiddenBatterySippers()
844 && sipper.drainType != BatterySipper.DrainType.BLUETOOTH in removeHiddenBatterySippers()
845 && sipper.drainType != BatterySipper.DrainType.WIFI in removeHiddenBatterySippers()
846 && sipper.drainType != BatterySipper.DrainType.IDLE) { in removeHiddenBatterySippers()
852 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers()
893 final BatterySipper.DrainType drainType = sipper.drainType; in shouldHideSipper() local
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java3440 switch (bs.drainType) { in dumpCheckinLocked()
4471 switch (bs.drainType) { in dumpLocked()