Searched refs:PolicyCheck (Results 1 – 5 of 5) sorted by relevance
28 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()
32 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>()
20 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheck27 internal fun Policy.verifyContext(connectionContext: TypedMap): List<PolicyCheck> { in verifyContext()32 return listOf(PolicyCheck("Connection context fails to meet required policy conditions")) in verifyContext()
23 data class PolicyCheck(val check: String) { class33 data class Fail(val failingChecks: List<PolicyCheck>) : PolicyCheckResult() { in toString()42 fun make(violations: List<PolicyCheck>): PolicyCheckResult { in toString()
38 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>()