Searched refs:taskStatus (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ContentObserverController.java | 75 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 76 if (taskStatus.hasContentTriggerConstraint()) { in maybeStartTrackingJobLocked() 77 if (taskStatus.contentObserverJobInstance == null) { in maybeStartTrackingJobLocked() 78 taskStatus.contentObserverJobInstance = new JobInstance(taskStatus); in maybeStartTrackingJobLocked() 81 Slog.i(TAG, "Tracking content-trigger job " + taskStatus); in maybeStartTrackingJobLocked() 83 mTrackedTasks.add(taskStatus); in maybeStartTrackingJobLocked() 84 taskStatus.setTrackingController(JobStatus.TRACKING_CONTENT); in maybeStartTrackingJobLocked() 88 if (taskStatus.contentObserverJobInstance.mChangedAuthorities != null) { in maybeStartTrackingJobLocked() 93 if (taskStatus.changedAuthorities != null) { in maybeStartTrackingJobLocked() 95 if (taskStatus.contentObserverJobInstance.mChangedAuthorities == null) { in maybeStartTrackingJobLocked() [all …]
|
D | IdleController.java | 52 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 53 if (taskStatus.hasIdleConstraint()) { in maybeStartTrackingJobLocked() 54 mTrackedTasks.add(taskStatus); in maybeStartTrackingJobLocked() 55 taskStatus.setTrackingController(JobStatus.TRACKING_IDLE); in maybeStartTrackingJobLocked() 56 taskStatus.setIdleConstraintSatisfied(mIdleTracker.isIdle()); in maybeStartTrackingJobLocked() 61 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument 63 if (taskStatus.clearTrackingController(JobStatus.TRACKING_IDLE)) { in maybeStopTrackingJobLocked() 64 mTrackedTasks.remove(taskStatus); in maybeStopTrackingJobLocked()
|
D | StorageController.java | 62 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 63 if (taskStatus.hasStorageNotLowConstraint()) { in maybeStartTrackingJobLocked() 64 mTrackedTasks.add(taskStatus); in maybeStartTrackingJobLocked() 65 taskStatus.setTrackingController(JobStatus.TRACKING_STORAGE); in maybeStartTrackingJobLocked() 66 taskStatus.setStorageNotLowConstraintSatisfied(mStorageTracker.isStorageNotLow()); in maybeStartTrackingJobLocked() 71 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, in maybeStopTrackingJobLocked() argument 73 if (taskStatus.clearTrackingController(JobStatus.TRACKING_STORAGE)) { in maybeStopTrackingJobLocked() 74 mTrackedTasks.remove(taskStatus); in maybeStopTrackingJobLocked()
|
D | BatteryController.java | 66 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 67 if (taskStatus.hasPowerConstraint()) { in maybeStartTrackingJobLocked() 68 mTrackedTasks.add(taskStatus); in maybeStartTrackingJobLocked() 69 taskStatus.setTrackingController(JobStatus.TRACKING_BATTERY); in maybeStartTrackingJobLocked() 70 taskStatus.setChargingConstraintSatisfied(mChargeTracker.isOnStablePower()); in maybeStartTrackingJobLocked() 71 taskStatus.setBatteryNotLowConstraintSatisfied(mChargeTracker.isBatteryNotLow()); in maybeStartTrackingJobLocked() 76 …public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, boolean forUpd… in maybeStopTrackingJobLocked() argument 77 if (taskStatus.clearTrackingController(JobStatus.TRACKING_BATTERY)) { in maybeStopTrackingJobLocked() 78 mTrackedTasks.remove(taskStatus); in maybeStopTrackingJobLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 205 JobStatus taskStatus = JobStatus.createFromJobInfo(task, SOME_UID, null, -1, null); in testWritingTaskWithExtras() local 207 mTaskStoreUnderTest.add(taskStatus); in testWritingTaskWithExtras() 224 JobStatus taskStatus = JobStatus.createFromJobInfo(b.build(), SOME_UID, in testWritingTaskWithSourcePackage() local 227 mTaskStoreUnderTest.add(taskStatus); in testWritingTaskWithSourcePackage() 235 taskStatus.getSourcePackageName()); in testWritingTaskWithSourcePackage() 237 taskStatus.getSourceUserId()); in testWritingTaskWithSourcePackage() 247 JobStatus taskStatus = JobStatus.createFromJobInfo(b.build(), SOME_UID, null, -1, null); in testWritingTaskWithFlex() local 249 mTaskStoreUnderTest.add(taskStatus); in testWritingTaskWithFlex() 257 taskStatus.getJob().getIntervalMillis()); in testWritingTaskWithFlex() 259 taskStatus.getJob().getFlexMillis()); in testWritingTaskWithFlex() [all …]
|