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

/frameworks/base/core/java/com/android/internal/os/
H A DBatterySipper.java28 public DrainType drainType; field in class:BatterySipper
131 public BatterySipper(DrainType drainType, Uid uid, double value) { argument
133 this.drainType = drainType;
145 if (drainType != other.drainType) {
146 if (drainType == DrainType.OVERCOUNTED) {
149 } else if (other.drainType == DrainType.OVERCOUNTED) {
H A DBatteryStatsHelper.java751 private BatterySipper addEntry(DrainType drainType, long time, double power) { argument
752 BatterySipper bs = new BatterySipper(drainType, null, 0);
841 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED
842 && sipper.drainType != BatterySipper.DrainType.SCREEN
843 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED) {
849 if (sipper.drainType == BatterySipper.DrainType.SCREEN) {
890 final BatterySipper.DrainType drainType = sipper.drainType;
892 return drainType == BatterySipper.DrainType.IDLE
893 || drainType
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsHelperTest.java92 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP;
98 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN;
101 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP;
106 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED;
109 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED;
119 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED;
125 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED;
131 mNormalBatterySipper.drainType = BatterySipper.DrainType.IDLE;
137 mNormalBatterySipper.drainType = BatterySipper.DrainType.CELL;
143 mNormalBatterySipper.drainType
[all...]
/frameworks/base/core/java/android/os/
H A DBatteryStats.java3293 switch (bs.drainType) {
4275 switch (bs.drainType) {

Completed in 378 milliseconds