Home
last modified time | relevance | path

Searched refs:manualRule (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java130 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
138 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
150 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
161 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
263 ? config.manualRule.zenPolicy.getPriorityChannelsAllowed() == STATE_ALLOW in testZenPolicyToNotificationPolicy_unsetChannelsTakesDefault()
284 config.manualRule.zenPolicy = expected.copy(); in testZenConfigToZenPolicy_classic()
330 config.manualRule.zenPolicy = expected.copy(); in testZenConfigToZenPolicy()
369 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAll()
379 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAll()
391 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAll()
[all …]
DZenModeDiffTest.java294 c2.manualRule = m; in testConfigDiff_hasRuleDiffs()
DZenModeHelperTest.java2144 mZenModeHelper.mConfig.manualRule = new ZenModeConfig.ZenRule(); in testCountdownConditionSubscription()
2146 mZenModeHelper.mConfig.manualRule.conditionId = conditionId; in testCountdownConditionSubscription()
2147 mZenModeHelper.mConfig.manualRule.component = new ComponentName("android", in testCountdownConditionSubscription()
2149 mZenModeHelper.mConfig.manualRule.condition = new Condition(conditionId, "", "", "", 0, in testCountdownConditionSubscription()
2151 mZenModeHelper.mConfig.manualRule.enabled = true; in testCountdownConditionSubscription()
2914 assertEquals(true, mZenModeHelper.mConfig.manualRule.allowManualInvocation); in testSetManualZenMode()
6167 assertThat(mZenModeHelper.getConfig().manualRule).isNotNull(); in setManualZenRuleDeviceEffects_noPreexistingMode()
6169 assertThat(mZenModeHelper.getConfig().manualRule.zenDeviceEffects).isEqualTo(effects); in setManualZenRuleDeviceEffects_noPreexistingMode()
6183 assertThat(mZenModeHelper.getConfig().manualRule).isNotNull(); in setManualZenRuleDeviceEffects_preexistingMode()
6185 assertThat(mZenModeHelper.getConfig().manualRule.zenDeviceEffects).isEqualTo(effects); in setManualZenRuleDeviceEffects_preexistingMode()
[all …]
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java331 public ZenRule manualRule; field in ZenModeConfig
357 manualRule = source.readParcelable(null, ZenRule.class); in ZenModeConfig()
433 if (manualRule == null) { in ensureManualZenRule()
441 manualRule = newRule; in ensureManualZenRule()
470 dest.writeParcelable(manualRule, 0); in writeToParcel()
535 sb.append(",\nmanualRule=").append(manualRule); in toString()
575 return manualRule.zenPolicy.getPriorityConversationSenders(); in getAllowConversationsFrom()
629 manualRule.zenPolicy.getPriorityCallSenders(), DEFAULT_CALLS_SOURCE); in getAllowCallsFrom()
636 manualRule.zenPolicy = new ZenPolicy.Builder(manualRule.zenPolicy) in setAllowCallsFrom()
653 return manualRule.zenPolicy.isCategoryAllowed( in isAllowEvents()
[all …]
DZenModeDiff.java332 RuleDiff manualRuleDiff = new RuleDiff(from.manualRule, to.manualRule); in ConfigDiff()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java71 if (!android.app.Flags.modesUi() && config.manualRule != null in evaluateConfig()
72 && config.manualRule.condition != null in evaluateConfig()
73 && !config.manualRule.isTrueOrUnknown()) { in evaluateConfig()
75 config.manualRule = null; in evaluateConfig()
78 evaluateRule(config.manualRule, current, null, processSubscriptions, true); in evaluateConfig()
DZenModeHelper.java951 if (ruleMatches(id, condition, config.manualRule)) { in findMatchingRules()
952 matchingRules.add(config.manualRule); in findMatchingRules()
1533 newConfig.manualRule.enabler = caller; in setManualZenMode()
1534 newConfig.manualRule.conditionId = conditionId != null ? conditionId : Uri.EMPTY; in setManualZenMode()
1535 newConfig.manualRule.pkg = PACKAGE_ANDROID; in setManualZenMode()
1536 newConfig.manualRule.zenMode = zenMode; in setManualZenMode()
1537 newConfig.manualRule.condition = new Condition(newConfig.manualRule.conditionId, "", in setManualZenMode()
1551 newConfig.manualRule = null; in setManualZenMode()
1569 newConfig.manualRule = newRule; in setManualZenMode()
1589 newConfig.manualRule.pkg = PACKAGE_ANDROID; in setManualZenRuleDeviceEffects()
[all …]
DZenModeEventLogger.java398 ZenRule rule = config.manualRule.copy(); in activeRulesList()
693 if (mNewConfig == null || mNewConfig.manualRule == null) { in getNewManualRuleEnabler()
696 return mNewConfig.manualRule.enabler; in getNewManualRuleEnabler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java222 return mConfig == null ? null : mConfig.manualRule; in getManualRule()
317 final ZenRule oldRule = mConfig != null ? mConfig.manualRule : null; in updateZenModeConfig()
322 final ZenRule newRule = config != null ? config.manualRule : null; in updateZenModeConfig()
/frameworks/proto_logging/stats/atoms/dnd/
Ddnd_atoms.proto33 optional bool enabled = 2; // true for ROOT_CONFIG if a manualRule is enabled
/frameworks/base/core/proto/android/service/
Dnotification.proto303 optional bool enabled = 2; // true for ROOT_CONFIG if a manualRule is enabled
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49340 Landroid/service/notification/ZenModeConfig;->manualRule:Landroid/service/notification/ZenModeConfi…