Home
last modified time | relevance | path

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

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/
DManagementStrategyValidation.kt28 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheck in <lambda>()
40 ): List<PolicyCheck> { in <lambda>()
67 internal fun PolicyTarget.verifyRetentionSatisfiedBy(dataType: DataType): List<PolicyCheck> { in verifyRetentionSatisfiedBy()
73 PolicyCheck("h:${dataType.descriptor.name} is $it with maxAgeMs = $maxAgeMs") in verifyRetentionSatisfiedBy()
81 internal fun PolicyTarget.verifyDeletionTriggersSatisfiedBy(dataType: DataType): List<PolicyCheck> { in verifyDeletionTriggersSatisfiedBy()
85 return missingDeletionTriggers.map { PolicyCheck("h:${dataType.descriptor.name} is $it") } in verifyDeletionTriggersSatisfiedBy()
DChroniclePolicyEngine.kt32 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheck in <lambda>()
73 ): List<PolicyCheck> { in <lambda>()
81 return listOf(PolicyCheck("h:${dataType.descriptor.name} is $MUST_HAVE_POLICY_PREDICATE")) in <lambda>()
88 PolicyCheck( in <lambda>()
100 ): List<PolicyCheck> { in <lambda>()
104 PolicyCheck("s:${request.connectionType} is $CONNECTON_NOT_FOUND_PREDICATE") in <lambda>()
109 ?: return listOf(PolicyCheck("s:${dtd.name} is $DTD_NOT_FOUND_PREDICATE")) in <lambda>()
132 return violatingFields.map { PolicyCheck("s:$it is $FIELD_CANNOT_BE_EGRESSED_PREDICATE") } in <lambda>()
DPolicyContextVerification.kt20 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheck
27 internal fun Policy.verifyContext(connectionContext: TypedMap): List<PolicyCheck> { in verifyContext()
32 return listOf(PolicyCheck("Connection context fails to meet required policy conditions")) in verifyContext()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/
DPolicyCheckResult.kt23 data class PolicyCheck(val check: String) { dataClass
33 data class Fail(val failingChecks: List<PolicyCheck>) : PolicyCheckResult() { in toString()
42 fun make(violations: List<PolicyCheck>): PolicyCheckResult { in toString()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/
DDefaultChronicle.kt38 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheck in <lambda>()
135 PolicyCheck("ConnectionRequest.policy must be non-null for ReadConnection requests") in <lambda>()