Home
last modified time | relevance | path

Searched refs:wouldBeReadyWithConstraint (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java127 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
128 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
129 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
130 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_STORAGE_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
131 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
132 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
133 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CONNECTIVITY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
134 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CONTENT_TRIGGER)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
137 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
138 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
[all …]
DStateControllerTest.java148 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()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DStateController.java117 final boolean jobWouldBeReady = jobStatus.wouldBeReadyWithConstraint(constraint); in wouldBeReadyWithConstraintLocked()
DJobStatus.java1070 boolean wouldBeReadyWithConstraint(int constraint) { in wouldBeReadyWithConstraint() method in JobStatus
/frameworks/base/services/
Dart-profile7728 HSPLcom/android/server/job/controllers/JobStatus;->wouldBeReadyWithConstraint(I)Z