Searched refs:maxBg (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobCountTrackerTest.java | 85 private void startPendingJobs(Jobs jobs, int totalMax, int maxBg, int minBg) { in startPendingJobs() argument 86 mJobCountTracker.reset(totalMax, maxBg, minBg); in startPendingJobs() 129 private void checkRandom(Jobs jobs, int numTests, int totalMax, int maxBg, int minBg, in checkRandom() argument 136 startPendingJobs(jobs, totalMax, maxBg, minBg); in checkRandom() 141 assertThat(jobs.runningBg).isAtMost(maxBg); in checkRandom() 154 final int maxBg = 4; in testRandom1() local 160 checkRandom(jobs, numTests, totalMax, maxBg, minBg, startRatio, fgJobRatio , stopRatio); in testRandom1() 169 final int maxBg = 2; in testRandom2() local 175 checkRandom(jobs, numTests, totalMax, maxBg, minBg, startRatio, fgJobRatio, stopRatio); in testRandom2() 184 final int maxBg = 2; in testRandom3() local [all …]
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobConcurrencyManager.java | 625 final int maxBg = Math.min( in onCountDone() local 633 maxBg, in onCountDone()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 369 int maxBg = 0; in ActiveServices() local 371 maxBg = Integer.parseInt(SystemProperties.get("ro.config.max_starting_bg", "0")); in ActiveServices() 374 mMaxStartingBackground = maxBg > 0 in ActiveServices() 375 ? maxBg : ActivityManager.isLowRamDeviceStatic() ? 1 : 8; in ActiveServices()
|