/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
H A D | ZenModeBackendTest.java | 7 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 D | ZenRuleStarredContactsPreferenceControllerTest.java | 51 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 D | ZenModeSettingsTest.java | 82 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 D | ZenModeRepeatCallersPreferenceControllerTest.java | 126 when(mBackend.isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) in updateState_Priority_anyCallers()
|
/aosp12/frameworks/base/core/java/android/service/notification/ |
H A D | ZenPolicy.java | 53 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 D | ZenModeConfig.java | 1048 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 D | ZenModeSettings.java | 20 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 D | ZenModeBackend.java | 139 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 D | ZenModePrioritySendersPreferenceController.java | 19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS; 195 mIsMessages ? PRIORITY_CATEGORY_MESSAGES : PRIORITY_CATEGORY_CALLS,
|
H A D | ZenModeCallsPreferenceController.java | 60 NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)); in updateState()
|
H A D | ZenCustomRuleCallsSettings.java | 64 getSettingsLifecycle(), ZenPolicy.PRIORITY_CATEGORY_CALLS, STARRED_CONTACTS_KEY)); in createPreferenceControllers()
|
H A D | ZenModeRepeatCallersPreferenceController.java | 77 Policy.PRIORITY_CATEGORY_CALLS) in updateState()
|
H A D | ZenRuleStarredContactsPreferenceController.java | 75 if (mPriorityCategory == ZenPolicy.PRIORITY_CATEGORY_CALLS) { in isAvailable()
|
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ZenPolicyTest.java | 309 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 D | ZenModeFilteringTest.java | 25 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS; 288 new Policy(PRIORITY_CATEGORY_CALLS, in testConversation_noneAllowed_callAllowed()
|
H A D | ZenModeHelperTest.java | 21 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 D | NotificationManagerServiceTest.java | 35 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 D | NotificationManager.java | 1785 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 D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |
/aosp12/frameworks/base/core/api/ |
H A D | current.txt | 6315 field public static final int PRIORITY_CATEGORY_CALLS = 8; // 0x8
|