Home
last modified time | relevance | path

Searched refs:WORK_TYPE_BG (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DWorkTypeConfigTest.java18 import static com.android.server.job.JobConcurrencyManager.WORK_TYPE_BG;
120 /* max */ List.of(Pair.create(WORK_TYPE_BG, .2f)), in test()
146 /* max */ List.of(Pair.create(WORK_TYPE_BG, 0f)), in test()
151 /* min */ List.of(Pair.create(WORK_TYPE_BG, -1f)), in test()
152 /* max */ List.of(Pair.create(WORK_TYPE_BG, -1f)), in test()
204 Pair.create(WORK_TYPE_BG, .1f)), in test()
208 Pair.create(WORK_TYPE_BG, 1)), in test()
220 /* max */ List.of(Pair.create(WORK_TYPE_BG, 1f)), in test()
226 /* max */ List.of(Pair.create(WORK_TYPE_BG, 1f)), in test()
313 Pair.create(WORK_TYPE_BG, 6)), in test()
[all …]
H A DWorkCountTrackerTest.java830 jobs.addPending(WORK_TYPE_BG, 10); in testJobLifecycleLoop()
851 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop()
861 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop()
865 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop()
893 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop()
938 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype()
953 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop_Multitype()
959 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype()
1025 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype_RandomOrder()
1039 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop_Multitype_RandomOrder()
[all …]
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobConcurrencyManager.java176 static final int WORK_TYPE_BG = 1 << 4; field in JobConcurrencyManager
199 WORK_TYPE_BG,
220 case WORK_TYPE_BG: in workTypeToString()
257 List.of(Pair.create(WORK_TYPE_BG, .5f),
270 List.of(Pair.create(WORK_TYPE_BG, .4f),
310 List.of(Pair.create(WORK_TYPE_BG, .6f),
323 List.of(Pair.create(WORK_TYPE_BG, .5f),
2246 classification |= WORK_TYPE_BG; in getJobWorkTypes()
2375 mMaxAllowedSlots.put(WORK_TYPE_BG, maxBg); in update()
2414 mMinReservedSlots.put(WORK_TYPE_BG, minBg); in update()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
H A DJobConcurrencyManagerTest.java26 import static com.android.server.job.JobConcurrencyManager.WORK_TYPE_BG;
307 new TypeConfig(WORK_TYPE_BG, 0, JobConcurrencyManager.DEFAULT_CONCURRENCY_LIMIT)); in testDetermineAssignments_allRegular()
341 new TypeConfig(WORK_TYPE_BG, 0, JobConcurrencyManager.DEFAULT_CONCURRENCY_LIMIT)); in testDetermineAssignments_allPreferredUidOnly_shortTimeLeft()
392 new TypeConfig(WORK_TYPE_BG, 0, JobConcurrencyManager.DEFAULT_CONCURRENCY_LIMIT)); in testDetermineAssignments_allPreferredUidOnly_mediumTimeLeft_onlyRegRunning()
464 new TypeConfig(WORK_TYPE_BG, 0, JobConcurrencyManager.DEFAULT_CONCURRENCY_LIMIT)); in testDetermineAssignments_allPreferredUidOnly_mediumTimeLeft_onlyUiRunning()
526 new TypeConfig(WORK_TYPE_BG, 0, JobConcurrencyManager.DEFAULT_CONCURRENCY_LIMIT)); in testDetermineAssignments_allPreferredUidOnly_longTimeLeft()
1010 case WORK_TYPE_BG: in TypeConfig()