Home
last modified time | relevance | path

Searched refs:PRIORITY_CATEGORY_ALARMS (Results 1 – 22 of 22) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
H A DZenModeBackendTest.java6 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
197 | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveConversationSenders_importantToNone()
210 PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveConversationSenders_importantToNone()
221 PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveConversationSenders_noneToAll()
234 | PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveConversationSenders_noneToAll()
246 | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveSenders_doesNotChangeConversations()
259 | PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveSenders_doesNotChangeConversations()
H A DZenOnboardingActivityTest.java19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
97 Policy policy = new Policy(PRIORITY_CATEGORY_ALARMS, 0, 0, SUPPRESSED_EFFECT_SCREEN_ON); in saveNewSetting()
109 assertThat(actual.priorityCategories).isEqualTo(PRIORITY_CATEGORY_ALARMS in saveNewSetting()
119 Policy policy = new Policy(PRIORITY_CATEGORY_ALARMS, 0, 0, SUPPRESSED_EFFECT_SCREEN_ON); in keepCurrentSetting()
H A DZenModeAlarmsPreferenceControllerTest.java116 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS)).thenReturn(ALARMS_SETTINGS); in updateState_Priority()
130 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, allowAlarms); in onPreferenceChanged_EnableAlarms()
139 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, allowAlarms); in onPreferenceChanged_DisableAlarms()
H A DZenRuleCustomSwitchPreferenceControllerTest.java73 PREF_KEY, ZenPolicy.PRIORITY_CATEGORY_ALARMS, 0); in setup()
H A DZenModeSettingsTest.java82 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | Policy.PRIORITY_CATEGORY_CALLS, in testGetCallsSettingSummary_contacts()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/zen/
H A DZenModeAlarmsPreferenceController.java67 Policy.PRIORITY_CATEGORY_ALARMS)); in updateState()
80 mBackend.saveSoundPolicy(Policy.PRIORITY_CATEGORY_ALARMS, allowAlarms); in onPreferenceChange()
H A DZenModeSettings.java19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
115 PRIORITY_CATEGORY_ALARMS,
128 category -> PRIORITY_CATEGORY_ALARMS == category in getOtherSoundCategoriesSummary()
264 if (category == PRIORITY_CATEGORY_ALARMS) { in getCategory()
H A DZenCustomRuleConfigSettings.java133 getSettingsLifecycle(), ALARMS_KEY, ZenPolicy.PRIORITY_CATEGORY_ALARMS, in createPreferenceControllers()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DZenPolicy.java55 PRIORITY_CATEGORY_ALARMS,
74 public static final int PRIORITY_CATEGORY_ALARMS = 5; field in ZenPolicy
307 return mPriorityCategories.get(PRIORITY_CATEGORY_ALARMS); in getPriorityCategoryAlarms()
631 mZenPolicy.mPriorityCategories.set(PRIORITY_CATEGORY_ALARMS, in allowAlarms()
663 case PRIORITY_CATEGORY_ALARMS: in allowCategory()
896 case PRIORITY_CATEGORY_ALARMS: in indexToCategory()
985 case PRIORITY_CATEGORY_ALARMS: in getZenPolicyPriorityCategoryState()
H A DZenModeConfig.java1061 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_ALARMS, in toNotificationPolicy()
1062 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_ALARMS, defaultPolicy))) { in toNotificationPolicy()
1063 priorityCategories |= Policy.PRIORITY_CATEGORY_ALARMS; in toNotificationPolicy()
1198 priorityCategories |= Policy.PRIORITY_CATEGORY_ALARMS; in toNotificationPolicy()
1271 allowAlarms = (policy.priorityCategories & Policy.PRIORITY_CATEGORY_ALARMS) != 0; in applyNotificationPolicy()
2067 boolean allowAlarms = (policy.priorityCategories & Policy.PRIORITY_CATEGORY_ALARMS) != 0; in areAllZenBehaviorSoundsMuted()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
H A DEnableZenModeDialogTest.java82 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0); in setup()
170 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0)); in testNoAlarmWarning()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DZenModeHelperTest.java20 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
286 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testZenOff_NoMuteApplied()
301 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testZenOn_NotificationApplied()
304 | PRIORITY_CATEGORY_ALARMS | PRIORITY_CATEGORY_EVENTS | PRIORITY_CATEGORY_REMINDERS in testZenOn_NotificationApplied()
324 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testZenOn_StarredCallers_CallTypesBlocked()
327 | PRIORITY_CATEGORY_ALARMS | PRIORITY_CATEGORY_EVENTS | PRIORITY_CATEGORY_REMINDERS in testZenOn_StarredCallers_CallTypesBlocked()
344 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testZenOn_AllCallers_CallTypesAllowed()
347 | PRIORITY_CATEGORY_ALARMS | PRIORITY_CATEGORY_EVENTS | PRIORITY_CATEGORY_REMINDERS in testZenOn_AllCallers_CallTypesAllowed()
363 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testZenOn_AllowAlarmsMedia_NoAlarmMediaMuteApplied()
391 mZenModeHelperSpy.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | in testTotalSilence()
H A DZenPolicyTest.java371 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_ALARMS); in testAllowAlarms()
378 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_ALARMS); in testAllowAlarms()
548 if (except != ZenPolicy.PRIORITY_CATEGORY_ALARMS) { in assertAllPriorityCategoriesUnsetExcept()
H A DZenModeConfigTest.java98 priorityCategories |= Policy.PRIORITY_CATEGORY_ALARMS; in testZenPolicyToNotificationPolicy()
/aosp12/frameworks/base/core/java/android/app/
H A DNotificationManager.java1789 public static final int PRIORITY_CATEGORY_ALARMS = 1 << 5; field in NotificationManager.Policy
1803 PRIORITY_CATEGORY_ALARMS,
2320 case PRIORITY_CATEGORY_ALARMS: return "PRIORITY_CATEGORY_ALARMS"; in priorityCategoryToString()
2369 return (priorityCategories & PRIORITY_CATEGORY_ALARMS) != 0; in allowAlarms()
/aosp12/frameworks/base/core/java/android/preference/
H A DSeekBarVolumizer.java162 .PRIORITY_CATEGORY_ALARMS) != 0; in SeekBarVolumizer()
612 .PRIORITY_CATEGORY_ALARMS) != 0; in onReceive()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
H A DEnableZenModeDialog.java483 & NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS) != 0; in computeAlarmWarningText()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogControllerImpl.java636 .PRIORITY_CATEGORY_ALARMS) == 0; in updateZenConfig()
/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java5692 & NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS) == 0; in shouldZenMuteStream()
5733 & NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS) == 0) { in updateZenModeAffectedStreams()
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java5056 priorityCategories &= ~Policy.PRIORITY_CATEGORY_ALARMS;
5061 & Policy.PRIORITY_CATEGORY_ALARMS;
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/aosp12/frameworks/base/core/api/
H A Dcurrent.txt6314 field public static final int PRIORITY_CATEGORY_ALARMS = 32; // 0x20