Home
last modified time | relevance | path

Searched refs:jobId (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DFileOperations.java108 public static void cancel(Activity activity, String jobId) { in cancel() argument
109 if (DEBUG) Log.d(TAG, "Attempting to canceling operation: " + jobId); in cancel()
113 intent.putExtra(EXTRA_JOB_ID, jobId); in cancel()
121 String jobId = createJobId(); in copy() local
122 if (DEBUG) Log.d(TAG, "Initiating 'copy' operation id: " + jobId); in copy()
124 Intent intent = createBaseIntent(OPERATION_COPY, activity, jobId, srcDocs, destination); in copy()
131 return jobId; in copy()
146 String jobId = createJobId(); in move() local
147 if (DEBUG) Log.d(TAG, "Initiating 'move' operation id: " + jobId); in move()
149 Intent intent = createBaseIntent(OPERATION_MOVE, activity, jobId, srcDocs, srcParent, in move()
[all …]
DFileOperationService.java134 String jobId = intent.getStringExtra(EXTRA_JOB_ID); in onStartCommand() local
136 assert(jobId != null); in onStartCommand()
142 handleOperation(intent, serviceId, jobId, operationType); in onStartCommand()
148 private void handleOperation(Intent intent, int serviceId, String jobId, int operationType) { in handleOperation() argument
149 if (DEBUG) Log.d(TAG, "onStartCommand: " + jobId + " with serviceId " + serviceId); in handleOperation()
164 job = createJob(operationType, jobId, srcs, srcParent, stack); in handleOperation()
179 mRunning.put(jobId, new JobRecord(job, future)); in handleOperation()
191 String jobId = intent.getStringExtra(EXTRA_JOB_ID); in handleCancel() local
193 if (DEBUG) Log.d(TAG, "handleCancel: " + jobId); in handleCancel()
200 JobRecord record = mRunning.get(jobId); in handleCancel()
[all …]
/frameworks/base/core/java/android/app/job/
DJobParameters.java43 private final int jobId; field in JobParameters
53 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, in JobParameters() argument
56 this.jobId = jobId; in JobParameters()
68 return jobId; in getJobId()
128 jobId = in.readInt(); in JobParameters()
149 dest.writeInt(jobId); in writeToParcel()
DIJobCallback.aidl37 void acknowledgeStartMessage(int jobId, boolean ongoing); in acknowledgeStartMessage() argument
44 void acknowledgeStopMessage(int jobId, boolean reschedule); in acknowledgeStopMessage() argument
52 void jobFinished(int jobId, boolean reschedule); in jobFinished() argument
DJobInfo.java173 private final int jobId; field in JobInfo
200 return jobId; in getId()
362 jobId = in.readInt(); in JobInfo()
386 jobId = b.mJobId; in JobInfo()
418 out.writeInt(jobId); in writeToParcel()
455 return "(job:" + jobId + "/" + service.flattenToShortString() + ")"; in toString()
582 public Builder(int jobId, ComponentName jobService) { in Builder() argument
584 mJobId = jobId; in Builder()
DIJobScheduler.aidl28 void cancel(int jobId); in cancel() argument
31 JobInfo getPendingJob(int jobId); in getPendingJob() argument
DJobService.java181 final int jobId = params.getJobId(); in ackStartMessage() local
184 callback.acknowledgeStartMessage(jobId, workOngoing); in ackStartMessage()
197 final int jobId = params.getJobId(); in ackStopMessage() local
200 callback.acknowledgeStopMessage(jobId, reschedule); in ackStopMessage()
DJobScheduler.java87 public abstract void cancel(int jobId); in cancel() argument
108 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMockPriorityJobService.java78 public int jobId; field in MockPriorityJobService.TestEnvironment.Event
83 public Event(int event, int jobId) { in Event() argument
85 this.jobId = jobId; in Event()
92 return otherEvent.event == event && otherEvent.jobId == jobId; in equals()
/frameworks/base/core/java/android/app/
DJobSchedulerImpl.java58 public void cancel(int jobId) { in cancel() argument
60 mBinder.cancel(jobId); in cancel()
83 public JobInfo getPendingJob(int jobId) { in getPendingJob() argument
85 return mBinder.getPendingJob(jobId); in getPendingJob()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java94 final int jobId = Integer.parseInt(getNextArgRequired()); in runJob() local
96 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force); in runJob()
107 pw.print(jobId); in runJob()
116 pw.print(jobId); in runJob()
DJobServiceContext.java261 public void jobFinished(int jobId, boolean reschedule) { in jobFinished() argument
265 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in jobFinished()
270 public void acknowledgeStopMessage(int jobId, boolean reschedule) { in acknowledgeStopMessage() argument
274 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in acknowledgeStopMessage()
279 public void acknowledgeStartMessage(int jobId, boolean ongoing) { in acknowledgeStartMessage() argument
283 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, ongoing ? 1 : 0).sendToTarget(); in acknowledgeStartMessage()
DJobStore.java199 public JobStatus getJobByUidAndJobId(int uid, int jobId) { in getJobByUidAndJobId() argument
200 return mJobSet.get(uid, jobId); in getJobByUidAndJobId()
695 int jobId = Integer.parseInt(parser.getAttributeValue(null, "jobid")); in buildBuilderFromXml() local
700 return new JobInfo.Builder(jobId, cname); in buildBuilderFromXml()
831 public JobStatus get(int uid, int jobId) { in get() argument
836 if (job.getJobId() == jobId) { in get()
DJobSchedulerService.java562 public JobInfo getPendingJob(int uid, int jobId) { in getPendingJob() argument
567 if (job.getJobId() == jobId) { in getPendingJob()
622 public void cancelJob(int uid, int jobId) { in cancelJob() argument
625 toCancel = mJobs.getJobByUidAndJobId(uid, jobId); in cancelJob()
1614 public JobInfo getPendingJob(int jobId) throws RemoteException { in getPendingJob() argument
1619 return JobSchedulerService.this.getPendingJob(uid, jobId); in getPendingJob()
1638 public void cancel(int jobId) throws RemoteException { in cancel() argument
1643 JobSchedulerService.this.cancelJob(uid, jobId); in cancel()
1673 int executeRunCommand(String pkgName, int userId, int jobId, boolean force) { in executeRunCommand() argument
1676 + " " + jobId + " f=" + force); in executeRunCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncJobService.java111 public void callJobFinished(int jobId, boolean needsReschedule) { in callJobFinished() argument
113 JobParameters params = jobParamsMap.get(jobId); in callJobFinished()
116 jobParamsMap.remove(jobId); in callJobFinished()
118 Slog.e(TAG, "Job params not found for " + String.valueOf(jobId)); in callJobFinished()
DSyncManager.java232 private boolean isJobIdInUseLockedH(int jobId, List<JobInfo> pendingJobs) { in isJobIdInUseLockedH() argument
234 if (job.getId() == jobId) { in isJobIdInUseLockedH()
239 if (asc.mSyncOperation.jobId == jobId) { in isJobIdInUseLockedH()
440 mJobScheduler.cancel(opy.jobId); in cleanupJobs()
912 getJobScheduler().cancel(op.jobId); in removeSyncsForAuthority()
1131 getJobScheduler().cancel(op.jobId); in rescheduleSyncs()
1256 getJobScheduler().cancel(op.jobId); in scheduleSyncOperationH()
1270 if (syncOperation.jobId == SyncOperation.NO_JOB_ID) { in scheduleSyncOperationH()
1271 syncOperation.jobId = getUnusedJobIdH(); in scheduleSyncOperationH()
1283 JobInfo.Builder b = new JobInfo.Builder(syncOperation.jobId, in scheduleSyncOperationH()
[all …]
DSyncOperation.java98 public int jobId; field in SyncOperation
134 this.jobId = NO_JOB_ID; in SyncOperation()
144 new Bundle(extras), allowParallelSyncs, false, jobId /* sourcePeriodicId */, in createOneTimeSyncOperation()
224 jobInfoExtras.putInt("jobId", jobId); in toJobInfoExtras()
288 op.jobId = jobExtras.getInt("jobId"); in maybeCreateFromJobExtras()
355 sb.append("JobId: ").append(jobId) in dump()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java479 public boolean matches(int uid, int jobId) { in matches() argument
480 return this.job.getId() == jobId && this.callingUid == uid; in matches()