Searched refs:wouldBeReadyWithConstraint (Results 1 – 4 of 4) sorted by relevance
234 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 …]
148 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()
117 final boolean jobWouldBeReady = jobStatus.wouldBeReadyWithConstraint(constraint); in wouldBeReadyWithConstraintLocked()
1222 boolean wouldBeReadyWithConstraint(int constraint) { in wouldBeReadyWithConstraint() method in JobStatus