Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtils.java79 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_IGNORED); in setAppUsageState()
83 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_ALLOWED); in setAppUsageState()
87 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_ALLOWED); in setAppUsageState()
DBatteryUtils.java329 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() method in BatteryUtils
360 setForceAppStandby(uid, packageName, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby()
DHighPowerDetail.java144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
/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/
DBatteryOptimizeUtilsTest.java124 verify(mockBatteryUtils).setForceAppStandby(UID, in testSetAppUsageState_Restricted_verifyAction()
133 verify(mockBatteryUtils).setForceAppStandby(UID, in testSetAppUsageState_Unrestricted_verifyAction()
142 verify(mockBatteryUtils).setForceAppStandby(UID, in testSetAppUsageState_Optimized_verifyAction()
DBatteryUtilsTest.java344 mBatteryUtils.setForceAppStandby(UID, LOW_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
356 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_forceOApp_forceOneRestriction()
368 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_IGNORED); in testSetForceAppStandby_restrictApp_recordTime()
377 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_ALLOWED); in testSetForceAppStandby_unrestrictApp_deleteTime()
DHighPowerDetailTest.java90 verify(mBatteryUtils).setForceAppStandby(TEST_UID, TEST_PACKAGE, in onClick_appAddedToDozeAllowlist_getsUnrestricted()
DBackgroundActivityPreferenceControllerTest.java111 doNothing().when(mBatteryUtils).setForceAppStandby(anyInt(), anyString(), anyInt()); in setUp()
/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/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/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java163 batteryUtils.setForceAppStandby(uid, packageName, in saveAnomalyToDatabase()