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.java308 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
314 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
320 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
326 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
332 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
338 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeWifi_ReturnTrue()
344 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeBluetooth_ReturnTrue()
352 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
359 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isFalse(); in testShouldHideSipper_UidNormal_ReturnFalse()
368 assertThat(mBatteryUtils.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeService_ReturnTrue()
[all …]
DBatteryAppListPreferenceControllerTest.java167 doReturn(true).when(mBatteryUtils).shouldHideSipper(mNormalBatterySipper); in testSetUsageSummary_timeMoreThanOneMinute_hiddenApp_setUsedSummary()
190 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_typeOvercounted_returnTrue()
197 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_typeUnaccounted_returnTrue()
204 assertThat(mPreferenceController.shouldHideSipper(mNormalBatterySipper)).isFalse(); in testShouldHideSipper_typeNormal_returnFalse()
211 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/apps/Settings/src/com/android/settings/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.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/
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/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()