Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java162 private void trackJobs(JobStatus... jobs) { in trackJobs()
163 for (JobStatus job : jobs) { in trackJobs()
182 private JobStatus createJobStatus(String testTag, String packageName, int callingUid, in createJobStatus()
184 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus()
194 JobStatus job1 = createJobStatus("testBatteryNotLow", SOURCE_PACKAGE, CALLING_UID, in testBatteryNotLow()
196 JobStatus job2 = createJobStatus("testBatteryNotLow", SOURCE_PACKAGE, CALLING_UID, in testBatteryNotLow()
201 assertFalse(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
204 assertTrue(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
207 assertTrue(job2.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
214 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
[all …]
DJobStatusTest.java33 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BACKGROUND_NOT_RESTRICTED;
34 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
35 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CHARGING;
36 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONNECTIVITY;
37 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONTENT_TRIGGER;
38 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEADLINE;
39 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEVICE_NOT_DOZING;
40 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_FLEXIBLE;
41 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
42 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_STORAGE_NOT_LOW;
[all …]
DTimeControllerTest.java139 private JobStatus createJobStatus(String testTag, JobInfo.Builder job) { in createJobStatus()
141 return JobStatus.createFromJobInfo( in createJobStatus()
148 JobStatus delaySatisfied = createJobStatus( in testMaybeStartTrackingJobLocked_AlreadySatisfied()
151 JobStatus deadlineSatisfied = createJobStatus( in testMaybeStartTrackingJobLocked_AlreadySatisfied()
173 JobStatus jobLatest = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in runTestMaybeStartTrackingJobLocked_DelayInOrder()
175 JobStatus jobMiddle = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in runTestMaybeStartTrackingJobLocked_DelayInOrder()
177 JobStatus jobEarliest = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in runTestMaybeStartTrackingJobLocked_DelayInOrder()
198 JobStatus jobLatest = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
200 JobStatus jobMiddle = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
202 JobStatus jobEarliest = createJobStatus("testMaybeStartTrackingJobLocked_DelayInOrder", in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
[all …]
DPrefetchControllerTest.java187 private JobStatus createJobStatus(String testTag, int jobId) { in createJobStatus()
191 private static JobStatus createJobStatus(String testTag, String packageName, int callingUid, in createJobStatus()
193 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus()
229 private void trackJobs(JobStatus... jobs) { in trackJobs()
230 for (JobStatus job : jobs) { in trackJobs()
277 JobStatus jobStatus = createJobStatus("testConstantsUpdating_ThresholdChangesAlarms", 1); in testConstantsUpdating_ThresholdChangesAlarms()
299 final JobStatus job = createJobStatus("testConstraintNotSatisfiedWhenLaunchLate", 1); in testConstraintNotSatisfiedWhenLaunchLate()
306 assertFalse(job.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintNotSatisfiedWhenLaunchLate()
314 final JobStatus job = createJobStatus("testConstraintSatisfiedWhenLaunchSoon", 2); in testConstraintSatisfiedWhenLaunchSoon()
322 assertTrue(job.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenLaunchSoon()
[all …]
DFlexibilityControllerTest.java46 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
47 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CHARGING;
48 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONNECTIVITY;
49 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONTENT_TRIGGER;
50 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_FLEXIBLE;
51 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
52 import static com.android.server.job.controllers.JobStatus.NO_LATEST_RUNTIME;
274 private JobStatus createJobStatus(String testTag, JobInfo.Builder job) { in createJobStatus()
278 private JobStatus createJobStatus(String testTag, JobInfo.Builder job, String sourcePackage) { in createJobStatus()
280 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus()
[all …]
DStateControllerTest.java81 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
84 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
88 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
92 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
134 private JobStatus createJobStatus(String testTag, int jobId) { in createJobStatus()
139 return JobStatus.createFromJobInfo( in createJobStatus()
145 JobStatus job = spy(createJobStatus("testWouldBeReadyWithConstraintLocked", 1)); in testWouldBeReadyWithConstraintLocked()
DBackgroundJobsControllerTest.java24 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BACKGROUND_NOT_RESTRICTED;
187 private void trackJobs(JobStatus... jobs) { in trackJobs()
188 for (JobStatus job : jobs) { in trackJobs()
202 private JobStatus createJobStatus(String testTag, String packageName, int callingUid, in createJobStatus()
204 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus()
216 JobStatus directJob1 = createJobStatus("testStopped", SOURCE_PACKAGE, SOURCE_UID, in testRestartedBroadcastWithoutStopping()
219 JobStatus directJob2 = createJobStatus("testStopped", in testRestartedBroadcastWithoutStopping()
223 JobStatus proxyJob1 = createJobStatus("testStopped", SOURCE_PACKAGE, CALLING_UID, in testRestartedBroadcastWithoutStopping()
226 JobStatus proxyJob2 = createJobStatus("testStopped", in testRestartedBroadcastWithoutStopping()
257 JobStatus directJob1 = createJobStatus("testStopped", SOURCE_PACKAGE, SOURCE_UID, in testStopped_disabled()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPendingJobQueueTest.java39 import com.android.server.job.controllers.JobStatus;
57 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
62 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
64 return JobStatus.createFromJobInfo( in createJobStatus()
70 ArraySet<JobStatus> jobs = new ArraySet<>(); in testAdd()
83 JobStatus job; in testAdd()
92 ArraySet<JobStatus> jobs = new ArraySet<>(); in testAddAll()
103 JobStatus job; in testAddAll()
112 ArraySet<JobStatus> jobs = new ArraySet<>(); in testClear()
131 JobStatus joba1 = createJobStatus("testRemove", createJobInfo(1), 1); in testContains()
[all …]
DJobStoreTest.java44 import com.android.server.job.controllers.JobStatus;
151 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in runRemovingLastJob()
152 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runRemovingLastJob()
161 JobStatus loaded = jobStatusSet.getAllJobs().iterator().next(); in runRemovingLastJob()
204 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in runClearJobs()
205 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runClearJobs()
234 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in testSkipExtraFiles()
235 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in testSkipExtraFiles()
259 JobStatus js = JobStatus.createFromJobInfo(b.build(), SOME_UID, null, -1, null, null); in testDynamicConstraintsNotPersisted()
260 js.addDynamicConstraints(JobStatus.CONSTRAINT_BATTERY_NOT_LOW in testDynamicConstraintsNotPersisted()
[all …]
DJobSetTest.java42 import com.android.server.job.controllers.JobStatus;
76 private JobStatus getJobStatusWithCallinUid(int jobId, int callingUid) { in getJobStatusWithCallinUid()
81 return JobStatus.createFromJobInfo(jobInfo, callingUid, mContext.getPackageName(), in getJobStatusWithCallinUid()
89 final JobStatus testJob1 = getJobStatusWithCallinUid(1, callingUid1); in testBothMapsHaveSameJobs()
90 final JobStatus testJob2 = getJobStatusWithCallinUid(2, callingUid2); in testBothMapsHaveSameJobs()
107 private static void assertHaveSameJobs(SparseArray<ArraySet<JobStatus>> map1, in assertHaveSameJobs()
108 SparseArray<ArraySet<JobStatus>> map2) { in assertHaveSameJobs()
109 final ArraySet<JobStatus> set1 = new ArraySet<>(); in assertHaveSameJobs()
110 final ArraySet<JobStatus> set2 = new ArraySet<>(); in assertHaveSameJobs()
113 final ArraySet<JobStatus> jobs = map1.valueAt(i); in assertHaveSameJobs()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBatteryController.java49 private final ArraySet<JobStatus> mTrackedTasks = new ArraySet<>();
54 private final ArraySet<JobStatus> mTopStartedJobs = new ArraySet<>();
61 private final ArraySet<JobStatus> mChangedJobs = new ArraySet<>();
75 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
79 taskStatus.setTrackingController(JobStatus.TRACKING_BATTERY); in maybeStartTrackingJobLocked()
94 public void startTrackingRestrictedJobLocked(JobStatus jobStatus) { in startTrackingRestrictedJobLocked()
100 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked()
120 public void unprepareFromExecutionLocked(JobStatus jobStatus) { in unprepareFromExecutionLocked()
125 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
126 if (taskStatus.clearTrackingController(JobStatus.TRACKING_BATTERY)) { in maybeStopTrackingJobLocked()
[all …]
DTimeController.java68 private final PriorityQueue<JobStatus> mTrackedJobs =
70 new Comparator<JobStatus>() {
71 public int compare(JobStatus left, JobStatus right) {
90 public void maybeStartTrackingJobLocked(JobStatus job, JobStatus lastJob) { in maybeStartTrackingJobLocked()
115 job.setTrackingController(JobStatus.TRACKING_TIME); in maybeStartTrackingJobLocked()
122 && wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_TIMING_DELAY)) { in maybeStartTrackingJobLocked()
126 && wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_DEADLINE)) { in maybeStartTrackingJobLocked()
137 public void maybeStopTrackingJobLocked(JobStatus job, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
138 if (job.clearTrackingController(JobStatus.TRACKING_TIME)) { in maybeStopTrackingJobLocked()
147 public void evaluateStateLocked(JobStatus job) { in evaluateStateLocked()
[all …]
DStateController.java78 public abstract void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob); in maybeStartTrackingJobLocked()
83 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked()
89 public void unprepareFromExecutionLocked(JobStatus jobStatus) { in unprepareFromExecutionLocked()
95 public abstract void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob); in maybeStopTrackingJobLocked()
100 public void rescheduleForFailureLocked(JobStatus newJob, JobStatus failureToReschedule) { in rescheduleForFailureLocked()
132 public void evaluateStateLocked(JobStatus jobStatus) { in evaluateStateLocked()
157 protected boolean wouldBeReadyWithConstraintLocked(JobStatus jobStatus, int constraint) { in wouldBeReadyWithConstraintLocked()
178 JobStatus.getProtoConstraint(constraint), in logDeviceWideConstraintStateToStatsd()
185 Predicate<JobStatus> predicate); in dumpControllerStateLocked()
187 Predicate<JobStatus> predicate) {} in dumpControllerStateLocked()
DIdleController.java52 final ArraySet<JobStatus> mTrackedTasks = new ArraySet<>();
67 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
71 taskStatus.setTrackingController(JobStatus.TRACKING_IDLE); in maybeStartTrackingJobLocked()
77 public void startTrackingRestrictedJobLocked(JobStatus jobStatus) { in startTrackingRestrictedJobLocked()
82 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
83 if (taskStatus.clearTrackingController(JobStatus.TRACKING_IDLE)) { in maybeStopTrackingJobLocked()
89 public void stopTrackingRestrictedJobLocked(JobStatus jobStatus) { in stopTrackingRestrictedJobLocked()
114 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_IDLE, isIdle); in reportNewIdleState()
118 JobStatus.CONSTRAINT_IDLE, isIdle, nowElapsed); in reportNewIdleState()
158 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
[all …]
DStorageController.java47 private final ArraySet<JobStatus> mTrackedTasks = new ArraySet<JobStatus>();
66 public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
70 taskStatus.setTrackingController(JobStatus.TRACKING_STORAGE); in maybeStartTrackingJobLocked()
77 public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
78 if (taskStatus.clearTrackingController(JobStatus.TRACKING_STORAGE)) { in maybeStopTrackingJobLocked()
89 final JobStatus ts = mTrackedTasks.valueAt(i); in maybeReportNewStorageState()
162 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
168 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked()
182 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
192 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked()
DDeviceIdleJobsController.java67 private final ArraySet<JobStatus> mAllowInIdleJobs;
108 final ArraySet<JobStatus> changedJobs = new ArraySet<>();
125 private final Predicate<JobStatus> mShouldRushEvaluation = (jobStatus) ->
157 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_DEVICE_NOT_DOZING, in updateIdleMode()
199 boolean isWhitelistedLocked(JobStatus job) { in isWhitelistedLocked()
207 boolean isTempWhitelistedLocked(JobStatus job) { in isTempWhitelistedLocked()
212 private boolean updateTaskStateLocked(JobStatus task, final long nowElapsed) { in updateTaskStateLocked()
221 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
229 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
237 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
[all …]
DComponentController.java128 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
133 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
150 private String getServiceProcessLocked(JobStatus jobStatus) { in getServiceProcessLocked()
182 private boolean updateComponentEnabledStateLocked(JobStatus jobStatus) { in updateComponentEnabledStateLocked()
228 private void updateComponentStatesLocked(@NonNull Predicate<JobStatus> filter) { in updateComponentStatesLocked()
237 final class ComponentStateUpdateFunctor implements Consumer<JobStatus> {
239 final ArraySet<JobStatus> mChangedJobs = new ArraySet<>();
243 public void accept(JobStatus jobStatus) { in accept()
257 public void dumpControllerStateLocked(IndentingPrintWriter pw, Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
275 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DFlexibilityController.java29 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
30 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CHARGING;
31 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONNECTIVITY;
32 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
192 public void onPrefetchCacheUpdated(ArraySet<JobStatus> jobs, int userId,
210 JobStatus js = jobs.valueAt(i);
327 private final ArraySet<JobStatus> mJobsToCheck = new ArraySet<>();
379 public void maybeStartTrackingJobLocked(JobStatus js, JobStatus lastJob) { in maybeStartTrackingJobLocked()
390 js.setTrackingController(JobStatus.TRACKING_FLEXIBILITY); in maybeStartTrackingJobLocked()
396 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked()
[all …]
DConnectivityController.java159 private final SparseArray<ArraySet<JobStatus>> mTrackedJobs = new SparseArray<>();
166 private final SparseArray<ArraySet<JobStatus>> mRequestedWhitelistJobs = new SparseArray<>();
337 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
341 if (wouldBeReadyWithConstraintLocked(jobStatus, JobStatus.CONSTRAINT_CONNECTIVITY)) { in maybeStartTrackingJobLocked()
344 ArraySet<JobStatus> jobs = mTrackedJobs.get(jobStatus.getSourceUid()); in maybeStartTrackingJobLocked()
350 jobStatus.setTrackingController(JobStatus.TRACKING_CONNECTIVITY); in maybeStartTrackingJobLocked()
357 public void prepareForExecutionLocked(JobStatus jobStatus) { in prepareForExecutionLocked()
367 public void unprepareFromExecutionLocked(JobStatus jobStatus) { in unprepareFromExecutionLocked()
378 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
379 if (jobStatus.clearTrackingController(JobStatus.TRACKING_CONNECTIVITY)) { in maybeStopTrackingJobLocked()
[all …]
DPrefetchController.java77 private final SparseArrayMap<String, ArraySet<JobStatus>> mTrackedJobs = new SparseArrayMap<>();
107 void onPrefetchCacheUpdated(ArraySet<JobStatus> jobs, int userId, String pkgName, in onPrefetchCacheUpdated()
152 public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob) { in maybeStartTrackingJobLocked()
156 ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStartTrackingJobLocked()
173 public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob) { in maybeStopTrackingJobLocked()
176 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeStopTrackingJobLocked()
216 public long getNextEstimatedLaunchTimeLocked(@NonNull JobStatus jobStatus) { in getNextEstimatedLaunchTimeLocked()
242 final ArraySet<JobStatus> jobs = mTrackedJobs.get(userId, pkgName); in maybeUpdateConstraintForPkgLocked()
248 final JobStatus js = jobs.valueAt(i); in maybeUpdateConstraintForPkgLocked()
261 final ArraySet<JobStatus> changedJobs = new ArraySet<>(); in maybeUpdateConstraintForUid()
[all …]
/frameworks/base/tests/JobSchedulerPerfTests/src/com/android/frameworks/perftests/job/
DJobStorePerfTests.java31 import com.android.server.job.controllers.JobStatus;
55 private static List<JobStatus> sFewJobs = new ArrayList<>();
56 private static List<JobStatus> sManyJobs = new ArrayList<>();
80 private void runPersistedJobWriting(List<JobStatus> jobList) { in runPersistedJobWriting()
86 for (JobStatus job : jobList) { in runPersistedJobWriting()
107 private void runPersistedJobWriting_delta(List<JobStatus> jobList, in runPersistedJobWriting_delta()
108 List<JobStatus> jobAdditions, List<JobStatus> jobRemovals) { in runPersistedJobWriting_delta()
114 for (JobStatus job : jobList) { in runPersistedJobWriting_delta()
119 for (JobStatus job : jobAdditions) { in runPersistedJobWriting_delta()
122 for (JobStatus job : jobRemovals) { in runPersistedJobWriting_delta()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobStore.java58 import com.android.server.job.controllers.JobStatus;
259 public void getRtcCorrectedJobsLocked(final ArrayList<JobStatus> toAdd, in getRtcCorrectedJobsLocked()
260 final ArrayList<JobStatus> toRemove) { in getRtcCorrectedJobsLocked()
270 JobStatus newJob = new JobStatus(job, in getRtcCorrectedJobsLocked()
287 public void add(JobStatus jobStatus) { in add()
305 public void addForTesting(JobStatus jobStatus) { in addForTesting()
315 boolean containsJob(JobStatus jobStatus) { in containsJob()
337 public boolean remove(JobStatus jobStatus, boolean removeFromPersisted) { in remove()
357 public void removeForTesting(JobStatus jobStatus) { in removeForTesting()
376 void touchJob(@NonNull JobStatus jobStatus) { in touchJob()
[all …]
DStateChangedListener.java24 import com.android.server.job.controllers.JobStatus;
39 void onControllerStateChanged(@Nullable ArraySet<JobStatus> changedJobs); in onControllerStateChanged()
57 public void onRunJobNow(JobStatus jobStatus); in onRunJobNow()
61 void onNetworkChanged(JobStatus jobStatus, Network newNetwork); in onNetworkChanged()
67 void onRestrictedBucketChanged(@NonNull List<JobStatus> jobs); in onRestrictedBucketChanged()
DPendingJobQueue.java26 import com.android.server.job.controllers.JobStatus;
89 void add(@NonNull JobStatus job) { in add()
100 void addAll(@NonNull ArraySet<JobStatus> jobs) { in addAll()
101 final SparseArray<List<JobStatus>> jobsByUid = new SparseArray<>(); in addAll()
103 final JobStatus job = jobs.valueAt(i); in addAll()
104 List<JobStatus> appJobs = jobsByUid.get(job.getSourceUid()); in addAll()
130 boolean contains(@NonNull JobStatus job) { in contains()
151 JobStatus next() { in next()
185 final JobStatus job = earliestQueue.next(); in next()
205 boolean remove(@NonNull JobStatus job) { in remove()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java90 import com.android.server.job.controllers.JobStatus;
247 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder) { in createJobStatus()
251 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
256 private JobStatus createJobStatus(String testTag, JobInfo.Builder jobInfoBuilder, in createJobStatus()
258 return JobStatus.createFromJobInfo( in createJobStatus()
273 JobStatus ejMax = createJobStatus("testGetMinJobExecutionGuaranteeMs", in testGetMinJobExecutionGuaranteeMs()
275 JobStatus ejHigh = createJobStatus("testGetMinJobExecutionGuaranteeMs", in testGetMinJobExecutionGuaranteeMs()
277 JobStatus ejMaxDowngraded = createJobStatus("testGetMinJobExecutionGuaranteeMs", in testGetMinJobExecutionGuaranteeMs()
279 JobStatus ejHighDowngraded = createJobStatus("testGetMinJobExecutionGuaranteeMs", in testGetMinJobExecutionGuaranteeMs()
281 JobStatus jobHigh = createJobStatus("testGetMinJobExecutionGuaranteeMs", in testGetMinJobExecutionGuaranteeMs()
[all …]

123