/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | PrioritySchedulingTest.java | 20 import android.app.job.JobInfo; 54 JobInfo job1 = new JobInfo.Builder(111, kJobServiceComponent) in testLowerPriorityJobPreempted() 58 JobInfo job2 = new JobInfo.Builder(222, kJobServiceComponent) in testLowerPriorityJobPreempted() 62 JobInfo job3 = new JobInfo.Builder(333, kJobServiceComponent) in testLowerPriorityJobPreempted() 66 JobInfo job4 = new JobInfo.Builder(444, kJobServiceComponent) in testLowerPriorityJobPreempted() 92 JobInfo job1 = new JobInfo.Builder(111, kJobServiceComponent) in testHigherPriorityJobNotPreempted() 96 JobInfo job2 = new JobInfo.Builder(222, kJobServiceComponent) in testHigherPriorityJobNotPreempted() 100 JobInfo job3 = new JobInfo.Builder(333, kJobServiceComponent) in testHigherPriorityJobNotPreempted() 104 JobInfo job4 = new JobInfo.Builder(444, kJobServiceComponent) in testHigherPriorityJobNotPreempted()
|
D | JobStoreTest.java | 14 import android.app.job.JobInfo; 15 import android.app.job.JobInfo.Builder; 113 final JobInfo task = new Builder(taskId, mComponent) in testMaybeWriteStatusToDisk() 115 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMaybeWriteStatusToDisk() 116 .setBackoffCriteria(initialBackoff, JobInfo.BACKOFF_POLICY_EXPONENTIAL) in testMaybeWriteStatusToDisk() 145 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk() 151 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk() 153 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in testWritingTwoFilesToDisk() 155 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testWritingTwoFilesToDisk() 195 JobInfo.Builder b = new Builder(8, mComponent) in testWritingTaskWithExtras() [all …]
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/ |
D | SystemJobInfoConverterTest.java | 29 import android.app.job.JobInfo; 74 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_ids() 84 JobInfo jobInfo = mConverter.convert( in testConvert_setPersistedByDefault() 109 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_retryPolicy() 111 assertThat(jobInfo.getBackoffPolicy(), is(JobInfo.BACKOFF_POLICY_LINEAR)); in testConvert_retryPolicy() 120 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_initialDelay() 129 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_periodicWithNoFlex() 139 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_periodicWithFlex() 150 JobInfo jobInfo = mConverter.convert(workSpec, JOB_ID); in testConvert_requireCharging() 159 final JobInfo.TriggerContentUri expectedTriggerContentUri = in testConvert_requireContentUriTrigger() [all …]
|
D | SystemJobSchedulerTest.java | 35 import android.app.job.JobInfo; 85 doReturn(RESULT_SUCCESS).when(mJobScheduler).schedule(any(JobInfo.class)); in setUp() 87 List<JobInfo> allJobInfos = new ArrayList<>(2); in setUp() 90 JobInfo mockJobInfo1 = mock(JobInfo.class); in setUp() 92 JobInfo mockJobInfo2 = mock(JobInfo.class); in setUp()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/ |
D | SystemJobInfoConverter.java | 21 import android.app.job.JobInfo; 69 JobInfo convert(WorkSpec workSpec, int jobId) { in convert() 76 JobInfo.Builder builder = new JobInfo.Builder(jobId, mWorkServiceComponent) in convert() 85 ? JobInfo.BACKOFF_POLICY_LINEAR : JobInfo.BACKOFF_POLICY_EXPONENTIAL; in convert() 121 private static JobInfo.TriggerContentUri convertContentUriTrigger( in convertContentUriTrigger() 124 ? JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS : 0; in convertContentUriTrigger() 125 return new JobInfo.TriggerContentUri(trigger.getUri(), flag); in convertContentUriTrigger() 137 return JobInfo.NETWORK_TYPE_NONE; in convertNetworkType() 139 return JobInfo.NETWORK_TYPE_ANY; in convertNetworkType() 141 return JobInfo.NETWORK_TYPE_UNMETERED; in convertNetworkType() [all …]
|
D | SystemJobScheduler.java | 19 import android.app.job.JobInfo; 124 JobInfo jobInfo = mSystemJobInfoConverter.convert(workSpec, jobId); in scheduleInternal() 134 List<JobInfo> allJobInfos = mJobScheduler.getAllPendingJobs(); in cancel() 136 for (JobInfo jobInfo : allJobInfos) { in cancel() 164 List<JobInfo> jobInfos = jobScheduler.getAllPendingJobs(); in jobSchedulerCancelAll() 167 for (JobInfo jobInfo : jobInfos) { in jobSchedulerCancelAll()
|
/frameworks/base/core/java/android/app/job/ |
D | IJobScheduler.aidl | 19 import android.app.job.JobInfo; 27 int schedule(in JobInfo job); in schedule() 28 int enqueue(in JobInfo job, in JobWorkItem work); in enqueue() 29 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() 32 List<JobInfo> getAllPendingJobs(); in getAllPendingJobs() 33 JobInfo getPendingJob(int jobId); in getPendingJob()
|
D | JobScheduler.java | 91 public abstract @Result int schedule(@NonNull JobInfo job); in schedule() 128 public abstract @Result int enqueue(@NonNull JobInfo job, @NonNull JobWorkItem work); in enqueue() 141 public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, in scheduleAsPackage() 166 public abstract @NonNull List<JobInfo> getAllPendingJobs(); in getAllPendingJobs() 174 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob()
|
D | JobInfo.java | 58 public class JobInfo implements Parcelable { class 616 if (!(o instanceof JobInfo)) { in equals() 619 JobInfo j = (JobInfo) o; in equals() 744 private JobInfo(Parcel in) { in JobInfo() method in JobInfo 781 private JobInfo(JobInfo.Builder b) { in JobInfo() method in JobInfo 855 public static final Creator<JobInfo> CREATOR = new Creator<JobInfo>() { 857 public JobInfo createFromParcel(Parcel in) { 858 return new JobInfo(in); 862 public JobInfo[] newArray(int size) { 863 return new JobInfo[size]; [all …]
|
/frameworks/base/core/java/android/app/ |
D | JobSchedulerImpl.java | 20 import android.app.job.JobInfo; 42 public int schedule(JobInfo job) { in schedule() 51 public int enqueue(JobInfo job, JobWorkItem work) { in enqueue() 60 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage() 85 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs() 94 public JobInfo getPendingJob(int jobId) { in getPendingJob()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | JobStatus.java | 23 import android.app.job.JobInfo; 69 static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; 70 static final int CONSTRAINT_IDLE = JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE; 71 static final int CONSTRAINT_BATTERY_NOT_LOW = JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; 72 static final int CONSTRAINT_STORAGE_NOT_LOW = JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW; 97 final JobInfo job; 266 private long totalNetworkBytes = JobInfo.NETWORK_BYTES_UNKNOWN; 298 private JobStatus(JobInfo job, int callingUid, int targetSdkVersion, String sourcePackageName, in JobStatus() 394 public JobStatus(JobInfo job, int callingUid, String sourcePkgName, int sourceUserId, in JobStatus() 439 public static JobStatus createFromJobInfo(JobInfo job, int callingUid, String sourcePkg, in createFromJobInfo() [all …]
|
D | ContentObserverController.java | 20 import android.app.job.JobInfo; 65 final SparseArray<ArrayMap<JobInfo.TriggerContentUri, ObserverInstance>> mObservers = 191 final JobInfo.TriggerContentUri mUri; 195 public ObserverInstance(Handler handler, JobInfo.TriggerContentUri uri, in ObserverInstance() 255 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance() 257 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observersOfUser = in JobInstance() 264 for (JobInfo.TriggerContentUri uri : uris) { in JobInstance() 270 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance() 285 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance() 345 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> observerOfUser = in detachLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 35 import android.app.job.JobInfo; 114 final JobInfo.Builder job = createJob() in testInsane() 116 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testInsane() 131 final JobInfo.Builder job = createJob() in testCongestion() 133 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in testCongestion() 158 final JobInfo.Builder job = createJob() in testRelaxed() 160 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in testRelaxed() 208 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED), UID_RED); in testUpdates() 211 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY), UID_BLUE); in testUpdates() 290 private static JobInfo.Builder createJob() { in createJob() [all …]
|
D | JobStatusTest.java | 21 import android.app.job.JobInfo; 71 final JobInfo job = new JobInfo.Builder(101, new ComponentName("foo", "bar")) in createJobStatus() 72 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY).build(); in createJobStatus()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessIdleJob.java | 20 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/ |
D | TestJobActivity.java | 20 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/ |
D | ProvisionObserver.java | 19 import android.app.job.JobInfo; 104 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision() 106 .addTriggerContentUri(new JobInfo.TriggerContentUri( in isDeferredForProvision()
|
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/ |
D | MainActivity.java | 20 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/ |
D | PruneInstantAppsJobService.java | 19 import android.app.job.JobInfo; 39 JobInfo pruneJob = new JobInfo.Builder(JOB_ID, new ComponentName( in schedule()
|
D | PreloadsFileCacheExpirationJobService.java | 19 import android.app.job.JobInfo; 63 JobInfo expirationJob = new JobInfo.Builder(JOB_ID, in schedule()
|
D | MountServiceIdler.java | 22 import android.app.job.JobInfo; 104 JobInfo.Builder builder = new JobInfo.Builder(MOUNT_JOB_ID, sIdleService); in scheduleIdlePass()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | FullBackupJob.java | 19 import android.app.job.JobInfo; 39 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sIdleService); in schedule()
|
D | KeyValueBackupJob.java | 20 import android.app.job.JobInfo; 77 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sKeyValueJobService) in schedule()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | TimeZoneUpdateIdler.java | 21 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/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoService.java | 20 import android.app.job.JobInfo; 124 JobInfo info = jss.getPendingJob(JOB_ID); in registerJobIfNeeded() 138 final JobInfo jobInfo = new JobInfo.Builder(JOB_ID, in registerJob()
|