Home
last modified time | relevance | path

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

12345

/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;
34 import com.android.server.job.JobSchedulerService;
35 import com.android.server.job.StateControllerProto;
79 public void maybeStartTrackingJobLocked(JobStatus job, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
80 if (job.hasTimingDelayConstraint() || job.hasDeadlineConstraint()) { in maybeStartTrackingJobLocked()
81 maybeStopTrackingJobLocked(job, null, false); in maybeStartTrackingJobLocked()
89 if (job.hasDeadlineConstraint() && evaluateDeadlineConstraint(job, nowElapsedMillis)) { in maybeStartTrackingJobLocked()
91 } else if (job.hasTimingDelayConstraint() && evaluateTimingDelayConstraint(job, in maybeStartTrackingJobLocked()
93 if (!job.hasDeadlineConstraint()) { 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;
40 import com.android.server.job.GrantedUriPermissions;
41 import com.android.server.job.JobSchedulerInternal;
42 import com.android.server.job.JobSchedulerService;
43 import com.android.server.job.JobStatusDumpProto;
44 import com.android.server.job.JobStatusShortInfoProto;
97 final JobInfo job; field in JobStatus
[all …]
DStateController.java17 package com.android.server.job.controllers;
23 import com.android.server.job.JobSchedulerService;
24 import com.android.server.job.JobSchedulerService.Constants;
25 import com.android.server.job.StateChangedListener;
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobConverterTest.java79 Job job = mConverter.convert(workSpec); in testConvert_basicWorkSpec() local
80 assertThat(job.getTag(), is(expectedWorkSpecId)); in testConvert_basicWorkSpec()
81 assertThat(job.getLifetime(), is(Lifetime.FOREVER)); in testConvert_basicWorkSpec()
82 assertThat(job.getService(), is(FirebaseJobService.class.getName())); in testConvert_basicWorkSpec()
84 JobTrigger.ImmediateTrigger trigger = (JobTrigger.ImmediateTrigger) job.getTrigger(); in testConvert_basicWorkSpec()
95 Job job = mConverter.convert(workSpec); in testConvert_backoffPolicy() local
99 assertThat(job.getRetryStrategy().getInitialBackoff(), is(expectedBackoffDelayDuration)); in testConvert_backoffPolicy()
100 assertThat(job.getRetryStrategy().getPolicy(), is(RetryStrategy.RETRY_POLICY_LINEAR)); in testConvert_backoffPolicy()
109 Job job = mConverter.convert(workSpec); in testConvert_initialDelay() local
112 assertThat(job.getTrigger(), is(instanceOf(JobTrigger.ImmediateTrigger.class))); in testConvert_initialDelay()
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java17 package com.android.server.job;
29 import android.app.job.IJobScheduler;
30 import android.app.job.JobInfo;
31 import android.app.job.JobParameters;
32 import android.app.job.JobProtoEnums;
33 import android.app.job.JobScheduler;
34 import android.app.job.JobService;
35 import android.app.job.JobWorkItem;
89 import com.android.server.job.JobSchedulerServiceDumpProto.ActiveJob;
90 import com.android.server.job.JobSchedulerServiceDumpProto.PendingJob;
[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;
49 import com.android.server.job.JobSchedulerInternal.JobStorePersistStats;
50 import com.android.server.job.controllers.JobStatus;
180 forEachJob(job -> { in getRtcCorrectedJobsLocked()
181 final Pair<Long, Long> utcTimes = job.getPersistedUtcTimes(); in getRtcCorrectedJobsLocked()
185 toAdd.add(new JobStatus(job, job.getBaseHeartbeat(), in getRtcCorrectedJobsLocked()
187 0, job.getLastSuccessfulRunTime(), job.getLastFailedRunTime())); in getRtcCorrectedJobsLocked()
[all …]
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java20 import android.app.job.JobInfo;
21 import android.app.job.JobScheduler;
22 import android.app.job.IJobScheduler;
23 import android.app.job.JobWorkItem;
42 public int schedule(JobInfo job) { in schedule() argument
44 return mBinder.schedule(job); in schedule()
51 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue() argument
53 return mBinder.enqueue(job, work); in enqueue()
60 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage() argument
62 return mBinder.scheduleAsPackage(job, packageName, userId, tag); in scheduleAsPackage()
/frameworks/base/core/java/android/app/job/
DIJobScheduler.aidl17 package android.app.job;
19 import android.app.job.JobInfo;
20 import android.app.job.JobWorkItem;
27 int schedule(in JobInfo job); in schedule() argument
28 int enqueue(in JobInfo job, in JobWorkItem work); in enqueue() argument
29 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/servicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java17 package com.android.server.job.controllers;
35 import android.app.job.JobInfo;
51 import com.android.server.job.JobSchedulerService;
52 import com.android.server.job.JobSchedulerService.Constants;
114 final JobInfo.Builder job = createJob() in testInsane() local
119 assertFalse(ConnectivityController.isSatisfied(createJobStatus(job), net, in testInsane()
123 assertTrue(ConnectivityController.isSatisfied(createJobStatus(job), net, in testInsane()
131 final JobInfo.Builder job = createJob() in testCongestion() local
134 final JobStatus early = createJobStatus(job, now - 1000, now + 2000); in testCongestion()
135 final JobStatus late = createJobStatus(job, now - 2000, now + 1000); in testCongestion()
[all …]
DJobStatusTest.java17 package com.android.server.job.controllers;
21 import android.app.job.JobInfo;
26 import com.android.server.job.JobSchedulerService;
71 final JobInfo job = new JobInfo.Builder(101, new ComponentName("foo", "bar")) in createJobStatus() local
73 return new JobStatus(job, 0, null, -1, 0, 0, null, earliestRunTimeElapsedMillis, in createJobStatus()
/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.proto330 // Label of the job
333 // Id of the job
340 // The print job is being created but not yet ready to be printed
346 // The print job is being printed
349 // The print job is blocked
352 // The print job is successfully printed
355 // The print job was printing but printing failed
358 // The print job is canceled
362 // State of the job
365 // Printer handling 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/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/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/backup/java/com/android/server/backup/
DFullBackupJob.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/core/proto/android/server/
Djobscheduler.proto19 package com.android.server.job;
23 import "frameworks/base/core/proto/android/app/job/enums.proto";
53 // A job is ready to be executed if:
94 // How long this job has been pending.
114 // How long this job has been running for.
123 // How long this job has been pending.
126 oneof job { oneof
139 // we want to keep actively running a job.
143 // A com.android.server.job.JobSchedulerService.Constants object.
171 // This is the job execution factor that is considered to be heavy use of
[all …]
/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/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/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