Searched refs:CONSTRAINT_IDLE (Results 1 – 6 of 6) sorted by relevance
36 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;759 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()762 assertTrue(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()765 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()773 CONSTRAINT_IDLE & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()774 CONSTRAINT_IDLE & CONSTRAINT_CHARGING, in testSetConstraintSatisfied_Jobs()776 CONSTRAINT_IDLE, in testSetConstraintSatisfied_Jobs()786 jb.setRequiresDeviceIdle((constraints & CONSTRAINT_IDLE) != 0); in testSetConstraintSatisfied_Jobs()787 jb.setPrefersDeviceIdle((constraints & CONSTRAINT_IDLE) == 0); in testSetConstraintSatisfied_Jobs()808 mFlexibilityController.setConstraintSatisfied(CONSTRAINT_IDLE, in testSetConstraintSatisfied_Jobs()[all …]
39 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;744 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); 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 …]
98 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_IDLE, isIdle); in reportNewIdleState()102 JobStatus.CONSTRAINT_IDLE, isIdle, nowElapsed); in reportNewIdleState()
150 | CONSTRAINT_IDLE;1479 return hasConstraint(CONSTRAINT_IDLE); in hasIdleConstraint()1727 return setConstraintSatisfied(CONSTRAINT_IDLE, nowElapsed, state); in setIdleConstraintSatisfied()1914 case CONSTRAINT_IDLE: in constraintToStopReason()2012 if ((CONSTRAINT_IDLE & unsatisfiedConstraints) != 0) { in getPendingJobReason()2013 if ((CONSTRAINT_IDLE & requiredConstraints) != 0) { in getPendingJobReason()2449 if ((constraints & CONSTRAINT_IDLE) != 0) { in dumpConstraints()2502 case CONSTRAINT_IDLE: in getProtoConstraint()2503 return JobServerProtoEnums.CONSTRAINT_IDLE; in getProtoConstraint()2536 if ((constraints & CONSTRAINT_IDLE) != 0) { in dumpConstraints()[all …]
28 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;69 | CONSTRAINT_IDLE;74 | CONSTRAINT_IDLE;
221 | JobStatus.CONSTRAINT_IDLE in testDynamicConstraintsNotPersisted()