Home
last modified time | relevance | path

Searched refs:jobStatus (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java125 public boolean add(JobStatus jobStatus) { in add() argument
126 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() argument
151 return mJobSet.contains(jobStatus); in containsJob()
162 public boolean remove(JobStatus jobStatus) { in remove() argument
163 boolean removed = mJobSet.remove(jobStatus); in remove()
166 Slog.d(TAG, "Couldn't remove job: didn't exist: " + jobStatus); in remove()
[all …]
DJobSchedulerService.java191 JobStatus jobStatus = new JobStatus(job, uId); in schedule() local
193 startTrackingJob(jobStatus); in schedule()
378 private void startTrackingJob(JobStatus jobStatus) { in startTrackingJob() argument
382 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() argument
405 removed = mJobs.remove(jobStatus); in stopTrackingJob()
411 controller.maybeStopTrackingJob(jobStatus); in stopTrackingJob()
517 public void onJobCompleted(JobStatus jobStatus, boolean needsReschedule) { in onJobCompleted() argument
[all …]
DJobCompletedListener.java31 public void onJobCompleted(JobStatus jobStatus, boolean needsReschedule); in onJobCompleted() argument
DStateChangedListener.java39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow() argument
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java85 public void maybeStartTrackingJob(JobStatus jobStatus) { in maybeStartTrackingJob() argument
86 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() argument
97 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint()) { in maybeStopTrackingJob()
99 mTrackedJobs.remove(jobStatus); in maybeStopTrackingJob()
DAppIdleController.java65 public void maybeStartTrackingJob(JobStatus jobStatus) { in maybeStartTrackingJob() argument
67 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() argument
82 mTrackedTasks.remove(jobStatus); in maybeStopTrackingJob()
DStateController.java51 public abstract void maybeStartTrackingJob(JobStatus jobStatus); in maybeStartTrackingJob() argument
55 public abstract void maybeStopTrackingJob(JobStatus jobStatus); in maybeStopTrackingJob() argument