Home
last modified time | relevance | path

Searched refs:JobStatus (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java16 import com.android.server.job.controllers.JobStatus;
62 final JobStatus ts = JobStatus.createFromJobInfo(task, SOME_UID, null, -1, null); in testMaybeWriteStatusToDisk()
70 final JobStatus loadedTaskStatus = jobStatusSet.getAllJobs().get(0); in testMaybeWriteStatusToDisk()
95 final JobStatus taskStatus1 = JobStatus.createFromJobInfo(task1, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk()
96 final JobStatus taskStatus2 = JobStatus.createFromJobInfo(task2, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk()
104 Iterator<JobStatus> it = jobStatusSet.getAllJobs().iterator(); in testWritingTwoFilesToDisk()
105 JobStatus loaded1 = it.next(); in testWritingTwoFilesToDisk()
106 JobStatus loaded2 = it.next(); in testWritingTwoFilesToDisk()
110 JobStatus tmp = loaded1; in testWritingTwoFilesToDisk()
144 JobStatus taskStatus = JobStatus.createFromJobInfo(task, SOME_UID, null, -1, null); in testWritingTaskWithExtras()
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java38 import com.android.server.job.controllers.JobStatus;
129 public boolean add(JobStatus jobStatus) { in add()
141 boolean containsJob(JobStatus jobStatus) { in containsJob()
158 public boolean remove(JobStatus jobStatus, boolean writeBack) { in remove()
182 public List<JobStatus> getJobsByUser(int userHandle) { in getJobsByUser()
190 public List<JobStatus> getJobsByUid(int uid) { in getJobsByUid()
199 public JobStatus getJobByUidAndJobId(int uid, int jobId) { in getJobByUidAndJobId()
218 public void process(JobStatus jobStatus); in process()
259 final List<JobStatus> storeCopy = new ArrayList<JobStatus>(); in run()
264 public void process(JobStatus job) { in run()
[all …]
DJobSchedulerService.java83 import com.android.server.job.controllers.JobStatus;
137 final ArrayList<JobStatus> mPendingJobs = new ArrayList<>();
177 JobStatus[] mTmpAssignContextIdToJobMap = new JobStatus[MAX_JOB_CONTEXTS_COUNT];
518 JobStatus jobStatus = JobStatus.createFromJobInfo(job, uId, packageName, userId, tag); in scheduleAsPackage()
529 JobStatus toCancel; in scheduleAsPackage()
552 List<JobStatus> jobs = mJobs.getJobsByUid(uid); in getPendingJobs()
555 JobStatus job = jobs.get(i); in getPendingJobs()
564 List<JobStatus> jobs = mJobs.getJobsByUid(uid); in getPendingJob()
566 JobStatus job = jobs.get(i); in getPendingJob()
576 List<JobStatus> jobsForUser; in cancelJobsForUser()
[all …]
DJobServiceContext.java44 import com.android.server.job.controllers.JobStatus;
124 private JobStatus mRunningJob;
165 boolean executeRunnableJob(JobStatus job) { in executeRunnableJob()
225 JobStatus getRunningJob() { in getRunningJob()
226 final JobStatus job; in getRunningJob()
230 return job == null ? null : new JobStatus(job); in getRunningJob()
295 JobStatus runningJob; in onServiceConnected()
582 final JobStatus completedJob; in closeAndCleanupJobH()
DJobCompletedListener.java19 import com.android.server.job.controllers.JobStatus;
30 void onJobCompleted(JobStatus jobStatus, boolean needsReschedule); in onJobCompleted()
DStateChangedListener.java19 import com.android.server.job.controllers.JobStatus;
39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow()
DJobPackageTracker.java27 import com.android.server.job.controllers.JobStatus;
346 public void notePending(JobStatus job) { in notePending()
352 public void noteNonpending(JobStatus job) { in noteNonpending()
358 public void noteActive(JobStatus job) { in noteActive()
369 public void noteInactive(JobStatus job) { in noteInactive()
389 public float getLoadFactor(JobStatus job) { in getLoadFactor()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java54 private final List<JobStatus> mTrackedJobs = new LinkedList<JobStatus>();
78 public void maybeStartTrackingJobLocked(JobStatus job, JobStatus lastJob) { in maybeStartTrackingJobLocked()
82 ListIterator<JobStatus> it = mTrackedJobs.listIterator(mTrackedJobs.size()); in maybeStartTrackingJobLocked()
84 JobStatus ts = it.previous(); in maybeStartTrackingJobLocked()
108 … public void maybeStopTrackingJobLocked(JobStatus job, JobStatus incomingJob, boolean forUpdate) { in maybeStopTrackingJobLocked()
121 private boolean canStopTrackingJobLocked(JobStatus job) { in canStopTrackingJobLocked()
123 (job.satisfiedConstraints&JobStatus.CONSTRAINT_TIMING_DELAY) != 0) && in canStopTrackingJobLocked()
125 (job.satisfiedConstraints&JobStatus.CONSTRAINT_DEADLINE) != 0); in canStopTrackingJobLocked()
144 Iterator<JobStatus> it = mTrackedJobs.iterator(); in checkExpiredDeadlinesAndResetAlarm()
146 JobStatus job = it.next(); in checkExpiredDeadlinesAndResetAlarm()
[all …]
DStateController.java50 public abstract void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob); in maybeStartTrackingJobLocked()
54 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked()
59 public abstract void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked()
64 public void rescheduleForFailure(JobStatus newJob, JobStatus failureToReschedule) { in rescheduleForFailure()
DDeviceIdleJobsController.java60 @Override public void process(JobStatus jobStatus) {
150 boolean isWhitelistedLocked(JobStatus job) { in isWhitelistedLocked()
159 private void updateTaskStateLocked(JobStatus task) { in updateTaskStateLocked()
166 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
173 …public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, boolean forUpda… in maybeStopTrackingJobLocked()
180 @Override public void process(JobStatus jobStatus) { in dumpControllerStateLocked()
191 & JobStatus.CONSTRAINT_DEVICE_NOT_DOZING) != 0 in dumpControllerStateLocked()
DConnectivityController.java53 private final ArrayList<JobStatus> mTrackedJobs = new ArrayList<JobStatus>();
83 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
92 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked()
100 private boolean updateConstraintsSatisfied(JobStatus jobStatus) { in updateConstraintsSatisfied()
125 final JobStatus js = mTrackedJobs.get(i); in updateTrackedJobs()
143 final JobStatus js = mTrackedJobs.get(i); in onNetworkActive()
195 final JobStatus js = mTrackedJobs.get(i); in dumpControllerStateLocked()
DAppIdleController.java52 @Override public void process(JobStatus jobStatus) { in process()
77 @Override public void process(JobStatus jobStatus) { in process()
110 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
126 …public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, boolean forUpda… in maybeStopTrackingJobLocked()
134 @Override public void process(JobStatus jobStatus) { in dumpControllerStateLocked()
145 if ((jobStatus.satisfiedConstraints&JobStatus.CONSTRAINT_APP_NOT_IDLE) != 0) { in dumpControllerStateLocked()
DBatteryController.java50 private List<JobStatus> mTrackedTasks = new ArrayList<JobStatus>();
82 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
91 …public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, boolean forUpd… in maybeStopTrackingJobLocked()
104 for (JobStatus ts : mTrackedTasks) { in maybeReportNewChargingState()
205 final JobStatus js = mTrackedTasks.get(i); in dumpControllerStateLocked()
DIdleController.java43 final ArrayList<JobStatus> mTrackedTasks = new ArrayList<JobStatus>();
69 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
77 …public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, boolean forUpd… in maybeStopTrackingJobLocked()
86 for (JobStatus task : mTrackedTasks) { in reportNewIdleState()
199 final JobStatus js = mTrackedTasks.get(i); in dumpControllerStateLocked()
DContentObserverController.java61 final private List<JobStatus> mTrackedTasks = new ArrayList<JobStatus>();
88 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
137 public void prepareForExecutionLocked(JobStatus taskStatus) { in prepareForExecutionLocked()
150 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked()
191 public void rescheduleForFailure(JobStatus newJob, JobStatus failureToReschedule) { in rescheduleForFailure()
253 final JobStatus mJobStatus;
261 JobInstance(JobStatus jobStatus) { in JobInstance()
354 Iterator<JobStatus> it = mTrackedTasks.iterator(); in dumpControllerStateLocked()
356 JobStatus js = it.next(); in dumpControllerStateLocked()
DJobStatus.java44 public final class JobStatus { class
129 private JobStatus(JobInfo job, int callingUid, String sourcePackageName, in JobStatus() method in JobStatus
194 public JobStatus(JobStatus jobStatus) { in JobStatus() method in JobStatus
208 public JobStatus(JobInfo job, int callingUid, String sourcePackageName, int sourceUserId, in JobStatus() method in JobStatus
215 public JobStatus(JobStatus rescheduling, long newEarliestRuntimeElapsedMillis, in JobStatus() method in JobStatus
230 public static JobStatus createFromJobInfo(JobInfo job, int callingUid, String sourcePackageName, in createFromJobInfo()
243 return new JobStatus(job, callingUid, sourcePackageName, sourceUserId, tag, 0, in createFromJobInfo()