Searched refs:setForceAppStandby (Results 1 – 13 of 13) sorted by relevance
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryOptimizeUtils.java | 79 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()
|
D | BatteryUtils.java | 329 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() method in BatteryUtils 360 setForceAppStandby(uid, packageName, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby()
|
D | HighPowerDetail.java | 144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAddTest.java | 62 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/ |
D | BatteryOptimizeUtilsTest.java | 124 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()
|
D | BatteryUtilsTest.java | 344 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()
|
D | HighPowerDetailTest.java | 90 verify(mBatteryUtils).setForceAppStandby(TEST_UID, TEST_PACKAGE, in onClick_appAddedToDozeAllowlist_getsUnrestricted()
|
D | BackgroundActivityPreferenceControllerTest.java | 111 doNothing().when(mBatteryUtils).setForceAppStandby(anyInt(), anyString(), anyInt()); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | RestrictAppActionTest.java | 91 .setForceAppStandby(UID_1, PACKAGE_NAME_1, AppOpsManager.MODE_IGNORED); in testHandlePositiveAction() 93 .setForceAppStandby(UID_2, PACKAGE_NAME_2, AppOpsManager.MODE_IGNORED); in testHandlePositiveAction()
|
D | UnrestrictAppActionTest.java | 77 .setForceAppStandby(UID_1, PACKAGE_NAME_1, AppOpsManager.MODE_ALLOWED); in testHandlePositiveAction()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | UnrestrictAppAction.java | 50 mBatteryUtils.setForceAppStandby(appInfo.uid, appInfo.packageName, in handlePositiveAction()
|
D | RestrictAppAction.java | 62 mBatteryUtils.setForceAppStandby(appInfo.uid, packageName, in handlePositiveAction()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDetectionJobService.java | 163 batteryUtils.setForceAppStandby(uid, packageName, in saveAnomalyToDatabase()
|