Home
last modified time | relevance | path

Searched refs:rule2 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java90 Rule rule2 = in testEvaluateRules_oneMatch_deny() local
99 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_oneMatch_deny()
114 Rule rule2 = new Rule( 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()
249 Rule rule2 = new Rule( in testEvaluateRules_forceAllow() local
264 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_forceAllow()
279 Rule rule2 = new Rule( in testEvaluateRules_multipleMatches_forceAllow() local
294 RuleEvaluator.evaluateRules(Arrays.asList(rule1, rule2), APP_INSTALL_METADATA); in testEvaluateRules_multipleMatches_forceAllow()
297 assertThat(result.getMatchedRules()).containsExactly(rule1, rule2); in testEvaluateRules_multipleMatches_forceAllow()
/frameworks/base/core/tests/coretests/src/android/app/
DAutomaticZenRuleTest.java73 AutomaticZenRule rule2 = new AutomaticZenRule( in testLongFields_inConstructor() local
82 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule2.getName().length()); in testLongFields_inConstructor()
84 rule2.getConditionId().toString().length()); in testLongFields_inConstructor()
86 rule2.getConfigurationActivity().getPackageName().length()); in testLongFields_inConstructor()
/frameworks/av/media/module/codecs/m4v_h263/dec/src/
Dvlc_decode.cpp373 int rule1 = 0, rule2 = 0, rule3 = 0; in mv_prediction() local
402 rule2 = rule3 = 1; in mv_prediction()
412 rule2 = 1; in mv_prediction()
424 if (rule1 + rule2 + rule3 > 1) in mv_prediction()
429 else if (rule1 + rule2 + rule3 == 1) in mv_prediction()
/frameworks/native/services/inputflinger/tests/
DInputTracingTest.cpp534 auto rule2 = config->add_rules(); in TEST_F() local
535 rule2->set_trace_level(AndroidInputEventConfig::TRACE_LEVEL_COMPLETE); in TEST_F()
536 rule2->add_match_all_packages(ALLOWED_PKG_1); in TEST_F()
537 rule2->add_match_all_packages(ALLOWED_PKG_2); in TEST_F()
538 rule2->set_match_ime_connection_active(false); in TEST_F()
/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()
3223 @NonNull SplitPairRule rule2, @NonNull WindowMetrics parentWindowMetrics) { 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()
3235 == rule2.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
2640 rule2 = 0; in find_pmvs()
2642 rule2 = 1; in find_pmvs()
2662 rule2 = 1; in find_pmvs()
2664 rule2 = 0; in find_pmvs()
2687 if (rule2) in find_pmvs()
2711 if (rule1 && rule2 && rule3) in find_pmvs()
2716 else if (rule1 + rule2 + rule3 == 2) in find_pmvs()