Home | History | Annotate | Download | only in notification

Lines Matching refs:rule

167     private String computeRuleSummary(AutomaticZenRule rule, boolean isSystemRule,
169 final String mode = computeZenModeCaption(getResources(), rule.getInterruptionFilter());
170 final String ruleState = (rule == null || !rule.isEnabled())
237 AutomaticZenRule rule = new AutomaticZenRule(ruleName, ri.serviceComponent,
240 String savedRuleId = addZenRule(rule);
298 final AutomaticZenRule rule = ruleEntry.getValue();
299 mName = rule.getName();
303 rule.getConditionId());
304 final boolean isEvent = ZenModeConfig.isValidEventConditionId(rule.getConditionId());
308 ApplicationInfo info = mPm.getApplicationInfo(rule.getOwner().getPackageName(), 0);
311 setSummary(computeRuleSummary(rule, isSystemRule, info.loadLabel(mPm)));
319 setTitle(rule.getName());
324 ServiceInfo si = mServiceListing.findService(rule.getOwner());
433 final AutomaticZenRule rule = ruleEntry.getValue();
434 if (rule != null && rule.isEnabled()) {
474 private String key(AutomaticZenRule rule) {
475 final int type = ZenModeConfig.isValidScheduleConditionId(rule.getConditionId())
477 : ZenModeConfig.isValidEventConditionId(rule.getConditionId())
480 return type + rule.getName().toString();