Searched refs:automaticZenRule (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 291 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 …]
|
D | NotificationManagerService.java | 3548 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule) { 3549 Preconditions.checkNotNull(automaticZenRule, "automaticZenRule is null"); 3550 Preconditions.checkNotNull(automaticZenRule.getName(), "Name is null"); 3551 if (automaticZenRule.getOwner() == null 3552 && automaticZenRule.getConfigurationActivity() == null) { 3556 Preconditions.checkNotNull(automaticZenRule.getConditionId(), "ConditionId is null"); 3557 if (automaticZenRule.getZenPolicy() != null 3558 && automaticZenRule.getInterruptionFilter() != INTERRUPTION_FILTER_PRIORITY) { 3564 return mZenModeHelper.addAutomaticZenRule(automaticZenRule, 3569 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule) [all …]
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 187 String addAutomaticZenRule(in AutomaticZenRule automaticZenRule); in addAutomaticZenRule() argument 188 boolean updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule); in updateAutomaticZenRule() argument
|
D | NotificationManager.java | 967 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()
|