Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java237 AutomaticZenRule ruleToCreate = in test() local
239 id = mNm.addAutomaticZenRule(ruleToCreate); in test()
269 AutomaticZenRule ruleToCreate = in test() local
272 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 …]
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java2298 AutomaticZenRule ruleToCreate = createRule("Rule"); in testAddAutomaticZenRule_configActivity() local
2299 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() local
2311 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() local
2325 String id = mNotificationManager.addAutomaticZenRule(ruleToCreate); in testRemoveAutomaticZenRule_configActivity()
[all …]