Home
last modified time | relevance | path

Searched refs:stoppable (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
H A DJobConcurrencyManagerTest.java219 idle, preferredUidOnly, stoppable, assignmentInfo); in testPrepareForAssignmentDetermination_noJobs()
223 assertEquals(0, stoppable.size()); in testPrepareForAssignmentDetermination_noJobs()
241 idle, preferredUidOnly, stoppable, assignmentInfo); in testPrepareForAssignmentDetermination_onlyPendingJobs()
245 assertEquals(0, stoppable.size()); in testPrepareForAssignmentDetermination_onlyPendingJobs()
267 idle, preferredUidOnly, stoppable, assignmentInfo); in testPrepareForAssignmentDetermination_onlyPreferredUidOnly()
271 assertEquals(0, stoppable.size()); in testPrepareForAssignmentDetermination_onlyPreferredUidOnly()
294 idle, preferredUidOnly, stoppable, assignmentInfo); in testPrepareForAssignmentDetermination_onlyStartedWithImmediacyPrivilege()
325 idle, preferredUidOnly, stoppable, assignmentInfo); in testDetermineAssignments_allRegular()
373 idle, preferredUidOnly, stoppable, assignmentInfo); in testDetermineAssignments_allPreferredUidOnly_shortTimeLeft()
430 idle, preferredUidOnly, stoppable, assignmentInfo); in testDetermineAssignments_allPreferredUidOnly_mediumTimeLeft_onlyRegRunning()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/
H A DFlowUtilTests.kt135 val stoppable = merge(state, stop).takeWhile { it is Int }.filterIsInstance<Int>() regex
137 val job1 = launch { assertThatFlow(stoppable.pairwise()).emitsExactly(WithPrev(1, 2)) }
139 val job2 = launch { assertThatFlow(stoppable.pairwise()).emitsNothing() }
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobConcurrencyManager.java820 final List<ContextAssignment> stoppable, in prepareForAssignmentDeterminationLocked() argument
865 stoppable.add(assignment); in prepareForAssignmentDeterminationLocked()
874 stoppable.sort(sDeterminationComparator); in prepareForAssignmentDeterminationLocked()
908 final List<ContextAssignment> stoppable, in determineAssignmentsLocked() argument
974 if (selectedContext == null && stoppable.size() > 0) { in determineAssignmentsLocked()
975 for (int s = stoppable.size() - 1; s >= 0; --s) { in determineAssignmentsLocked()
1019 stoppable.remove(s); in determineAssignmentsLocked()
1202 final List<ContextAssignment> stoppable, in cleanUpAfterAssignmentChangesLocked() argument
1205 for (int s = stoppable.size() - 1; s >= 0; --s) { in cleanUpAfterAssignmentChangesLocked()
1206 final ContextAssignment assignment = stoppable.get(s); in cleanUpAfterAssignmentChangesLocked()
[all …]