Searched refs:ruleId (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 708 String ruleId = mZenModeHelper.addAutomaticZenRule(mContext.getPackageName(), in testTotalSilence_consolidatedPolicyDisallowsAll() local 712 mZenModeHelper.setAutomaticZenRuleState(ruleId, in testTotalSilence_consolidatedPolicyDisallowsAll() 742 String ruleId = mZenModeHelper.addAutomaticZenRule(mContext.getPackageName(), in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia() local 746 mZenModeHelper.setAutomaticZenRuleState(ruleId, in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia() 1477 final String ruleId = "customRule"; in testWriteXmlWithZenPolicy() local 1519 ZenModeConfig.ZenRule original = expected.automaticRules.get(ruleId); in testWriteXmlWithZenPolicy() 1520 ZenModeConfig.ZenRule current = mZenModeHelper.mConfig.automaticRules.get(ruleId); in testWriteXmlWithZenPolicy() 1528 final String ruleId = "customRule"; in testReadXmlRestoreWithZenPolicy_forSystemUser() local 1537 customRule.id = ruleId; in testReadXmlRestoreWithZenPolicy_forSystemUser() 1549 automaticRules.put(ruleId, customRule); in testReadXmlRestoreWithZenPolicy_forSystemUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 548 public boolean updateAutomaticZenRule(String ruleId, AutomaticZenRule automaticZenRule, in updateAutomaticZenRule() argument 551 if (ruleId == null) { in updateAutomaticZenRule() 560 ZenModeConfig.ZenRule oldRule = mConfig.automaticRules.get(ruleId); in updateAutomaticZenRule() 566 ZenModeConfig.ZenRule newRule = requireNonNull(newConfig.automaticRules.get(ruleId)); in updateAutomaticZenRule() 569 dispatchOnAutomaticRuleStatusChanged(mConfig.user, newRule.getPkg(), ruleId, in updateAutomaticZenRule() 786 static boolean isImplicitRuleId(@NonNull String ruleId) { in isImplicitRuleId() argument 787 return ruleId.startsWith(IMPLICIT_RULE_ID_PREFIX); in isImplicitRuleId() 1494 void scheduleActivationBroadcast(String pkg, @UserIdInt int userId, String ruleId, in scheduleActivationBroadcast() argument 1498 dispatchOnAutomaticRuleStatusChanged(userId, pkg, ruleId, activated in scheduleActivationBroadcast() 1503 userId, pkg, ruleId, AUTOMATIC_RULE_STATUS_UNKNOWN); in scheduleActivationBroadcast() [all …]
|