Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
H A DRuleEvaluatorTest.java102 assertThat(result.getMatchedRules()).containsExactly(rule1); in testEvaluateRules_oneMatch_deny()
132 assertThat(result.getMatchedRules()).containsExactly(rule1, rule2); in testEvaluateRules_multipleMatches_deny()
151 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_ruleWithNot_deny()
166 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_ruleWithIntegerOperators_deny()
189 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_validForm_deny()
212 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_orRules()
237 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_compoundFormulaWithNot_deny()
267 assertThat(result.getMatchedRules()).containsExactly(rule1); in testEvaluateRules_forceAllow()
297 assertThat(result.getMatchedRules()).containsExactly(rule1, rule2); in testEvaluateRules_multipleMatches_forceAllow()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/model/
H A DIntegrityCheckResult.java53 public List<Rule> getMatchedRules() { in getMatchedRules() method in IntegrityCheckResult
91 } else if (getEffect() == Effect.ALLOW && getMatchedRules().isEmpty()) { in getLoggingResponse()
93 } else if (getEffect() == Effect.ALLOW && !getMatchedRules().isEmpty()) { in getLoggingResponse()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/model/
H A DIntegrityCheckResultTest.java42 assertThat(allowResult.getMatchedRules()).isEmpty(); in createAllowResult()
60 assertThat(allowResult.getMatchedRules()).containsExactly(forceAllowRule); in createAllowResultWithRule()
79 assertThat(denyResult.getMatchedRules()).containsExactly(failedRule); in createDenyResultWithRule()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/
H A DAppIntegrityManagerServiceImpl.java340 if (!result.getMatchedRules().isEmpty() || DEBUG_INTEGRITY_COMPONENT) { in handleIntegrityVerification()
345 packageName, result.getEffect(), result.getMatchedRules())); in handleIntegrityVerification()