Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/job/controllers/
DAppIdleController.java52 @Override public void process(JobStatus jobStatus) { in process() argument
53 String packageName = jobStatus.getSourcePackageName(); in process()
55 jobStatus.getSourceUid(), jobStatus.getSourceUserId()); in process()
59 if (jobStatus.setAppNotIdleConstraintSatisfied(!appIdle)) { in process()
77 @Override public void process(JobStatus jobStatus) { in process() argument
78 if (jobStatus.getSourcePackageName().equals(mPackage) in process()
79 && jobStatus.getSourceUserId() == mUserId) { in process()
80 if (jobStatus.setAppNotIdleConstraintSatisfied(!mIdle)) { in process()
110 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
115 String packageName = jobStatus.getSourcePackageName(); in maybeStartTrackingJobLocked()
[all …]
DConnectivityController.java83 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
84 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint() in maybeStartTrackingJobLocked()
85 || jobStatus.hasNotRoamingConstraint()) { in maybeStartTrackingJobLocked()
86 updateConstraintsSatisfied(jobStatus); in maybeStartTrackingJobLocked()
87 mTrackedJobs.add(jobStatus); in maybeStartTrackingJobLocked()
92 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
94 if (jobStatus.hasConnectivityConstraint() || jobStatus.hasUnmeteredConstraint() in maybeStopTrackingJobLocked()
95 || jobStatus.hasNotRoamingConstraint()) { in maybeStopTrackingJobLocked()
96 mTrackedJobs.remove(jobStatus); in maybeStopTrackingJobLocked()
100 private boolean updateConstraintsSatisfied(JobStatus jobStatus) { in updateConstraintsSatisfied() argument
[all …]
DDeviceIdleJobsController.java60 @Override public void process(JobStatus jobStatus) {
61 updateTaskStateLocked(jobStatus);
166 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
168 updateTaskStateLocked(jobStatus); in maybeStartTrackingJobLocked()
173 …public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, boolean forUpda… in maybeStopTrackingJobLocked() argument
180 @Override public void process(JobStatus jobStatus) { in dumpControllerStateLocked()
181 if (!jobStatus.shouldDump(filterUid)) { in dumpControllerStateLocked()
185 jobStatus.printUniqueId(pw); in dumpControllerStateLocked()
187 UserHandle.formatUid(pw, jobStatus.getSourceUid()); in dumpControllerStateLocked()
189 pw.print(jobStatus.getSourcePackageName()); in dumpControllerStateLocked()
[all …]
DStateController.java50 public abstract void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob); in maybeStartTrackingJobLocked() argument
54 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked() argument
59 public abstract void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
DJobStatus.java194 public JobStatus(JobStatus jobStatus) { in JobStatus() argument
195 this(jobStatus.getJob(), jobStatus.getUid(), in JobStatus()
196 jobStatus.getSourcePackageName(), jobStatus.getSourceUserId(), in JobStatus()
197 jobStatus.getSourceTag(), jobStatus.getNumFailures(), in JobStatus()
198 jobStatus.getEarliestRunTime(), jobStatus.getLatestRunTimeElapsed()); in JobStatus()
DContentObserverController.java261 JobInstance(JobStatus jobStatus) { in JobInstance() argument
262 mJobStatus = jobStatus; in JobInstance()
265 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java129 public boolean add(JobStatus jobStatus) { in add() argument
130 boolean replaced = mJobSet.remove(jobStatus); in add()
131 mJobSet.add(jobStatus); in add()
132 if (jobStatus.isPersisted()) { in add()
136 Slog.d(TAG, "Added job status to store: " + jobStatus); in add()
141 boolean containsJob(JobStatus jobStatus) { in containsJob() argument
142 return mJobSet.contains(jobStatus); in containsJob()
158 public boolean remove(JobStatus jobStatus, boolean writeBack) { in remove() argument
159 boolean removed = mJobSet.remove(jobStatus); in remove()
162 Slog.d(TAG, "Couldn't remove job: didn't exist: " + jobStatus); in remove()
[all …]
DJobSchedulerService.java518 JobStatus jobStatus = JobStatus.createFromJobInfo(job, uId, packageName, userId, tag); in scheduleAsPackage() local
528 if (DEBUG) Slog.d(TAG, "SCHEDULE: " + jobStatus.toShortString()); in scheduleAsPackage()
542 cancelJobImpl(toCancel, jobStatus); in scheduleAsPackage()
544 startTrackingJob(jobStatus, toCancel); in scheduleAsPackage()
806 private void startTrackingJob(JobStatus jobStatus, JobStatus lastJob) { in startTrackingJob() argument
808 final boolean update = mJobs.add(jobStatus); in startTrackingJob()
813 controller.maybeStopTrackingJobLocked(jobStatus, null, true); in startTrackingJob()
815 controller.maybeStartTrackingJobLocked(jobStatus, lastJob); in startTrackingJob()
825 private boolean stopTrackingJob(JobStatus jobStatus, JobStatus incomingJob, in stopTrackingJob() argument
829 final boolean removed = mJobs.remove(jobStatus, writeBack); in stopTrackingJob()
[all …]
DJobCompletedListener.java30 void onJobCompleted(JobStatus jobStatus, boolean needsReschedule); in onJobCompleted() argument
DStateChangedListener.java39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java262 JobStatus jobStatus = jobStatusSet.getAllJobs().iterator().next(); in testNonPersistedTaskIsNotPersisted() local
263 assertEquals("Wrong job persisted.", 43, jobStatus.getJobId()); in testNonPersistedTaskIsNotPersisted()