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/
DConnectivityController.java87 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
88 if (jobStatus.hasConnectivityConstraint()) { in maybeStartTrackingJobLocked()
89 updateConstraintsSatisfied(jobStatus); in maybeStartTrackingJobLocked()
90 mTrackedJobs.add(jobStatus); in maybeStartTrackingJobLocked()
91 jobStatus.setTrackingController(JobStatus.TRACKING_CONNECTIVITY); in maybeStartTrackingJobLocked()
97 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
99 if (jobStatus.clearTrackingController(JobStatus.TRACKING_CONNECTIVITY)) { in maybeStopTrackingJobLocked()
100 mTrackedJobs.remove(jobStatus); in maybeStopTrackingJobLocked()
112 private static boolean isInsane(JobStatus jobStatus, Network network, in isInsane() argument
114 final long estimatedBytes = jobStatus.getEstimatedNetworkBytes(); in isInsane()
[all …]
DBackgroundJobsController.java68 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
69 updateSingleJobRestrictionLocked(jobStatus, UNKNOWN); in maybeStartTrackingJobLocked()
73 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
83 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked()
84 final int uid = jobStatus.getSourceUid(); in dumpControllerStateLocked()
85 final String sourcePkg = jobStatus.getSourcePackageName(); in dumpControllerStateLocked()
87 jobStatus.printUniqueId(pw); in dumpControllerStateLocked()
102 if ((jobStatus.satisfiedConstraints in dumpControllerStateLocked()
120 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked()
124 jobStatus.writeToShortProto(proto, in dumpControllerStateLocked()
[all …]
DDeviceIdleJobsController.java215 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
216 if ((jobStatus.getFlags()&JobInfo.FLAG_IMPORTANT_WHILE_FOREGROUND) != 0) { in maybeStartTrackingJobLocked()
217 mAllowInIdleJobs.add(jobStatus); in maybeStartTrackingJobLocked()
219 updateTaskStateLocked(jobStatus); in maybeStartTrackingJobLocked()
223 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
225 if ((jobStatus.getFlags()&JobInfo.FLAG_IMPORTANT_WHILE_FOREGROUND) != 0) { in maybeStopTrackingJobLocked()
226 mAllowInIdleJobs.remove(jobStatus); in maybeStopTrackingJobLocked()
236 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked()
238 jobStatus.printUniqueId(pw); in dumpControllerStateLocked()
240 UserHandle.formatUid(pw, jobStatus.getSourceUid()); in dumpControllerStateLocked()
[all …]
DStateController.java55 public abstract void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob); in maybeStartTrackingJobLocked() argument
59 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked() argument
64 public abstract void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument
DJobStatus.java370 public JobStatus(JobStatus jobStatus) { in JobStatus() argument
371 this(jobStatus.getJob(), jobStatus.getUid(), jobStatus.targetSdkVersion, in JobStatus()
372 jobStatus.getSourcePackageName(), jobStatus.getSourceUserId(), in JobStatus()
373 jobStatus.getStandbyBucket(), jobStatus.getBaseHeartbeat(), in JobStatus()
374 jobStatus.getSourceTag(), jobStatus.getNumFailures(), in JobStatus()
375 jobStatus.getEarliestRunTime(), jobStatus.getLatestRunTimeElapsed(), in JobStatus()
376 jobStatus.getLastSuccessfulRunTime(), jobStatus.getLastFailedRunTime(), in JobStatus()
377 jobStatus.getInternalFlags()); in JobStatus()
378 mPersistedUtcTimes = jobStatus.mPersistedUtcTimes; in JobStatus()
379 if (jobStatus.mPersistedUtcTimes != null) { in JobStatus()
DContentObserverController.java251 JobInstance(JobStatus jobStatus) { in JobInstance() argument
252 mJobStatus = jobStatus; in JobInstance()
255 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance()
256 final int sourceUserId = jobStatus.getSourceUserId(); in JobInstance()
267 obs = new ObserverInstance(mHandler, uri, jobStatus.getSourceUserId()); in JobInstance()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java199 public boolean add(JobStatus jobStatus) { in add() argument
200 boolean replaced = mJobSet.remove(jobStatus); in add()
201 mJobSet.add(jobStatus); in add()
202 if (jobStatus.isPersisted()) { in add()
206 Slog.d(TAG, "Added job status to store: " + jobStatus); in add()
211 boolean containsJob(JobStatus jobStatus) { in containsJob() argument
212 return mJobSet.contains(jobStatus); in containsJob()
232 public boolean remove(JobStatus jobStatus, boolean writeBack) { in remove() argument
233 boolean removed = mJobSet.remove(jobStatus); in remove()
236 Slog.d(TAG, "Couldn't remove job: didn't exist: " + jobStatus); in remove()
[all …]
DJobSchedulerService.java858 JobStatus jobStatus = JobStatus.createFromJobInfo(job, uId, packageName, userId, tag); in scheduleAsPackage() local
864 jobStatus.maybeAddForegroundExemption(mIsUidActivePredicate); in scheduleAsPackage()
866 if (DEBUG) Slog.d(TAG, "SCHEDULE: " + jobStatus.toShortString()); in scheduleAsPackage()
877 jobStatus.prepareLocked(ActivityManager.getService()); in scheduleAsPackage()
880 cancelJobImplLocked(toCancel, jobStatus, "job rescheduled by app"); in scheduleAsPackage()
884 jobStatus.enqueueWorkLocked(ActivityManager.getService(), work); in scheduleAsPackage()
886 startTrackingJobLocked(jobStatus, toCancel); in scheduleAsPackage()
888 uId, null, jobStatus.getBatteryName(), in scheduleAsPackage()
901 if (isReadyToBeExecutedLocked(jobStatus)) { in scheduleAsPackage()
904 mJobPackageTracker.notePending(jobStatus); in scheduleAsPackage()
[all …]
DJobCompletedListener.java30 void onJobCompletedLocked(JobStatus jobStatus, boolean needsReschedule); in onJobCompletedLocked() argument
DStateChangedListener.java39 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java337 JobStatus jobStatus = jobStatusSet.getAllJobs().iterator().next(); in testNonPersistedTaskIsNotPersisted() local
338 assertEquals("Wrong job persisted.", 43, jobStatus.getJobId()); in testNonPersistedTaskIsNotPersisted()