Searched refs:jobStatus (Results 1 – 7 of 7) sorted by relevance
125 public boolean add(JobStatus jobStatus) { in add() argument126 boolean replaced = mJobSet.remove(jobStatus); in add()127 mJobSet.add(jobStatus); in add()128 if (jobStatus.isPersisted()) { in add()132 Slog.d(TAG, "Added job status to store: " + jobStatus); in add()150 boolean containsJob(JobStatus jobStatus) { in containsJob() argument151 return mJobSet.contains(jobStatus); in containsJob()162 public boolean remove(JobStatus jobStatus) { in remove() argument163 boolean removed = mJobSet.remove(jobStatus); in remove()166 Slog.d(TAG, "Couldn't remove job: didn't exist: " + jobStatus); in remove()[all …]
191 JobStatus jobStatus = new JobStatus(job, uId); in schedule() local193 startTrackingJob(jobStatus); in schedule()378 private void startTrackingJob(JobStatus jobStatus) { in startTrackingJob() argument382 update = mJobs.add(jobStatus); in startTrackingJob()389 controller.maybeStopTrackingJob(jobStatus); in startTrackingJob()391 controller.maybeStartTrackingJob(jobStatus); in startTrackingJob()400 private boolean stopTrackingJob(JobStatus jobStatus) { in stopTrackingJob() argument405 removed = mJobs.remove(jobStatus); in stopTrackingJob()411 controller.maybeStopTrackingJob(jobStatus); in stopTrackingJob()517 public void onJobCompleted(JobStatus jobStatus, boolean needsReschedule) { in onJobCompleted() argument[all …]
31 public void onJobCompleted(JobStatus jobStatus, boolean needsReschedule); in onJobCompleted() argument
39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow() argument
85 public void maybeStartTrackingJob(JobStatus jobStatus) { in maybeStartTrackingJob() argument86 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint()) { in maybeStartTrackingJob()88 jobStatus.connectivityConstraintSatisfied.set(mNetworkConnected); in maybeStartTrackingJob()89 jobStatus.unmeteredConstraintSatisfied.set(mNetworkUnmetered); in maybeStartTrackingJob()90 mTrackedJobs.add(jobStatus); in maybeStartTrackingJob()96 public void maybeStopTrackingJob(JobStatus jobStatus) { in maybeStopTrackingJob() argument97 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint()) { in maybeStopTrackingJob()99 mTrackedJobs.remove(jobStatus); in maybeStopTrackingJob()
65 public void maybeStartTrackingJob(JobStatus jobStatus) { in maybeStartTrackingJob() argument67 mTrackedTasks.add(jobStatus); in maybeStartTrackingJob()68 String packageName = jobStatus.job.getService().getPackageName(); in maybeStartTrackingJob()70 jobStatus.getUserId()); in maybeStartTrackingJob()75 jobStatus.appNotIdleConstraintSatisfied.set(!appIdle); in maybeStartTrackingJob()80 public void maybeStopTrackingJob(JobStatus jobStatus) { in maybeStopTrackingJob() argument82 mTrackedTasks.remove(jobStatus); in maybeStopTrackingJob()
51 public abstract void maybeStartTrackingJob(JobStatus jobStatus); in maybeStartTrackingJob() argument55 public abstract void maybeStopTrackingJob(JobStatus jobStatus); in maybeStopTrackingJob() argument