Searched refs:ruleToCreate (Results 1 – 2 of 2) sorted by relevance
237 AutomaticZenRule ruleToCreate = in test() local239 id = mNm.addAutomaticZenRule(ruleToCreate); in test()269 AutomaticZenRule ruleToCreate = in test() local272 id = mNm.addAutomaticZenRule(ruleToCreate); in test()276 if (rule != null && ruleToCreate.getName().equals(rule.getName()) in test()277 && ruleToCreate.getOwner().equals(rule.getOwner()) in test()278 && ruleToCreate.getConditionId().equals(rule.getConditionId()) in test()279 && ruleToCreate.isEnabled() == rule.isEnabled() in test()280 && ruleToCreate.getInterruptionFilter() == rule.getInterruptionFilter() in test()281 && Objects.equals(ruleToCreate.getConfigurationActivity(), in test()[all …]
2298 AutomaticZenRule ruleToCreate = createRule("Rule"); in testAddAutomaticZenRule_configActivity() local2299 String id = mNotificationManager.addAutomaticZenRule(ruleToCreate); in testAddAutomaticZenRule_configActivity()2303 assertTrue(areRulesSame(ruleToCreate, mNotificationManager.getAutomaticZenRule(id))); in testAddAutomaticZenRule_configActivity()2310 AutomaticZenRule ruleToCreate = createRule("Rule"); in testUpdateAutomaticZenRule_configActivity() local2311 String id = mNotificationManager.addAutomaticZenRule(ruleToCreate); in testUpdateAutomaticZenRule_configActivity()2312 ruleToCreate.setEnabled(false); in testUpdateAutomaticZenRule_configActivity()2313 mNotificationManager.updateAutomaticZenRule(id, ruleToCreate); in testUpdateAutomaticZenRule_configActivity()2317 assertTrue(areRulesSame(ruleToCreate, mNotificationManager.getAutomaticZenRule(id))); in testUpdateAutomaticZenRule_configActivity()2324 AutomaticZenRule ruleToCreate = createRule("Rule"); in testRemoveAutomaticZenRule_configActivity() local2325 String id = mNotificationManager.addAutomaticZenRule(ruleToCreate); in testRemoveAutomaticZenRule_configActivity()[all …]