Searched refs:CONSTRAINT_FLEXIBLE (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 40 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_FLEXIBLE; 1283 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_FLEXIBLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness() 1295 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_FLEXIBLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness() 1307 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_FLEXIBLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness() 1319 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_FLEXIBLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness() 1326 job.setConstraintSatisfied(CONSTRAINT_FLEXIBLE, sElapsedRealtimeClock.millis(), false); in testReadinessStatusWithConstraint_FlexibilityConstraint() 1328 assertTrue(job.readinessStatusWithConstraint(CONSTRAINT_FLEXIBLE, true)); in testReadinessStatusWithConstraint_FlexibilityConstraint() 1329 assertFalse(job.readinessStatusWithConstraint(CONSTRAINT_FLEXIBLE, false)); in testReadinessStatusWithConstraint_FlexibilityConstraint() 1332 assertFalse(job.readinessStatusWithConstraint(CONSTRAINT_FLEXIBLE, true)); in testReadinessStatusWithConstraint_FlexibilityConstraint() 1333 assertFalse(job.readinessStatusWithConstraint(CONSTRAINT_FLEXIBLE, false)); in testReadinessStatusWithConstraint_FlexibilityConstraint() [all …]
|
D | FlexibilityControllerTest.java | 50 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_FLEXIBLE; 1340 assertTrue(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in testTopAppBypass() 1345 assertFalse(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in testTopAppBypass() 1912 assertTrue(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in runTestUnsupportedDevice() 2013 js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in assertSatisfiedJobsMatchSatisfiedConstraints()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | JobStatus.java | 124 public static final int CONSTRAINT_FLEXIBLE = 1 << 21; // Implicit constraint field in JobStatus 129 | CONSTRAINT_FLEXIBLE 705 requiredConstraints |= CONSTRAINT_FLEXIBLE; in JobStatus() 1601 return (requiredConstraints & CONSTRAINT_FLEXIBLE) != 0; in hasFlexibilityConstraint() 1892 return setConstraintSatisfied(CONSTRAINT_FLEXIBLE, nowElapsed, state); in setFlexibilityConstraintSatisfied() 2037 case CONSTRAINT_FLEXIBLE: in constraintToStopReason() 2101 if ((CONSTRAINT_FLEXIBLE & unsatisfiedConstraints) != 0) { in getPendingJobReason() 2283 if (constraint != CONSTRAINT_FLEXIBLE) { in readinessStatusWithConstraint() 2284 satisfied |= CONSTRAINT_FLEXIBLE; in readinessStatusWithConstraint() 2334 | CONSTRAINT_FLEXIBLE; [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobServiceContext.java | 529 job.isConstraintSatisfied(JobStatus.CONSTRAINT_FLEXIBLE), in executeRunnableJob() 1589 completedJob.isConstraintSatisfied(JobStatus.CONSTRAINT_FLEXIBLE), in closeAndCleanupJobLocked()
|
D | JobSchedulerService.java | 2398 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_FLEXIBLE),
|