Searched refs:isForceAppStandbyEnabled (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAddTest.java | 92 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/ |
D | BatteryUtils.java | 418 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils 425 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
|
D | RestrictedAppDetails.java | 158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 445 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils 452 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
|
D | RestrictedAppDetails.java | 158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetailsTest.java | 128 doReturn(true).when(mRestrictedAppDetails.mBatteryUtils).isForceAppStandbyEnabled(UID, in refreshUi_displayPreference()
|
D | BatteryUtilsTest.java | 620 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isTrue(); in testIsForceAppStandbyEnabled_enabled_returnTrue() 628 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isFalse(); in testIsForceAppStandbyEnabled_disabled_returnFalse()
|