Searched refs:jobSpec (Results 1 – 8 of 8) sorted by relevance
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/ |
D | JobSpecTest.java | 36 JobSpec jobSpec = new JobSpec.Builder(sJobPolicy).build(); in testGetters() local 38 expect.that(jobSpec.getJobPolicy()).isEqualTo(sJobPolicy); in testGetters() 39 expect.that(jobSpec.getBackoffPolicy()).isEqualTo(new BackoffPolicy.Builder().build()); in testGetters() 40 expect.that(jobSpec.getExtras()).isNull(); in testGetters() 41 expect.that(jobSpec.getShouldForceSchedule()).isFalse(); in testGetters() 68 JobSpec jobSpec = in testSetters() local 75 expect.that(jobSpec.getJobPolicy()).isEqualTo(sJobPolicy); in testSetters() 76 expect.that(jobSpec.getBackoffPolicy()).isEqualTo(backoffPolicy); in testSetters() 78 expect.that(jobSpec.getExtras()).isNotNull(); in testSetters() 79 expect.that(jobSpec.getExtras().getBoolean(key)).isEqualTo(value); in testSetters() [all …]
|
D | PolicyJobSchedulerTest.java | 130 JobSpec jobSpec = in testScheduleJob_jobNotConfigured() local 136 () -> mPolicyJobScheduler.scheduleJob(sContext, jobSpec)); in testScheduleJob_jobNotConfigured() 166 JobSpec jobSpec = new JobSpec.Builder(sJobPolicy).setShouldForceSchedule(true).build(); in testScheduleJob_forceSchedule() local 168 .that(mPolicyJobScheduler.scheduleJob(sContext, jobSpec)) in testScheduleJob_forceSchedule() 233 JobSpec jobSpec = new JobSpec.Builder(sJobPolicy).setExtras(extras).build(); in getJobInfoToSchedule() local 242 .that(mPolicyJobScheduler.getJobInfoToSchedule(sContext, jobSpec, JOB_NAME_1)) in getJobInfoToSchedule() 252 JobSpec jobSpec = new JobSpec.Builder(sJobPolicy).build(); in getJobInfoToSchedule_throwsWhenSyncPolicy() local 255 .that(mPolicyJobScheduler.getJobInfoToSchedule(sContext, jobSpec, JOB_NAME_1)) in getJobInfoToSchedule_throwsWhenSyncPolicy()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/scheduling/ |
D | PolicyJobScheduler.java | 108 public void schedule(Context context, JobSpec jobSpec) { in schedule() argument 110 Futures.submit(() -> scheduleJob(context, jobSpec), mExecutor); in schedule() 112 addCallbackToSchedulingFuture(schedulingFuture, jobSpec.getJobPolicy().getJobId()); in schedule() 117 int scheduleJob(Context context, JobSpec jobSpec) { in scheduleJob() argument 118 int jobId = jobSpec.getJobPolicy().getJobId(); in scheduleJob() 120 boolean forceSchedule = jobSpec.getShouldForceSchedule(); in scheduleJob() 137 JobInfo jobInfoToSchedule = getJobInfoToSchedule(context, jobSpec, jobName); in scheduleJob() 176 JobInfo getJobInfoToSchedule(Context context, JobSpec jobSpec, String jobName) { in getJobInfoToSchedule() argument 177 int jobId = jobSpec.getJobPolicy().getJobId(); in getJobInfoToSchedule() 179 JobPolicy defaultJobPolicy = jobSpec.getJobPolicy(); in getJobInfoToSchedule() [all …]
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/sharedlibrary/spe/ |
D | FederatedComputeJobScheduler.java | 58 public void schedule(Context context, JobSpec jobSpec) { in schedule() argument 59 super.schedule(mContext, jobSpec); in schedule()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/sharedlibrary/spe/ |
D | OdpJobScheduler.java | 55 public void schedule(Context context, JobSpec jobSpec) { in schedule() argument 56 super.schedule(mContext, jobSpec); in schedule()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/spe/ |
D | AdServicesJobScheduler.java | 61 public void schedule(JobSpec jobSpec) { in schedule() argument 62 super.schedule(sContext, jobSpec); in schedule()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | EpochJobTest.java | 134 JobSpec jobSpec = EpochJob.createDefaultJobSpec(); in testCreateDefaultJobSpec() local 149 .that(jobSpec.getJobPolicy()) in testCreateDefaultJobSpec()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | BackgroundFetchJobTest.java | 178 JobSpec jobSpec = BackgroundFetchJob.createDefaultJobSpec(); in testCreateDefaultJobSpec() local 199 .that(jobSpec) in testCreateDefaultJobSpec()
|