Home
last modified time | relevance | path

Searched refs:jobInfo (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/
DJobUtil.java46 public static String jobInfoToString(JobInfo jobInfo) { in jobInfoToString() argument
51 .append(jobInfo.getId()) in jobInfoToString()
53 .append(jobInfo.getNetworkType()) in jobInfoToString()
55 .append(jobInfo.isRequireCharging()) in jobInfoToString()
57 .append(jobInfo.isRequireBatteryNotLow()) in jobInfoToString()
59 .append(jobInfo.isRequireDeviceIdle()) in jobInfoToString()
61 .append(jobInfo.isRequireStorageNotLow()); in jobInfoToString()
63 appendTriggerContentUriInfo(jobInfo, builder); in jobInfoToString()
65 .append(jobInfo.getTriggerContentMaxDelay()) in jobInfoToString()
67 .append(jobInfo.getTriggerContentUpdateDelay()); in jobInfoToString()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelper.java44 JobInfo jobInfo = convertToJobInfo(context, newTask); in scheduleTask() local
48 jobInfo.getId(), in scheduleTask()
49 jobInfo.getMinLatencyMillis()); in scheduleTask()
50 return tryScheduleJob(context, jobInfo); in scheduleTask()
63 private boolean tryScheduleJob(Context context, JobInfo jobInfo) { in tryScheduleJob() argument
65 if (checkCollidesWithNonFederatedComputationJob(jobScheduler, jobInfo)) { in tryScheduleJob()
70 jobInfo.getId()); in tryScheduleJob()
74 return jobScheduler.schedule(jobInfo) == JobScheduler.RESULT_SUCCESS; in tryScheduleJob()
78 JobScheduler jobScheduler, JobInfo jobInfo) { in checkCollidesWithNonFederatedComputationJob() argument
79 JobInfo existingJobInfo = jobScheduler.getPendingJob(jobInfo.getId()); in checkCollidesWithNonFederatedComputationJob()
[all …]
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerMaintenanceTest.java128 JobInfo jobInfo = getPendingUpdateJob(DEFAULT_USER_ID); in testScheduleUpdateJob_oneOff_isNotPeriodic() local
129 assertThat(jobInfo).isNotNull(); in testScheduleUpdateJob_oneOff_isNotPeriodic()
130 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in testScheduleUpdateJob_oneOff_isNotPeriodic()
131 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in testScheduleUpdateJob_oneOff_isNotPeriodic()
132 assertThat(jobInfo.isPersisted()).isTrue(); in testScheduleUpdateJob_oneOff_isNotPeriodic()
133 assertThat(jobInfo.isPeriodic()).isFalse(); in testScheduleUpdateJob_oneOff_isNotPeriodic()
150 JobInfo jobInfo = getPendingUpdateJob(DEFAULT_USER_ID); in testScheduleUpdateJob_periodic_isPeriodic() local
151 assertThat(jobInfo).isNotNull(); in testScheduleUpdateJob_periodic_isPeriodic()
152 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in testScheduleUpdateJob_periodic_isPeriodic()
153 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in testScheduleUpdateJob_periodic_isPeriodic()
[all …]
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactsIndexerMaintenanceTest.java125 JobInfo jobInfo = getPendingFullUpdateJob(DEFAULT_USER_ID); in testScheduleFullUpdateJob_oneOff_isNotPeriodic() local
126 assertThat(jobInfo).isNotNull(); in testScheduleFullUpdateJob_oneOff_isNotPeriodic()
127 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in testScheduleFullUpdateJob_oneOff_isNotPeriodic()
128 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in testScheduleFullUpdateJob_oneOff_isNotPeriodic()
129 assertThat(jobInfo.isPersisted()).isTrue(); in testScheduleFullUpdateJob_oneOff_isNotPeriodic()
130 assertThat(jobInfo.isPeriodic()).isFalse(); in testScheduleFullUpdateJob_oneOff_isNotPeriodic()
147 JobInfo jobInfo = getPendingFullUpdateJob(DEFAULT_USER_ID); in testScheduleFullUpdateJob_periodic_isPeriodic() local
148 assertThat(jobInfo).isNotNull(); in testScheduleFullUpdateJob_periodic_isPeriodic()
149 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in testScheduleFullUpdateJob_periodic_isPeriodic()
150 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in testScheduleFullUpdateJob_periodic_isPeriodic()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DJobSchedulerHelperTest.java105 JobInfo jobInfo = Iterables.getOnlyElement(mJobScheduler.getAllPendingJobs()); in scheduleTask() local
107 verifyJobInfo(jobInfo); in scheduleTask()
130 JobInfo jobInfo = Iterables.getOnlyElement(mJobScheduler.getAllPendingJobs()); in scheduleTask_overrideIdleConstraint_waivesIdle() local
132 assertThat(jobInfo.isRequireDeviceIdle()).isFalse(); in scheduleTask_overrideIdleConstraint_waivesIdle()
133 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in scheduleTask_overrideIdleConstraint_waivesIdle()
134 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_UNMETERED); in scheduleTask_overrideIdleConstraint_waivesIdle()
150 JobInfo jobInfo = Iterables.getOnlyElement(mJobScheduler.getAllPendingJobs()); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork() local
152 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
153 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
154 assertThat(jobInfo.getNetworkType()).isEqualTo(NETWORK_TYPE_ANY); in scheduleTask_overrideUnmeteredNetworkConstraint_waivesNetwork()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/
DBackupRestoreTest.java237 JobInfo jobInfo = mJobInfoArgumentCaptor.getValue(); in testSetDataDownloadState_downloadStarted_schedulesDownloadTimeoutJob() local
238 assertThat(jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)) in testSetDataDownloadState_downloadStarted_schedulesDownloadTimeoutJob()
257 JobInfo jobInfo = mJobInfoArgumentCaptor.getValue(); in testSetDataDownloadState_downloadRetry_schedulesDownloadTimeoutJob() local
258 assertThat(jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)) in testSetDataDownloadState_downloadRetry_schedulesDownloadTimeoutJob()
277 JobInfo jobInfo = mJobInfoArgumentCaptor.getValue(); in testSetInternalRestoreState_waitingForStaging_schedulesStagingTimeoutJob() local
278 assertThat(jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)) in testSetInternalRestoreState_waitingForStaging_schedulesStagingTimeoutJob()
297 JobInfo jobInfo = mJobInfoArgumentCaptor.getValue(); in testSetInternalRestoreState_stagingInProgress_schedulesStagingTimeoutJob() local
298 assertThat(jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)) in testSetInternalRestoreState_stagingInProgress_schedulesStagingTimeoutJob()
318 JobInfo jobInfo = mJobInfoArgumentCaptor.getValue(); in testSetInternalRestoreState_mergingInProgress_schedulesMergingTimeoutJob() local
319 assertThat(jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)) in testSetInternalRestoreState_mergingInProgress_schedulesMergingTimeoutJob()
[all …]
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/
DAppSearchMaintenanceServiceTest.java103 JobInfo jobInfo = mContext.getSystemService(JobScheduler.class).getPendingJob(jobId); in testScheduleFullPersistJob() local
104 assertThat(jobInfo).isNotNull(); in testScheduleFullPersistJob()
105 assertThat(jobInfo.isRequireBatteryNotLow()).isTrue(); in testScheduleFullPersistJob()
106 assertThat(jobInfo.isRequireDeviceIdle()).isTrue(); in testScheduleFullPersistJob()
107 assertThat(jobInfo.isPersisted()).isTrue(); in testScheduleFullPersistJob()
108 assertThat(jobInfo.isPeriodic()).isTrue(); in testScheduleFullPersistJob()
109 assertThat(jobInfo.getIntervalMillis()).isEqualTo(intervalMillis); in testScheduleFullPersistJob()
111 int userId = jobInfo.getExtras().getInt("user_id", /*defaultValue=*/ -1); in testScheduleFullPersistJob()
176 JobInfo jobInfo = mContext.getSystemService(JobScheduler.class).getPendingJob(jobId); in testCancelPendingFullPersistJob_succeeds() local
177 assertThat(jobInfo).isNotNull(); in testCancelPendingFullPersistJob_succeeds()
[all …]
/packages/services/Car/car-builtin-lib/src/android/car/builtin/job/
DJobSchedulerHelper.java48 JobInfo jobInfo = startedJobs.get(idx); in getRunningJobsAtIdle() local
49 if (jobInfo.isRequireDeviceIdle()) { in getRunningJobsAtIdle()
50 deviceIdleJobs.add(jobInfo); in getRunningJobsAtIdle()
66 JobInfo jobInfo = scheduledJob.getJobInfo(); in getPendingJobs() local
67 if (scheduledJob.isRunnable() && jobInfo.isRequireDeviceIdle()) { in getPendingJobs()
68 idleJobs.add(jobInfo); in getPendingJobs()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVoicemailNotificationJobService.java32 private static JobInfo jobInfo; field in VoicemailNotificationJobService
69 if (jobInfo == null) { in getJobInfo()
70 jobInfo = in getJobInfo()
82 return jobInfo; in getJobInfo()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/
DRegularMaintenanceJobServiceTest.kt83 val jobInfo = jobInfoCaptor.value in <lambda>() constant
84 assertTrue(jobInfo.isRequireCharging) in <lambda>()
85 assertTrue(jobInfo.isRequireBatteryNotLow) in <lambda>()
86 assertTrue(jobInfo.isRequireDeviceIdle) in <lambda>()
87 assertTrue(jobInfo.isPeriodic) in <lambda>()
90 assertTrue(jobInfo.intervalMillis in TimeUnit.HOURS.toMillis(12)..TimeUnit.DAYS.toMillis(5)) in <lambda>()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DDeleteUninstalledJobService.java103 static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
104 jobScheduler.schedule(jobInfo); in schedule()
130 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
131 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
132 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
DDeleteExpiredJobService.java121 static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
122 jobScheduler.schedule(jobInfo); in schedule()
147 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
148 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
149 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/
DEncryptionKeyJobService.java122 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
123 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
124 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
153 public static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
154 jobScheduler.schedule(jobInfo); in schedule()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DVerboseDebugReportingJobService.java104 static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
105 jobScheduler.schedule(jobInfo); in schedule()
130 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
131 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
132 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
DEventFallbackReportingJobService.java144 static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
145 jobScheduler.schedule(jobInfo); in schedule()
171 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
172 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
173 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
DAggregateFallbackReportingJobService.java150 static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
151 jobScheduler.schedule(jobInfo); in schedule()
190 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
191 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
192 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
DVerboseDebugReportingFallbackJobService.java148 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
150 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
151 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
DEventReportingJobService.java164 JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
165 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
166 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectDailyService.java125 @NonNull JobScheduler jobScheduler, @UserIdInt int userId, @NonNull JobInfo jobInfo) { in schedule() argument
129 int result = jobScheduler.schedule(jobInfo); in schedule()
134 + jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)); in schedule()
139 + jobInfo.getExtras().getString(EXTRA_JOB_NAME_KEY)); in schedule()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistrationFallbackJobService.java153 protected static void schedule(JobScheduler jobScheduler, JobInfo jobInfo) { in schedule() argument
154 jobScheduler.schedule(jobInfo); in schedule()
181 final JobInfo jobInfo = buildJobInfo(context, flags); in scheduleIfNeeded() local
182 if (forceSchedule || !jobInfo.equals(scheduledJob)) { in scheduleIfNeeded()
183 schedule(jobScheduler, jobInfo); in scheduleIfNeeded()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationBroadcastSchedulingTest.java287 jobInfo -> in testScheduling_schedulingFails_noFurtherScheduling()
289 jobInfo.getService().getClassName(), in testScheduling_schedulingFails_noFurtherScheduling()
298 jobInfo -> in verifyPeriodicJobSchedulerInvocation()
300 jobInfo.getService().getClassName(), in verifyPeriodicJobSchedulerInvocation()
303 && jobInfo.isPeriodic() in verifyPeriodicJobSchedulerInvocation()
304 && jobInfo.getIntervalMillis() == interval)); in verifyPeriodicJobSchedulerInvocation()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/spe/
DAdServicesJobServiceFactory.java120 AdServicesJobInfo jobInfo = AdServicesJobInfo.getJobIdToJobInfoMap().get(jobId); in getJobWorkerInstance() local
122 switch (jobInfo) { in getJobWorkerInstance()
193 AdServicesJobInfo jobInfo = AdServicesJobInfo.getJobIdToJobInfoMap().get(jobId); in rescheduleJobWithLegacyMethod() local
200 switch (jobInfo) { in rescheduleJobWithLegacyMethod()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobSchedulerWrapper.java162 JobInfo jobInfo = new JobInfo.Builder(jobId, jobComponentName) in scheduleAJob() local
169 mJobScheduler.schedule(jobInfo); in scheduleAJob()
172 "Scheduled new job with id: " + jobInfo.getId(), Toast.LENGTH_LONG).show(); in scheduleAJob()
174 LOG.d("Scheduled a job: " + jobInfo); in scheduleAJob()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DDeferredMetricsReader.java54 final JobInfo jobInfo = new JobInfo.Builder(JOB_ID, PROCESS_METRICS_SERVICE_COMPONENT) in scheduleDumpMetrics() local
62 jobScheduler.schedule(jobInfo); in scheduleDumpMetrics()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/
DBackgroundKeyFetchJobService.java189 final JobInfo jobInfo = in scheduleJobIfNeeded() local
202 if (!jobInfo.equals(scheduledJob)) { in scheduleJobIfNeeded()
203 jobScheduler.schedule(jobInfo); in scheduleJobIfNeeded()

123