Home
last modified time | relevance | path

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

12

/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DIJobCallback.aidl41 void acknowledgeGetTransferredDownloadBytesMessage(int jobId, int workId, in acknowledgeGetTransferredDownloadBytesMessage() argument
51 void acknowledgeGetTransferredUploadBytesMessage(int jobId, int workId, long transferredBytes); in acknowledgeGetTransferredUploadBytesMessage() argument
60 void acknowledgeStartMessage(int jobId, boolean ongoing); in acknowledgeStartMessage() argument
68 void acknowledgeStopMessage(int jobId, boolean reschedule); in acknowledgeStopMessage() argument
73 JobWorkItem dequeueWork(int jobId); in dequeueWork() argument
78 boolean completeWork(int jobId, int workId); in completeWork() argument
87 void jobFinished(int jobId, boolean reschedule); in jobFinished() argument
96 void updateEstimatedNetworkBytes(int jobId, in JobWorkItem item, in updateEstimatedNetworkBytes() argument
106 void updateTransferredNetworkBytes(int jobId, in JobWorkItem item, in updateTransferredNetworkBytes() argument
119 void setNotification(int jobId, int notificationId, in setNotification() argument
DIJobScheduler.aidl34 void cancel(String namespace, int jobId); in cancel() argument
40 JobInfo getPendingJob(String namespace, int jobId); in getPendingJob() argument
41 int getPendingJobReason(String namespace, int jobId); in getPendingJobReason() argument
DJobParameters.java289 private final int jobId; field in JobParameters
311 public JobParameters(IBinder callback, String namespace, int jobId, PersistableBundle extras, in JobParameters() argument
316 this.jobId = jobId; in JobParameters()
335 return jobId; in getJobId()
575 jobId = in.readInt(); in JobParameters()
622 dest.writeInt(jobId); in writeToParcel()
DJobServiceEngine.java305 final int jobId = params.getJobId(); in ackGetTransferredDownloadBytesMessage() local
309 callback.acknowledgeGetTransferredDownloadBytesMessage(jobId, workId, progress); in ackGetTransferredDownloadBytesMessage()
321 final int jobId = params.getJobId(); in ackGetTransferredUploadBytesMessage() local
325 callback.acknowledgeGetTransferredUploadBytesMessage(jobId, workId, progress); in ackGetTransferredUploadBytesMessage()
336 final int jobId = params.getJobId(); in ackStartMessage() local
339 callback.acknowledgeStartMessage(jobId, workOngoing); in ackStartMessage()
352 final int jobId = params.getJobId(); in ackStopMessage() local
355 callback.acknowledgeStopMessage(jobId, reschedule); in ackStopMessage()
DJobScheduler.java405 public abstract void cancel(int jobId); in cancel() argument
456 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob() argument
463 public int getPendingJobReason(int jobId) { in getPendingJobReason() argument
DJobInfo.java468 private final int jobId; field in JobInfo
507 return jobId; in getId()
849 if (jobId != j.jobId) { in equals()
945 int hashCode = jobId; in hashCode()
995 jobId = in.readInt(); in JobInfo()
1046 jobId = b.mJobId; in JobInfo()
1086 out.writeInt(jobId); in writeToParcel()
1147 return "(job:" + jobId + "/" + service.flattenToShortString() + ")"; in toString()
1289 public Builder(int jobId, @NonNull ComponentName jobService) { in Builder() argument
1291 mJobId = jobId; in Builder()
[all …]
DUserVisibleJobSummary.java44 @Nullable String namespace, int jobId) { in UserVisibleJobSummary() argument
50 mJobId = jobId; in UserVisibleJobSummary()
/frameworks/base/services/core/java/com/android/server/content/
DSyncJobService.java102 final int jobId = params.getJobId(); in onStartJob() local
103 sJobParamsMap.put(jobId, params); in onStartJob()
105 sStartedSyncs.delete(jobId); in onStartJob()
106 sJobStartUptimes.put(jobId, SystemClock.uptimeMillis()); in onStartJob()
136 final int jobId = params.getJobId(); in onStopJob() local
137 sJobParamsMap.remove(jobId); in onStopJob()
139 final long startUptime = sJobStartUptimes.get(jobId); in onStopJob()
148 if (readyToSync && !sStartedSyncs.get(jobId)) { in onStopJob()
149 wtf("Job " + jobId + " didn't start: " in onStopJob()
156 sStartedSyncs.delete(jobId); in onStopJob()
[all …]
DSyncOperation.java114 public int jobId; field in SyncOperation
155 this.jobId = NO_JOB_ID; in SyncOperation()
166 mImmutableExtras, allowParallelSyncs, false, jobId /* sourcePeriodicId */, in createOneTimeSyncOperation()
253 jobInfoExtras.putInt("jobId", jobId); in toJobInfoExtras()
326 op.jobId = jobExtras.getInt("jobId"); in maybeCreateFromJobExtras()
401 sb.append("JobId=").append(jobId) in dump()
DSyncManager.java265 private boolean isJobIdInUseLockedH(int jobId, List<JobInfo> pendingJobs) { in isJobIdInUseLockedH() argument
268 if (job.getId() == jobId) { in isJobIdInUseLockedH()
274 if (asc.mSyncOperation.jobId == jobId) { in isJobIdInUseLockedH()
1789 if (syncOperation.jobId == SyncOperation.NO_JOB_ID) { in scheduleSyncOperationH()
1790 syncOperation.jobId = getUnusedJobIdH(); in scheduleSyncOperationH()
1807 JobInfo.Builder b = new JobInfo.Builder(syncOperation.jobId, in scheduleSyncOperationH()
2236 res = Long.compare(op1.jobId, op2.jobId);
3171 ActiveSyncContext asc = findActiveSyncContextH(op.jobId); in handleSyncMessage()
3225 payload.activeSyncContext.mSyncOperation.jobId, false, in handleSyncMessage()
3275 currentSyncContext.mSyncOperation.jobId, false, in handleSyncMessage()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMockBiasJobService.java78 public int jobId; field in MockBiasJobService.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()
DJobSetTest.java76 private JobStatus getJobStatusWithCallinUid(int jobId, int callingUid) { in getJobStatusWithCallinUid() argument
77 final JobInfo jobInfo = new JobInfo.Builder(jobId, mComponent) in getJobStatusWithCallinUid()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataMaintenanceService.java45 int jobId = getJobId(userId); in scheduleJob() local
47 if (jobScheduler.getPendingJob(jobId) == null) { in scheduleJob()
49 JobInfo newJob = new JobInfo.Builder(jobId, component) in scheduleJob()
89 private static @UserIdInt int getUserId(int jobId) { in getUserId() argument
90 return jobId - BASE_JOB_ID; in getUserId()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java132 int jobId) { in printError() argument
146 pw.print(jobId); in printError()
160 pw.print(jobId); in printError()
224 final int jobId = Integer.parseInt(getNextArgRequired()); in runJob() local
229 jobId, satisfied, force); in runJob()
230 if (printError(ret, pkgName, userId, namespace, jobId)) { in runJob()
278 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in timeout() local
283 jobIdStr != null, jobId, in timeout()
322 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in cancelJob() local
327 jobIdStr != null, jobId); in cancelJob()
[all …]
DJobServiceContext.java258 public void acknowledgeGetTransferredDownloadBytesMessage(int jobId, int workId, in acknowledgeGetTransferredDownloadBytesMessage() argument
260 doAcknowledgeGetTransferredDownloadBytesMessage(this, jobId, workId, transferredBytes); in acknowledgeGetTransferredDownloadBytesMessage()
264 public void acknowledgeGetTransferredUploadBytesMessage(int jobId, int workId, in acknowledgeGetTransferredUploadBytesMessage() argument
266 doAcknowledgeGetTransferredUploadBytesMessage(this, jobId, workId, transferredBytes); in acknowledgeGetTransferredUploadBytesMessage()
270 public void acknowledgeStartMessage(int jobId, boolean ongoing) { in acknowledgeStartMessage() argument
271 doAcknowledgeStartMessage(this, jobId, ongoing); in acknowledgeStartMessage()
275 public void acknowledgeStopMessage(int jobId, boolean reschedule) { in acknowledgeStopMessage() argument
276 doAcknowledgeStopMessage(this, jobId, reschedule); in acknowledgeStopMessage()
280 public JobWorkItem dequeueWork(int jobId) { in dequeueWork() argument
281 return doDequeueWork(this, jobId); in dequeueWork()
[all …]
DJobSchedulerService.java2010 private int getPendingJobReason(int uid, String namespace, int jobId) {
2017 reason = jobIdToReason.get(jobId, JobScheduler.PENDING_JOB_REASON_UNDEFINED);
2024 reason = getPendingJobReasonLocked(uid, namespace, jobId);
2027 + uid + "," + namespace + "," + jobId + ")=" + reason);
2036 jobIdToReason.put(jobId, reason);
2049 private int getPendingJobReasonLocked(int uid, String namespace, int jobId) {
2052 JobStatus job = mJobs.getJobByUidAndJobId(uid, namespace, jobId);
2144 private JobInfo getPendingJob(int uid, @Nullable String namespace, int jobId) {
2149 if (job.getJobId() == jobId && Objects.equals(namespace, job.getNamespace())) {
2307 private boolean cancelJob(int uid, String namespace, int jobId, int callingUid,
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsIdleService.java81 String namespace, int jobId) { in scheduleJobInternal() argument
84 final JobInfo pendingJob = jobScheduler.getPendingJob(jobId); in scheduleJobInternal()
87 jobScheduler.cancel(jobId); // cancel any previously scheduled job in scheduleJobInternal()
100 private static void cancelJobInternal(Context context, String namespace, int jobId) { in cancelJobInternal() argument
104 jobScheduler.cancel(jobId); in cancelJobInternal()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DJobSchedulerImpl.java112 public void cancel(int jobId) { in cancel() argument
114 mBinder.cancel(mNamespace, jobId); in cancel()
158 public JobInfo getPendingJob(int jobId) { in getPendingJob() argument
160 return mBinder.getPendingJob(mNamespace, jobId); in getPendingJob()
167 public int getPendingJobReason(int jobId) { in getPendingJobReason() argument
169 return mBinder.getPendingJobReason(mNamespace, jobId); in getPendingJobReason()
/frameworks/base/services/core/java/com/android/server/pm/
DDynamicCodeLoggingService.java103 int jobId = params.getJobId(); in onStartJob() local
105 Log.d(TAG, "onStartJob " + jobId); in onStartJob()
107 switch (jobId) { in onStartJob()
124 int jobId = params.getJobId(); in onStopJob() local
126 Log.d(TAG, "onStopJob " + jobId); in onStopJob()
128 switch (jobId) { in onStopJob()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java93 int jobId; in isDeferredForProvision() local
96 jobId = PROVISION_OBSERVER_REEVALUATION_JOB_ID; in isDeferredForProvision()
103 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java134 private JobStatus createJobStatus(String testTag, int jobId) { in createJobStatus() argument
135 JobInfo jobInfo = new JobInfo.Builder(jobId, in createJobStatus()
137 .setMinimumLatency(Math.abs(jobId) + 1) in createJobStatus()
DBatteryControllerTest.java174 private JobInfo.Builder createBaseJobInfoBuilder(int jobId) { in createBaseJobInfoBuilder() argument
175 return new JobInfo.Builder(jobId, new ComponentName(mContext, "TestBatteryJobService")); in createBaseJobInfoBuilder()
178 private JobInfo.Builder createBaseJobInfoBuilder(int jobId, String pkgName) { in createBaseJobInfoBuilder() argument
179 return new JobInfo.Builder(jobId, new ComponentName(pkgName, "TestBatteryJobService")); in createBaseJobInfoBuilder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DAuxiliaryPersistenceWrapper.kt115 val jobId = DELETE_FILE_JOB_ID + context.userId in getJobForContext() constant
118 return JobInfo.Builder(jobId, componentName) in getJobForContext()
/frameworks/base/services/tests/selinux/src/com/android/server/selinux/
DSelinuxAuditLogsJobTest.java125 private static JobParameters createJobParameters(int jobId) { in createJobParameters() argument
127 when(jobParameters.getJobId()).thenReturn(jobId); in createJobParameters()
/frameworks/base/tests/JobSchedulerPerfTests/src/com/android/frameworks/perftests/job/
DJobStorePerfTests.java205 private static JobStatus createJobStatus(String testTag, int jobId, int callingUid) { in createJobStatus() argument
206 JobInfo jobInfo = new JobInfo.Builder(jobId, in createJobStatus()

12