/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 | 6 import android.app.job.JobInfo; 7 import android.app.job.JobInfo.Builder; 54 final JobInfo task = new Builder(taskId, mComponent) in testMaybeWriteStatusToDisk() 56 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in testMaybeWriteStatusToDisk() 57 .setBackoffCriteria(initialBackoff, JobInfo.BACKOFF_POLICY_EXPONENTIAL) in testMaybeWriteStatusToDisk() 82 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk() 88 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk() 90 .setBackoffCriteria(15000L, JobInfo.BACKOFF_POLICY_LINEAR) in testWritingTwoFilesToDisk() 92 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in testWritingTwoFilesToDisk() 132 JobInfo.Builder b = new Builder(8, mComponent) in testWritingTaskWithExtras() [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">新的 JobInfo 方法</a> 83 您甚至可以使用 {@link android.app.job.JobScheduler} 對內容提供者的變更採取因應動作。{@link android.app.job.JobInfo} 物件會封裝 … 122 …使用 {@link android.app.job.JobInfo.Builder JobInfo.Builder} 類別建置 {@link android.app.job.JobInfo} 物件… 123 android.app.job.JobInfo.Builder#setRequiredNetworkType 124 setRequiredNetworkType()} 方法並傳遞 {@link android.app.job.JobInfo 125 JobInfo.NETWORK_TYPE_UNMETERED} 當做工作參數。 137 JobInfo job = new JobInfo.Builder( 140 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 201 N Developer Preview 擴充 {@link android.app.job.JobInfo} 與 {@link 207 新的 JobInfo 方法 [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">新的 JobInfo 方法</a> 86 来响应内容提供程序所发生的变更。{@link android.app.job.JobInfo} 124 使用 {@link android.app.job.JobInfo.Builder JobInfo.Builder} 类构建 125 {@link android.app.job.JobInfo} 对象时,应用 {@link 126 android.app.job.JobInfo.Builder#setRequiredNetworkType 127 setRequiredNetworkType()} 方法,并将 {@link android.app.job.JobInfo 128 JobInfo.NETWORK_TYPE_UNMETERED} 作为作业参数传递。以下代码示例展示如何安排当设备接入无限流量网络且正在充电时要运行的服务: 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 202 Android N 扩展了 {@link android.app.job.JobInfo} 和 {@link [all …]
|
/frameworks/base/docs/html-intl/intl/ja/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">新しい JobInfo メソッド</a> 85 …{@link android.app.job.JobScheduler} を使用することもできます。{@link android.app.job.JobInfo} オブジェクトは、{@link a… 124 …{@link android.app.job.JobInfo} オブジェクトをビルドするために {@link android.app.job.JobInfo.Builder JobInfo.Bui… 125 android.app.job.JobInfo.Builder#setRequiredNetworkType 126 setRequiredNetworkType()} メソッドを適用し、{@link android.app.job.JobInfo 127 JobInfo.NETWORK_TYPE_UNMETERED} をジョブ パラメータとして渡します。 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 202 Android N では、{@link android.app.job.JobInfo} と {@link 208 新しい JobInfo メソッド [all …]
|
/frameworks/base/docs/html-intl/intl/ko/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">새로운 JobInfo 메서드</a> 86 사용하여 콘텐츠 제공자의 변경에 대응할 수도 있습니다. {@link android.app.job.JobInfo} 124 {@link android.app.job.JobInfo.Builder JobInfo.Builder} 클래스를 125 사용하여 {@link android.app.job.JobInfo} 객체를 빌드하는 경우, {@link 126 android.app.job.JobInfo.Builder#setRequiredNetworkType 127 setRequiredNetworkType()} 메서드를 적용하고 {@link android.app.job.JobInfo 128 JobInfo.NETWORK_TYPE_UNMETERED}를 작업 매개변수로 전달합니다. 다음의 코드 샘플에서는 기기가 비 데이터 통신 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 203 {@link android.app.job.JobInfo} 및 {@link [all …]
|
/frameworks/base/docs/html-intl/intl/ru/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">Новые методы JobInfo</a> 84 , чтобы реагировать на изменения поставщиков контента. В объектах {@link android.app.job.JobInfo} 122 При использовании класса {@link android.app.job.JobInfo.Builder JobInfo.Builder} для создания 123 объекта {@link android.app.job.JobInfo} примените метод {@link 124 android.app.job.JobInfo.Builder#setRequiredNetworkType 125 setRequiredNetworkType()} и передайте {@link android.app.job.JobInfo 126 JobInfo.NETWORK_TYPE_UNMETERED} в качестве параметра задания. В следующем примере кода 137 JobInfo job = new JobInfo.Builder( 140 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 202 расширяет классы {@link android.app.job.JobInfo} и {@link [all …]
|
/frameworks/base/core/java/android/app/job/ |
D | IJobScheduler.aidl | 19 import android.app.job.JobInfo; 26 int schedule(in JobInfo job); in schedule() 27 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() 30 List<JobInfo> getAllPendingJobs(); in getAllPendingJobs() 31 JobInfo getPendingJob(int jobId); in getPendingJob()
|
D | JobScheduler.java | 67 public abstract int schedule(JobInfo job); in schedule() 80 public abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() 100 public abstract @NonNull List<JobInfo> getAllPendingJobs(); in getAllPendingJobs() 108 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob()
|
D | JobInfo.java | 41 public class JobInfo implements Parcelable { class 361 private JobInfo(Parcel in) { in JobInfo() method in JobInfo 385 private JobInfo(JobInfo.Builder b) { in JobInfo() method in JobInfo 441 public static final Creator<JobInfo> CREATOR = new Creator<JobInfo>() { 443 public JobInfo createFromParcel(Parcel in) { 444 return new JobInfo(in); 448 public JobInfo[] newArray(int size) { 449 return new JobInfo[size]; 790 public JobInfo build() { in build() 821 JobInfo job = new JobInfo(this); in build()
|
/frameworks/base/core/java/android/app/ |
D | JobSchedulerImpl.java | 20 import android.app.job.JobInfo; 40 public int schedule(JobInfo job) { in schedule() 49 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage() 74 public List<JobInfo> getAllPendingJobs() { in getAllPendingJobs() 83 public JobInfo getPendingJob(int jobId) { in getPendingJob()
|
/frameworks/base/docs/html-intl/intl/in/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">Metode JobInfo Baru</a> 86 untuk bereaksi terhadap perubahan penyedia materi. Objek {@link android.app.job.JobInfo} 124 Saat menggunakan kelas {@link android.app.job.JobInfo.Builder JobInfo.Builder} 125 untuk membangun objek {@link android.app.job.JobInfo} Anda, terapkan metode {@link 126 android.app.job.JobInfo.Builder#setRequiredNetworkType 127 setRequiredNetworkType()} dan teruskan {@link android.app.job.JobInfo 128 JobInfo.NETWORK_TYPE_UNMETERED} sebagai parameter pekerjaan. Contoh kode berikut 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 203 memperluas {@link android.app.job.JobInfo} dan {@link [all …]
|
/frameworks/base/docs/html/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">New JobInfo methods</a> 87 to react to changes to content providers. {@link android.app.job.JobInfo} 125 When using the {@link android.app.job.JobInfo.Builder JobInfo.Builder} class 126 to build your {@link android.app.job.JobInfo} object, apply the {@link 127 android.app.job.JobInfo.Builder#setRequiredNetworkType 128 setRequiredNetworkType()} method and pass {@link android.app.job.JobInfo 129 JobInfo.NETWORK_TYPE_UNMETERED} as a job parameter. The following code sample 140 JobInfo job = new JobInfo.Builder( 143 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 206 extends {@link android.app.job.JobInfo} and {@link [all …]
|
/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() 41 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) in schedule()
|
D | KeyValueBackupJob.java | 20 import android.app.job.JobInfo; 71 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, sKeyValueJobService) in schedule() 73 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) in schedule()
|
/frameworks/base/docs/html-intl/intl/es/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">Nuevos métodos de JobInfo</a> 86 …a cambios en relación con los proveedores de contenido. Los objetos {@link android.app.job.JobInfo} 124 Cuando uses la clase {@link android.app.job.JobInfo.Builder JobInfo.Builder} 125 para crear tu objeto {@link android.app.job.JobInfo}, aplica el método {@link 126 android.app.job.JobInfo.Builder#setRequiredNetworkType 127 setRequiredNetworkType()} y pasa {@link android.app.job.JobInfo 128 JobInfo.NETWORK_TYPE_UNMETERED} como parámetro de trabajo. El siguiente ejemplo de código 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 203 extiende {@link android.app.job.JobInfo} y {@link [all …]
|
/frameworks/base/docs/html-intl/intl/pt-br/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">Novos métodos JobInfo</a> 86 para reagir a mudanças em provedores de conteúdo. Os objetos {@link android.app.job.JobInfo} 124 Ao usar a classe {@link android.app.job.JobInfo.Builder JobInfo.Builder} 125 para compilar o objeto {@link android.app.job.JobInfo}, aplique o método {@link 126 android.app.job.JobInfo.Builder#setRequiredNetworkType 127 setRequiredNetworkType()} e passe {@link android.app.job.JobInfo 128 JobInfo.NETWORK_TYPE_UNMETERED} como parâmetro do trabalho. O código a seguir 139 JobInfo job = new JobInfo.Builder( 142 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 203 estende {@link android.app.job.JobInfo} e {@link [all …]
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerService.java | 35 import android.app.job.JobInfo; 512 public int schedule(JobInfo job, int uId) { in schedule() 516 public int scheduleAsPackage(JobInfo job, int uId, String packageName, int userId, in scheduleAsPackage() 550 public List<JobInfo> getPendingJobs(int uid) { in getPendingJobs() 553 ArrayList<JobInfo> outList = new ArrayList<JobInfo>(jobs.size()); in getPendingJobs() 562 public JobInfo getPendingJob(int uid, int jobId) { in getPendingJob() 652 mUidPriorityOverride.put(uid, JobInfo.PRIORITY_TOP_APP); in updateUidState() 654 mUidPriorityOverride.put(uid, JobInfo.PRIORITY_FOREGROUND_APP); in updateUidState() 671 && (executing.getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) == 0) { in onDeviceIdleStateChanged() 698 && (job.getJob().getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) == 0 in reportActive() [all …]
|
D | JobSchedulerInternal.java | 19 import android.app.job.JobInfo; 32 List<JobInfo> getSystemScheduledPendingJobs(); in getSystemScheduledPendingJobs()
|
D | JobStore.java | 20 import android.app.job.JobInfo; 389 final JobInfo job = jobStatus.getJob(); in writeExecutionCriteriaToXml() 413 … if (jobStatus.getJob().getInitialBackoffMillis() != JobInfo.DEFAULT_INITIAL_BACKOFF_MILLIS in writeExecutionCriteriaToXml() 414 || jobStatus.getJob().getBackoffPolicy() != JobInfo.DEFAULT_BACKOFF_POLICY) { in writeExecutionCriteriaToXml() 534 JobInfo.Builder jobBuilder; in restoreJobFromXml() 693 … private JobInfo.Builder buildBuilderFromXml(XmlPullParser parser) throws NumberFormatException { in buildBuilderFromXml() 700 return new JobInfo.Builder(jobId, cname); in buildBuilderFromXml() 703 private void buildConstraintsFromXml(JobInfo.Builder jobBuilder, XmlPullParser parser) { in buildConstraintsFromXml() 706 jobBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY); in buildConstraintsFromXml() 710 jobBuilder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); in buildConstraintsFromXml() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ContentObserverController.java | 19 import android.app.job.JobInfo; 62 ArrayMap<JobInfo.TriggerContentUri, ObserverInstance> mObservers = new ArrayMap<>(); 205 final JobInfo.TriggerContentUri mUri; 208 public ObserverInstance(Handler handler, JobInfo.TriggerContentUri uri) { in ObserverInstance() 265 final JobInfo.TriggerContentUri[] uris = jobStatus.getJob().getTriggerContentUris(); in JobInstance() 267 for (JobInfo.TriggerContentUri uri : uris) { in JobInstance() 273 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance() 285 JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS) != 0; in JobInstance() 384 JobInfo.TriggerContentUri trigger = mObservers.keyAt(i); in dumpControllerStateLocked()
|
D | JobStatus.java | 20 import android.app.job.JobInfo; 76 final JobInfo job; 129 private JobStatus(JobInfo job, int callingUid, String sourcePackageName, in JobStatus() 166 if (job.getNetworkType() == JobInfo.NETWORK_TYPE_ANY) { in JobStatus() 169 if (job.getNetworkType() == JobInfo.NETWORK_TYPE_UNMETERED) { in JobStatus() 172 if (job.getNetworkType() == JobInfo.NETWORK_TYPE_NOT_ROAMING) { in JobStatus() 208 public JobStatus(JobInfo job, int callingUid, String sourcePackageName, int sourceUserId, in JobStatus() 230 public static JobStatus createFromJobInfo(JobInfo job, int callingUid, String sourcePackageName, in createFromJobInfo() 247 public JobInfo getJob() { in getJob() 446 || (job.getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0; in isReady() [all …]
|
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/ |
D | MainActivity.java | 20 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/ |
D | MountServiceIdler.java | 22 import android.app.job.JobInfo; 100 JobInfo.Builder builder = new JobInfo.Builder(MOUNT_JOB_ID, sIdleService); in scheduleIdlePass()
|
/frameworks/base/docs/html-intl/intl/vi/preview/features/ |
D | background-optimization.jd | 35 <a href="#new-jobinfo">Các phương thức JobInfo Mới</a> 84 …với các thay đổi đối với các trình cung cấp nội dung. Các đối tượng {@link android.app.job.JobInfo} 122 Khi sử dụng lớp{@link android.app.job.JobInfo.Builder JobInfo.Builder} 123 để xây dựng đối tượng {@link android.app.job.JobInfo} của bạn, hãy áp dụng phương thức {@link 124 android.app.job.JobInfo.Builder#setRequiredNetworkType 125 setRequiredNetworkType()} và chuyển {@link android.app.job.JobInfo 126 JobInfo.NETWORK_TYPE_UNMETERED} dưới dạng một tham số tác vụ. Đoạn mã mẫu sau 137 JobInfo job = new JobInfo.Builder( 140 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) 202 mở rộng {@link android.app.job.JobInfo} và {@link [all …]
|