Home
last modified time | relevance | path

Searched refs:IntegrityCheckResult (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/model/
DIntegrityCheckResultTest.java39 IntegrityCheckResult allowResult = IntegrityCheckResult.allow(); in createAllowResult()
41 assertThat(allowResult.getEffect()).isEqualTo(IntegrityCheckResult.Effect.ALLOW); in createAllowResult()
56 IntegrityCheckResult allowResult = in createAllowResultWithRule()
57 IntegrityCheckResult.allow(Collections.singletonList(forceAllowRule)); in createAllowResultWithRule()
59 assertThat(allowResult.getEffect()).isEqualTo(IntegrityCheckResult.Effect.ALLOW); in createAllowResultWithRule()
75 IntegrityCheckResult denyResult = in createDenyResultWithRule()
76 IntegrityCheckResult.deny(Collections.singletonList(failedRule)); in createDenyResultWithRule()
78 assertThat(denyResult.getEffect()).isEqualTo(IntegrityCheckResult.Effect.DENY); in createDenyResultWithRule()
104 IntegrityCheckResult denyResult = in isDenyCausedByAppCertificate()
105 IntegrityCheckResult.deny(Arrays.asList(failedRule, otherFailedRule)); in isDenyCausedByAppCertificate()
[all …]
/frameworks/base/services/core/java/com/android/server/integrity/model/
DIntegrityCheckResult.java34 public final class IntegrityCheckResult { class
44 private IntegrityCheckResult(Effect effect, @Nullable List<Rule> ruleList) { in IntegrityCheckResult() method in IntegrityCheckResult
62 public static IntegrityCheckResult allow() { in allow()
63 return new IntegrityCheckResult(Effect.ALLOW, Collections.emptyList()); in allow()
71 public static IntegrityCheckResult allow(List<Rule> ruleList) { in allow()
72 return new IntegrityCheckResult(Effect.ALLOW, ruleList); in allow()
81 public static IntegrityCheckResult deny(List<Rule> ruleList) { in deny()
82 return new IntegrityCheckResult(Effect.DENY, ruleList); in deny()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluationEngineTest.java29 import com.android.server.integrity.model.IntegrityCheckResult;
89 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_empty()
91 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_empty()
93 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_empty()
108 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_oneElement()
117 .isEqualTo(IntegrityCheckResult.Effect.DENY); in testAllowedInstallers_oneElement()
126 .isEqualTo(IntegrityCheckResult.Effect.DENY); in testAllowedInstallers_oneElement()
135 .isEqualTo(IntegrityCheckResult.Effect.DENY); in testAllowedInstallers_oneElement()
151 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_multipleElement()
160 .isEqualTo(IntegrityCheckResult.Effect.ALLOW); in testAllowedInstallers_multipleElement()
[all …]
DRuleEvaluatorTest.java19 import static com.android.server.integrity.model.IntegrityCheckResult.Effect.ALLOW;
20 import static com.android.server.integrity.model.IntegrityCheckResult.Effect.DENY;
31 import com.android.server.integrity.model.IntegrityCheckResult;
59 IntegrityCheckResult result = RuleEvaluator.evaluateRules(rules, APP_INSTALL_METADATA); in testEvaluateRules_noRules_allow()
74 IntegrityCheckResult result = in testEvaluateRules_noMatchedRules_allow()
97 IntegrityCheckResult result = in testEvaluateRules_oneMatch_deny()
127 IntegrityCheckResult result = in testEvaluateRules_multipleMatches_deny()
146 IntegrityCheckResult result = in testEvaluateRules_ruleWithNot_deny()
161 IntegrityCheckResult result = in testEvaluateRules_ruleWithIntegerOperators_deny()
184 IntegrityCheckResult result = in testEvaluateRules_validForm_deny()
[all …]
/frameworks/base/services/core/java/com/android/server/integrity/engine/
DRuleEvaluator.java26 import com.android.server.integrity.model.IntegrityCheckResult;
49 static IntegrityCheckResult evaluateRules( in evaluateRules()
65 return IntegrityCheckResult.allow(matchedPowerAllowRules); in evaluateRules()
75 return IntegrityCheckResult.deny(matchedDenyRules); in evaluateRules()
79 return IntegrityCheckResult.allow(); in evaluateRules()
DRuleEvaluationEngine.java25 import com.android.server.integrity.model.IntegrityCheckResult;
66 public IntegrityCheckResult evaluate( in evaluate()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java72 import com.android.server.integrity.model.IntegrityCheckResult;
318 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs()
356 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs_multipleCerts()
379 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs_sourceStamp()
403 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_allow()
423 IntegrityCheckResult.deny( in handleBroadcast_reject()
449 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_notInitialized()
471 .thenReturn(IntegrityCheckResult.deny(/* rule= */ null)); in verifierAsInstaller_skipIntegrityVerification()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java65 import com.android.server.integrity.model.IntegrityCheckResult;
331 IntegrityCheckResult result = mEvaluationEngine.evaluate(appInstallMetadata); in handleIntegrityVerification()
351 result.getEffect() == IntegrityCheckResult.Effect.ALLOW in handleIntegrityVerification()
/frameworks/base/services/
Dart-profile20071 …+]Lcom/android/server/integrity/model/IntegrityCheckResult;Lcom/android/server/integrity/model/Int…
20090 …oid/content/integrity/AppInstallMetadata;)Lcom/android/server/integrity/model/IntegrityCheckResult;
20099 …oid/content/integrity/AppInstallMetadata;)Lcom/android/server/integrity/model/IntegrityCheckResult;
20114 PLcom/android/server/integrity/model/IntegrityCheckResult$$ExternalSyntheticLambda0;-><clinit>()V
20115 PLcom/android/server/integrity/model/IntegrityCheckResult$$ExternalSyntheticLambda0;-><init>()V
20116 PLcom/android/server/integrity/model/IntegrityCheckResult$$ExternalSyntheticLambda1;-><clinit>()V
20117 PLcom/android/server/integrity/model/IntegrityCheckResult$$ExternalSyntheticLambda1;-><init>()V
20118 PLcom/android/server/integrity/model/IntegrityCheckResult$Effect;-><clinit>()V
20119 PLcom/android/server/integrity/model/IntegrityCheckResult$Effect;-><init>(Ljava/lang/String;I)V
20120 …m/android/server/integrity/model/IntegrityCheckResult;-><init>(Lcom/android/server/integrity/model…
[all …]