Searched refs:PolicyFieldBuilder (Results 1 – 3 of 3) sorted by relevance
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/ |
D | PolicyBuilder.kt | 211 operator fun String.invoke(block: PolicyFieldBuilder.() -> Unit): PolicyField { in retention() 213 PolicyFieldBuilder.validateAndGetDataTypeDescriptor(this, dataTypeDescriptor) in retention() 214 return PolicyFieldBuilder(entityDataTypeDescriptor, listOf(this)) in retention() 233 class PolicyFieldBuilder( in build() class 243 fun rawUsage(vararg usageTypes: UsageType): PolicyFieldBuilder = apply { in build() 250 fun conditionalUsage(requiredLabel: String, vararg usageTypes: UsageType): PolicyFieldBuilder = in build() 255 fun ConditionalUsage.whenever(vararg usageTypes: UsageType): PolicyFieldBuilder { in build() 257 return this@PolicyFieldBuilder in build() 261 operator fun String.invoke(block: PolicyFieldBuilder.() -> Unit): PolicyField { in build() 265 return PolicyFieldBuilder(entityDataTypeDescriptor, fieldPath + listOf(this)) in build()
|
/packages/modules/OnDevicePersonalization/tests/chronicletests/src/com/android/libraries/pcc/chronicle/test/ |
D | ChronicleApiPolicyFieldBuilderTest.kt | 35 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyFieldBuilder in <lambda>() 57 val actual = PolicyFieldBuilder(null, listOf("foo")) in <lambda>() 66 val stringApi = PolicyFieldBuilder(null, listOf("foo")) in <lambda>() 72 val enumApi = PolicyFieldBuilder(null, listOf("foo")) in <lambda>() 96 val actual = PolicyFieldBuilder(NESTED_PERSON_GENERATED_DTD, listOf("person")) in <lambda>() 110 val actual = PolicyFieldBuilder(NESTED_PERSON_GENERATED_DTD, listOf("person")) in <lambda>() 137 PolicyFieldBuilder(NESTED_PERSON_GENERATED_DTD, listOf("persons")) in <lambda>() 147 PolicyFieldBuilder(NESTED_PERSON_GENERATED_DTD, listOf("persons")) in <lambda>()
|
D | ChronicleApiPolicyTargetBuilderTest.kt | 33 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyFieldBuilder 65 PolicyFieldBuilder(FOOBAR_DTD, listOf("name")).apply { rawUsage(UsageType.ANY) }.build() in testPolicyTargetBuilder()
|