Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java17 package com.android.server.job.controllers;
22 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BACKGROUND_NOT_RESTRICTED;
23 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
24 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CHARGING;
25 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONNECTIVITY;
26 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CONTENT_TRIGGER;
27 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEADLINE;
28 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEVICE_NOT_DOZING;
29 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
30 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_STORAGE_NOT_LOW;
[all …]
DStateControllerTest.java17 package com.android.server.job.controllers;
30 import android.app.job.JobInfo;
41 import com.android.server.job.JobSchedulerService;
42 import com.android.server.job.JobSchedulerService.Constants;
146 JobStatus job = spy(createJobStatus("testWouldBeReadyWithConstraintLocked", 1)); in testWouldBeReadyWithConstraintLocked() local
148 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(false); in testWouldBeReadyWithConstraintLocked()
149 assertFalse(mStateController.wouldBeReadyWithConstraintLocked(job, 1)); in testWouldBeReadyWithConstraintLocked()
151 when(job.wouldBeReadyWithConstraint(anyInt())).thenReturn(true); in testWouldBeReadyWithConstraintLocked()
152 when(mJobSchedulerService.areComponentsInPlaceLocked(job)).thenReturn(false); in testWouldBeReadyWithConstraintLocked()
153 assertFalse(mStateController.wouldBeReadyWithConstraintLocked(job, 1)); in testWouldBeReadyWithConstraintLocked()
[all …]
DConnectivityControllerTest.java17 package com.android.server.job.controllers;
43 import android.app.job.JobInfo;
60 import com.android.server.job.JobSchedulerService;
61 import com.android.server.job.JobSchedulerService.Constants;
136 final JobInfo.Builder job = createJob() in testInsane() local
141 assertFalse(ConnectivityController.isSatisfied(createJobStatus(job), net, in testInsane()
145 assertTrue(ConnectivityController.isSatisfied(createJobStatus(job), net, in testInsane()
153 final JobInfo.Builder job = createJob() in testCongestion() local
156 final JobStatus early = createJobStatus(job, now - 1000, now + 2000); in testCongestion()
157 final JobStatus late = createJobStatus(job, now - 2000, now + 1000); in testCongestion()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java17 package com.android.server.job.controllers;
19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
42 import com.android.server.job.ConstantsProto;
43 import com.android.server.job.JobSchedulerService;
44 import com.android.server.job.StateControllerProto;
99 public void maybeStartTrackingJobLocked(JobStatus job, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
100 if (job.hasTimingDelayConstraint() || job.hasDeadlineConstraint()) { in maybeStartTrackingJobLocked()
101 maybeStopTrackingJobLocked(job, null, false); in maybeStartTrackingJobLocked()
109 if (job.hasDeadlineConstraint() && evaluateDeadlineConstraint(job, nowElapsedMillis)) { in maybeStartTrackingJobLocked()
111 } else if (job.hasTimingDelayConstraint() && evaluateTimingDelayConstraint(job, in maybeStartTrackingJobLocked()
[all …]
DJobStatus.java17 package com.android.server.job.controllers;
19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
23 import android.app.job.JobInfo;
24 import android.app.job.JobWorkItem;
41 import com.android.server.job.GrantedUriPermissions;
42 import com.android.server.job.JobSchedulerInternal;
43 import com.android.server.job.JobSchedulerService;
44 import com.android.server.job.JobServerProtoEnums;
45 import com.android.server.job.JobStatusDumpProto;
46 import com.android.server.job.JobStatusShortInfoProto;
[all …]
DIdleController.java17 package com.android.server.job.controllers;
27 import com.android.server.job.JobSchedulerService;
28 import com.android.server.job.StateControllerProto;
29 import com.android.server.job.controllers.idle.CarIdlenessTracker;
30 import com.android.server.job.controllers.idle.DeviceIdlenessTracker;
31 import com.android.server.job.controllers.idle.IdlenessListener;
32 import com.android.server.job.controllers.idle.IdlenessTracker;
DStateController.java17 package com.android.server.job.controllers;
19 import static com.android.server.job.JobSchedulerService.DEBUG;
26 import com.android.server.job.JobSchedulerService;
27 import com.android.server.job.JobSchedulerService.Constants;
28 import com.android.server.job.StateChangedListener;
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java17 package com.android.server.job;
31 import android.app.job.IJobScheduler;
32 import android.app.job.JobInfo;
33 import android.app.job.JobParameters;
34 import android.app.job.JobProtoEnums;
35 import android.app.job.JobScheduler;
36 import android.app.job.JobService;
37 import android.app.job.JobSnapshot;
38 import android.app.job.JobWorkItem;
96 import com.android.server.job.JobSchedulerServiceDumpProto.ActiveJob;
[all …]
DJobServiceContext.java17 package com.android.server.job;
19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
22 import android.app.job.IJobCallback;
23 import android.app.job.IJobService;
24 import android.app.job.JobInfo;
25 import android.app.job.JobParameters;
26 import android.app.job.JobWorkItem;
51 import com.android.server.job.controllers.JobStatus;
199 boolean executeRunnableJob(JobStatus job) { in executeRunnableJob() argument
208 mRunningJob = job; in executeRunnableJob()
[all …]
DJobPackageTracker.java17 package com.android.server.job;
19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
20 import static com.android.server.job.JobSchedulerService.sSystemClock;
21 import static com.android.server.job.JobSchedulerService.sUptimeMillisClock;
23 import android.app.job.JobInfo;
24 import android.app.job.JobParameters;
34 import com.android.server.job.controllers.JobStatus;
453 public void notePending(JobStatus job) { in notePending() argument
455 job.madePending = now; in notePending()
457 mCurDataSet.incPending(job.getSourceUid(), job.getSourcePackageName(), now); in notePending()
[all …]
DJobStore.java17 package com.android.server.job;
19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
20 import static com.android.server.job.JobSchedulerService.sSystemClock;
25 import android.app.job.JobInfo;
50 import com.android.server.job.JobSchedulerInternal.JobStorePersistStats;
51 import com.android.server.job.controllers.JobStatus;
187 forEachJob(job -> { in getRtcCorrectedJobsLocked()
188 final Pair<Long, Long> utcTimes = job.getPersistedUtcTimes(); in getRtcCorrectedJobsLocked()
192 JobStatus newJob = new JobStatus(job, job.getBaseHeartbeat(), in getRtcCorrectedJobsLocked()
194 0, job.getLastSuccessfulRunTime(), job.getLastFailedRunTime()); in getRtcCorrectedJobsLocked()
[all …]
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java20 import android.app.job.IJobScheduler;
21 import android.app.job.JobInfo;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobSnapshot;
24 import android.app.job.JobWorkItem;
41 public int schedule(JobInfo job) { in schedule() argument
43 return mBinder.schedule(job); in schedule()
50 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue() argument
52 return mBinder.enqueue(job, work); in enqueue()
59 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage() argument
[all …]
/frameworks/base/core/java/android/app/job/
DIJobScheduler.aidl17 package android.app.job;
19 import android.app.job.JobInfo;
20 import android.app.job.JobSnapshot;
21 import android.app.job.JobWorkItem;
29 int schedule(in JobInfo job); in schedule() argument
30 int enqueue(in JobInfo job, in JobWorkItem work); in enqueue() argument
31 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() argument
DJobScheduler.java17 package android.app.job;
91 public abstract @Result int schedule(@NonNull JobInfo job); in schedule() argument
128 public abstract @Result int enqueue(@NonNull JobInfo job, @NonNull JobWorkItem work); in enqueue() argument
141 public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, in scheduleAsPackage() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java17 package com.android.server.job;
28 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
39 import android.app.job.JobInfo;
56 import com.android.server.job.controllers.JobStatus;
172 JobStatus job = createJobStatus("testGetRescheduleJobForPeriodic_insideWindow", in testGetRescheduleJobForPeriodic_minPeriod() local
178 JobStatus rescheduledJob = mService.getRescheduleJobForPeriodic(job); in testGetRescheduleJobForPeriodic_minPeriod()
186 JobStatus rescheduledJob = mService.getRescheduleJobForPeriodic(job); in testGetRescheduleJobForPeriodic_minPeriod()
201 JobStatus job = createJobStatus("testGetRescheduleJobForPeriodic_insideWindow", in testGetRescheduleJobForPeriodic_largePeriod() local
203 assertEquals(now, job.getEarliestRunTime()); in testGetRescheduleJobForPeriodic_largePeriod()
205 assertEquals(now + 365 * DAY_IN_MILLIS, job.getLatestRunTimeElapsed()); in testGetRescheduleJobForPeriodic_largePeriod()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DDispatchThread.java50 public void runJob(Runnable job) { in runJob() argument
60 mJobQueue.add(job); in runJob()
73 public void runJobSync(final Runnable job, Object waitLock, long timeoutMs, String jobMsg) { in runJobSync() argument
78 runJob(job); in runJobSync()
112 Runnable job = null; in run() local
123 job = mJobQueue.poll(); in run()
126 if (job == null) { in run()
135 job.run(); in run()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
DTestJobService.java19 import android.app.job.JobInfo;
20 import android.app.job.JobScheduler;
21 import android.app.job.JobParameters;
22 import android.app.job.JobService;
121 public void scheduleJob(JobInfo job) { in scheduleJob() argument
122 Log.d(TAG, "Scheduling job " + job); in scheduleJob()
125 tm.schedule(job); in scheduleJob()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
104 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision() local
111 jobScheduler.schedule(job); in isDeferredForProvision()
/frameworks/base/core/proto/android/service/
Dprint.proto78 // only valid while the print job is processed.
331 // Label of the job
334 // Id of the job
341 // The print job is being created but not yet ready to be printed
347 // The print job is being printed
350 // The print job is blocked
353 // The print job is successfully printed
356 // The print job was printing but printing failed
359 // The print job is canceled
363 // State of the job
[all …]
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DReportWatchlistJobService.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
/frameworks/base/services/core/java/com/android/server/camera/
DCameraStatsJobService.java19 import android.app.job.JobInfo;
20 import android.app.job.JobParameters;
21 import android.app.job.JobScheduler;
22 import android.app.job.JobService;
/frameworks/base/services/core/java/com/android/server/timezone/
DTimeZoneUpdateIdler.java21 import android.app.job.JobInfo;
22 import android.app.job.JobParameters;
23 import android.app.job.JobScheduler;
24 import android.app.job.JobService;
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java20 import android.app.job.JobInfo;
21 import android.app.job.JobParameters;
22 import android.app.job.JobScheduler;
23 import android.app.job.JobService;
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPrioritySchedulingTest.java17 package com.android.server.job;
20 import android.app.job.JobInfo;
21 import android.app.job.JobScheduler;
25 import com.android.server.job.MockPriorityJobService.TestEnvironment;
26 import com.android.server.job.MockPriorityJobService.TestEnvironment.Event;

12345