/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncJobService.java | 102 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 …]
|
D | SyncOperation.java | 100 public int jobId; field in SyncOperation 140 this.jobId = NO_JOB_ID; in SyncOperation() 151 new Bundle(extras), allowParallelSyncs, false, jobId /* sourcePeriodicId */, in createOneTimeSyncOperation() 232 jobInfoExtras.putInt("jobId", jobId); in toJobInfoExtras() 304 op.jobId = jobExtras.getInt("jobId"); in maybeCreateFromJobExtras() 376 sb.append("JobId=").append(jobId) in dump()
|
D | SyncManager.java | 261 private boolean isJobIdInUseLockedH(int jobId, List<JobInfo> pendingJobs) { in isJobIdInUseLockedH() argument 263 if (job.getId() == jobId) { in isJobIdInUseLockedH() 268 if (asc.mSyncOperation.jobId == jobId) { in isJobIdInUseLockedH() 1590 if (syncOperation.jobId == SyncOperation.NO_JOB_ID) { in scheduleSyncOperationH() 1591 syncOperation.jobId = getUnusedJobIdH(); in scheduleSyncOperationH() 1608 JobInfo.Builder b = new JobInfo.Builder(syncOperation.jobId, in scheduleSyncOperationH() 2019 res = Long.compare(op1.jobId, op2.jobId); 2956 ActiveSyncContext asc = findActiveSyncContextH(op.jobId); in handleSyncMessage() 3010 payload.activeSyncContext.mSyncOperation.jobId, false, in handleSyncMessage() 3060 currentSyncContext.mSyncOperation.jobId, false, in handleSyncMessage() [all …]
|
/frameworks/base/core/java/android/app/job/ |
D | IJobCallback.aidl | 40 void acknowledgeStartMessage(int jobId, boolean ongoing); in acknowledgeStartMessage() argument 48 void acknowledgeStopMessage(int jobId, boolean reschedule); in acknowledgeStopMessage() argument 53 JobWorkItem dequeueWork(int jobId); in dequeueWork() argument 58 boolean completeWork(int jobId, int workId); in completeWork() argument 67 void jobFinished(int jobId, boolean reschedule); in jobFinished() argument
|
D | JobParameters.java | 66 private final int jobId; field in JobParameters 82 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, in JobParameters() argument 86 this.jobId = jobId; in JobParameters() 102 return jobId; in getJobId() 287 jobId = in.readInt(); in JobParameters() 323 dest.writeInt(jobId); in writeToParcel()
|
D | JobServiceEngine.java | 146 final int jobId = params.getJobId(); in ackStartMessage() local 149 callback.acknowledgeStartMessage(jobId, workOngoing); in ackStartMessage() 162 final int jobId = params.getJobId(); in ackStopMessage() local 165 callback.acknowledgeStopMessage(jobId, reschedule); in ackStopMessage()
|
D | IJobScheduler.aidl | 32 void cancel(int jobId); in cancel() argument 35 JobInfo getPendingJob(int jobId); in getPendingJob() argument
|
D | JobInfo.java | 301 private final int jobId; field in JobInfo 334 return jobId; in getId() 638 if (jobId != j.jobId) { in equals() 722 int hashCode = jobId; in hashCode() 763 jobId = in.readInt(); in JobInfo() 800 jobId = b.mJobId; in JobInfo() 836 out.writeInt(jobId); in writeToParcel() 887 return "(job:" + jobId + "/" + service.flattenToShortString() + ")"; in toString() 1024 public Builder(int jobId, @NonNull ComponentName jobService) { in Builder() argument 1026 mJobId = jobId; in Builder()
|
D | JobScheduler.java | 153 public abstract void cancel(int jobId); in cancel() argument 174 public abstract @Nullable JobInfo getPendingJob(int jobId); in getPendingJob() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | MockPriorityJobService.java | 78 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()
|
D | BackgroundRestrictionsTest.java | 92 mTestJobStatus.jobId = params.getJobId(); 97 mTestJobStatus.jobId = params.getJobId(); 189 return (mTestJobStatus.jobId == mTestJobId) && mTestJobStatus.running; in awaitJobStart() 197 return (mTestJobStatus.jobId == mTestJobId) && !mTestJobStatus.running && 212 int jobId; 217 stopReason = jobId = 0;
|
D | JobSetTest.java | 76 private JobStatus getJobStatusWithCallinUid(int jobId, int callingUid) { in getJobStatusWithCallinUid() argument 77 final JobInfo jobInfo = new JobInfo.Builder(jobId, mComponent) in getJobStatusWithCallinUid()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerShellCommand.java | 94 private boolean printError(int errCode, String pkgName, int userId, int jobId) { in printError() argument 108 pw.print(jobId); in printError() 118 pw.print(jobId); in printError() 157 final int jobId = Integer.parseInt(getNextArgRequired()); in runJob() local 161 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force); in runJob() 162 if (printError(ret, pkgName, userId, jobId)) { in runJob() 204 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in timeout() local 208 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId); in timeout() 240 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in cancelJob() local 244 return mInternal.executeCancelCommand(pw, pkgName, userId, jobIdStr != null, jobId); in cancelJob() [all …]
|
D | JobServiceContext.java | 149 public void acknowledgeStartMessage(int jobId, boolean ongoing) { in acknowledgeStartMessage() argument 150 doAcknowledgeStartMessage(this, jobId, ongoing); in acknowledgeStartMessage() 154 public void acknowledgeStopMessage(int jobId, boolean reschedule) { in acknowledgeStopMessage() argument 155 doAcknowledgeStopMessage(this, jobId, reschedule); in acknowledgeStopMessage() 159 public JobWorkItem dequeueWork(int jobId) { in dequeueWork() argument 160 return doDequeueWork(this, jobId); in dequeueWork() 164 public boolean completeWork(int jobId, int workId) { in completeWork() argument 165 return doCompleteWork(this, jobId, workId); in completeWork() 169 public void jobFinished(int jobId, boolean reschedule) { in jobFinished() argument 170 doJobFinished(this, jobId, reschedule); in jobFinished() [all …]
|
D | JobSchedulerService.java | 1097 public JobInfo getPendingJob(int uid, int jobId) { in getPendingJob() argument 1102 if (job.getJobId() == jobId) { in getPendingJob() 1175 public boolean cancelJob(int uid, int jobId, int callingUid) { in cancelJob() argument 1178 toCancel = mJobs.getJobByUidAndJobId(uid, jobId); in cancelJob() 1182 + " uid=" + uid + " jobId=" + jobId); in cancelJob() 2819 public JobInfo getPendingJob(int jobId) throws RemoteException { in getPendingJob() argument 2824 return JobSchedulerService.this.getPendingJob(uid, jobId); in getPendingJob() 2843 public void cancel(int jobId) throws RemoteException { in cancel() argument 2848 JobSchedulerService.this.cancelJob(uid, jobId, uid); in cancel() 2965 int executeRunCommand(String pkgName, int userId, int jobId, boolean force) { in executeRunCommand() argument [all …]
|
D | JobStore.java | 290 public JobStatus getJobByUidAndJobId(int uid, int jobId) { in getJobByUidAndJobId() argument 291 return mJobSet.get(uid, jobId); in getJobByUidAndJobId() 945 int jobId = Integer.parseInt(parser.getAttributeValue(null, "jobid")); in buildBuilderFromXml() local 950 return new JobInfo.Builder(jobId, cname); in buildBuilderFromXml() 1177 public JobStatus get(int uid, int jobId) { in get() argument 1182 if (job.getJobId() == jobId) { in get()
|
D | JobPackageTracker.java | 63 public void addEvent(int cmd, int uid, String tag, int jobId, int stopReason, in addEvent() argument 70 mEventJobIds[index] = jobId; in addEvent()
|
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/ |
D | TestJobActivity.java | 50 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode()); in onCreate() local 51 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent) in onCreate() 56 Log.e(TAG, "Could not schedule job " + jobId); in onCreate() 58 Log.d(TAG, "Successfully scheduled job with id " + jobId); in onCreate()
|
/frameworks/base/core/java/android/app/ |
D | JobSchedulerImpl.java | 68 public void cancel(int jobId) { in cancel() argument 70 mBinder.cancel(jobId); in cancel() 93 public JobInfo getPendingJob(int jobId) { in getPendingJob() argument 95 return mBinder.getPendingJob(jobId); in getPendingJob()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | DynamicCodeLoggingService.java | 97 int jobId = params.getJobId(); in onStartJob() local 99 Log.d(TAG, "onStartJob " + jobId); in onStartJob() 101 switch (jobId) { in onStartJob() 118 int jobId = params.getJobId(); in onStopJob() local 120 Log.d(TAG, "onStopJob " + jobId); in onStopJob() 122 switch (jobId) { in onStopJob()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 94 int jobId; in isDeferredForProvision() local 97 jobId = PROVISION_OBSERVER_REEVALUATION_JOB_ID; in isDeferredForProvision() 104 final JobInfo job = new JobInfo.Builder(jobId, in isDeferredForProvision()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | StateControllerTest.java | 135 private JobStatus createJobStatus(String testTag, int jobId) { in createJobStatus() argument 136 JobInfo jobInfo = new JobInfo.Builder(jobId, in createJobStatus() 138 .setMinimumLatency(Math.abs(jobId) + 1) in createJobStatus()
|
D | ConnectivityControllerTest.java | 561 private static JobInfo.Builder createJob(int jobId) { in createJob() argument 562 return new JobInfo.Builder(jobId, new ComponentName("foo", "bar")); in createJob()
|
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/ |
D | DynamicCodeLoggerIntegrationTests.java | 414 private static void runDynamicCodeLoggingJob(int jobId) throws Exception { in runDynamicCodeLoggingJob() argument 416 runCommand("cmd jobscheduler run -f android " + jobId); in runDynamicCodeLoggingJob() 421 "cmd jobscheduler get-job-state android " + jobId); in runDynamicCodeLoggingJob()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | JobStatus.java | 1159 public boolean matches(int uid, int jobId) { in matches() argument 1160 return this.job.getId() == jobId && this.callingUid == uid; in matches()
|