Home
last modified time | relevance | path

Searched refs:PolicyCheckResult (Results 1 – 4 of 4) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/
DPolicyCheckResult.kt28 sealed class PolicyCheckResult { in toString() class
30 object Pass : PolicyCheckResult() in toString()
33 data class Fail(val failingChecks: List<PolicyCheck>) : PolicyCheckResult() { in toString()
42 fun make(violations: List<PolicyCheck>): PolicyCheckResult { in toString()
43 return if (violations.isEmpty()) PolicyCheckResult.Pass in toString()
44 else PolicyCheckResult.Fail(violations) in toString()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/
DPolicyEngine.kt21 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheckResult
36 ): PolicyCheckResult
51 fun checkWriteConnections(context: ChronicleContext): PolicyCheckResult
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/
DChroniclePolicyEngine.kt33 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheckResult in <lambda>()
52 ): PolicyCheckResult { in <lambda>()
60 return PolicyCheckResult.make(violations) in <lambda>()
63 override fun checkWriteConnections(context: ChronicleContext): PolicyCheckResult { in <lambda>()
67 return PolicyCheckResult.make(violations) in <lambda>()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/
DDefaultChronicle.kt39 import com.android.libraries.pcc.chronicle.api.policy.builder.PolicyCheckResult in <lambda>()
68 if (writeConnectionCheckResult is PolicyCheckResult.Fail) { in <lambda>()
133 PolicyCheckResult.Fail( in <lambda>()
150 if (checkResult is PolicyCheckResult.Fail) { in <lambda>()
163 private fun handlePolicyCheckFail(failure: PolicyCheckResult.Fail): ChronicleError? = in <lambda>()