Home
last modified time | relevance | path

Searched refs:PRIORITY_CATEGORY_CALLS (Results 1 – 20 of 20) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
H A DZenModeBackendTest.java7 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
196 new Policy(PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS 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()
245 new Policy(PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS in saveSenders_doesNotChangeConversations()
253 mBackend.saveSenders(PRIORITY_CATEGORY_CALLS, PRIORITY_SENDERS_ANY); in saveSenders_doesNotChangeConversations()
259 | PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_MESSAGES | PRIORITY_CATEGORY_ALARMS, in saveSenders_doesNotChangeConversations()
H A DZenRuleStarredContactsPreferenceControllerTest.java51 private static int CURR_CONTROLLER = ZenPolicy.PRIORITY_CATEGORY_CALLS;
86 mContext, mock(Lifecycle.class), ZenPolicy.PRIORITY_CATEGORY_CALLS, in setup()
107 CURR_CONTROLLER = ZenPolicy.PRIORITY_CATEGORY_CALLS; in isAvailable_noCallers()
116 CURR_CONTROLLER = ZenPolicy.PRIORITY_CATEGORY_CALLS; in isAvailable_anyCallers()
126 CURR_CONTROLLER = ZenPolicy.PRIORITY_CATEGORY_CALLS; in isAvailable_starredCallers()
H A DZenModeSettingsTest.java82 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS | Policy.PRIORITY_CATEGORY_CALLS, in testGetCallsSettingSummary_contacts()
96 Policy.PRIORITY_CATEGORY_REPEAT_CALLERS | Policy.PRIORITY_CATEGORY_CALLS, in testGetCallsSettingSummary_starredRepeatCallers()
H A DZenModeRepeatCallersPreferenceControllerTest.java126 when(mBackend.isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) in updateState_Priority_anyCallers()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DZenPolicy.java53 PRIORITY_CATEGORY_CALLS,
70 public static final int PRIORITY_CATEGORY_CALLS = 3; field in ZenPolicy
285 return mPriorityCategories.get(PRIORITY_CATEGORY_CALLS); in getPriorityCategoryCalls()
502 } else if (category == PRIORITY_CATEGORY_CALLS) { in unsetPriorityCategory()
598 return unsetPriorityCategory(PRIORITY_CATEGORY_CALLS); in allowCalls()
602 mZenPolicy.mPriorityCategories.set(PRIORITY_CATEGORY_CALLS, STATE_DISALLOW); in allowCalls()
605 mZenPolicy.mPriorityCategories.set(PRIORITY_CATEGORY_CALLS, STATE_ALLOW); in allowCalls()
892 case PRIORITY_CATEGORY_CALLS: in indexToCategory()
981 case PRIORITY_CATEGORY_CALLS: in getZenPolicyPriorityCategoryState()
1064 } else if (category == PRIORITY_CATEGORY_CALLS in apply()
H A DZenModeConfig.java1048 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_CALLS, in toNotificationPolicy()
1049 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_CALLS, defaultPolicy))) { in toNotificationPolicy()
1050 priorityCategories |= Policy.PRIORITY_CATEGORY_CALLS; in toNotificationPolicy()
1183 priorityCategories |= Policy.PRIORITY_CATEGORY_CALLS; in toNotificationPolicy()
1276 allowCalls = (policy.priorityCategories & Policy.PRIORITY_CATEGORY_CALLS) != 0; in applyNotificationPolicy()
2046 & NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) != 0; in areAllPriorityOnlyRingerSoundsMuted()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/zen/
H A DZenModeSettings.java20 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
121 PRIORITY_CATEGORY_CALLS,
154 category -> PRIORITY_CATEGORY_CALLS == category in getCallsSettingSummary()
248 && isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_CALLS) in getEnabledCategories()
302 } else if (category == Policy.PRIORITY_CATEGORY_CALLS) { in getCategory()
H A DZenModeBackend.java139 if (isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) { in getPriorityCallSenders()
216 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in saveSenders()
247 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in getPrioritySenders()
293 } else if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS){ in getAlarmsTotalSilencePeopleSummary()
H A DZenModePrioritySendersPreferenceController.java19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
195 mIsMessages ? PRIORITY_CATEGORY_MESSAGES : PRIORITY_CATEGORY_CALLS,
H A DZenModeCallsPreferenceController.java60 NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)); in updateState()
H A DZenCustomRuleCallsSettings.java64 getSettingsLifecycle(), ZenPolicy.PRIORITY_CATEGORY_CALLS, STARRED_CONTACTS_KEY)); in createPreferenceControllers()
H A DZenModeRepeatCallersPreferenceController.java77 Policy.PRIORITY_CATEGORY_CALLS) in updateState()
H A DZenRuleStarredContactsPreferenceController.java75 if (mPriorityCategory == ZenPolicy.PRIORITY_CATEGORY_CALLS) { in isAvailable()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DZenPolicyTest.java309 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_CALLS); in testAllowCalls()
317 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_CALLS); in testAllowCalls()
325 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_CALLS); in testAllowCalls()
333 assertAllPriorityCategoriesUnsetExcept(policy, ZenPolicy.PRIORITY_CATEGORY_CALLS); in testAllowCalls()
540 if (except != ZenPolicy.PRIORITY_CATEGORY_CALLS) { in assertAllPriorityCategoriesUnsetExcept()
H A DZenModeFilteringTest.java25 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
288 new Policy(PRIORITY_CATEGORY_CALLS, in testConversation_noneAllowed_callAllowed()
H A DZenModeHelperTest.java21 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
303 | PRIORITY_CATEGORY_CONVERSATIONS | PRIORITY_CATEGORY_CALLS in testZenOn_NotificationApplied()
326 | PRIORITY_CATEGORY_CONVERSATIONS | PRIORITY_CATEGORY_CALLS in testZenOn_StarredCallers_CallTypesBlocked()
346 | PRIORITY_CATEGORY_CONVERSATIONS | PRIORITY_CATEGORY_CALLS in testZenOn_AllCallers_CallTypesAllowed()
H A DNotificationManagerServiceTest.java35 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
7637 int system = PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS; in testCorrectCategory_systemOn_appCannotTurnOff()
7647 int requested = PRIORITY_CATEGORY_CALLS; in testCorrectCategory_systemOff_appTurnOff_noChanges()
7648 int system = PRIORITY_CATEGORY_CALLS; in testCorrectCategory_systemOff_appTurnOff_noChanges()
7653 assertEquals(PRIORITY_CATEGORY_CALLS, actual); in testCorrectCategory_systemOff_appTurnOff_noChanges()
7658 int requested = PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS; in testCorrectCategory_systemOn_appTurnOn_noChanges()
7659 int system = PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS; in testCorrectCategory_systemOn_appTurnOn_noChanges()
7664 assertEquals(PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS, actual); in testCorrectCategory_systemOn_appTurnOn_noChanges()
7669 int requested = PRIORITY_CATEGORY_CALLS | PRIORITY_CATEGORY_CONVERSATIONS; in testCorrectCategory_systemOff_appCannotTurnOn()
7670 int system = PRIORITY_CATEGORY_CALLS; in testCorrectCategory_systemOff_appCannotTurnOn()
[all …]
/aosp12/frameworks/base/core/java/android/app/
H A DNotificationManager.java1785 public static final int PRIORITY_CATEGORY_CALLS = 1 << 3; field in NotificationManager.Policy
1809 PRIORITY_CATEGORY_CALLS,
2318 case PRIORITY_CATEGORY_CALLS: return "PRIORITY_CATEGORY_CALLS"; in priorityCategoryToString()
2389 return (priorityCategories & PRIORITY_CATEGORY_CALLS) != 0; in allowCalls()
/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.txt6315 field public static final int PRIORITY_CATEGORY_CALLS = 8; // 0x8