Home
last modified time | relevance | path

Searched refs:JobInfo (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java46 import android.app.job.JobInfo;
133 final JobInfo triggerContentJob = new JobInfo.Builder(42, TEST_JOB_COMPONENT) in testMediaBackupExemption_lateConstraint()
134 .addTriggerContentUri(new JobInfo.TriggerContentUri(IMAGES_MEDIA_URI, 0)) in testMediaBackupExemption_lateConstraint()
136 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMediaBackupExemption_lateConstraint()
144 final JobInfo triggerContentJob = new JobInfo.Builder(42, TEST_JOB_COMPONENT) in testMediaBackupExemption_noConnectivityConstraint()
145 .addTriggerContentUri(new JobInfo.TriggerContentUri(IMAGES_MEDIA_URI, 0)) in testMediaBackupExemption_noConnectivityConstraint()
153 final JobInfo networkJob = new JobInfo.Builder(42, TEST_JOB_COMPONENT) in testMediaBackupExemption_noContentTriggerConstraint()
154 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMediaBackupExemption_noContentTriggerConstraint()
162 final JobInfo networkContentJob = new JobInfo.Builder(42, TEST_JOB_COMPONENT) in testMediaBackupExemption_wrongSourcePackage()
163 .addTriggerContentUri(new JobInfo.TriggerContentUri(IMAGES_MEDIA_URI, 0)) in testMediaBackupExemption_wrongSourcePackage()
[all …]
DConnectivityControllerTest.java50 import android.app.job.JobInfo;
151 final JobInfo.Builder job = createJob() in testUsable()
154 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testUsable()
236 final JobInfo.Builder job = createJob() in testInsane()
239 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testInsane()
261 final JobInfo.Builder job = createJob() in testCongestion()
264 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testCongestion()
291 final JobInfo.Builder job = createJob() in testRelaxed()
294 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in testRelaxed()
355 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED), UID_RED); in testUpdates()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPrioritySchedulingTest.java20 import android.app.job.JobInfo;
41 private static final int HIGH_PRIORITY = JobInfo.PRIORITY_BOUND_FOREGROUND_SERVICE + 1;
42 private static final int LOW_PRIORITY = JobInfo.PRIORITY_BOUND_FOREGROUND_SERVICE;
61 JobInfo job = new JobInfo.Builder(100 + i, kJobServiceComponent) in testLowerPriorityJobPreempted()
68 JobInfo jobHigher = new JobInfo.Builder(higherPriorityJobId, kJobServiceComponent) in testLowerPriorityJobPreempted()
92 JobInfo job = new JobInfo.Builder(100 + i, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
99 JobInfo jobLower = new JobInfo.Builder(lowerPriorityJobId, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
DJobStoreTest.java16 import android.app.job.JobInfo;
17 import android.app.job.JobInfo.Builder;
127 final JobInfo task = new Builder(taskId, mComponent) in testMaybeWriteStatusToDisk()
129 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMaybeWriteStatusToDisk()
130 .setBackoffCriteria(initialBackoff, JobInfo.BACKOFF_POLICY_EXPONENTIAL) in testMaybeWriteStatusToDisk()
159 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk()
165 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk()
167 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in testWritingTwoFilesToDisk()
169 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testWritingTwoFilesToDisk()
209 JobInfo.Builder b = new Builder(8, mComponent) in testWritingTaskWithExtras()
[all …]
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobSnapshot.java32 private final JobInfo mJob;
36 public JobSnapshot(JobInfo info, int satisfiedMask, boolean runnable) { in JobSnapshot()
43 mJob = JobInfo.CREATOR.createFromParcel(in); in JobSnapshot()
56 public JobInfo getJobInfo() { in getJobInfo()
72 || satisfied(JobInfo.CONSTRAINT_FLAG_CHARGING); in isChargingSatisfied()
80 || satisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW); in isBatteryNotLowSatisfied()
88 || satisfied(JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE); in isRequireDeviceIdleSatisfied()
93 || satisfied(JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW); in isRequireStorageNotLowSatisfied()
DIJobScheduler.aidl19 import android.app.job.JobInfo;
29 int schedule(in JobInfo job); in schedule()
30 int enqueue(in JobInfo job, in JobWorkItem work); in enqueue()
31 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage()
35 JobInfo getPendingJob(int jobId); in getPendingJob()
36 List<JobInfo> getStartedJobs(); in getStartedJobs()
DJobScheduler.java127 public abstract @Result int schedule(@NonNull JobInfo job); in schedule()
174 public abstract @Result int enqueue(@NonNull JobInfo job, @NonNull JobWorkItem work); in enqueue()
188 public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, in scheduleAsPackage()
213 public abstract @NonNull List<JobInfo> getAllPendingJobs(); in getAllPendingJobs()
221 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob()
229 public abstract List<JobInfo> getStartedJobs(); in getStartedJobs()
DJobInfo.java63 public class JobInfo implements Parcelable { class
629 if (!(o instanceof JobInfo)) { in equals()
632 JobInfo j = (JobInfo) o; in equals()
757 private JobInfo(Parcel in) { in JobInfo() method in JobInfo
794 private JobInfo(JobInfo.Builder b) { in JobInfo() method in JobInfo
868 …public static final @android.annotation.NonNull Creator<JobInfo> CREATOR = new Creator<JobInfo>() {
870 public JobInfo createFromParcel(Parcel in) {
871 return new JobInfo(in);
875 public JobInfo[] newArray(int size) {
876 return new JobInfo[size];
[all …]
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DJobSchedulerImpl.java20 import android.app.job.JobInfo;
45 public int schedule(JobInfo job) { in schedule()
54 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue()
63 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage()
88 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs()
97 public JobInfo getPendingJob(int jobId) { in getPendingJob()
106 public List<JobInfo> getStartedJobs() { in getStartedJobs()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsIdleService.java18 import android.app.job.JobInfo;
55 final JobInfo pruneJob = new JobInfo.Builder(userJobId, component) in scheduleJob()
67 final JobInfo updateMappingsJob = new JobInfo.Builder(UPDATE_MAPPINGS_JOB_ID, component) in scheduleUpdateMappingsJob()
76 private static void scheduleJobInternal(Context context, JobInfo pruneJob, int jobId) { in scheduleJobInternal()
78 final JobInfo pendingPruneJob = jobScheduler.getPendingJob(jobId); in scheduleJobInternal()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java26 import android.app.job.JobInfo;
85 static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; // 1 < 0
86 static final int CONSTRAINT_IDLE = JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE; // 1 << 2
87 static final int CONSTRAINT_BATTERY_NOT_LOW = JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; // 1 << 1
88 static final int CONSTRAINT_STORAGE_NOT_LOW = JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW; // 1 << 3
178 final JobInfo job;
392 private long mTotalNetworkDownloadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
393 private long mTotalNetworkUploadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
456 private JobStatus(JobInfo job, int callingUid, String sourcePackageName, in JobStatus()
512 for (JobInfo.TriggerContentUri uri : job.getTriggerContentUris()) { in JobStatus()
[all …]
DContentObserverController.java22 import android.app.job.JobInfo;
67 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers =
215 final JobInfo.TriggerContentUri mUri;
219 public ObserverInstance(Handler handler, JobInfo.TriggerContentUri uri, in ObserverInstance()
279 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance()
281 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observersOfUser = in JobInstance()
288 for (JobInfo.TriggerContentUri uri : uris) { in JobInstance()
294 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
309 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance()
370 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observerOfUser = in detachLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java20 import android.app.job.JobInfo;
45 JobInfo pending = jobScheduler.getPendingJob(JOB_ID); in scheduleJob()
46 JobInfo jobInfo = in scheduleJob()
47 new JobInfo.Builder(JOB_ID, new ComponentName(context, BrightnessIdleJob.class)) in scheduleJob()
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobActivity.java20 import android.app.job.JobInfo;
51 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent) in onCreate()
52 .setBackoffCriteria(JOB_INITIAL_BACKOFF, JobInfo.BACKOFF_POLICY_LINEAR) in onCreate()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java19 import android.app.job.JobInfo;
103 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision()
105 .addTriggerContentUri(new JobInfo.TriggerContentUri( in isDeferredForProvision()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java20 import android.app.job.JobInfo;
135 JobInfo.Builder builder = new JobInfo.Builder(kJobId++, mServiceComponent); in scheduleJob()
149 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in scheduleJob()
151 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_METERED); in scheduleJob()
153 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in scheduleJob()
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java19 import android.app.job.JobInfo;
39 JobInfo pruneJob = new JobInfo.Builder(JOB_ID, new ComponentName( in schedule()
DPreloadsFileCacheExpirationJobService.java19 import android.app.job.JobInfo;
63 JobInfo expirationJob = new JobInfo.Builder(JOB_ID, in schedule()
DZramWriteback.java19 import android.app.job.JobInfo;
129 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in schedNextWriteback()
178 js.schedule(new JobInfo.Builder(MARK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
186 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
DMountServiceIdler.java22 import android.app.job.JobInfo;
113 JobInfo.Builder builder = new JobInfo.Builder(MOUNT_JOB_ID, sIdleService); in scheduleIdlePass()
/frameworks/base/services/core/java/com/android/server/timezone/
DTimeZoneUpdateIdler.java19 import android.app.job.JobInfo;
79 JobInfo.Builder jobInfoBuilder = in schedule()
80 new JobInfo.Builder(TIME_ZONE_UPDATE_IDLE_JOB_ID, idlerJobServiceName) in schedule()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreIdleJobService.java22 import android.app.job.JobInfo;
60 final JobInfo job = new JobInfo.Builder(IDLE_JOB_ID, in schedule()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataMaintenanceService.java20 import android.app.job.JobInfo;
49 JobInfo newJob = new JobInfo.Builder(jobId, component) in scheduleJob()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DAuxiliaryPersistenceWrapper.kt19 import android.app.job.JobInfo
114 fun getJobForContext(context: Context): JobInfo { in getJobForContext()
117 return JobInfo.Builder(jobId, componentName) in getJobForContext()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java21 import android.app.job.JobInfo;
50 JobInfo.Builder builder = new JobInfo.Builder(getJobIdForUserId(userId), sIdleService); in schedule()

123