Home
last modified time | relevance | path

Searched refs:jobPolicy (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessor.java47 JobInfo.Builder builder, @Nullable JobPolicy jobPolicy) { in applyPolicyToJobInfo() argument
48 if (jobPolicy == null) { in applyPolicyToJobInfo()
52 if (jobPolicy.hasNetworkType()) { in applyPolicyToJobInfo()
53 builder.setRequiredNetworkType(convertNetworkType(jobPolicy.getNetworkType())); in applyPolicyToJobInfo()
56 if (jobPolicy.hasBatteryType()) { in applyPolicyToJobInfo()
57 setBatteryConstraint(builder, jobPolicy); in applyPolicyToJobInfo()
60 if (jobPolicy.hasRequireDeviceIdle()) { in applyPolicyToJobInfo()
61 builder.setRequiresDeviceIdle(jobPolicy.getRequireDeviceIdle()); in applyPolicyToJobInfo()
64 if (jobPolicy.hasRequireStorageNotLow()) { in applyPolicyToJobInfo()
65 builder.setRequiresStorageNotLow(jobPolicy.getRequireStorageNotLow()); in applyPolicyToJobInfo()
[all …]
DJobSpec.java42 JobPolicy jobPolicy, in JobSpec() argument
46 mJobPolicy = Objects.requireNonNull(jobPolicy); in JobSpec()
130 public Builder(JobPolicy jobPolicy) { in Builder() argument
131 mJobPolicy = Objects.requireNonNull(jobPolicy); in Builder()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessorTest.java65 JobPolicy jobPolicy = JobPolicy.newBuilder().setNetworkType(overridingValue).build(); in testApplyPolicyToJobInfo_network() local
66 assertThat(applyPolicyToJobInfo(builder, jobPolicy).getNetworkType()) in testApplyPolicyToJobInfo_network()
75 JobPolicy jobPolicy = JobPolicy.newBuilder().setBatteryType(overridingValue).build(); in testApplyPolicyToJobInfo_battery_charging() local
76 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(true); in testApplyPolicyToJobInfo_battery_charging()
79 jobPolicy = JobPolicy.newBuilder().setBatteryType(overridingValue).build(); in testApplyPolicyToJobInfo_battery_charging()
80 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(false); in testApplyPolicyToJobInfo_battery_charging()
83 jobPolicy = JobPolicy.newBuilder().setBatteryType(overridingValue).build(); in testApplyPolicyToJobInfo_battery_charging()
84 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(false); in testApplyPolicyToJobInfo_battery_charging()
92 JobPolicy jobPolicy = JobPolicy.newBuilder().setBatteryType(overridingValue).build(); in testApplyPolicyToJobInfo_battery_notLow() local
93 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireBatteryNotLow()) in testApplyPolicyToJobInfo_battery_notLow()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEpochJob.java91 JobPolicy jobPolicy = in createDefaultJobSpec() local
103 return new JobSpec.Builder(jobPolicy).build(); in createDefaultJobSpec()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistrationFallbackJob.java100 JobPolicy jobPolicy = in createDefaultJobSpec() local
116 return new JobSpec.Builder(jobPolicy).setBackoffPolicy(backoffPolicy).build(); in createDefaultJobSpec()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DBackgroundFetchJob.java114 JobPolicy jobPolicy = in createDefaultJobSpec() local
132 return new JobSpec.Builder(jobPolicy).setBackoffPolicy(backoffPolicy).build(); in createDefaultJobSpec()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJob.java158 JobPolicy jobPolicy = in createDefaultJobSpec() local
172 return new JobSpec.Builder(jobPolicy).build(); in createDefaultJobSpec()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJob.java113 JobPolicy jobPolicy = in createDefaultJobSpec() local
128 return new JobSpec.Builder(jobPolicy).setBackoffPolicy(backoffPolicy).build(); in createDefaultJobSpec()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/
DMddJob.java200 JobPolicy jobPolicy = in createJobSpec() local
212 return new JobSpec.Builder(jobPolicy).setExtras(extras).build(); in createJobSpec()