Searched refs:WORK_TYPE_BG (Results 1 – 3 of 3) sorted by relevance
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
H A D | WorkTypeConfigTest.java | 18 import static com.android.server.job.JobConcurrencyManager.WORK_TYPE_BG; 141 /* max */ List.of(Pair.create(WORK_TYPE_BG, 1)), in test() 157 /* max */ List.of(Pair.create(WORK_TYPE_BG, 0)), in test() 162 /* min */ List.of(Pair.create(WORK_TYPE_BG, -1)), in test() 163 /* max */ List.of(Pair.create(WORK_TYPE_BG, -1)), in test() 199 /* max */ List.of(Pair.create(WORK_TYPE_BG, 1)), in test() 205 Pair.create(WORK_TYPE_BG, 1)), in test() 206 /* max */ List.of(Pair.create(WORK_TYPE_BG, 1)), in test() 209 Pair.create(WORK_TYPE_BG, 1)), in test() 299 Pair.create(WORK_TYPE_BG, 8)), in test() [all …]
|
H A D | WorkCountTrackerTest.java | 119 return WORK_TYPE_BG; in getRandomWorkType() 828 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop() 838 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop() 842 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop() 870 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop() 914 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype() 929 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop_Multitype() 935 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype() 1000 assertThat(mWorkCountTracker.canJobStart(WORK_TYPE_BG)).isEqualTo(WORK_TYPE_BG); in testJobLifecycleLoop_Multitype_RandomOrder() 1014 jobs.running.put(WORK_TYPE_BG, jobs.running.get(WORK_TYPE_BG) - 1); in testJobLifecycleLoop_Multitype_RandomOrder() [all …]
|
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
H A D | JobConcurrencyManager.java | 114 static final int WORK_TYPE_BG = 1 << 3; field in JobConcurrencyManager 135 WORK_TYPE_BG, 154 case WORK_TYPE_BG: in workTypeToString() 186 List.of(Pair.create(WORK_TYPE_BG, 6), 196 List.of(Pair.create(WORK_TYPE_BG, 4), 205 List.of(Pair.create(WORK_TYPE_BG, 2), 214 List.of(Pair.create(WORK_TYPE_BG, 1), 237 List.of(Pair.create(WORK_TYPE_BG, 7), 1249 classification |= WORK_TYPE_BG; in getJobWorkTypes() 1341 mMaxAllowedSlots.put(WORK_TYPE_BG, maxBg); in update() [all …]
|