Home
last modified time | relevance | path

Searched refs:applyPolicyToJobInfo (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessorTest.java27 import static com.android.adservices.shared.spe.scheduling.PolicyProcessor.applyPolicyToJobInfo;
55 assertThat(applyPolicyToJobInfo(builder, /* jobPolicy= */ null)) in testApplyPolicyToJobInfo_nullPolicy()
66 assertThat(applyPolicyToJobInfo(builder, jobPolicy).getNetworkType()) in testApplyPolicyToJobInfo_network()
76 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(true); in testApplyPolicyToJobInfo_battery_charging()
80 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(false); in testApplyPolicyToJobInfo_battery_charging()
84 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(false); in testApplyPolicyToJobInfo_battery_charging()
93 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireBatteryNotLow()) in testApplyPolicyToJobInfo_battery_notLow()
98 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireBatteryNotLow()) in testApplyPolicyToJobInfo_battery_notLow()
103 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireBatteryNotLow()) in testApplyPolicyToJobInfo_battery_notLow()
113 assertThat(applyPolicyToJobInfo(builder, jobPolicy).isRequireCharging()).isEqualTo(false); in testApplyPolicyToJobInfo_battery_none()
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyProcessor.java46 public static JobInfo applyPolicyToJobInfo( in applyPolicyToJobInfo() method in PolicyProcessor
DPolicyJobScheduler.java195 return PolicyProcessor.applyPolicyToJobInfo(builder, mergedJobPolicy); in getJobInfoToSchedule()