Home
last modified time | relevance | path

Searched refs:JobParameters (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/java/android/app/job/
DJobService.java61 public boolean onStartJob(JobParameters params) { in onBind()
66 public boolean onStopJob(JobParameters params) { in onBind()
97 public final void jobFinished(JobParameters params, boolean wantsReschedule) { in jobFinished()
133 public abstract boolean onStartJob(JobParameters params); in onStartJob()
156 public abstract boolean onStopJob(JobParameters params); in onStopJob()
DJobServiceEngine.java74 public void startJob(JobParameters jobParams) throws RemoteException { in startJob()
83 public void stopJob(JobParameters jobParams) throws RemoteException { in stopJob()
104 final JobParameters params = (JobParameters) msg.obj; in handleMessage()
144 private void ackStartMessage(JobParameters params, boolean workOngoing) { in ackStartMessage()
160 private void ackStopMessage(JobParameters params, boolean reschedule) { in ackStopMessage()
199 public abstract boolean onStartJob(JobParameters params); in onStartJob()
205 public abstract boolean onStopJob(JobParameters params); in onStopJob()
212 public void jobFinished(JobParameters params, boolean needsReschedule) { in jobFinished()
DJobParameters.java36 public class JobParameters implements Parcelable { class
81 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, in JobParameters() method in JobParameters
285 private JobParameters(Parcel in) { in JobParameters() method in JobParameters
346 …c static final @android.annotation.NonNull Creator<JobParameters> CREATOR = new Creator<JobParamet…
348 public JobParameters createFromParcel(Parcel in) {
349 return new JobParameters(in);
353 public JobParameters[] newArray(int size) {
354 return new JobParameters[size];
DIJobService.aidl19 import android.app.job.JobParameters;
30 void startJob(in JobParameters jobParams); in startJob()
33 void stopJob(in JobParameters jobParams); in stopJob()
DJobParameters.aidl19 parcelable JobParameters;
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
DTestJobService.java21 import android.app.job.JobParameters;
83 public boolean onStartJob(JobParameters params) { in onStartJob()
103 public boolean onStopJob(JobParameters params) { in onStopJob()
113 private final SparseArray<JobParameters> jobParamsMap = new SparseArray<JobParameters>();
132 JobParameters params = jobParamsMap.valueAt(0); in callJobFinished()
/frameworks/base/services/core/java/com/android/server/content/
DSyncJobService.java20 import android.app.job.JobParameters;
41 private static final SparseArray<JobParameters> sJobParamsMap = new SparseArray<>();
74 public boolean onStartJob(JobParameters params) { in onStartJob()
119 public boolean onStopJob(JobParameters params) { in onStopJob()
164 m.arg1 = params.getStopReason() != JobParameters.REASON_CANCELED ? 1 : 0; in onStopJob()
166 m.arg2 = params.getStopReason() == JobParameters.REASON_TIMEOUT ? 1 : 0; in onStopJob()
181 JobParameters params = sJobParamsMap.get(jobId); in callJobFinishedInner()
202 public static String jobParametersToString(JobParameters params) { in jobParametersToString()
/frameworks/base/services/core/java/com/android/server/pm/
DDynamicCodeLoggingService.java20 import android.app.job.JobParameters;
97 public boolean onStartJob(JobParameters params) { in onStartJob()
118 public boolean onStopJob(JobParameters params) { in onStopJob()
141 private final JobParameters mParams;
143 IdleLoggingThread(JobParameters params) { in IdleLoggingThread()
172 private final JobParameters mParams;
174 AuditWatchingThread(JobParameters params) { in AuditWatchingThread()
DBackgroundDexOptService.java23 import android.app.job.JobParameters;
179 private boolean runPostBootUpdate(final JobParameters jobParams, in runPostBootUpdate()
195 private void postBootUpdate(JobParameters jobParams, PackageManagerService pm, in postBootUpdate()
251 private boolean runIdleOptimization(final JobParameters jobParams, in runIdleOptimization()
582 public boolean onStartJob(JobParameters params) { in onStartJob()
617 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java20 import android.app.job.JobParameters;
43 private final SparseArray<JobParameters> mParamsForUser = new SparseArray<>();
74 JobParameters jobParameters = mParamsForUser.get(userId); in finishBackupPass()
85 public boolean onStartJob(JobParameters params) { in onStartJob()
97 public boolean onStopJob(JobParameters params) { in onStopJob()
DKeyValueBackupJob.java23 import android.app.job.JobParameters;
138 public boolean onStartJob(JobParameters params) { in onStartJob()
157 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/timezone/
DTimeZoneUpdateIdler.java22 import android.app.job.JobParameters;
41 public boolean onStartJob(JobParameters params) { in onStartJob()
56 public boolean onStopJob(JobParameters params) { in onStopJob()
58 boolean reschedule = params.getStopReason() != JobParameters.REASON_CANCELED; in onStopJob()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMockPriorityJobService.java20 import android.app.job.JobParameters;
37 public boolean onStartJob(JobParameters params) { in onStartJob()
45 public boolean onStopJob(JobParameters params) { in onStopJob()
50 if (reason == JobParameters.REASON_PREEMPT) { in onStopJob()
DBackgroundRestrictionsTest.java29 import android.app.job.JobParameters;
86 final JobParameters params = intent.getParcelableExtra(JOB_PARAMS_EXTRA_KEY);
93 mTestJobStatus.stopReason = JobParameters.REASON_CANCELED;
198 mTestJobStatus.stopReason == JobParameters.REASON_CONSTRAINTS_NOT_SATISFIED;
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobService.java20 import android.app.job.JobParameters;
34 public boolean onStartJob(JobParameters params) { in onStartJob()
43 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java23 import android.app.job.JobParameters;
41 private JobParameters mJobParams;
58 public boolean onStartJob(JobParameters params) { in onStartJob()
82 public boolean onStopJob(JobParameters params) { in onStopJob()
DPruneInstantAppsJobService.java20 import android.app.job.JobParameters;
50 public boolean onStartJob(JobParameters params) { in onStartJob()
61 public boolean onStopJob(JobParameters params) { in onStopJob()
DPreloadsFileCacheExpirationJobService.java20 import android.app.job.JobParameters;
75 public boolean onStartJob(JobParameters params) { in onStartJob()
82 public boolean onStopJob(JobParameters params) { in onStopJob()
DZramWriteback.java20 import android.app.job.JobParameters;
136 public boolean onStartJob(JobParameters params) { in onStartJob()
161 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraStatsJobService.java20 import android.app.job.JobParameters;
46 public boolean onStartJob(JobParameters params) { in onStartJob()
58 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DReportWatchlistJobService.java20 import android.app.job.JobParameters;
44 public boolean onStartJob(final JobParameters jobParameters) { in onStartJob()
55 public boolean onStopJob(JobParameters jobParameters) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsLoggingService.java20 import android.app.job.JobParameters;
57 public boolean onStartJob(JobParameters params) { in onStartJob()
88 public boolean onStopJob(JobParameters params) { in onStopJob()
128 private JobParameters mParams;
155 public void setJobService(JobService jobService, JobParameters params) { in setJobService()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java21 import android.app.job.JobParameters;
68 public boolean onStartJob(JobParameters params) { in onStartJob()
78 public boolean onStopJob(JobParameters params) { in onStopJob()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java20 import android.app.job.JobParameters;
47 public boolean onStartJob(JobParameters jobParameters) { in onStartJob()
73 public boolean onStopJob(JobParameters jobParameters) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java25 import android.app.job.JobParameters;
109 private JobParameters mParams;
224 mParams = new JobParameters(mRunningCallback, job.getJobId(), ji.getExtras(), in executeRunnableJob()
320 doCancelLocked(JobParameters.REASON_PREEMPT, "cancelled due to preemption"); in preemptExecutingJobLocked()
347 mParams.setStopReason(JobParameters.REASON_TIMEOUT, reason); in timeoutIfExecutingLocked()
583 if (arg1 == JobParameters.REASON_PREEMPT) { in doCancelLocked()
737 mParams.setStopReason(JobParameters.REASON_TIMEOUT, "client timed out"); in handleOpTimeoutLocked()

12