Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java287 final List<BatterySipper> sippers = new ArrayList<>(); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue() local
288 sippers.add(mNormalBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
289 sippers.add(mScreenBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
290 sippers.add(mSystemBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
291 sippers.add(mOvercountedBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
292 sippers.add(mUnaccountedBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
293 sippers.add(mWifiBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
294 sippers.add(mBluetoothBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
295 sippers.add(mIdleBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
299 final double totalUsage = mBatteryUtils.removeHiddenBatterySippers(sippers); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java176 public double removeHiddenBatterySippers(List<BatterySipper> sippers) { in removeHiddenBatterySippers() argument
179 for (int i = sippers.size() - 1; i >= 0; i--) { in removeHiddenBatterySippers()
180 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers()
182 sippers.remove(i); in removeHiddenBatterySippers()
199 smearScreenBatterySipper(sippers, screenSipper); in removeHiddenBatterySippers()
209 void smearScreenBatterySipper(List<BatterySipper> sippers, BatterySipper screenSipper) { in smearScreenBatterySipper() argument
212 for (int i = 0, size = sippers.size(); i < size; i++) { in smearScreenBatterySipper()
213 final BatteryStats.Uid uid = sippers.get(i).uidObj; in smearScreenBatterySipper()
229 for (int i = 0, size = sippers.size(); i < size; i++) { in smearScreenBatterySipper()
230 final BatterySipper sipper = sippers.get(i); in smearScreenBatterySipper()
DBatteryAppListPreferenceController.java259 private List<BatterySipper> getCoalescedUsageList(final List<BatterySipper> sippers) { in getCoalescedUsageList() argument
263 final int numSippers = sippers.size(); in getCoalescedUsageList()
265 BatterySipper sipper = sippers.get(i); in getCoalescedUsageList()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java181 public double removeHiddenBatterySippers(List<BatterySipper> sippers) { in removeHiddenBatterySippers() argument
184 for (int i = sippers.size() - 1; i >= 0; i--) { in removeHiddenBatterySippers()
185 final BatterySipper sipper = sippers.get(i); in removeHiddenBatterySippers()
187 sippers.remove(i); in removeHiddenBatterySippers()
206 smearScreenBatterySipper(sippers, screenSipper); in removeHiddenBatterySippers()
216 void smearScreenBatterySipper(List<BatterySipper> sippers, BatterySipper screenSipper) { in smearScreenBatterySipper() argument
219 for (int i = 0, size = sippers.size(); i < size; i++) { in smearScreenBatterySipper()
220 final BatteryStats.Uid uid = sippers.get(i).uidObj; in smearScreenBatterySipper()
236 for (int i = 0, size = sippers.size(); i < size; i++) { in smearScreenBatterySipper()
237 final BatterySipper sipper = sippers.get(i); in smearScreenBatterySipper()
DBatteryAppListPreferenceController.java259 private List<BatterySipper> getCoalescedUsageList(final List<BatterySipper> sippers) { in getCoalescedUsageList() argument
263 final int numSippers = sippers.size(); in getCoalescedUsageList()
265 BatterySipper sipper = sippers.get(i); in getCoalescedUsageList()