Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java107 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
113 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp()
116 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
121 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in setUp()
124 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in setUp()
127 mWifiBatterySipper.drainType = BatterySipper.DrainType.WIFI; in setUp()
130 mBluetoothBatterySipper.drainType = BatterySipper.DrainType.BLUETOOTH; in setUp()
133 mIdleBatterySipper.drainType = BatterySipper.DrainType.IDLE; in setUp()
143 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
149 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java32 public DrainType drainType; field in BatterySipper
158 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() argument
160 this.drainType = drainType; in BatterySipper()
172 if (drainType != other.drainType) { in compareTo()
173 if (drainType == DrainType.OVERCOUNTED) { in compareTo()
176 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
DBatteryStatsHelper.java798 private BatterySipper addEntry(DrainType drainType, long time, double power) { in addEntry() argument
799 BatterySipper bs = new BatterySipper(drainType, null, 0); in addEntry()
891 if (sipper.drainType != DrainType.OVERCOUNTED in removeHiddenBatterySippers()
892 && sipper.drainType != DrainType.SCREEN in removeHiddenBatterySippers()
893 && sipper.drainType != DrainType.AMBIENT_DISPLAY in removeHiddenBatterySippers()
894 && sipper.drainType != DrainType.UNACCOUNTED in removeHiddenBatterySippers()
895 && sipper.drainType != DrainType.BLUETOOTH in removeHiddenBatterySippers()
896 && sipper.drainType != DrainType.WIFI in removeHiddenBatterySippers()
897 && sipper.drainType != DrainType.IDLE) { in removeHiddenBatterySippers()
903 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1791 if (bs.drainType != bs.drainType.APP) { in pullDeviceCalculatedPowerBlameUid()
1808 if (bs.drainType == bs.drainType.APP) { in pullDeviceCalculatedPowerBlameOther()
1811 if (bs.drainType == bs.drainType.USER) { in pullDeviceCalculatedPowerBlameOther()
1815 e.writeInt(bs.drainType.ordinal()); in pullDeviceCalculatedPowerBlameOther()
/frameworks/base/core/java/android/os/
DBatteryStats.java3992 switch (bs.drainType) { in dumpCheckinLocked()
5141 switch (bs.drainType) { in dumpLocked()
7314 if (bs.drainType != BatterySipper.DrainType.APP) { in dumpProtoAppsLocked()
8096 switch (bs.drainType) { in dumpProtoSystemLocked()