Home
last modified time | relevance | path

Searched refs:PolicyContextRule (Results 1 – 5 of 5) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/contextrules/
DPolicyContextRule.kt27 interface PolicyContextRule { interface
29 val operands: List<PolicyContextRule>
39 object All : PolicyContextRule { in invoke()
41 override val operands: List<PolicyContextRule> = emptyList() in invoke()
46 infix fun PolicyContextRule.and(other: PolicyContextRule): PolicyContextRule = And(this, other) in and()
49 class And(private val lhs: PolicyContextRule, private val rhs: PolicyContextRule) : in and()
50 PolicyContextRule { in and()
52 override val operands: List<PolicyContextRule> = listOf(lhs, rhs) in and()
57 infix fun PolicyContextRule.or(other: PolicyContextRule): PolicyContextRule = Or(this, other) in or()
60 class Or(private val lhs: PolicyContextRule, private val rhs: PolicyContextRule) : in or()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/policyengine/policy/rules/
DNPAPolicyRules.kt19 import com.android.libraries.pcc.chronicle.api.policy.contextrules.PolicyContextRule
27 object UnicornAccount : PolicyContextRule {
29 override val operands: List<PolicyContextRule> = emptyList()
35 object UserOptsInLimitedAdsTracking : PolicyContextRule {
37 override val operands: List<PolicyContextRule> = emptyList()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/
DFlavoredPoliciesBuilder.kt24 import com.android.libraries.pcc.chronicle.api.policy.contextrules.PolicyContextRule in <lambda>()
50 var allowedContext: PolicyContextRule by basePolicyBuilder::allowedContext in <lambda>()
DPolicyBuilder.kt32 import com.android.libraries.pcc.chronicle.api.policy.contextrules.PolicyContextRule
124 var allowedContext: PolicyContextRule = All
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/
DPolicy.kt23 import com.android.libraries.pcc.chronicle.api.policy.contextrules.PolicyContextRule in <lambda>()
36 val allowedContext: PolicyContextRule = All in <lambda>()