Searched refs:sipper (Results 1 – 2 of 2) sorted by relevance
527 final BatterySipper sipper = mUsageList.get(i); in refreshStats() local528 if (!sipper.shouldHide) { in refreshStats()529 sipper.proportionalSmearMah = hiddenPowerMah in refreshStats()530 * ((sipper.totalPowerMah + sipper.screenPowerMah) in refreshStats()532 sipper.sumPower(); in refreshStats()838 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local839 sipper.shouldHide = shouldHideSipper(sipper); in removeHiddenBatterySippers()840 if (sipper.shouldHide) { in removeHiddenBatterySippers()841 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers()842 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers()[all …]
224 final BatterySipper sipper = mock(BatterySipper.class); in createTestSmearBatterySipper() local225 sipper.drainType = BatterySipper.DrainType.APP; in createTestSmearBatterySipper()226 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()227 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper()233 sipper.uidObj = uid; in createTestSmearBatterySipper()236 return sipper; in createTestSmearBatterySipper()