Home
last modified time | relevance | path

Searched refs:automaticZenRule (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java291 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule, String reason) { in addAutomaticZenRule() argument
292 if (!isSystemRule(automaticZenRule)) { in addAutomaticZenRule()
293 PackageItemInfo component = getServiceInfo(automaticZenRule.getOwner()); in addAutomaticZenRule()
295 component = getActivityInfo(automaticZenRule.getConfigurationActivity()); in addAutomaticZenRule()
305 int newRuleInstanceCount = getCurrentInstanceCount(automaticZenRule.getOwner()) in addAutomaticZenRule()
306 + getCurrentInstanceCount(automaticZenRule.getConfigurationActivity()) in addAutomaticZenRule()
320 Log.d(TAG, "addAutomaticZenRule rule= " + automaticZenRule + " reason=" + reason); in addAutomaticZenRule()
324 populateZenRule(automaticZenRule, rule, true); in addAutomaticZenRule()
334 public boolean updateAutomaticZenRule(String ruleId, AutomaticZenRule automaticZenRule, in updateAutomaticZenRule() argument
340 Log.d(TAG, "updateAutomaticZenRule zenRule=" + automaticZenRule in updateAutomaticZenRule()
[all …]
DNotificationManagerService.java3473 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule) {
3474 Preconditions.checkNotNull(automaticZenRule, "automaticZenRule is null");
3475 Preconditions.checkNotNull(automaticZenRule.getName(), "Name is null");
3476 if (automaticZenRule.getOwner() == null
3477 && automaticZenRule.getConfigurationActivity() == null) {
3481 Preconditions.checkNotNull(automaticZenRule.getConditionId(), "ConditionId is null");
3482 if (automaticZenRule.getZenPolicy() != null
3483 && automaticZenRule.getInterruptionFilter() != INTERRUPTION_FILTER_PRIORITY) {
3489 return mZenModeHelper.addAutomaticZenRule(automaticZenRule,
3494 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule)
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl185 String addAutomaticZenRule(in AutomaticZenRule automaticZenRule); in addAutomaticZenRule() argument
186 boolean updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule); in updateAutomaticZenRule() argument
DNotificationManager.java967 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule) { in addAutomaticZenRule() argument
970 return service.addAutomaticZenRule(automaticZenRule); in addAutomaticZenRule()
989 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule) { in updateAutomaticZenRule() argument
992 return service.updateAutomaticZenRule(id, automaticZenRule); in updateAutomaticZenRule()