Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenMode.java61 public static final int CHANNEL_POLICY_ALL = -1; field in ZenMode
68 .allowChannels(CHANNEL_POLICY_ALL)
169 if (policy.getAllowedChannels() == CHANNEL_POLICY_ALL in setPolicy()
170 && currentPolicy.getAllowedChannels() != CHANNEL_POLICY_ALL) { in setPolicy()
182 } else if (policy.getAllowedChannels() != CHANNEL_POLICY_ALL in setPolicy()
183 && currentPolicy.getAllowedChannels() == CHANNEL_POLICY_ALL) { in setPolicy()
DZenModeAppsPreferenceController.java86 == ZenMode.CHANNEL_POLICY_ALL; in updateState()
100 return savePolicy(p -> p.allowChannels(ZenMode.CHANNEL_POLICY_ALL)); in onPreferenceChange()
DZenModeSummaryHelper.java414 } else if (zenMode.getPolicy().getAllowedChannels() == ZenMode.CHANNEL_POLICY_ALL) { in getAppsSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeTest.java81 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL) in getPolicy_interruptionFilterAll_returnsPolicyAllowingAll()
138 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL).build()); in setPolicy_withAllChannelsAllowed_setsInterruptionFilterAll()
142 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL) in setPolicy_withAllChannelsAllowed_setsInterruptionFilterAll()
154 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL).build()); in setPolicy_priorityToAllChannelsAndBack_restoresOldPolicy()
157 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL) in setPolicy_priorityToAllChannelsAndBack_restoresOldPolicy()
176 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL).build()); in setPolicy_alarmsOnlyToAllChannelsAndBack_restoresPolicySimilarToAlarmsOnly()
179 new ZenPolicy.Builder().allowChannels(ZenMode.CHANNEL_POLICY_ALL) in setPolicy_alarmsOnlyToAllChannelsAndBack_restoresPolicySimilarToAlarmsOnly()
DZenModeAppsPreferenceControllerTest.java121 .allowChannels(ZenMode.CHANNEL_POLICY_ALL) in testUpdateState_All()
166 .allowChannels(ZenMode.CHANNEL_POLICY_ALL) in testUpdateState_None_Unchecked()
212 .allowChannels(ZenMode.CHANNEL_POLICY_ALL) in testOnPreferenceChange_All()
222 .isEqualTo(ZenMode.CHANNEL_POLICY_ALL); in testOnPreferenceChange_All()
DZenModesSummaryHelperTest.java340 .allowChannels(ZenMode.CHANNEL_POLICY_ALL) in getAppsSummary_all()