Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java547 private AutomaticZenRule rule1; // no ZenPolicy field in ConditionProviderVerifierActivity.GetAutomaticZenRulesTest
557 rule1 = createRule("Rule without ZenPolicy", "value1", in setUp()
561 ids.add(mNm.addAutomaticZenRule(rule1)); in setUp()
579 if (!compareRules(createdRule, rule1) && !compareRules(createdRule, rule2)) { in test()
1075 private boolean compareRules(AutomaticZenRule rule1, AutomaticZenRule rule2) { in compareRules() argument
1076 return rule1.isEnabled() == rule2.isEnabled() in compareRules()
1077 && Objects.equals(rule1.getName(), rule2.getName()) in compareRules()
1078 && rule1.getInterruptionFilter() == rule2.getInterruptionFilter() in compareRules()
1079 && Objects.equals(rule1.getConditionId(), rule2.getConditionId()) in compareRules()
1080 && Objects.equals(rule1.getOwner(), rule2.getOwner()) in compareRules()
[all …]
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java1064 AutomaticZenRule rule1 = createRule("test_consolidated_policyq", in testConsolidatedNotificationPolicyMultiRules() local
1066 rule1.setZenPolicy(new ZenPolicy.Builder() in testConsolidatedNotificationPolicyMultiRules()
1077 String id1 = mNotificationManager.addAutomaticZenRule(rule1); in testConsolidatedNotificationPolicyMultiRules()
1079 Condition onCondition1 = new Condition(rule1.getConditionId(), "summary", in testConsolidatedNotificationPolicyMultiRules()