Home
last modified time | relevance | path

Searched refs:isUserBgRestricted (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBackgroundJobsControllerTest.java234 assertFalse(directJob1.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
236 assertFalse(directJob2.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
238 assertFalse(proxyJob1.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
240 assertFalse(proxyJob2.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
244 assertFalse(directJob1.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
246 assertFalse(directJob2.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
248 assertFalse(proxyJob1.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
250 assertFalse(proxyJob2.isUserBgRestricted()); in testRestartedBroadcastWithoutStopping()
275 assertFalse(directJob1.isUserBgRestricted()); in testStopped_disabled()
277 assertFalse(directJob2.isUserBgRestricted()); in testStopped_disabled()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBackgroundJobsController.java350 final boolean isUserBgRestricted = isStopped in updateSingleJobRestrictionLocked()
370 && isUserBgRestricted in updateSingleJobRestrictionLocked()
389 isUserBgRestricted); in updateSingleJobRestrictionLocked()
DJobStatus.java1802 public boolean isUserBgRestricted() { in isUserBgRestricted() method in JobStatus
1870 boolean isUserBgRestricted) { in setBackgroundNotRestrictedConstraintSatisfied() argument
1871 mIsUserBgRestricted = isUserBgRestricted; in setBackgroundNotRestrictedConstraintSatisfied()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobServiceContext.java419 if (job.shouldTreatAsUserInitiatedJob() && !job.isUserBgRestricted()) { in executeRunnableJob()