Searched refs:automaticZenRule (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 346 public String addAutomaticZenRule(String pkg, AutomaticZenRule automaticZenRule, in addAutomaticZenRule() argument 349 PackageItemInfo component = getServiceInfo(automaticZenRule.getOwner()); in addAutomaticZenRule() 351 component = getActivityInfo(automaticZenRule.getConfigurationActivity()); in addAutomaticZenRule() 361 int newRuleInstanceCount = getCurrentInstanceCount(automaticZenRule.getOwner()) in addAutomaticZenRule() 362 + getCurrentInstanceCount(automaticZenRule.getConfigurationActivity()) in addAutomaticZenRule() 377 Log.d(TAG, "addAutomaticZenRule rule= " + automaticZenRule + " reason=" + reason); in addAutomaticZenRule() 381 populateZenRule(pkg, automaticZenRule, rule, true); in addAutomaticZenRule() 392 public boolean updateAutomaticZenRule(String ruleId, AutomaticZenRule automaticZenRule, in updateAutomaticZenRule() argument 398 Log.d(TAG, "updateAutomaticZenRule zenRule=" + automaticZenRule in updateAutomaticZenRule() 412 if (rule.enabled != automaticZenRule.isEnabled()) { in updateAutomaticZenRule() [all …]
|
D | NotificationManagerService.java | 5060 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule, String pkg) { 5061 Objects.requireNonNull(automaticZenRule, "automaticZenRule is null"); 5062 Objects.requireNonNull(automaticZenRule.getName(), "Name is null"); 5063 if (automaticZenRule.getOwner() == null 5064 && automaticZenRule.getConfigurationActivity() == null) { 5068 Objects.requireNonNull(automaticZenRule.getConditionId(), "ConditionId is null"); 5070 if (automaticZenRule.getZenPolicy() != null 5071 && automaticZenRule.getInterruptionFilter() != INTERRUPTION_FILTER_PRIORITY) { 5081 if (automaticZenRule.getOwner() != null) { 5082 rulePkg = automaticZenRule.getOwner().getPackageName(); [all …]
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 214 String addAutomaticZenRule(in AutomaticZenRule automaticZenRule, String pkg); in addAutomaticZenRule() argument 215 boolean updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule); in updateAutomaticZenRule() argument
|
D | NotificationManager.java | 1277 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule) { in addAutomaticZenRule() argument 1280 return service.addAutomaticZenRule(automaticZenRule, mContext.getPackageName()); in addAutomaticZenRule() 1299 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule) { in updateAutomaticZenRule() argument 1302 return service.updateAutomaticZenRule(id, automaticZenRule); in updateAutomaticZenRule()
|