Searched refs:automaticRules (Results 1 – 5 of 5) sorted by relevance
269 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules()282 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule()325 newConfig.automaticRules.put(rule.id, rule); in addAutomaticZenRule()348 rule = newConfig.automaticRules.get(ruleId); in updateAutomaticZenRule()364 ZenRule rule = newConfig.automaticRules.get(id); in removeAutomaticZenRule()367 newConfig.automaticRules.remove(id); in removeAutomaticZenRule()382 for (int i = newConfig.automaticRules.size() - 1; i >= 0; i--) { in removeAutomaticZenRules()383 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules()385 newConfig.automaticRules.removeAt(i); in removeAutomaticZenRules()398 setAutomaticZenRuleStateLocked(newConfig, newConfig.automaticRules.get(id), condition); in setAutomaticZenRuleState()[all …]
76 for (ZenRule automaticRule : config.automaticRules.values()) { in evaluateConfig()
201 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in getCustomAutomaticRules() local213 automaticRules.put("customRule", customRule); in getCustomAutomaticRules()214 return automaticRules; in getCustomAutomaticRules()774 mZenModeHelperSpy.mConfig.automaticRules = getCustomAutomaticRules(); in testReadXmlRestore_forSystemUser()791 mZenModeHelperSpy.mConfig.automaticRules = getCustomAutomaticRules(); in testReadXmlRestore_forNonSystemUser()816 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in testWriteXmlWithZenPolicy() local837 automaticRules.put("customRule", customRule); in testWriteXmlWithZenPolicy()838 mZenModeHelperSpy.mConfig.automaticRules = automaticRules; in testWriteXmlWithZenPolicy()849 ZenModeConfig.ZenRule original = expected.automaticRules.get(ruleId); in testWriteXmlWithZenPolicy()850 ZenModeConfig.ZenRule current = mZenModeHelperSpy.mConfig.automaticRules.get(ruleId); in testWriteXmlWithZenPolicy()[all …]
180 public ArrayMap<String, ZenRule> automaticRules = new ArrayMap<>(); field in ZenModeConfig202 automaticRules.put(ids[i], rules[i]); in ZenModeConfig()223 if (!automaticRules.isEmpty()) { in writeToParcel()224 final int len = automaticRules.size(); in writeToParcel()228 ids[i] = automaticRules.keyAt(i); in writeToParcel()229 rules[i] = automaticRules.valueAt(i); in writeToParcel()266 if (automaticRules.isEmpty()) { in rulesToString()270 StringBuilder buffer = new StringBuilder(automaticRules.size() * 28); in rulesToString()272 for (int i = 0; i < automaticRules.size(); i++) { in rulesToString()276 Object value = automaticRules.valueAt(i); in rulesToString()[all …]
400 for (ZenRule automaticRule : config.automaticRules.values()) { in updatePanel()