Home
last modified time | relevance | path

Searched refs:JobParameters (Results 1 – 25 of 41) 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
77 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, in JobParameters() method in JobParameters
280 private JobParameters(Parcel in) { in JobParameters() method in JobParameters
341 public static final Creator<JobParameters> CREATOR = new Creator<JobParameters>() {
343 public JobParameters createFromParcel(Parcel in) {
344 return new JobParameters(in);
348 public JobParameters[] newArray(int size) {
349 return new JobParameters[size];
DIJobService.aidl19 import android.app.job.JobParameters;
29 void startJob(in JobParameters jobParams); in startJob()
31 void stopJob(in JobParameters jobParams); in stopJob()
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobServiceTest.java38 import com.firebase.jobdispatcher.JobParameters;
74 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ResetsWorkStatus()
94 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ReschedulesWhenNotCancelled()
106 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_DoesNotRescheduleWhenCancelled()
112 private JobParameters createMockJobParameters(String id) { in createMockJobParameters()
113 JobParameters jobParameters = mock(JobParameters.class); in createMockJobParameters()
/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.java19 import android.app.job.JobParameters;
44 private final SparseArray<JobParameters> mJobParamsMap = new SparseArray<>();
82 public boolean onStartJob(JobParameters params) { in onStartJob()
113 public boolean onStopJob(JobParameters params) { in onStopJob()
165 m.arg1 = params.getStopReason() != JobParameters.REASON_CANCELED ? 1 : 0; in onStopJob()
167 m.arg2 = params.getStopReason() == JobParameters.REASON_TIMEOUT ? 1 : 0; in onStopJob()
175 JobParameters params = mJobParamsMap.get(jobId); in callJobFinished()
196 public static String jobParametersToString(JobParameters params) { in jobParametersToString()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobService.java27 import com.firebase.jobdispatcher.JobParameters;
42 private final Map<String, JobParameters> mJobParameters = new HashMap<>();
58 public boolean onStartJob(JobParameters params) { in onStartJob()
74 public boolean onStopJob(JobParameters params) { in onStopJob()
96 JobParameters parameters; in onExecuted()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobServiceTest.java29 import android.app.job.JobParameters;
134 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ResetsWorkStatus()
160 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ReschedulesWhenNotCancelled()
176 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_DoesNotRescheduleWhenCancelled()
193 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_ReturnsFalseWithDuplicateJob()
221 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_PassesContentUriTriggers()
245 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_passesNetwork()
257 private JobParameters createMockJobParameters(String id) { in createMockJobParameters()
258 JobParameters jobParameters = mock(JobParameters.class); in createMockJobParameters()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java20 import android.app.job.JobParameters;
35 JobParameters mParams;
62 public boolean onStartJob(JobParameters params) { in onStartJob()
69 public boolean onStopJob(JobParameters params) { in onStopJob()
DKeyValueBackupJob.java21 import android.app.job.JobParameters;
106 public boolean onStartJob(JobParameters params) { in onStartJob()
124 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;
85 final JobParameters params = intent.getParcelableExtra(JOB_PARAMS_EXTRA_KEY);
92 mTestJobStatus.stopReason = JobParameters.REASON_CANCELED;
197 mTestJobStatus.stopReason == JobParameters.REASON_CONSTRAINTS_NOT_SATISFIED;
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobService.java20 import android.app.job.JobParameters;
46 private final Map<String, JobParameters> mJobParameters = new HashMap<>();
62 public boolean onStartJob(JobParameters params) { in onStartJob()
111 public boolean onStopJob(JobParameters params) { in onStopJob()
133 JobParameters parameters; in onExecuted()
/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;
40 private JobParameters mJobParams;
57 public boolean onStartJob(JobParameters params) { in onStartJob()
81 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()
/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/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/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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java20 import android.app.job.JobParameters;
48 public boolean onStartJob(JobParameters jobParameters) { in onStartJob()
74 public boolean onStopJob(JobParameters jobParameters) { in onStopJob()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java23 import android.app.job.JobParameters;
174 private boolean runPostBootUpdate(final JobParameters jobParams, in runPostBootUpdate()
190 private void postBootUpdate(JobParameters jobParams, PackageManagerService pm, in postBootUpdate()
246 private boolean runIdleOptimization(final JobParameters jobParams, in runIdleOptimization()
433 public boolean onStartJob(JobParameters params) { in onStartJob()
468 public boolean onStopJob(JobParameters params) { in onStopJob()

12