Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java234 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
235 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
236 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
237 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_STORAGE_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
238 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
239 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
240 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CONNECTIVITY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
241 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CONTENT_TRIGGER)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
244 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
245 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
[all …]
DStateControllerTest.java148 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(false); in testWouldBeReadyWithConstraintLocked()
151 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(true); in testWouldBeReadyWithConstraintLocked()
155 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(true); in testWouldBeReadyWithConstraintLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DStateController.java117 final boolean jobWouldBeReady = jobStatus.wouldBeReadyWithConstraint(constraint); in wouldBeReadyWithConstraintLocked()
DJobStatus.java1222 boolean wouldBeReadyWithConstraint(int constraint) { in wouldBeReadyWithConstraint() method in JobStatus