Searched refs:isForceAppStandbyEnabled (Results 1 – 5 of 5) sorted by relevance
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()
391 if (isForceAppStandbyEnabled(uid, packageName) != (mode == AppOpsManager.MODE_IGNORED)) { in setForceAppStandby()418 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() method in BatteryUtils426 if (uid != UID_NULL && isForceAppStandbyEnabled(uid, packageName)) { in clearForceAppStandby()
153 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
372 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isTrue(); in testIsForceAppStandbyEnabled_enabled_returnTrue()381 assertThat(mBatteryUtils.isForceAppStandbyEnabled(UID, PACKAGE_NAME)).isFalse(); in testIsForceAppStandbyEnabled_disabled_returnFalse()
123 .isForceAppStandbyEnabled(UID, PACKAGE_NAME); in refreshUi_displayPreference()