Home
last modified time | relevance | path

Searched refs:isForceAppStandbyEnabled (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAddTest.java92 doReturn(true).when(mBatteryUtils).isForceAppStandbyEnabled(UID, PACKAGE_NAME); in unrestrictAppIfPossible_appRestricted_unrestrictApp()
101 doReturn(false).when(mBatteryUtils).isForceAppStandbyEnabled(UID, PACKAGE_NAME); in unrestrictAppIfPossible_appUnrestricted_doNothing()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java418 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils
425 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
DRestrictedAppDetails.java158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java445 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils
452 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
DRestrictedAppDetails.java158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java128 doReturn(true).when(mRestrictedAppDetails.mBatteryUtils).isForceAppStandbyEnabled(UID, in refreshUi_displayPreference()
DBatteryUtilsTest.java620 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isTrue(); in testIsForceAppStandbyEnabled_enabled_returnTrue()
628 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isFalse(); in testIsForceAppStandbyEnabled_disabled_returnFalse()