Home
last modified time | relevance | path

Searched refs:shouldHideSipper (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java309 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
315 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
321 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
327 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
333 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
339 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeWifi_ReturnTrue()
345 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeBluetooth_ReturnTrue()
353 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
360 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isFalse(); in testShouldHideSipper_UidNormal_ReturnFalse()
369 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeService_ReturnTrue()
[all …]
DBatteryAppListPreferenceControllerTest.java174 doReturn(true).when(mBatteryUtils).shouldHideSipper(mNormalBatterySipper); in testSetUsageSummary_timeMoreThanOneMinute_hiddenApp_setUsedSummary()
197 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_typeOvercounted_returnTrue()
204 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_typeUnaccounted_returnTrue()
211 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isFalse(); in testShouldHideSipper_typeNormal_returnFalse()
218 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_hiddenSystemModule_returnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java99 when(mBatteryUtils.shouldHideSipper(mSystemBatterySipper)).thenReturn(true); in setUp()
100 when(mBatteryUtils.shouldHideSipper(mHighBatterySipper)).thenReturn(false); in setUp()
101 when(mBatteryUtils.shouldHideSipper(mLowBatterySipper)).thenReturn(false); in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java207 if (shouldHideSipper(sipper)) { in refreshAppListGroup()
346 (sipper.drainType != DrainType.APP || mBatteryUtils.shouldHideSipper(sipper)) in setUsageSummary()
354 boolean shouldHideSipper(BatterySipper sipper) { in shouldHideSipper() method in BatteryAppListPreferenceController
DBatteryUtils.java181 if (shouldHideSipper(sipper)) { in removeHiddenBatterySippers()
240 public boolean shouldHideSipper(BatterySipper sipper) { in shouldHideSipper() method in BatteryUtils
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java206 if (shouldHideSipper(sipper)) { in refreshAppListGroup()
345 (sipper.drainType != DrainType.APP || mBatteryUtils.shouldHideSipper(sipper)) in setUsageSummary()
353 boolean shouldHideSipper(BatterySipper sipper) { in shouldHideSipper() method in BatteryAppListPreferenceController
DBatteryUtils.java186 if (shouldHideSipper(sipper)) { in removeHiddenBatterySippers()
247 public boolean shouldHideSipper(BatterySipper sipper) { in shouldHideSipper() method in BatteryUtils
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DHighUsageDetector.java78 if (!mBatteryUtils.shouldHideSipper(batterySipper)) { in detect()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java88 if ((percent + 0.5f < 1f) || mBatteryUtils.shouldHideSipper(batterySipper)) { in detect()