Home
last modified time | relevance | path

Searched refs:CONSTRAINT_IDLE (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DFlexibilityControllerTest.java36 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 …]
H A DJobStatusTest.java39 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 …]
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DIdleController.java98 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_IDLE, isIdle); in reportNewIdleState()
102 JobStatus.CONSTRAINT_IDLE, isIdle, nowElapsed); in reportNewIdleState()
H A DJobStatus.java150 | 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 …]
H A DFlexibilityController.java28 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
69 | CONSTRAINT_IDLE;
74 | CONSTRAINT_IDLE;
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java221 | JobStatus.CONSTRAINT_IDLE in testDynamicConstraintsNotPersisted()