Home
last modified time | relevance | path

Searched refs:BIAS_TOP_APP (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBatteryController.java110 if (mService.getUidBias(uid) == JobInfo.BIAS_TOP_APP) { in prepareForExecutionLocked()
153 if (prevBias == JobInfo.BIAS_TOP_APP || newBias == JobInfo.BIAS_TOP_APP) { in onUidBiasChangedLocked()
160 return mService.getUidBias(taskStatus.getSourceUid()) == JobInfo.BIAS_TOP_APP in hasTopExemptionLocked()
DPrefetchController.java206 final boolean isNowTop = newBias == JobInfo.BIAS_TOP_APP; in onUidBiasChangedLocked()
207 final boolean wasTop = prevBias == JobInfo.BIAS_TOP_APP; in onUidBiasChangedLocked()
335 mService.getUidBias(jobStatus.getSourceUid()) == JobInfo.BIAS_TOP_APP; in updateConstraintLocked()
DFlexibilityController.java397 if (jobStatus.lastEvaluatedBias == JobInfo.BIAS_TOP_APP) { in prepareForExecutionLocked()
419 if (jobStatus.lastEvaluatedBias == JobInfo.BIAS_TOP_APP) { in unprepareFromExecutionLocked()
494 || mService.getUidBias(js.getSourceUid()) == JobInfo.BIAS_TOP_APP in isFlexibilitySatisfiedLocked()
774 if (hasPrefetch && prevBias == JobInfo.BIAS_TOP_APP) { in onUidBiasChangedLocked()
DConnectivityController.java230 final int topPriority = prioritizeExistenceOver(JobInfo.BIAS_TOP_APP - 1,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java321 setUidBias(uid1, JobInfo.BIAS_TOP_APP); in testTopPowerConnectedExemption()
353 setUidBias(uid3, JobInfo.BIAS_TOP_APP); in testTopPowerConnectedExemption()
402 setUidBias(mSourceUid, JobInfo.BIAS_TOP_APP); in testControllerOnlyTracksPowerJobs()
DFlexibilityControllerTest.java20 import static android.app.job.JobInfo.BIAS_TOP_APP;
1337 setUidBias(mSourceUid, JobInfo.BIAS_TOP_APP); in testTopAppBypass()
1879 setUidBias(mSourceUid, BIAS_TOP_APP); in testUidUpdatesLifeCycle()
1887 setUidBias(mSourceUid, BIAS_TOP_APP); in testUidUpdatesLifeCycle()
DPrefetchControllerTest.java349 setUidBias(uid, JobInfo.BIAS_TOP_APP); in testConstraintSatisfiedWhenTop()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/
DThermalStatusRestriction.java91 if (bias >= JobInfo.BIAS_TOP_APP) { in isJobRestricted()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java375 if (js1.lastEvaluatedBias == JobInfo.BIAS_TOP_APP) {
376 if (js2.lastEvaluatedBias != JobInfo.BIAS_TOP_APP) {
379 } else if (js2.lastEvaluatedBias == JobInfo.BIAS_TOP_APP) {
998 canReplace = runningJob.lastEvaluatedBias < JobInfo.BIAS_TOP_APP // Case 2 in determineAssignmentsLocked()
999 || currentJobBias < JobInfo.BIAS_TOP_APP // Case 3 in determineAssignmentsLocked()
1246 if (job.lastEvaluatedBias == JobInfo.BIAS_TOP_APP) { in hasImmediacyPrivilegeLocked()
1288 if (prevBias != JobInfo.BIAS_TOP_APP && newBias != JobInfo.BIAS_TOP_APP) { in onUidBiasChangedLocked()
1490 if (jobStatus.lastEvaluatedBias >= JobInfo.BIAS_TOP_APP) { in isPkgConcurrencyLimitedLocked()
2263 if (js.lastEvaluatedBias >= JobInfo.BIAS_TOP_APP) { in getJobWorkTypes()
DJobPackageTracker.java484 if (job.lastEvaluatedBias >= JobInfo.BIAS_TOP_APP) { in noteActive()
495 if (job.lastEvaluatedBias >= JobInfo.BIAS_TOP_APP) { in noteInactive()
DJobSchedulerService.java2432 mUidBiasOverride.put(uid, JobInfo.BIAS_TOP_APP);
4211 if (curBias < JobInfo.BIAS_TOP_APP) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java618 job.lastEvaluatedBias = JobInfo.BIAS_TOP_APP; in testHasImmediacyPrivilege()
633 job.lastEvaluatedBias = JobInfo.BIAS_TOP_APP; in testHasImmediacyPrivilege()
638 job.lastEvaluatedBias = JobInfo.BIAS_TOP_APP; in testHasImmediacyPrivilege()
682 topJob.lastEvaluatedBias = JobInfo.BIAS_TOP_APP; in testIsPkgConcurrencyLimited_top()
DJobSchedulerServiceTest.java2480 createJobInfo(2).setBias(JobInfo.BIAS_TOP_APP));
2493 createJobInfo(1).setBias(JobInfo.BIAS_TOP_APP));
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobInfo.java370 public static final int BIAS_TOP_APP = 40; field in JobInfo
2550 case BIAS_TOP_APP: in getBiasString()
2551 return BIAS_TOP_APP + " [TOP_APP]"; in getBiasString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/restrictions/
DThermalStatusRestrictionTest.java118 JobInfo.BIAS_TOP_APP
358 int jobBias = JobInfo.BIAS_TOP_APP; in testIsJobRestrictedBiasTopApp()