Home
last modified time | relevance | path

Searched refs:rule1 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java83 Rule rule1 = in testEvaluateRules_oneMatch_deny() local
99 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_oneMatch_deny()
102 assertThat(result.getMatchedRules()).containsExactly(rule1); in testEvaluateRules_oneMatch_deny()
107 Rule rule1 = in testEvaluateRules_multipleMatches_deny() local
129 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_multipleMatches_deny()
132 assertThat(result.getMatchedRules()).containsExactly(rule1, rule2); in testEvaluateRules_multipleMatches_deny()
242 Rule rule1 = in testEvaluateRules_forceAllow() local
264 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_forceAllow()
267 assertThat(result.getMatchedRules()).containsExactly(rule1); in testEvaluateRules_forceAllow()
272 Rule rule1 = in testEvaluateRules_multipleMatches_forceAllow() local
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DAutomaticZenRuleTest.java59 AutomaticZenRule rule1 = new AutomaticZenRule( in testLongFields_inConstructor() local
68 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule1.getName().length()); in testLongFields_inConstructor()
70 rule1.getConditionId().toString().length()); in testLongFields_inConstructor()
71 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule1.getOwner().getClassName().length()); in testLongFields_inConstructor()
/frameworks/native/services/inputflinger/tests/
DInputTracingTest.cpp530 auto rule1 = config->add_rules(); in TEST_F() local
531 rule1->set_trace_level(AndroidInputEventConfig::TRACE_LEVEL_NONE); in TEST_F()
532 rule1->set_match_secure(true); in TEST_F()
584 auto rule1 = config->add_rules(); in TEST_F() local
585 rule1->set_trace_level(AndroidInputEventConfig::TRACE_LEVEL_REDACTED); in TEST_F()
620 auto rule1 = config->add_rules(); in TEST_F() local
621 rule1->set_trace_level(AndroidInputEventConfig::TRACE_LEVEL_REDACTED); in TEST_F()
/frameworks/av/media/module/codecs/m4v_h263/dec/src/
Dvlc_decode.cpp373 int rule1 = 0, rule2 = 0, rule3 = 0; in mv_prediction() local
382 rule1 = 1; in mv_prediction()
390 rule1 = 1; in mv_prediction()
424 if (rule1 + rule2 + rule3 > 1) in mv_prediction()
429 else if (rule1 + rule2 + rule3 == 1) in mv_prediction()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitController.java3202 private static boolean canReuseContainer(@NonNull SplitRule rule1, @NonNull SplitRule rule2, in canReuseContainer() argument
3206 if (!isContainerReusableRule(rule1) || !isContainerReusableRule(rule2)) { in canReuseContainer()
3209 return areRulesSamePresentation((SplitPairRule) rule1, (SplitPairRule) rule2, in canReuseContainer()
3222 static boolean areRulesSamePresentation(@NonNull SplitPairRule rule1, in areRulesSamePresentation() argument
3224 if (rule1.getTag() != null || rule2.getTag() != null) { in areRulesSamePresentation()
3228 return Objects.equals(rule1.getTag(), rule2.getTag()); in areRulesSamePresentation()
3233 return rule1.getDefaultSplitAttributes().equals(rule2.getDefaultSplitAttributes()) in areRulesSamePresentation()
3234 && rule1.checkParentMetrics(parentWindowMetrics) in areRulesSamePresentation()
3236 && rule1.getFinishPrimaryWithSecondary() == rule2.getFinishPrimaryWithSecondary() in areRulesSamePresentation()
3237 && rule1.getFinishSecondaryWithPrimary() == rule2.getFinishSecondaryWithPrimary(); in areRulesSamePresentation()
/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dvlc_encode.cpp2545 Int rule1, rule2, rule3; in find_pmvs() local
2635 rule1 = 0; in find_pmvs()
2637 rule1 = 1; in find_pmvs()
2655 rule1 = 1; in find_pmvs()
2657 rule1 = 0; in find_pmvs()
2674 if (rule1) in find_pmvs()
2711 if (rule1 && rule2 && rule3) in find_pmvs()
2716 else if (rule1 + rule2 + rule3 == 2) in find_pmvs()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DSplitControllerTest.java1096 final SplitRule rule1 = createSplitRule(mActivity, secondaryActivity1, FINISH_ALWAYS, in testFinishTwoSplitThatShouldFinishTogether() local
1099 registerSplitPair(primaryContainer, secondaryContainer1, rule1); in testFinishTwoSplitThatShouldFinishTogether()