Home
last modified time | relevance | path

Searched refs:mNormalBatterySipper (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceControllerTest.java65 private BatterySipper mNormalBatterySipper; field in BatteryAppListPreferenceControllerTest
96 when(mNormalBatterySipper.getPackages()).thenReturn(PACKAGE_NAMES); in setUp()
97 when(mNormalBatterySipper.getUid()).thenReturn(UID); in setUp()
98 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
99 mNormalBatterySipper.uidObj = mock(BatteryStats.Uid.class); in setUp()
109 mNormalBatterySipper.uidObj = null; in testExtractKeyFromSipper_typeAPPUidObjectNull_returnPackageNames()
110 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in testExtractKeyFromSipper_typeAPPUidObjectNull_returnPackageNames()
112 final String key = mPreferenceController.extractKeyFromSipper(mNormalBatterySipper); in testExtractKeyFromSipper_typeAPPUidObjectNull_returnPackageNames()
113 assertThat(key).isEqualTo(TextUtils.concat(mNormalBatterySipper.getPackages()).toString()); in testExtractKeyFromSipper_typeAPPUidObjectNull_returnPackageNames()
118 mNormalBatterySipper.uidObj = null; in testExtractKeyFromSipper_typeOther_returnDrainType()
[all …]
DBatteryUtilsTest.java128 private BatterySipper mNormalBatterySipper; field in BatteryUtilsTest
199 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
200 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp()
201 doReturn(UID).when(mNormalBatterySipper).getUid(); in setUp()
235 mUsageList.add(mNormalBatterySipper); in setUp()
288 sippers.add(mNormalBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
301 assertThat(sippers).containsExactly(mNormalBatterySipper); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
307 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
308 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
313 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
[all …]
DPowerUsageSummaryTest.java102 private BatterySipper mNormalBatterySipper; field in PowerUsageSummaryTest
168 when(mNormalBatterySipper.getUid()).thenReturn(UID); in setUp()
169 mNormalBatterySipper.totalPowerMah = POWER_MAH; in setUp()
170 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
185 mUsageList.add(mNormalBatterySipper); in setUp()