Searched refs:rule2 (Results 1 – 2 of 2) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 548 private AutomaticZenRule rule2; // has ZenPolicy field in ConditionProviderVerifierActivity.GetAutomaticZenRulesTest 559 rule2 = createRuleWithZenPolicy("Rule with ZenPolicy", "value2", in setUp() 562 ids.add(mNm.addAutomaticZenRule(rule2)); 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/ |
D | NotificationManagerTest.java | 1070 AutomaticZenRule rule2 = createRule("test_consolidated_policy2", in testConsolidatedNotificationPolicyMultiRules() local 1072 rule2.setZenPolicy(new ZenPolicy.Builder() in testConsolidatedNotificationPolicyMultiRules() 1077 String id2 = mNotificationManager.addAutomaticZenRule(rule2); in testConsolidatedNotificationPolicyMultiRules() 1080 Condition onCondition2 = new Condition(rule2.getConditionId(), "summary", in testConsolidatedNotificationPolicyMultiRules()
|