Searched refs:jobId (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/core/java/android/app/job/
H A DIJobCallback.aidl35 * @param jobId Unique integer used to identify this job.
39 void acknowledgeStartMessage(int jobId, boolean ongoing);
43 * @param jobId Unique integer used to identify this job.
46 void acknowledgeStopMessage(int jobId, boolean reschedule);
50 JobWorkItem dequeueWork(int jobId);
54 boolean completeWork(int jobId, int workId);
59 * @param jobId Unique integer used to identify this job.
62 void jobFinished(int jobId, boolean reschedule);
H A DIJobScheduler.aidl30 void cancel(int jobId);
33 JobInfo getPendingJob(int jobId);
H A DJobScheduler.java149 * @param jobId unique identifier for the job to be canceled, as supplied to
153 public abstract void cancel(int jobId); argument
174 public abstract @Nullable JobInfo getPendingJob(int jobId); argument
H A DJobParameters.java62 private final int jobId; field in class:JobParameters
77 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, argument
81 this.jobId = jobId;
97 return jobId;
281 jobId = in.readInt();
317 dest.writeInt(jobId);
H A DJobServiceEngine.java146 final int jobId = params.getJobId();
149 callback.acknowledgeStartMessage(jobId, workOngoing);
162 final int jobId = params.getJobId();
165 callback.acknowledgeStopMessage(jobId, reschedule);
H A DJobInfo.java285 private final int jobId; field in class:JobInfo
316 return jobId;
620 if (jobId != j.jobId) {
704 int hashCode = jobId;
745 jobId = in.readInt();
782 jobId = b.mJobId;
818 out.writeInt(jobId);
869 return "(job:" + jobId + "/" + service.flattenToShortString() + ")";
998 * @param jobId Applicatio
1006 Builder(int jobId, @NonNull ComponentName jobService) argument
[all...]
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncJobService.java88 final int jobId = params.getJobId();
89 mJobParamsMap.put(jobId, params);
91 mStartedSyncs.delete(jobId);
92 mJobStartUptimes.put(jobId, SystemClock.uptimeMillis());
123 final int jobId = params.getJobId();
124 mJobParamsMap.remove(jobId);
126 final long startUptime = mJobStartUptimes.get(jobId);
132 wtf("Job " + jobId + " start uptime not found: "
138 if (readyToSync && !mStartedSyncs.get(jobId)) {
139 wtf("Job " + jobId
173 callJobFinished(int jobId, boolean needsReschedule, String why) argument
190 markSyncStarted(int jobId) argument
[all...]
H A DSyncOperation.java79 /** jobId of the periodic SyncOperation that initiated this one */
99 /** jobId of the JobScheduler job corresponding to this sync */
100 public int jobId; field in class:SyncOperation
140 this.jobId = NO_JOB_ID;
151 new Bundle(extras), allowParallelSyncs, false, jobId /* sourcePeriodicId */,
232 jobInfoExtras.putInt("jobId", jobId);
304 op.jobId = jobExtras.getInt("jobId");
371 sb.append("JobId=").append(jobId)
[all...]
H A DSyncManager.java137 * The scheduleSyncOperationH function also assigns a unique jobId to each
142 * one off SyncOperation and set its {@link SyncOperation#sourcePeriodicId} field to the jobId of the
149 * are rescheduled. A rescheduled sync will get a new jobId.
260 private boolean isJobIdInUseLockedH(int jobId, List<JobInfo> pendingJobs) { argument
262 if (job.getId() == jobId) {
267 if (asc.mSyncOperation.jobId == jobId) {
1619 if (syncOperation.jobId == SyncOperation.NO_JOB_ID) {
1620 syncOperation.jobId = getUnusedJobIdH();
1637 JobInfo.Builder b = new JobInfo.Builder(syncOperation.jobId,
3287 findActiveSyncContextH(int jobId) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DMockPriorityJobService.java78 public int jobId; field in class:MockPriorityJobService.TestEnvironment.Event
83 public Event(int event, int jobId) { argument
85 this.jobId = jobId;
92 return otherEvent.event == event && otherEvent.jobId == jobId;
H A DBackgroundRestrictionsTest.java91 mTestJobStatus.jobId = params.getJobId();
96 mTestJobStatus.jobId = params.getJobId();
188 return (mTestJobStatus.jobId == mTestJobId) && mTestJobStatus.running;
196 return (mTestJobStatus.jobId == mTestJobId) && !mTestJobStatus.running &&
211 int jobId; field in class:BackgroundRestrictionsTest.TestJobStatus
216 stopReason = jobId = 0;
H A DJobSetTest.java72 private JobStatus getJobStatusWithCallinUid(int jobId, int callingUid) { argument
73 final JobInfo jobInfo = new JobInfo.Builder(jobId, mComponent)
/frameworks/base/core/java/android/app/
H A DJobSchedulerImpl.java69 public void cancel(int jobId) { argument
71 mBinder.cancel(jobId);
94 public JobInfo getPendingJob(int jobId) { argument
96 return mBinder.getPendingJob(jobId);
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
H A DTestJobActivity.java50 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode());
51 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent)
56 Log.e(TAG, "Could not schedule job " + jobId);
58 Log.d(TAG, "Successfully scheduled job with id " + jobId);
/frameworks/base/services/core/java/com/android/server/job/
H A DJobSchedulerShellCommand.java94 private boolean printError(int errCode, String pkgName, int userId, int jobId) { argument
108 pw.print(jobId);
118 pw.print(jobId);
157 final int jobId = Integer.parseInt(getNextArgRequired());
161 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force);
162 if (printError(ret, pkgName, userId, jobId)) {
204 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1;
208 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId);
240 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1;
244 return mInternal.executeCancelCommand(pw, pkgName, userId, jobIdStr != null, jobId);
[all...]
H A DJobServiceContext.java149 public void acknowledgeStartMessage(int jobId, boolean ongoing) { argument
150 doAcknowledgeStartMessage(this, jobId, ongoing);
154 public void acknowledgeStopMessage(int jobId, boolean reschedule) { argument
155 doAcknowledgeStopMessage(this, jobId, reschedule);
159 public JobWorkItem dequeueWork(int jobId) { argument
160 return doDequeueWork(this, jobId);
164 public boolean completeWork(int jobId, int workId) { argument
165 return doCompleteWork(this, jobId, workId);
169 public void jobFinished(int jobId, boolean reschedule) { argument
170 doJobFinished(this, jobId, reschedul
328 timeoutIfExecutingLocked(String pkgName, int userId, boolean matchJobId, int jobId, String reason) argument
343 doJobFinished(JobCallback cb, int jobId, boolean reschedule) argument
347 doAcknowledgeStopMessage(JobCallback cb, int jobId, boolean reschedule) argument
351 doAcknowledgeStartMessage(JobCallback cb, int jobId, boolean ongoing) argument
355 doDequeueWork(JobCallback cb, int jobId) argument
378 doCompleteWork(JobCallback cb, int jobId, int workId) argument
[all...]
H A DJobSchedulerService.java924 public JobInfo getPendingJob(int uid, int jobId) { argument
929 if (job.getJobId() == jobId) {
996 * Entry point from client to cancel the job corresponding to the jobId provided.
1000 * @param jobId Id of the job, provided at schedule-time.
1002 public boolean cancelJob(int uid, int jobId, int callingUid) { argument
1005 toCancel = mJobs.getJobByUidAndJobId(uid, jobId);
1009 + " uid=" + uid + " jobId=" + jobId);
2633 public JobInfo getPendingJob(int jobId) throws RemoteException { argument
2638 return JobSchedulerService.this.getPendingJob(uid, jobId);
2657 cancel(int jobId) argument
2730 executeRunCommand(String pkgName, int userId, int jobId, boolean force) argument
2765 executeTimeoutCommand(PrintWriter pw, String pkgName, int userId, boolean hasJobId, int jobId) argument
2792 executeCancelCommand(PrintWriter pw, String pkgName, int userId, boolean hasJobId, int jobId) argument
2872 getJobState(PrintWriter pw, String pkgName, int userId, int jobId) argument
[all...]
H A DJobStore.java278 * @param jobId Job id, specified at schedule-time.
279 * @return the JobStatus that matches the provided uId and jobId, or null if none found.
281 public JobStatus getJobByUidAndJobId(int uid, int jobId) { argument
282 return mJobSet.get(uid, jobId);
882 int jobId = Integer.parseInt(parser.getAttributeValue(null, "jobid"));
887 return new JobInfo.Builder(jobId, cname);
1138 public JobStatus get(int uid, int jobId) { argument
1143 if (job.getJobId() == jobId) {
H A DJobPackageTracker.java63 public void addEvent(int cmd, int uid, String tag, int jobId, int stopReason, argument
70 mEventJobIds[index] = jobId;
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
H A DSystemJobScheduler.java84 int jobId = info != null ? info.systemId : mIdGenerator.nextJobSchedulerIdWithRange(
89 SystemIdInfo newSystemIdInfo = new SystemIdInfo(workSpec.id, jobId);
95 scheduleInternal(workSpec, jobId);
123 public void scheduleInternal(WorkSpec workSpec, int jobId) { argument
124 JobInfo jobInfo = mSystemJobInfoConverter.convert(workSpec, jobId);
125 Log.d(TAG, String.format("Scheduling work ID %s Job ID %s", workSpec.id, jobId));
H A DSystemJobInfoConverter.java66 * @param jobId The {@code jobId} to use. This is useful when de-duping jobs on reschedule.
69 JobInfo convert(WorkSpec workSpec, int jobId) { argument
76 JobInfo.Builder builder = new JobInfo.Builder(jobId, mWorkServiceComponent)
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DProvisionObserver.java94 int jobId;
97 jobId = PROVISION_OBSERVER_REEVALUATION_JOB_ID;
104 final JobInfo job = new JobInfo.Builder(jobId,
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DJobIntentService.java122 void ensureJobId(int jobId) { argument
125 mJobId = jobId;
126 } else if (mJobId != jobId) {
127 throw new IllegalArgumentException("Given job ID " + jobId
331 JobWorkEnqueuer(Context context, ComponentName cn, int jobId) { argument
333 ensureJobId(jobId);
334 JobInfo.Builder b = new JobInfo.Builder(jobId, mComponentName);
495 * @param jobId A unique job ID for scheduling; must be the same value for all work
499 public static void enqueueWork(@NonNull Context context, @NonNull Class cls, int jobId, argument
501 enqueueWork(context, new ComponentName(context, cls), jobId, wor
515 enqueueWork(@onNull Context context, @NonNull ComponentName component, int jobId, @NonNull Intent work) argument
527 getWorkEnqueuer(Context context, ComponentName cn, boolean hasJobId, int jobId) argument
[all...]
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DJobStatus.java981 public boolean matches(int uid, int jobId) { argument
982 return this.job.getId() == jobId && this.callingUid == uid;

Completed in 368 milliseconds