Home
last modified time | relevance | path

Searched refs:isForceAppStandbyEnabled (Results 1 – 5 of 5) 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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java391 if (isForceAppStandbyEnabled(uid, packageName) != (mode == AppOpsManager.MODE_IGNORED)) { in setForceAppStandby()
418 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils
426 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
DRestrictedAppDetails.java153 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java372 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isTrue(); in testIsForceAppStandbyEnabled_enabled_returnTrue()
381 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isFalse(); in testIsForceAppStandbyEnabled_disabled_returnFalse()
DRestrictedAppDetailsTest.java123 .isForceAppStandbyEnabled(UID, PACKAGE_NAME); in refreshUi_displayPreference()