Searched refs:sipper (Results 1 – 3 of 3) sorted by relevance
557 final BatterySipper sipper = mUsageList.get(i); in refreshStats() local558 if (!sipper.shouldHide) { in refreshStats()559 sipper.proportionalSmearMah = hiddenPowerMah in refreshStats()560 * ((sipper.totalPowerMah + sipper.screenPowerMah) in refreshStats()562 sipper.sumPower(); in refreshStats()888 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers() local889 sipper.shouldHide = shouldHideSipper(sipper); in removeHiddenBatterySippers()890 if (sipper.shouldHide) { in removeHiddenBatterySippers()891 if (sipper.drainType != DrainType.OVERCOUNTED in removeHiddenBatterySippers()892 && sipper.drainType != DrainType.SCREEN in removeHiddenBatterySippers()[all …]
295 final BatterySipper sipper = mock(BatterySipper.class); in createTestSmearBatterySipper() local296 sipper.drainType = BatterySipper.DrainType.APP; in createTestSmearBatterySipper()297 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()298 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper()304 sipper.uidObj = uid; in createTestSmearBatterySipper()307 return sipper; in createTestSmearBatterySipper()
355 // UID, only valid for the USER sipper.