Searched refs:wouldBeReadyWithConstraint (Results 1 – 5 of 5) sorted by relevance
237 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()246 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()247 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()251 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()266 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()268 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()287 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()289 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()293 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()295 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()[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()
145 final boolean jobWouldBeReady = jobStatus.wouldBeReadyWithConstraint(constraint); in wouldBeReadyWithConstraintLocked()
1432 boolean wouldBeReadyWithConstraint(int constraint) { in wouldBeReadyWithConstraint() method in JobStatus
20939 HSPLcom/android/server/job/controllers/JobStatus;->wouldBeReadyWithConstraint(I)Z