Searched defs:jobId (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/java/android/app/
H A DJobSchedulerImpl.java58 public void cancel(int jobId) { argument
60 mBinder.cancel(jobId);
83 public JobInfo getPendingJob(int jobId) { argument
85 return mBinder.getPendingJob(jobId);
/frameworks/base/core/java/android/app/job/
H A DJobScheduler.java84 * @param jobId unique identifier for this job. Obtain this value from the jobs returned by
87 public abstract void cancel(int jobId); argument
108 public abstract @Nullable JobInfo getPendingJob(int jobId); argument
H A DJobParameters.java43 private final int jobId; field in class:JobParameters
53 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, argument
56 this.jobId = jobId;
68 return jobId;
128 jobId = in.readInt();
149 dest.writeInt(jobId);
H A DJobInfo.java173 private final int jobId; field in class:JobInfo
200 return jobId;
362 jobId = in.readInt();
386 jobId = b.mJobId;
418 out.writeInt(jobId);
455 return "(job:" + jobId + "/" + service.flattenToShortString() + ")";
574 * @param jobId Application-provided id for this job. Subsequent calls to cancel, or
575 * jobs created with the same jobId, will update the pre-existing job with
582 public Builder(int jobId, ComponentName jobService) { argument
584 mJobId = jobId;
[all...]
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncJobService.java111 public void callJobFinished(int jobId, boolean needsReschedule) { argument
113 JobParameters params = jobParamsMap.get(jobId);
116 jobParamsMap.remove(jobId);
118 Slog.e(TAG, "Job params not found for " + String.valueOf(jobId));
H A DSyncOperation.java77 /** jobId of the periodic SyncOperation that initiated this one */
97 /** jobId of the JobScheduler job corresponding to this sync */
98 public int jobId; field in class:SyncOperation
134 this.jobId = NO_JOB_ID;
144 new Bundle(extras), allowParallelSyncs, false, jobId /* sourcePeriodicId */,
224 jobInfoExtras.putInt("jobId", jobId);
288 op.jobId = jobExtras.getInt("jobId");
355 sb.append("JobId: ").append(jobId)
[all...]
H A DSyncManager.java117 * The scheduleSyncOperationH function also assigns a unique jobId to each
122 * one off SyncOperation and set its {@link SyncOperation#sourcePeriodicId} field to the jobId of the
129 * are rescheduled. A rescheduled sync will get a new jobId.
232 private boolean isJobIdInUseLockedH(int jobId, List<JobInfo> pendingJobs) { argument
234 if (job.getId() == jobId) {
239 if (asc.mSyncOperation.jobId == jobId) {
440 mJobScheduler.cancel(opy.jobId);
912 getJobScheduler().cancel(op.jobId);
1131 getJobScheduler().cancel(op.jobId);
2543 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;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
H A DFileOperations.java108 public static void cancel(Activity activity, String jobId) { argument
109 if (DEBUG) Log.d(TAG, "Attempting to canceling operation: " + jobId);
113 intent.putExtra(EXTRA_JOB_ID, jobId);
121 String jobId = createJobId();
122 if (DEBUG) Log.d(TAG, "Initiating 'copy' operation id: " + jobId);
124 Intent intent = createBaseIntent(OPERATION_COPY, activity, jobId, srcDocs, destination);
131 return jobId;
137 * @param jobId A unique jobid for this job.
146 String jobId = createJobId();
147 if (DEBUG) Log.d(TAG, "Initiating 'move' operation id: " + jobId);
190 createBaseIntent( @pType int operationType, Context context, String jobId, List<DocumentInfo> srcDocs, DocumentStack localeStack) argument
212 createBaseIntent( @pType int operationType, Context context, String jobId, List<DocumentInfo> srcDocs, DocumentInfo srcParent, DocumentStack localeStack) argument
[all...]
H A DFileOperationService.java134 String jobId = intent.getStringExtra(EXTRA_JOB_ID);
136 assert(jobId != null);
142 handleOperation(intent, serviceId, jobId, operationType);
148 private void handleOperation(Intent intent, int serviceId, String jobId, int operationType) { argument
149 if (DEBUG) Log.d(TAG, "onStartCommand: " + jobId + " with serviceId " + serviceId);
164 job = createJob(operationType, jobId, srcs, srcParent, stack);
179 mRunning.put(jobId, new JobRecord(job, future));
191 String jobId = intent.getStringExtra(EXTRA_JOB_ID);
193 if (DEBUG) Log.d(TAG, "handleCancel: " + jobId);
200 JobRecord record = mRunning.get(jobId);
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DJobServiceContext.java261 public void jobFinished(int jobId, boolean reschedule) { argument
265 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0)
270 public void acknowledgeStopMessage(int jobId, boolean reschedule) { argument
274 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0)
279 public void acknowledgeStartMessage(int jobId, boolean ongoing) { argument
283 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, ongoing ? 1 : 0).sendToTarget();
H A DJobStore.java196 * @param jobId Job id, specified at schedule-time.
197 * @return the JobStatus that matches the provided uId and jobId, or null if none found.
199 public JobStatus getJobByUidAndJobId(int uid, int jobId) { argument
200 return mJobSet.get(uid, jobId);
695 int jobId = Integer.parseInt(parser.getAttributeValue(null, "jobid"));
700 return new JobInfo.Builder(jobId, cname);
831 public JobStatus get(int uid, int jobId) { argument
836 if (job.getJobId() == jobId) {
H A DJobSchedulerService.java562 public JobInfo getPendingJob(int uid, int jobId) { argument
567 if (job.getJobId() == jobId) {
616 * Entry point from client to cancel the job corresponding to the jobId provided.
620 * @param jobId Id of the job, provided at schedule-time.
622 public void cancelJob(int uid, int jobId) { argument
625 toCancel = mJobs.getJobByUidAndJobId(uid, jobId);
1614 public JobInfo getPendingJob(int jobId) throws RemoteException { argument
1619 return JobSchedulerService.this.getPendingJob(uid, jobId);
1638 public void cancel(int jobId) throws RemoteException { argument
1643 JobSchedulerService.this.cancelJob(uid, jobId);
1673 executeRunCommand(String pkgName, int userId, int jobId, boolean force) argument
[all...]
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DJobStatus.java479 public boolean matches(int uid, int jobId) { argument
480 return this.job.getId() == jobId && this.callingUid == uid;

Completed in 217 milliseconds