Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java6 import android.app.job.JobInfo;
7 import android.app.job.JobInfo.Builder;
52 final JobInfo task = new Builder(taskId, mComponent) in testMaybeWriteStatusToDisk()
54 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMaybeWriteStatusToDisk()
55 .setBackoffCriteria(initialBackoff, JobInfo.BACKOFF_POLICY_EXPONENTIAL) in testMaybeWriteStatusToDisk()
80 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk()
86 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk()
88 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in testWritingTwoFilesToDisk()
90 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testWritingTwoFilesToDisk()
122 JobInfo.Builder b = new Builder(8, mComponent) in testWritingTaskWithExtras()
[all …]
/frameworks/base/core/java/android/app/job/
DJobInfo.java32 public class JobInfo implements Parcelable { class
207 private JobInfo(Parcel in) { in JobInfo() method in JobInfo
225 private JobInfo(JobInfo.Builder b) { in JobInfo() method in JobInfo
267 public static final Creator<JobInfo> CREATOR = new Creator<JobInfo>() {
269 public JobInfo createFromParcel(Parcel in) {
270 return new JobInfo(in);
274 public JobInfo[] newArray(int size) {
275 return new JobInfo[size];
447 public JobInfo build() { in build()
469 return new JobInfo(this); in build()
DIJobScheduler.aidl19 import android.app.job.JobInfo;
26 int schedule(in JobInfo job); in schedule()
29 List<JobInfo> getAllPendingJobs(); in getAllPendingJobs()
DJobScheduler.java68 public abstract int schedule(JobInfo job); in schedule()
86 public abstract List<JobInfo> getAllPendingJobs(); in getAllPendingJobs()
DJobInfo.aidl19 parcelable JobInfo;
/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java19 import android.app.job.JobInfo;
44 final JobInfo job;
76 private JobStatus(JobInfo job, int uId, int numFailures) { in JobStatus()
85 public JobStatus(JobInfo job, int uId) { in JobStatus()
108 public JobStatus(JobInfo job, int uId, long earliestRunTimeElapsedMillis, in JobStatus()
125 public JobInfo getJob() { in getJob()
162 return job.getNetworkType() == JobInfo.NETWORK_TYPE_ANY; in hasConnectivityConstraint()
166 return job.getNetworkType() == JobInfo.NETWORK_TYPE_UNMETERED; in hasUnmeteredConstraint()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java19 import android.app.job.JobInfo;
39 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sIdleService) in schedule()
41 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in schedule()
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java20 import android.app.job.JobInfo;
40 public int schedule(JobInfo job) { in schedule()
65 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java19 import android.app.job.JobInfo;
46 JobInfo job = new JobInfo.Builder(BACKGROUND_DEXOPT_JOB, sDexoptServiceName) in schedule()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java20 import android.app.job.JobInfo;
133 JobInfo.Builder builder = new JobInfo.Builder(kJobId++, mServiceComponent); in scheduleJob()
146 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in scheduleJob()
148 builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in scheduleJob()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java21 import android.app.job.JobInfo;
91 JobInfo.Builder builder = new JobInfo.Builder(MOUNT_JOB_ID, sIdleService); in scheduleIdlePass()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java20 import android.app.job.JobInfo;
370 final JobInfo job = jobStatus.getJob(); in writeExecutionCriteriaToXml()
393 … if (jobStatus.getJob().getInitialBackoffMillis() != JobInfo.DEFAULT_INITIAL_BACKOFF_MILLIS in writeExecutionCriteriaToXml()
394 || jobStatus.getJob().getBackoffPolicy() != JobInfo.DEFAULT_BACKOFF_POLICY) { in writeExecutionCriteriaToXml()
514 JobInfo.Builder jobBuilder; in restoreJobFromXml()
614 … private JobInfo.Builder buildBuilderFromXml(XmlPullParser parser) throws NumberFormatException { in buildBuilderFromXml()
621 return new JobInfo.Builder(jobId, cname); in buildBuilderFromXml()
624 private void buildConstraintsFromXml(JobInfo.Builder jobBuilder, XmlPullParser parser) { in buildConstraintsFromXml()
627 jobBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in buildConstraintsFromXml()
631 jobBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in buildConstraintsFromXml()
[all …]
DJobSchedulerService.java26 import android.app.job.JobInfo;
174 public int schedule(JobInfo job, int uId) { in schedule()
182 public List<JobInfo> getPendingJobs(int uid) { in getPendingJobs()
183 ArrayList<JobInfo> outList = new ArrayList<JobInfo>(); in getPendingJobs()
402 final JobInfo job = failureToReschedule.getJob(); in getRescheduleJobForFailure()
409 case JobInfo.BACKOFF_POLICY_LINEAR: in getRescheduleJobForFailure()
416 case JobInfo.BACKOFF_POLICY_EXPONENTIAL: in getRescheduleJobForFailure()
422 Math.min(delayMillis, JobInfo.MAX_BACKOFF_DELAY_MILLIS); in getRescheduleJobForFailure()
710 private void enforceValidJobRequest(int uid, JobInfo job) { in enforceValidJobRequest()
754 public int schedule(JobInfo job) throws RemoteException { in schedule()
[all …]
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
DTestJobService.java19 import android.app.job.JobInfo;
120 public void scheduleJob(JobInfo job) { in scheduleJob()
/frameworks/base/docs/html/sdk/api_diff/preview-21/
DmissingSinces.txt280 NO DOC BLOCK: android.app.job.JobInfo Method getNetworkType()
418 NO DOC BLOCK: android.app.job.JobInfo Method isPersisted()
604 NO DOC BLOCK: android.app.job.JobInfo.Builder Method setPersisted(boolean)
621 NO DOC BLOCK: android.app.job.JobInfo.Builder Method setRequiredNetworkType(int)
730 NO DOC BLOCK: android.app.job.JobInfo Field BACKOFF_POLICY_EXPONENTIAL
731 NO DOC BLOCK: android.app.job.JobInfo Field BACKOFF_POLICY_LINEAR
784 NO DOC BLOCK: android.app.job.JobInfo Field DEFAULT_INITIAL_BACKOFF_MILLIS
1023 NO DOC BLOCK: android.app.job.JobInfo Field MAX_BACKOFF_DELAY_MILLIS
1110 NO DOC BLOCK: android.app.job.JobInfo Field NETWORK_TYPE_ANY
1111 NO DOC BLOCK: android.app.job.JobInfo Field NETWORK_TYPE_NONE
[all …]
/frameworks/base/docs/html/about/versions/
Dandroid-5.0.jd863 <p>A unit of work is encapsulated by a {@link android.app.job.JobInfo} object.
866 <p>Use the {@link android.app.job.JobInfo.Builder} class to configure how the
881 JobInfo uploadTask = new JobInfo.Builder(mJobId,
883 .setRequiredNetworkCapabilities(JobInfo.NetworkType.UNMETERED)
/frameworks/base/
DAndroid.mk536 frameworks/base/core/java/android/app/job/JobInfo.aidl \
/frameworks/base/api/
Dcurrent.txt5501 public class JobInfo implements android.os.Parcelable {
5527 public static final class JobInfo.Builder {
5528 ctor public JobInfo.Builder(int, android.content.ComponentName);
5529 method public android.app.job.JobInfo build();
5530 method public android.app.job.JobInfo.Builder setBackoffCriteria(long, int);
5531 method public android.app.job.JobInfo.Builder setExtras(android.os.PersistableBundle);
5532 method public android.app.job.JobInfo.Builder setMinimumLatency(long);
5533 method public android.app.job.JobInfo.Builder setOverrideDeadline(long);
5534 method public android.app.job.JobInfo.Builder setPeriodic(long);
5535 method public android.app.job.JobInfo.Builder setPersisted(boolean);
[all …]