Searched refs:drainType (Results 1 – 4 of 4) sorted by relevance
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 …]
28 public DrainType drainType; field in BatterySipper131 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() argument133 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()
751 private BatterySipper addEntry(DrainType drainType, long time, double power) { in addEntry() argument752 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()849 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers()890 final BatterySipper.DrainType drainType = sipper.drainType; in shouldHideSipper() local892 return drainType == BatterySipper.DrainType.IDLE in shouldHideSipper()893 || drainType == BatterySipper.DrainType.CELL in shouldHideSipper()894 || drainType == BatterySipper.DrainType.SCREEN in shouldHideSipper()[all …]
3293 switch (bs.drainType) { in dumpCheckinLocked()4275 switch (bs.drainType) { in dumpLocked()