Lines Matching refs:JobStatus
53 private final ArrayList<JobStatus> mTrackedJobs = new ArrayList<JobStatus>();
83 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) {
84 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint()
85 || jobStatus.hasNotRoamingConstraint()) {
86 updateConstraintsSatisfied(jobStatus);
87 mTrackedJobs.add(jobStatus);
92 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob,
94 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint()
95 || jobStatus.hasNotRoamingConstraint()) {
96 mTrackedJobs.remove(jobStatus);
100 private boolean updateConstraintsSatisfied(JobStatus jobStatus) {
101 final boolean ignoreBlocked = (jobStatus.getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0;
102 final NetworkInfo info = mConnManager.getActiveNetworkInfoForUid(jobStatus.getSourceUid(),
109 changed |= jobStatus.setConnectivityConstraintSatisfied(connected);
110 changed |= jobStatus.setUnmeteredConstraintSatisfied(unmetered);
111 changed |= jobStatus.setNotRoamingConstraintSatisfied(notRoaming);
125 final JobStatus js = mTrackedJobs.get(i);
143 final JobStatus js = mTrackedJobs.get(i);
195 final JobStatus js = mTrackedJobs.get(i);