/aosp12/frameworks/base/core/java/com/android/internal/notification/ |
H A D | SystemNotificationChannels.java | 20 import android.app.NotificationManager; 64 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 69 NotificationManager.IMPORTANCE_LOW); in createAll() 85 NotificationManager.IMPORTANCE_LOW); in createAll() 91 NotificationManager.IMPORTANCE_LOW); in createAll() 100 NotificationManager.IMPORTANCE_LOW); in createAll() 114 NotificationManager.IMPORTANCE_LOW); in createAll() 120 NotificationManager.IMPORTANCE_LOW); in createAll() 134 NotificationManager.IMPORTANCE_LOW); in createAll() 141 NotificationManager.IMPORTANCE_LOW); in createAll() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
H A D | ZenModeVisEffectsCustomPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 36 import android.app.NotificationManager; 67 NotificationManager mNotificationManager; 79 mock(NotificationManager.Policy.class)); in setup() 90 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in isAvailable_noVisEffects() 96 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in isAvailable_visEffects() 102 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateState_notChecked_noVisEffects() 127 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in updateState_checked() [all …]
|
H A D | ZenFooterPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 35 import android.app.NotificationManager; 68 NotificationManager mNotificationManager; 79 mock(NotificationManager.Policy.class)); in setup() 89 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in isAvailable_noVisEffects() 95 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in isAvailable_someVisEffects() 116 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateSummary_noVisEffects() [all …]
|
H A D | ZenModeVisEffectsNonePreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 38 import android.app.NotificationManager; 70 NotificationManager mNotificationManager; 82 mock(NotificationManager.Policy.class)); in setup() 98 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in updateState_notChecked() 106 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateState_checked() [all …]
|
H A D | ZenModeVisEffectsAllPreferenceControllerTest.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 38 import android.app.NotificationManager; 70 NotificationManager mNotificationManager; 82 mock(NotificationManager.Policy.class)); in setup() 98 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in updateState_notChecked() [all …]
|
H A D | ZenModeRepeatCallersPreferenceControllerTest.java | 28 import android.app.NotificationManager; 60 private NotificationManager mNotificationManager; 64 private NotificationManager.Policy mPolicy; 114 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)). in updateState_Priority() 126 when(mBackend.isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) in updateState_Priority_anyCallers() 129 NotificationManager.Policy.PRIORITY_SENDERS_ANY); in updateState_Priority_anyCallers() 131 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) in updateState_Priority_anyCallers() 146 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_EnableRepeatCallers() 156 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_DisableRepeatCallers()
|
H A D | ZenModeBackendTest.java | 3 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_ANYONE; 4 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_IMPORTANT; 5 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_NONE; 6 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS; 7 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS; 10 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_ANY; 11 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_CONTACTS; 12 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_STARRED; 26 import android.app.NotificationManager; 27 import android.app.NotificationManager.Policy; [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/notification/zen/ |
H A D | ZenModeBackend.java | 26 import android.app.NotificationManager; 65 protected NotificationManager.Policy mPolicy; 66 private final NotificationManager mNotificationManager; 102 NotificationManager.from(mContext).setZenMode(zenMode, null, TAG); in setZenMode() 148 NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)) { in getPriorityMessageSenders() 278 case NotificationManager.Policy.PRIORITY_SENDERS_ANY: in getKeyFromSetting() 280 case NotificationManager.Policy.PRIORITY_SENDERS_CONTACTS: in getKeyFromSetting() 282 case NotificationManager.Policy.PRIORITY_SENDERS_STARRED: in getKeyFromSetting() 309 case NotificationManager.Policy.CONVERSATION_SENDERS_NONE: in getConversationSummary() 364 public NotificationManager.Policy getConsolidatedPolicy() { in getConsolidatedPolicy() [all …]
|
H A D | ZenOnboardingActivity.java | 20 import android.app.NotificationManager; 21 import android.app.NotificationManager.Policy; 55 private NotificationManager mNm; 61 setNotificationManager(getSystemService(NotificationManager.class)); in onCreate() 107 protected void setNotificationManager(NotificationManager nm) { in setNotificationManager() 124 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in save() 127 NotificationManager.Policy newPolicy = new NotificationManager.Policy( in save() 131 NotificationManager.Policy.getAllSuppressedVisualEffects()); in save() 160 NotificationManager nm = context.getSystemService(NotificationManager.class); in wasZenUpdated() 161 if (NotificationManager.Policy.areAllVisualEffectsSuppressed( in wasZenUpdated()
|
H A D | ZenModeVisEffectsCustomPreferenceController.java | 19 import android.app.NotificationManager; 37 NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT 38 | NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK 39 | NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS 40 | NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 75 NotificationManager.Policy.areAllVisualEffectsSuppressed( in areCustomOptionsSelected()
|
H A D | ZenModeBlockedEffectsSettings.java | 19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT; 22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS; 23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
H A D | NotificationChannelController.java | 20 import android.app.NotificationManager; 69 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 78 NotificationManager.IMPORTANCE_LOW); in createAll() 85 NotificationManager.IMPORTANCE_LOW in createAll() 92 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 95 context.getSystemService(NotificationManager.class) in createAll() 99 NotificationManager.IMPORTANCE_HIGH), in createAll() 102 NotificationManager.IMPORTANCE_LOW), in createAll() 105 NotificationManager.IMPORTANCE_HIGH), in createAll() 151 NotificationManager.IMPORTANCE_DEFAULT); in migrateVoicemailNotificationSettings() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A D | NotificationChannels.java | 18 import android.app.NotificationManager; 46 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 49 NotificationManager.IMPORTANCE_MAX); in createAll() 61 NotificationManager.IMPORTANCE_HIGH); in createAll() 66 NotificationManager.IMPORTANCE_MIN); in createAll() 72 ? NotificationManager.IMPORTANCE_DEFAULT in createAll() 73 : NotificationManager.IMPORTANCE_LOW); in createAll() 78 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 98 NotificationManager.IMPORTANCE_MAX)); in createAll() 110 name, NotificationManager.IMPORTANCE_HIGH); // pop on screen in createScreenshotChannel()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/ |
H A D | NotificationChannelManager.java | 21 import android.app.NotificationManager; 57 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels() 100 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getAllExistingChannelIds() 122 NotificationManager.IMPORTANCE_MAX); in createIncomingCallChannel() 128 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createIncomingCallChannel() 136 NotificationManager.IMPORTANCE_DEFAULT); in createOngoingCallChannel() 142 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createOngoingCallChannel() 150 NotificationManager.IMPORTANCE_DEFAULT); in createMissedCallChannel() 156 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createMissedCallChannel() 164 NotificationManager.IMPORTANCE_DEFAULT); in createDefaultChannel() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
H A D | ForegroundServiceControllerTest.java | 34 import android.app.NotificationManager; 179 NotificationManager.IMPORTANCE_DEFAULT); in testNeedsDisclosureAfterRemovingUnrelatedNotification() 202 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 208 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 214 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 219 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 224 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 247 NotificationManager.IMPORTANCE_DEFAULT); in testDisclosureBasic() 264 NotificationManager.IMPORTANCE_DEFAULT); in testDisclosureBasic() 305 NotificationManager.IMPORTANCE_DEFAULT); in testDisclosureBasic() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | ZenModeControllerImplTest.java | 25 import android.app.NotificationManager; 53 NotificationManager mNm; 66 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp() 94 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOffShadeSuppressed() 103 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 104 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 114 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed() 115 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
H A D | NotificationChannelManager.java | 20 import android.app.NotificationManager; 77 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 85 importance = NotificationManager.IMPORTANCE_MAX; in createChannel() 93 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 101 importance = NotificationManager.IMPORTANCE_LOW; in createChannel() 109 importance = NotificationManager.IMPORTANCE_LOW; in createChannel() 117 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 125 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 145 private NotificationManager getNotificationManager(Context context) { in getNotificationManager() 146 return context.getSystemService(NotificationManager.class); in getNotificationManager()
|
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ZenModeExtractorTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 32 import android.app.NotificationManager; 63 new NotificationManager.Policy(0,0,0)); in testExtractIntercepted() 78 new NotificationManager.Policy(0,0,0)); in testExtractVisualDisturbancesNotIntercepted() 93 new NotificationManager.Policy(0,0,0, SUPPRESSED_EFFECT_PEEK in testExtractVisualDisturbancesIntercepted() 98 assertEquals(NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK in testExtractVisualDisturbancesIntercepted() 99 | NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST, in testExtractVisualDisturbancesIntercepted()
|
H A D | NotificationComparatorTest.java | 31 import android.app.NotificationManager; 138 mRecordMinCall.setSystemImportance(NotificationManager.IMPORTANCE_MIN); in setUp() 148 mRecordHighCall.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 168 mRecordInlineReply.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 177 mRecordSms.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 192 mRecordContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 198 mRecordUrgent.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 208 mRecordCheater.setSystemImportance(NotificationManager.IMPORTANCE_LOW); in setUp() 216 mRecordEmail.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 244 mRecordColorized.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | BiometricNotificationUtils.java | 22 import android.app.NotificationManager; 48 final NotificationManager notificationManager = in showReEnrollmentNotification() 49 context.getSystemService(NotificationManager.class); in showReEnrollmentNotification() 110 final NotificationManager notificationManager = in showNotificationHelper() 111 context.getSystemService(NotificationManager.class); in showNotificationHelper() 113 NotificationManager.IMPORTANCE_HIGH); in showNotificationHelper() 136 final NotificationManager notificationManager = in cancelReEnrollNotification() 137 context.getSystemService(NotificationManager.class); in cancelReEnrollNotification() 146 final NotificationManager notificationManager = in cancelBadCalibrationNotification() 147 context.getSystemService(NotificationManager.class); in cancelBadCalibrationNotification()
|
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/shared/ |
H A D | NotificationHandler.java | 22 import android.app.NotificationManager; 61 NotificationManager notificationManager = in postNotification() 62 context.getSystemService(NotificationManager.class); in postNotification() 117 NotificationManager notificationManager = in postNotificationForLegacyTapToRead() 118 context.getSystemService(NotificationManager.class); in postNotificationForLegacyTapToRead() 134 NotificationManager notificationManager = in cancelAllTapToReadNotifications() 135 context.getSystemService(NotificationManager.class); in cancelAllTapToReadNotifications() 145 @NonNull NotificationManager notificationManager, int id) { in findSBN() 157 NotificationManager notificationManager = in removeNotification() 158 context.getSystemService(NotificationManager.class); in removeNotification()
|
/aosp12/packages/apps/Settings/src/com/android/settings/sim/ |
H A D | SimSelectNotification.java | 40 import android.app.NotificationManager; 218 NotificationManager.IMPORTANCE_LOW); in createSimSelectNotification() 233 NotificationManager notificationManager = in createSimSelectNotification() 240 NotificationManager notificationManager = in cancelSimSelectNotification() 252 NotificationManager.IMPORTANCE_HIGH); in createEnableMmsNotification() 275 NotificationManager notificationManager = in createEnableMmsNotification() 282 NotificationManager notificationManager = in cancelEnableMmsNotification() 301 NotificationManager.IMPORTANCE_HIGH); in createSimCombinationWarningNotification() 322 NotificationManager notificationManager = in createSimCombinationWarningNotification() 323 context.getSystemService(NotificationManager.class); in createSimCombinationWarningNotification() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiNotificationManager.java | 25 import android.app.NotificationManager; 45 private NotificationManager mNotificationManager; 51 private NotificationManager getNotificationManagerForCurrentUser() { in getNotificationManagerForCurrentUser() 54 UserHandle.CURRENT).getSystemService(NotificationManager.class); in getNotificationManagerForCurrentUser() 78 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels() 85 NotificationManager.IMPORTANCE_HIGH); in createNotificationChannels() 93 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
|
/aosp12/packages/services/Car/service/src/com/android/car/admin/ |
H A D | NotificationHelper.java | 24 import android.app.NotificationManager; 71 @NotificationManager.Importance int importance) { in newNotificationBuilder() 76 case NotificationManager.IMPORTANCE_DEFAULT: in newNotificationBuilder() 80 case NotificationManager.IMPORTANCE_HIGH: in newNotificationBuilder() 87 NotificationManager notificationMgr = context.getSystemService(NotificationManager.class); in newNotificationBuilder()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/ |
H A D | TvNotificationPanel.java | 20 import android.app.NotificationManager; 60 new Intent(NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL)); in togglePanel() 63 NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL); in togglePanel() 71 new Intent(NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL)); in animateExpandNotificationsPanel() 74 NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL); in animateExpandNotificationsPanel() 83 NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); in animateCollapsePanels() 88 NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); in animateCollapsePanels()
|