Home
last modified time | relevance | path

Searched refs:setForceAppStandby (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAddTest.java62 doNothing().when(mBatteryUtils).setForceAppStandby(anyInt(), anyString(), anyInt()); in setUp()
96 verify(mBatteryUtils).setForceAppStandby(UID, PACKAGE_NAME, AppOpsManager.MODE_ALLOWED); in unrestrictAppIfPossible_appRestricted_unrestrictApp()
105 verify(mBatteryUtils, never()).setForceAppStandby(UID, PACKAGE_NAME, in unrestrictAppIfPossible_appUnrestricted_doNothing()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DRestrictAppActionTest.java91 .setForceAppStandby(UID_1, PACKAGE_NAME_1, AppOpsManager.MODE_IGNORED); in testHandlePositiveAction()
93 .setForceAppStandby(UID_2, PACKAGE_NAME_2, AppOpsManager.MODE_IGNORED); in testHandlePositiveAction()
DUnrestrictAppActionTest.java77 .setForceAppStandby(UID_1, PACKAGE_NAME_1, AppOpsManager.MODE_ALLOWED); in testHandlePositiveAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java577 mBatteryUtils.setForceAppStandby(UID, LOW_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
588 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_forceOApp_forceOneRestriction()
600 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_restrictApp_recordTime()
609 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_ALLOWED); in testSetForceAppStandby_unrestrictApp_deleteTime()
DHighPowerDetailTest.java90 verify(mBatteryUtils).setForceAppStandby(TEST_UID, TEST_PACKAGE, in onClick_appAddedToDozeWhitelist_getsUnrestricted()
DBackgroundActivityPreferenceControllerTest.java111 doNothing().when(mBatteryUtils).setForceAppStandby(anyInt(), anyString(), anyInt()); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java50 mBatteryUtils.setForceAppStandby(appInfo.uid, appInfo.packageName, in handlePositiveAction()
DRestrictAppAction.java62 mBatteryUtils.setForceAppStandby(appInfo.uid, packageName, in handlePositiveAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java50 mBatteryUtils.setForceAppStandby(appInfo.uid, appInfo.packageName, in handlePositiveAction()
DRestrictAppAction.java62 mBatteryUtils.setForceAppStandby(appInfo.uid, packageName, in handlePositiveAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java395 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() method in BatteryUtils
426 setForceAppStandby(uid, packageName, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby()
DHighPowerDetail.java144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java422 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() method in BatteryUtils
453 setForceAppStandby(uid, packageName, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby()
DHighPowerDetail.java144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDetectionJobService.java163 batteryUtils.setForceAppStandby(uid, packageName, in saveAnomalyToDatabase()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java163 batteryUtils.setForceAppStandby(uid, packageName, in saveAnomalyToDatabase()