/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | AppIdleController.java | 52 @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 …]
|
D | DeviceIdleJobsController.java | 60 @Override public void process(JobStatus jobStatus) { 61 updateTaskStateLocked(jobStatus); 166 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 167 updateTaskStateLocked(jobStatus); in maybeStartTrackingJobLocked() 171 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument 179 @Override public void process(JobStatus jobStatus) { in dumpControllerStateLocked() 180 if (!jobStatus.shouldDump(filterUid)) { in dumpControllerStateLocked() 184 jobStatus.printUniqueId(pw); in dumpControllerStateLocked() 186 UserHandle.formatUid(pw, jobStatus.getSourceUid()); in dumpControllerStateLocked() 188 pw.print(jobStatus.getSourcePackageName()); in dumpControllerStateLocked() [all …]
|
D | ConnectivityController.java | 86 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 87 if (jobStatus.hasConnectivityConstraint()) { in maybeStartTrackingJobLocked() 88 updateConstraintsSatisfied(jobStatus, null); in maybeStartTrackingJobLocked() 89 mTrackedJobs.add(jobStatus); in maybeStartTrackingJobLocked() 90 jobStatus.setTrackingController(JobStatus.TRACKING_CONNECTIVITY); in maybeStartTrackingJobLocked() 95 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument 97 if (jobStatus.clearTrackingController(JobStatus.TRACKING_CONNECTIVITY)) { in maybeStopTrackingJobLocked() 98 mTrackedJobs.remove(jobStatus); in maybeStopTrackingJobLocked() 102 private boolean updateConstraintsSatisfied(JobStatus jobStatus, in updateConstraintsSatisfied() argument 104 final int jobUid = jobStatus.getSourceUid(); in updateConstraintsSatisfied() [all …]
|
D | StateController.java | 50 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
|
D | ContentObserverController.java | 268 JobInstance(JobStatus jobStatus) { in JobInstance() argument 269 mJobStatus = jobStatus; in JobInstance() 272 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance() 273 final int sourceUserId = jobStatus.getSourceUserId(); in JobInstance() 284 obs = new ObserverInstance(mHandler, uri, jobStatus.getSourceUserId()); in JobInstance()
|
D | JobStatus.java | 269 public JobStatus(JobStatus jobStatus) { in JobStatus() argument 270 this(jobStatus.getJob(), jobStatus.getUid(), in JobStatus() 271 jobStatus.getSourcePackageName(), jobStatus.getSourceUserId(), in JobStatus() 272 jobStatus.getSourceTag(), jobStatus.getNumFailures(), in JobStatus() 273 jobStatus.getEarliestRunTime(), jobStatus.getLatestRunTimeElapsed()); in JobStatus()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobStore.java | 132 public boolean add(JobStatus jobStatus) { in add() argument 133 boolean replaced = mJobSet.remove(jobStatus); in add() 134 mJobSet.add(jobStatus); in add() 135 if (jobStatus.isPersisted()) { in add() 139 Slog.d(TAG, "Added job status to store: " + jobStatus); in add() 144 boolean containsJob(JobStatus jobStatus) { in containsJob() argument 145 return mJobSet.contains(jobStatus); in containsJob() 161 public boolean remove(JobStatus jobStatus, boolean writeBack) { in remove() argument 162 boolean removed = mJobSet.remove(jobStatus); in remove() 165 Slog.d(TAG, "Couldn't remove job: didn't exist: " + jobStatus); in remove() [all …]
|
D | JobSchedulerService.java | 677 JobStatus jobStatus = JobStatus.createFromJobInfo(job, uId, packageName, userId, tag); in scheduleAsPackage() local 678 if (DEBUG) Slog.d(TAG, "SCHEDULE: " + jobStatus.toShortString()); in scheduleAsPackage() 689 jobStatus.prepareLocked(ActivityManager.getService()); in scheduleAsPackage() 692 cancelJobImplLocked(toCancel, jobStatus, "job rescheduled by app"); in scheduleAsPackage() 696 jobStatus.enqueueWorkLocked(ActivityManager.getService(), work); in scheduleAsPackage() 698 startTrackingJobLocked(jobStatus, toCancel); in scheduleAsPackage() 709 if (isReadyToBeExecutedLocked(jobStatus)) { in scheduleAsPackage() 712 mJobPackageTracker.notePending(jobStatus); in scheduleAsPackage() 713 addOrderedItem(mPendingJobs, jobStatus, mEnqueueTimeComparator); in scheduleAsPackage() 990 private void startTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in startTrackingJobLocked() argument [all …]
|
D | JobCompletedListener.java | 30 void onJobCompletedLocked(JobStatus jobStatus, boolean needsReschedule); in onJobCompletedLocked() argument
|
D | StateChangedListener.java | 39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 261 JobStatus jobStatus = jobStatusSet.getAllJobs().iterator().next(); in testNonPersistedTaskIsNotPersisted() local 262 assertEquals("Wrong job persisted.", 43, jobStatus.getJobId()); in testNonPersistedTaskIsNotPersisted()
|