/aosp14/frameworks/base/core/java/com/android/internal/notification/ |
H A D | SystemNotificationChannels.java | 21 import android.app.NotificationManager; 74 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 79 NotificationManager.IMPORTANCE_LOW); in createAll() 86 NotificationManager.IMPORTANCE_LOW); in createAll() 92 NotificationManager.IMPORTANCE_LOW); in createAll() 101 NotificationManager.IMPORTANCE_LOW); in createAll() 115 NotificationManager.IMPORTANCE_LOW); in createAll() 121 NotificationManager.IMPORTANCE_LOW); in createAll() 135 NotificationManager.IMPORTANCE_LOW); in createAll() 142 NotificationManager.IMPORTANCE_LOW); in createAll() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A D | NotificationChannels.java | 18 import android.app.NotificationManager; 57 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 60 NotificationManager.IMPORTANCE_MAX); in createAll() 72 NotificationManager.IMPORTANCE_HIGH); in createAll() 77 NotificationManager.IMPORTANCE_MIN); in createAll() 82 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 89 ? NotificationManager.IMPORTANCE_DEFAULT in createAll() 90 : NotificationManager.IMPORTANCE_LOW); in createAll() 95 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 116 NotificationManager.IMPORTANCE_MAX)); in createAll() [all …]
|
/aosp14/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 | 36 import android.app.NotificationManager; 156 mRecordMinCall.setSystemImportance(NotificationManager.IMPORTANCE_MIN); in setUp() 166 mRecordHighCall.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 195 mRecordSms.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 210 mRecordContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 216 mRecordSystemMax.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 222 mRecordUrgent.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 232 mRecordCheater.setSystemImportance(NotificationManager.IMPORTANCE_LOW); in setUp() 240 mRecordEmail.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 268 mRecordColorized.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() [all …]
|
H A D | ImportanceExtractorTest.java | 27 import android.app.NotificationManager; 86 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone() 93 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getImportance()); in testAppPreferenceChannelNone() 103 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference() 109 assertEquals(r.getImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | BiometricNotificationUtils.java | 22 import android.app.NotificationManager; 62 final NotificationManager notificationManager = in showReEnrollmentNotification() 63 context.getSystemService(NotificationManager.class); in showReEnrollmentNotification() 171 final NotificationManager notificationManager = in showNotificationHelper() 172 context.getSystemService(NotificationManager.class); in showNotificationHelper() 174 NotificationManager.IMPORTANCE_HIGH); in showNotificationHelper() 198 final NotificationManager notificationManager = in cancelFaceReEnrollNotification() 199 context.getSystemService(NotificationManager.class); in cancelFaceReEnrollNotification() 208 final NotificationManager notificationManager = in cancelFaceEnrollNotification() 218 final NotificationManager notificationManager = in cancelFingerprintEnrollNotification() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | ZenModeControllerImplTest.java | 26 import android.app.NotificationManager; 59 NotificationManager mNm; 75 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp() 105 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOffShadeSuppressed() 114 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 115 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 125 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed() 126 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/ |
H A D | TvNotificationPanel.java | 20 import android.app.NotificationManager; 61 new Intent(NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL)); in togglePanel() 64 NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL); in togglePanel() 72 new Intent(NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL)); in animateExpandNotificationsPanel() 75 NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL); in animateExpandNotificationsPanel() 84 NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); in animateCollapsePanels() 89 NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); in animateCollapsePanels()
|
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
H A D | NotificationActivity.java | 22 import android.app.NotificationManager; 65 NotificationManager notificationManager = getSystemService(NotificationManager.class); in postNotification() 72 int importance = NotificationManager.IMPORTANCE_HIGH; in createNotificationChannel() 77 NotificationManager notificationManager = getSystemService(NotificationManager.class); in createNotificationChannel()
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoService.java | 24 import android.app.NotificationManager; 60 NotificationManager noman = context.getSystemService(NotificationManager.class); in setupNotificationChannels() 63 NotificationManager.IMPORTANCE_DEFAULT); in setupNotificationChannels() 76 NotificationManager noman = getSystemService(NotificationManager.class); in onStartJob() 127 NotificationManager noman = context.getSystemService(NotificationManager.class); in notifyCat() 175 NotificationManager noman = context.getSystemService(NotificationManager.class); in registerJob()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | ZenModeControllerImpl.java | 20 import android.app.NotificationManager; 70 private final NotificationManager mNoMan; 82 private NotificationManager.Policy mConsolidatedNotificationPolicy; 94 filter.addAction(NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED); 135 mNoMan = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenModeControllerImpl() 164 & NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST) != 0; in areNotificationsHiddenInShade() 209 public NotificationManager.Policy getConsolidatedPolicy() { in getConsolidatedPolicy() 221 return NotificationManager.from(mContext).getEffectsSuppressor(); in getEffectsSuppressor() 226 return NotificationManager.from(mContext) in isCountdownConditionSupported() 265 private void fireConsolidatedPolicyChanged(NotificationManager.Policy policy) { in fireConsolidatedPolicyChanged() [all …]
|
H A D | ZenModeController.java | 19 import android.app.NotificationManager; 34 NotificationManager.Policy getConsolidatedPolicy(); in getConsolidatedPolicy() 52 default void onConsolidatedPolicyChanged(NotificationManager.Policy policy) {} in onConsolidatedPolicyChanged()
|
H A D | BatteryStateNotifier.kt | 21 import android.app.NotificationManager 36 val noMan: NotificationManager, 54 NotificationManager.IMPORTANCE_DEFAULT)
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
H A D | EnableZenModeDialogTest.java | 35 import android.app.NotificationManager; 61 private NotificationManager mNotificationManager; 85 NotificationManager.Policy alarmsEnabledPolicy = new NotificationManager.Policy( in setup() 86 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0); in setup() 173 new NotificationManager.Policy( in testNoAlarmWarning() 174 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0)); in testNoAlarmWarning() 189 new NotificationManager.Policy(0, 0, 0, 0)); in testAlarmWarning()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
H A D | CsdWarningDialogTest.java | 28 import android.app.NotificationManager; 48 private NotificationManager mNotificationManager; 53 mNotificationManager = mock(NotificationManager.class); in setup() 54 getContext().addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
|
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | TestAlertActivity.java | 4 import android.app.NotificationManager; 27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationComparator.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 21 import android.app.NotificationManager; 149 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 169 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople() 183 if (record.getImportance() < NotificationManager.IMPORTANCE_HIGH) { in isSystemMax()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | AssistantFeedbackController.java | 23 import android.app.NotificationManager; 119 if (oldImportance < NotificationManager.IMPORTANCE_DEFAULT in getFeedbackStatus() 120 && newImportance >= NotificationManager.IMPORTANCE_DEFAULT) { in getFeedbackStatus() 122 } else if (oldImportance >= NotificationManager.IMPORTANCE_DEFAULT in getFeedbackStatus() 123 && newImportance < NotificationManager.IMPORTANCE_DEFAULT) { in getFeedbackStatus()
|
/aosp14/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | SchedulerService.java | 21 import android.app.NotificationManager; 32 getSystemService(NotificationManager.class).createNotificationChannel( in onStartCommand() 34 NotificationManager.IMPORTANCE_DEFAULT)); in onStartCommand()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | LeakReporterTest.java | 28 import android.app.NotificationManager; 56 private NotificationManager mNotificationManager; 67 mNotificationManager = mock(NotificationManager.class); in setup() 68 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
|
/aosp14/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/ |
H A D | SimpleFgService.java | 20 import android.app.NotificationManager; 77 final NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() 79 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_LOW)); in onCreate()
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A D | SeekBarVolumizer.java | 22 import android.app.NotificationManager; 114 private final NotificationManager mNotificationManager; 155 private NotificationManager.Policy mNotificationPolicy; 175 mNotificationManager = context.getSystemService(NotificationManager.class); in SeekBarVolumizer() 177 mAllowAlarms = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer() 179 mAllowMedia = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer() 616 filter.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED); in setListening() 617 filter.addAction(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED); in setListening() 663 } else if (NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED.equals(action)) { in onReceive() 666 } else if (NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED.equals(action)) { in onReceive() [all …]
|
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | WifiSoftApConfigChangedNotifier.java | 21 import android.app.NotificationManager; 48 NotificationManager notificationManager = in notifyUserOfConfigConversion() 49 context.getSystemService(NotificationManager.class); in notifyUserOfConfigConversion() 56 NotificationManager.IMPORTANCE_LOW); in notifyUserOfConfigConversion()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/ |
H A D | HighPriorityProvider.java | 22 import android.app.NotificationManager; 96 return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority() 114 if (notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in isHighPriorityConversation() 129 >= NotificationManager.IMPORTANCE_DEFAULT); in isNotificationEntryWithAtLeastOneImportantChild()
|
/aosp14/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | HeapDumpReceiver.java | 24 import android.app.NotificationManager; 146 NotificationManager nm = NotificationManager.from(context); in showDumpNotification() 150 NotificationManager.IMPORTANCE_DEFAULT)); in showDumpNotification() 186 NotificationManager.from(context).notify(NOTIFICATION_ID, builder.build()); in showDumpNotification()
|