Home
last modified time | relevance | path

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

12

/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 …]
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DJobScheduledEvent.java56 public final int jobId; field in JobScheduledEvent
84 private JobScheduledEvent(@Type int type, int jobId, @Sort int sort) { in JobScheduledEvent() argument
86 this.jobId = jobId; in JobScheduledEvent()
110 jobId == other.jobId && in equals()
116 return String.format("{type: %d, jobId: %d, sort: %d}", type, jobId, sort); in toString()
123 out.writeInt(jobId); in writeToParcel()
132 this.jobId = in.readInt(); in JobScheduledEvent()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DIJobCallback.aidl40 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
DJobParameters.java105 private final int jobId; field in JobParameters
121 public JobParameters(IBinder callback, int jobId, PersistableBundle extras, in JobParameters() argument
125 this.jobId = jobId; in JobParameters()
141 return jobId; in getJobId()
326 jobId = in.readInt(); in JobParameters()
362 dest.writeInt(jobId); in writeToParcel()
DJobServiceEngine.java146 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()
DIJobScheduler.aidl32 void cancel(int jobId); in cancel() argument
35 JobInfo getPendingJob(int jobId); in getPendingJob() argument
DJobInfo.java304 private final int jobId; field in JobInfo
337 return jobId; in getId()
618 if (jobId != j.jobId) { in equals()
702 int hashCode = jobId; in hashCode()
743 jobId = in.readInt(); in JobInfo()
780 jobId = b.mJobId; in JobInfo()
816 out.writeInt(jobId); in writeToParcel()
867 return "(job:" + jobId + "/" + service.flattenToShortString() + ")"; in toString()
1004 public Builder(int jobId, @NonNull ComponentName jobService) { in Builder() argument
1006 mJobId = jobId; in Builder()
DJobScheduler.java171 public abstract void cancel(int jobId); in cancel() argument
192 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()
DBackgroundRestrictionsTest.java92 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;
/frameworks/av/media/libmediatranscoding/aidl/android/media/
DITranscodingServiceClient.aidl42 oneway void onTranscodingFinished(in int jobId, in TranscodingResultParcel result); in onTranscodingFinished() argument
50 oneway void onTranscodingFailed(in int jobId, in TranscodingErrorCode errorCode); in onTranscodingFailed() argument
63 oneway void onAwaitNumberOfJobsChanged(in int jobId, in onAwaitNumberOfJobsChanged() argument
76 oneway void onProgressUpdate(in int jobId, in int progress); in onProgressUpdate() argument
DIMediaTranscodingService.aidl101 boolean cancelJob(in int clientId, in int jobId); in cancelJob() argument
110 boolean getJobWithId(in int jobId, out TranscodingJobParcel job); in getJobWithId() argument
DTranscodingResultParcel.aidl29 int jobId;
DTranscodingJobParcel.aidl33 int jobId;
/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.java98 private boolean printError(int errCode, String pkgName, int userId, int jobId) { in printError() argument
112 pw.print(jobId); in printError()
122 pw.print(jobId); in printError()
172 final int jobId = Integer.parseInt(getNextArgRequired()); in runJob() local
176 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, satisfied, force); in runJob()
177 if (printError(ret, pkgName, userId, jobId)) { in runJob()
219 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in timeout() local
223 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId); in timeout()
255 final int jobId = jobIdStr != null ? Integer.parseInt(jobIdStr) : -1; in cancelJob() local
259 return mInternal.executeCancelCommand(pw, pkgName, userId, jobIdStr != null, jobId); in cancelJob()
[all …]
DJobServiceContext.java150 public void acknowledgeStartMessage(int jobId, boolean ongoing) { in acknowledgeStartMessage() argument
151 doAcknowledgeStartMessage(this, jobId, ongoing); in acknowledgeStartMessage()
155 public void acknowledgeStopMessage(int jobId, boolean reschedule) { in acknowledgeStopMessage() argument
156 doAcknowledgeStopMessage(this, jobId, reschedule); in acknowledgeStopMessage()
160 public JobWorkItem dequeueWork(int jobId) { in dequeueWork() argument
161 return doDequeueWork(this, jobId); in dequeueWork()
165 public boolean completeWork(int jobId, int workId) { in completeWork() argument
166 return doCompleteWork(this, jobId, workId); in completeWork()
170 public void jobFinished(int jobId, boolean reschedule) { in jobFinished() argument
171 doJobFinished(this, jobId, reschedule); in jobFinished()
[all …]
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobActivity.java50 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/services/usage/java/com/android/server/usage/
DUsageStatsIdleService.java76 private static void scheduleJobInternal(Context context, JobInfo pruneJob, int jobId) { in scheduleJobInternal() argument
78 final JobInfo pendingPruneJob = jobScheduler.getPendingJob(jobId); in scheduleJobInternal()
81 jobScheduler.cancel(jobId); // cancel any previously scheduled prune job in scheduleJobInternal()
94 private static void cancelJobInternal(Context context, int jobId) { in cancelJobInternal() argument
97 jobScheduler.cancel(jobId); in cancelJobInternal()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DJobSchedulerImpl.java72 public void cancel(int jobId) { in cancel() argument
74 mBinder.cancel(jobId); in cancel()
97 public JobInfo getPendingJob(int jobId) { in getPendingJob() argument
99 return mBinder.getPendingJob(jobId); in getPendingJob()
/frameworks/base/services/core/java/com/android/server/pm/
DDynamicCodeLoggingService.java98 int jobId = params.getJobId(); in onStartJob() local
100 Log.d(TAG, "onStartJob " + jobId); in onStartJob()
102 switch (jobId) { in onStartJob()
119 int jobId = params.getJobId(); in onStopJob() local
121 Log.d(TAG, "onStopJob " + jobId); in onStopJob()
123 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/av/media/libmediatranscoding/tests/
DAdjustableMaxPriorityQueue_tests.cpp259 for (int jobId = 0; jobId < 4; ++jobId) { in TEST() local
260 auto newJob = std::make_unique<TranscodingJob>(testJobs[jobId]); in TEST()
261 jobIdToJobMap[jobId] = newJob.get(); in TEST()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java135 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DAuxiliaryPersistenceWrapper.kt115 val jobId = DELETE_FILE_JOB_ID + context.userId in getJobForContext() constant
117 return JobInfo.Builder(jobId, componentName) in getJobForContext()

12