Searched refs:wouldBeReadyWithConstraint (Results 1 – 5 of 5) sorted by relevance
744 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()753 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()754 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()794 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()796 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()800 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()802 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()1194 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()1206 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()1218 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()[all …]
147 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(false); in testWouldBeReadyWithConstraintLocked()150 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(true); in testWouldBeReadyWithConstraintLocked()154 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(true); in testWouldBeReadyWithConstraintLocked()
152 final boolean jobWouldBeReady = jobStatus.wouldBeReadyWithConstraint(constraint); in wouldBeReadyWithConstraintLocked()
2152 boolean wouldBeReadyWithConstraint(int constraint) { in wouldBeReadyWithConstraint() method in JobStatus
4607 HSPLcom/android/server/job/controllers/JobStatus;->wouldBeReadyWithConstraint(I)Z