Home
last modified time | relevance | path

Searched refs:restrictApp (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/apex/jobscheduler/framework/java/com/android/server/usage/
DAppStandbyInternal.java182 void restrictApp(@NonNull String packageName, int userId, in restrictApp() method
199 void restrictApp(@NonNull String packageName, int userId, int mainReason, in restrictApp() method
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java494 verify(mInjector.getAppStandbyInternal(), atLeast(1)).restrictApp( in testTogglingBackgroundRestrictInternal()
546 verify(mInjector.getAppStandbyInternal(), never()).restrictApp( in testTogglingBackgroundRestrictInternal()
556 verify(mInjector.getAppStandbyInternal(), timeout(timeout).times(1)).restrictApp( in testTogglingBackgroundRestrictInternal()
787 verify(mInjector.getAppStandbyInternal()).restrictApp( in testBgCurrentDrainMonitor()
858 verify(mInjector.getAppStandbyInternal(), never()).restrictApp( in testBgCurrentDrainMonitor()
879 verify(mInjector.getAppStandbyInternal(), times(1)).restrictApp( in testBgCurrentDrainMonitor()
2400 expectingTimeout ? never() : atLeast(1)).restrictApp( in runTestBgCurrentDrainExemptionOnce()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java1606 mController.restrictApp(PACKAGE_1, USER_ID, REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE); in testSystemForcedFlags_AddedForSystemForce()
1644 mController.restrictApp(PACKAGE_1, USER_ID, REASON_SUB_FORCED_SYSTEM_FLAG_UNDEFINED); in testSystemForcedFlags_SystemForceChangesBuckets()
1657 mController.restrictApp(PACKAGE_1, USER_ID, REASON_MAIN_PREDICTED, 0); in testRestrictApp_MainReason()
1661 mController.restrictApp(PACKAGE_1, USER_ID, REASON_MAIN_FORCED_BY_USER, 0); in testRestrictApp_MainReason()
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java2199 appStandbyInternal.restrictApp(pkgName, UserHandle.getUserId(uid), in applyRestrictionLevel()
2208 appStandbyInternal.restrictApp(pkgName, UserHandle.getUserId(uid), in applyRestrictionLevel()
2309 ? () -> appStandbyInternal.restrictApp(pkgName, in dispatchAutoRestrictedBucketFeatureFlagChanged()
2823 mActiveUids.add(uid, pkgName, () -> appStandbyInternal.restrictApp(pkgName,
DAppErrors.java926 appStandbyInternal.restrictApp(
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1662 public void restrictApp(@NonNull String packageName, int userId, in restrictApp() method in AppStandbyController
1664 restrictApp(packageName, userId, REASON_MAIN_FORCED_BY_SYSTEM, restrictReason); in restrictApp()
1668 public void restrictApp(@NonNull String packageName, int userId, int mainReason, in restrictApp() method in AppStandbyController
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java1699 mAppStandbyInternal.restrictApp(
3191 mAppStandbyInternal.restrictApp(
3200 mAppStandbyInternal.restrictApp(callingPkg, callingUserId,