Home
last modified time | relevance | path

Searched refs:mTrackedJobs (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DPrefetchController.java77 private final SparseArrayMap<String, ArraySet<JobStatus>> mTrackedJobs = new SparseArrayMap<>(); field in PrefetchController
156 ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStartTrackingJobLocked()
159 mTrackedJobs.add(userId, pkgName, jobs); in maybeStartTrackingJobLocked()
176 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStopTrackingJobLocked()
190 mTrackedJobs.delete(userId, packageName); in onAppRemovedLocked()
198 mTrackedJobs.delete(userId); in onUserRemovedLocked()
242 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeUpdateConstraintForPkgLocked()
266 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeUpdateConstraintForUid()
294 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in processUpdatedEstimatedLaunchTime()
358 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in updateThresholdAlarmLocked()
[all …]
DTimeController.java68 private final PriorityQueue<JobStatus> mTrackedJobs = field in TimeController
113 mTrackedJobs.add(job); in maybeStartTrackingJobLocked()
139 if (mTrackedJobs.remove(job)) { in maybeStopTrackingJobLocked()
161 mTrackedJobs.remove(job); in evaluateStateLocked()
177 mTrackedJobs.remove(job); in evaluateStateLocked()
224 Iterator<JobStatus> it = mTrackedJobs.iterator(); in checkExpiredDeadlinesAndResetAlarm()
284 Iterator<JobStatus> it = mTrackedJobs.iterator(); in checkExpiredDelaysAndResetAlarm()
436 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked()
473 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked()
DConnectivityController.java159 private final SparseArray<ArraySet<JobStatus>> mTrackedJobs = new SparseArray<>(); field in ConnectivityController
344 ArraySet<JobStatus> jobs = mTrackedJobs.get(jobStatus.getSourceUid()); in maybeStartTrackingJobLocked()
347 mTrackedJobs.put(jobStatus.getSourceUid(), jobs); in maybeStartTrackingJobLocked()
380 ArraySet<JobStatus> jobs = mTrackedJobs.get(jobStatus.getSourceUid()); in maybeStopTrackingJobLocked()
545 ArraySet<JobStatus> jobs = mTrackedJobs.get(uid); in reevaluateStateLocked()
598 mTrackedJobs.delete(uid); in onAppRemovedLocked()
1222 ArraySet<JobStatus> jobs = mTrackedJobs.get(us.uid); in maybeAdjustRegisteredCallbacksLocked()
1281 changedJobs.addAll(mTrackedJobs.get(us.uid)); in maybeAdjustRegisteredCallbacksLocked()
1316 final ArraySet<JobStatus> jobs = mTrackedJobs.get(uid); in unregisterDefaultNetworkCallbackLocked()
1494 for (int i = mTrackedJobs.size() - 1; i >= 0; i--) { in updateTrackedJobsLocked()
[all …]
DFlexibilityController.java832 final ArrayList<ArraySet<JobStatus>> mTrackedJobs; field in FlexibilityController.FlexibilityTracker
835 mTrackedJobs = new ArrayList<>(); in FlexibilityTracker()
837 mTrackedJobs.add(new ArraySet<JobStatus>()); in FlexibilityTracker()
844 if (numRequired > mTrackedJobs.size()) { in getJobsByNumRequiredConstraints()
848 return mTrackedJobs.get(numRequired); in getJobsByNumRequiredConstraints()
856 mTrackedJobs.get(js.getNumRequiredFlexibleConstraints()).add(js); in add()
861 mTrackedJobs.get(js.getNumRequiredFlexibleConstraints()).remove(js); in remove()
888 mTrackedJobs.get(prevNumRequired).remove(js); in updateFlexibleConstraints()
912 return mTrackedJobs; in getArrayList()
927 return mTrackedJobs.size(); in size()
[all …]
DQuotaController.java267 private final SparseArrayMap<String, ArraySet<JobStatus>> mTrackedJobs = new SparseArrayMap<>(); field in QuotaController
591 ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStartTrackingJobLocked()
594 mTrackedJobs.add(userId, pkgName, jobs); in maybeStartTrackingJobLocked()
669 ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStopTrackingJobLocked()
701 mTrackedJobs.delete(userId); in onUserRemovedLocked()
720 mTrackedJobs.delete(userId, packageName); in clearAppStatsLocked()
1681 for (int u = 0; u < mTrackedJobs.numMaps(); ++u) { in maybeUpdateAllConstraintsLocked()
1682 final int userId = mTrackedJobs.keyAt(u); in maybeUpdateAllConstraintsLocked()
1683 for (int p = 0; p < mTrackedJobs.numElementsForKey(userId); ++p) { in maybeUpdateAllConstraintsLocked()
1684 final String packageName = mTrackedJobs.keyAt(u, p); in maybeUpdateAllConstraintsLocked()
[all …]