Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java17 package com.android.server.job.controllers;
20 import android.app.job.JobInfo;
76 final JobInfo job; field in JobStatus
129 private JobStatus(JobInfo job, int callingUid, String sourcePackageName, in JobStatus() argument
132 this.job = job; in JobStatus()
147 this.sourcePackageName = job.getService().getPackageName(); in JobStatus()
157 ? this.sourceTag + ":" + job.getService().getPackageName() in JobStatus()
158 : job.getService().flattenToShortString(); in JobStatus()
166 if (job.getNetworkType() == JobInfo.NETWORK_TYPE_ANY) { in JobStatus()
169 if (job.getNetworkType() == JobInfo.NETWORK_TYPE_UNMETERED) { in JobStatus()
[all …]
DTimeController.java17 package com.android.server.job.controllers;
28 import com.android.server.job.JobSchedulerService;
29 import com.android.server.job.StateChangedListener;
78 public void maybeStartTrackingJobLocked(JobStatus job, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument
79 if (job.hasTimingDelayConstraint() || job.hasDeadlineConstraint()) { in maybeStartTrackingJobLocked()
80 maybeStopTrackingJobLocked(job, null, false); in maybeStartTrackingJobLocked()
85 if (ts.getLatestRunTimeElapsed() < job.getLatestRunTimeElapsed()) { in maybeStartTrackingJobLocked()
94 it.add(job); in maybeStartTrackingJobLocked()
96 job.hasTimingDelayConstraint() ? job.getEarliestRunTime() : Long.MAX_VALUE, in maybeStartTrackingJobLocked()
97 job.hasDeadlineConstraint() ? job.getLatestRunTimeElapsed() : Long.MAX_VALUE, in maybeStartTrackingJobLocked()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java154 Job job = null; in handleOperation() local
164 job = createJob(operationType, jobId, srcs, srcParent, stack); in handleOperation()
166 if (job == null) { in handleOperation()
173 assert(job != null); in handleOperation()
177 TAG, "Scheduling job " + job.id + " to run in " + delay + " milliseconds."); in handleOperation()
178 ScheduledFuture<?> future = executor.schedule(job, delay, TimeUnit.MILLISECONDS); in handleOperation()
179 mRunning.put(jobId, new JobRecord(job, future)); in handleOperation()
202 record.job.cancel(); in handleCancel()
209 onFinished(record.job); in handleCancel()
261 private void deleteJob(Job job) { in deleteJob() argument
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java17 package com.android.server.job;
35 import android.app.job.JobInfo;
36 import android.app.job.JobParameters;
37 import android.app.job.JobScheduler;
38 import android.app.job.JobService;
39 import android.app.job.IJobScheduler;
76 import com.android.server.job.JobStore.JobStatusFunctor;
77 import com.android.server.job.controllers.AppIdleController;
78 import com.android.server.job.controllers.BatteryController;
79 import com.android.server.job.controllers.ConnectivityController;
[all …]
DJobServiceContext.java17 package com.android.server.job;
20 import android.app.job.JobParameters;
21 import android.app.job.IJobCallback;
22 import android.app.job.IJobService;
44 import com.android.server.job.controllers.JobStatus;
165 boolean executeRunnableJob(JobStatus job) { in executeRunnableJob() argument
174 mRunningJob = job; in executeRunnableJob()
176 job.hasDeadlineConstraint() && in executeRunnableJob()
177 (job.getLatestRunTimeElapsed() < SystemClock.elapsedRealtime()); in executeRunnableJob()
179 if (job.changedUris != null) { in executeRunnableJob()
[all …]
DJobPackageTracker.java17 package com.android.server.job;
19 import android.app.job.JobInfo;
27 import com.android.server.job.controllers.JobStatus;
346 public void notePending(JobStatus job) { in notePending() argument
349 mCurDataSet.incPending(job.getSourceUid(), job.getSourcePackageName(), now); in notePending()
352 public void noteNonpending(JobStatus job) { in noteNonpending() argument
354 mCurDataSet.decPending(job.getSourceUid(), job.getSourcePackageName(), now); in noteNonpending()
358 public void noteActive(JobStatus job) { in noteActive() argument
361 if (job.lastEvaluatedPriority >= JobInfo.PRIORITY_TOP_APP) { in noteActive()
362 mCurDataSet.incActiveTop(job.getSourceUid(), job.getSourcePackageName(), now); in noteActive()
[all …]
DJobStore.java17 package com.android.server.job;
20 import android.app.job.JobInfo;
38 import com.android.server.job.controllers.JobStatus;
264 public void process(JobStatus job) { in run()
265 if (job.isPersisted()) { in run()
266 storeCopy.add(new JobStatus(job)); in run()
389 final JobInfo job = jobStatus.getJob(); in writeExecutionCriteriaToXml() local
392 out.attribute(null, "period", Long.toString(job.getIntervalMillis())); in writeExecutionCriteriaToXml()
393 out.attribute(null, "flex", Long.toString(job.getFlexMillis())); in writeExecutionCriteriaToXml()
415 out.attribute(null, "backoff-policy", Integer.toString(job.getBackoffPolicy())); in writeExecutionCriteriaToXml()
[all …]
/frameworks/base/docs/html-intl/intl/ja/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 たとえば、{@link android.app.job.JobScheduler} と <a href="https://developers.google.com/android/referenc…
85 …変更に対応するために、{@link android.app.job.JobScheduler} を使用することもできます。{@link android.app.job.JobInfo} オブジェク…
88 ジョブの条件が満たされると、システムはこのジョブをアプリの {@link android.app.job.JobService} で実行します。
94 {@link android.app.job.JobScheduler} などの代替メソッドの使用法について説明します。
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
139 JobInfo job = new JobInfo.Builder(
145 js.schedule(job);
[all …]
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
79 例如,{@link android.app.job.JobScheduler} 與 <a href="https://developers.google.com/android/reference/…
83 您甚至可以使用 {@link android.app.job.JobScheduler} 對內容提供者的變更採取因應動作。{@link android.app.job.JobInfo} 物件會封裝 …
86 符合工作的條件時,系統會在應用程式的 {@link android.app.job.JobService} 上執行此工作。
92 {@link android.app.job.JobScheduler}) 改寫您的應用程式以配合這些新的限制。
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
137 JobInfo job = new JobInfo.Builder(
143 js.schedule(job);
[all …]
/frameworks/base/docs/html-intl/intl/ru/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
79 от таких неявных рассылок. Например, в {@link android.app.job.JobScheduler}
83 сети. Теперь вы также можете использовать {@link android.app.job.JobScheduler}
84 , чтобы реагировать на изменения поставщиков контента. В объектах {@link android.app.job.JobInfo}
85 инкапсулированы параметры, которые {@link android.app.job.JobScheduler}
87 выполняет его через {@link android.app.job.JobService} вашего приложения.
92 {@link android.app.job.JobScheduler}, для адаптации приложения к новым
122 При использовании класса {@link android.app.job.JobInfo.Builder JobInfo.Builder} для создания
123 объекта {@link android.app.job.JobInfo} примените метод {@link
124 android.app.job.JobInfo.Builder#setRequiredNetworkType
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 例如,{@link android.app.job.JobScheduler}
85 现在,您还可以使用 {@link android.app.job.JobScheduler}
86 来响应内容提供程序所发生的变更。{@link android.app.job.JobInfo}
87 对象封装了 {@link android.app.job.JobScheduler}
88 用来安排您的作业的参数。如果符合作业条件,系统将在应用的 {@link android.app.job.JobService} 上执行此作业。
93 在本文档中,我们将学习如何使用备用方法(如 {@link android.app.job.JobScheduler})调整您的应用以符合这些新限制。
124 使用 {@link android.app.job.JobInfo.Builder JobInfo.Builder} 类构建
125 {@link android.app.job.JobInfo} 对象时,应用 {@link
126 android.app.job.JobInfo.Builder#setRequiredNetworkType
[all …]
/frameworks/base/docs/html-intl/intl/ko/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 필요성을 줄이기 위한 여러 가지 해결책을 제공합니다. 예를 들어, {@link android.app.job.JobScheduler}
85 예약할 수 있는 강력한 메커니즘을 제공합니다. 이제 {@link android.app.job.JobScheduler}를
86 사용하여 콘텐츠 제공자의 변경에 대응할 수도 있습니다. {@link android.app.job.JobInfo}
87 객체는 {@link android.app.job.JobScheduler}가
89 이 작업을 앱의 {@link android.app.job.JobService}에서 실행합니다.
93 이 문서에서는 대체 메서드(예: {@link android.app.job.JobScheduler})를
124 {@link android.app.job.JobInfo.Builder JobInfo.Builder} 클래스를
125 사용하여 {@link android.app.job.JobInfo} 객체를 빌드하는 경우, {@link
126 android.app.job.JobInfo.Builder#setRequiredNetworkType
[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;
40 public int schedule(JobInfo job) { in schedule() argument
42 return mBinder.schedule(job); in schedule()
49 public int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) { in scheduleAsPackage() argument
51 return mBinder.scheduleAsPackage(job, packageName, userId, tag); in scheduleAsPackage()
/frameworks/base/docs/html/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 these implicit broadcasts. For example, {@link android.app.job.JobScheduler}
86 network, are met. You can now also use {@link android.app.job.JobScheduler}
87 to react to changes to content providers. {@link android.app.job.JobInfo}
88 objects encapsulate the parameters that {@link android.app.job.JobScheduler}
89 uses to schedule your job. When the conditions of the job are met, the system
90 executes this job on your app's {@link android.app.job.JobService}.
95 {@link android.app.job.JobScheduler}, to adapt your app to these new
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
[all …]
/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/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DTestJobListener.java39 public void onStart(Job job) { in onStart() argument
40 started = job; in onStart()
44 public void onFinished(Job job) { in onFinished() argument
45 this.finished = job; in onFinished()
50 public void onProgress(CopyJob job) { in onProgress() argument
51 progress.add(job); in onProgress()
/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;
120 public void scheduleJob(JobInfo job) { in scheduleJob() argument
121 Log.d(TAG, "Scheduling job " + job); in scheduleJob()
124 tm.schedule(job); in scheduleJob()
/frameworks/base/core/java/android/app/job/
DIJobScheduler.aidl17 package android.app.job;
19 import android.app.job.JobInfo;
26 int schedule(in JobInfo job); in schedule() argument
27 int scheduleAsPackage(in JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() argument
DJobScheduler.java17 package android.app.job;
67 public abstract int schedule(JobInfo job); in schedule() argument
80 public abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag); in scheduleAsPackage() argument
DJobInfo.java17 package android.app.job;
821 JobInfo job = new JobInfo(this); in build() local
822 if (job.isPeriodic()) { in build()
823 if (job.intervalMillis != job.getIntervalMillis()) { in build()
830 formatDuration(job.getIntervalMillis(), builder); in build()
833 if (job.flexMillis != job.getFlexMillis()) { in build()
840 formatDuration(job.getFlexMillis(), builder); in build()
844 return job; in build()
/frameworks/base/docs/html-intl/intl/in/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 siaran implisit ini. Misalnya, {@link android.app.job.JobScheduler}
85 …berbiaya tetap, terpenuhi. Anda sekarang juga bisa menggunakan {@link android.app.job.JobScheduler}
86 untuk bereaksi terhadap perubahan penyedia materi. Objek {@link android.app.job.JobInfo}
87 membungkus parameter yang digunakan {@link android.app.job.JobScheduler}
89 akan mengeksekusi pekerjaan ini pada {@link android.app.job.JobService} aplikasi Anda.
94 {@link android.app.job.JobScheduler}, untuk menyesuaikan aplikasi Anda dengan pembatasan
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
[all …]
/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/docs/html-intl/intl/es/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 estas transmisiones implícitas. Por ejemplo, {@link android.app.job.JobScheduler}
85 red de uso no medido. Ahora también puedes usar {@link android.app.job.JobScheduler}
86 …a cambios en relación con los proveedores de contenido. Los objetos {@link android.app.job.JobInfo}
87 encapsulan los parámetros que usa {@link android.app.job.JobScheduler}
89 ejecuta ese trabajo en el {@link android.app.job.JobService} de tu aplicación.
94 {@link android.app.job.JobScheduler}, para adaptar tu aplicación a esas nuevas
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
[all …]
/frameworks/base/docs/html-intl/intl/pt-br/preview/features/
Dbackground-optimization.jd3 page.keywords="android N", "implicit broadcasts", "job scheduler"
81 transmissões implícitas. Por exemplo, {@link android.app.job.JobScheduler}
85 rede ilimitada. Agora, você também pode usar {@link android.app.job.JobScheduler}
86 para reagir a mudanças em provedores de conteúdo. Os objetos {@link android.app.job.JobInfo}
87 encapsulam os parâmetros usados por {@link android.app.job.JobScheduler}
89 executará o trabalho no {@link android.app.job.JobService} do seu aplicativo.
94 {@link android.app.job.JobScheduler}, para adaptar seu aplicativo a essas novas
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
[all …]
/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;

123456