Home
last modified time | relevance | path

Searched refs:automaticRules (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java263 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules()
276 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule()
314 newConfig.automaticRules.put(rule.id, rule); in addAutomaticZenRule()
337 rule = newConfig.automaticRules.get(ruleId); in updateAutomaticZenRule()
344 newConfig.automaticRules.put(ruleId, rule); in updateAutomaticZenRule()
354 ZenRule rule = newConfig.automaticRules.get(id); in removeAutomaticZenRule()
357 newConfig.automaticRules.remove(id); in removeAutomaticZenRule()
372 for (int i = newConfig.automaticRules.size() - 1; i >= 0; i--) { in removeAutomaticZenRules()
373 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules()
376 newConfig.automaticRules.removeAt(i); in removeAutomaticZenRules()
[all …]
DZenModeConditions.java71 for (ZenRule automaticRule : config.automaticRules.values()) { in evaluateConfig()
114 for (ZenRule automaticRule : config.automaticRules.values()) { in onConditionChanged()
170 for (ZenRule rule : config.automaticRules.values()) { in isAutomaticActive()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java164 public ArrayMap<String, ZenRule> automaticRules = new ArrayMap<>(); field in ZenModeConfig
185 automaticRules.put(ids[i], rules[i]); in ZenModeConfig()
206 if (!automaticRules.isEmpty()) { in writeToParcel()
207 final int len = automaticRules.size(); in writeToParcel()
211 ids[i] = automaticRules.keyAt(i); in writeToParcel()
212 rules[i] = automaticRules.valueAt(i); in writeToParcel()
243 .append(",automaticRules=").append(automaticRules) in toString()
291 addKeys(allRules, automaticRules); in diff()
292 addKeys(allRules, to.automaticRules); in diff()
296 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null; in diff()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java630 mZenModeHelperSpy.mConfig.automaticRules = enabledAutoRule; in testReadXml()
642 assertTrue(mZenModeHelperSpy.mConfig.automaticRules.containsKey("customRule")); in testReadXml()
760 mZenModeHelperSpy.mConfig.automaticRules = new ArrayMap<>(); in testReadXmlResetDefaultRules()
771 ArrayMap<String, ZenModeConfig.ZenRule> rules = mZenModeHelperSpy.mConfig.automaticRules; in testReadXmlResetDefaultRules()
795 mZenModeHelperSpy.mConfig.automaticRules = enabledAutoRule; in testReadXmlAllDisabledRulesResetDefaultRules()
806 ArrayMap<String, ZenModeConfig.ZenRule> rules = mZenModeHelperSpy.mConfig.automaticRules; in testReadXmlAllDisabledRulesResetDefaultRules()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java393 for (ZenRule automaticRule : config.automaticRules.values()) { in updatePanel()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt5188 Landroid/service/notification/ZenModeConfig;->automaticRules:Landroid/util/ArrayMap;