/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 20 import android.app.NotificationManager; 52 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 57 NotificationManager.IMPORTANCE_LOW)); in createAll() 62 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 70 NotificationManager.IMPORTANCE_LOW)); in createAll() 75 NotificationManager.IMPORTANCE_LOW)); in createAll() 82 NotificationManager.IMPORTANCE_LOW)); in createAll() 87 NotificationManager.IMPORTANCE_LOW)); in createAll() 92 NotificationManager.IMPORTANCE_LOW)); in createAll() 97 NotificationManager.IMPORTANCE_HIGH); in createAll() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 21 import android.app.NotificationManager; 67 fsc.addNotification(sbn_user1_app1_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 68 fsc.addNotification(sbn_user2_app2_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 69 fsc.addNotification(sbn_user1_app3_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 70 fsc.addNotification(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 71 fsc.addNotification(sbn_user2_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 77 fsc.updateNotification(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 78 fsc.updateNotification(sbn_user2_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 83 fsc.updateNotification(sbn_user2_app2_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() 84 fsc.updateNotification(sbn_user1_app3_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 18 import android.app.NotificationManager; 38 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 43 NotificationManager.IMPORTANCE_HIGH), in createAll() 47 NotificationManager.IMPORTANCE_LOW), in createAll() 51 NotificationManager.IMPORTANCE_MIN), in createAll() 56 ? NotificationManager.IMPORTANCE_DEFAULT in createAll() 57 : NotificationManager.IMPORTANCE_LOW) in createAll() 66 NotificationManager.IMPORTANCE_MAX)); in createAll()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 19 import android.app.NotificationManager; 55 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 59 context.getSystemService(NotificationManager.class) in createAll() 63 NotificationManager.IMPORTANCE_LOW), in createAll() 66 NotificationManager.IMPORTANCE_DEFAULT), in createAll() 69 NotificationManager.IMPORTANCE_HIGH), in createAll() 72 NotificationManager.IMPORTANCE_LOW), in createAll() 89 return context.getSystemService(NotificationManager.class) in getChannel() 105 NotificationManager.IMPORTANCE_DEFAULT); in migrateVoicemailNotificationSettings() 112 context.getSystemService(NotificationManager.class) in migrateVoicemailNotificationSettings()
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | ImportanceExtractorTest.java | 25 import android.app.NotificationManager; 86 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelNone() 88 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone() 95 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getUserImportance()); in testAppPreferenceChannelNone() 105 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelPreference() 107 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference() 113 assertEquals(r.getUserImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | NotificationComparatorTest.java | 28 import android.app.NotificationManager; 109 mRecordMinCall.setUserImportance(NotificationManager.IMPORTANCE_MIN); in setUp() 119 mRecordHighCall.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 128 mRecordDefaultMedia.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 135 mRecordInlineReply.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 143 mRecordSms.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 150 mRecordStarredContact.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 157 mRecordContact.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 163 mRecordUrgent.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 173 mRecordCheater.setUserImportance(NotificationManager.IMPORTANCE_LOW); in setUp() [all …]
|
D | RankingHelperTest.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 19 import static android.app.NotificationManager.IMPORTANCE_HIGH; 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 21 import static android.app.NotificationManager.IMPORTANCE_MAX; 22 import static android.app.NotificationManager.IMPORTANCE_NONE; 23 import static android.app.NotificationManager.IMPORTANCE_UNSPECIFIED; 46 import android.app.NotificationManager; 297 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXml() 356 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXmlForBackup() 426 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXml_backup() [all …]
|
D | NotificationRecordTest.java | 32 import android.app.NotificationManager; 76 new NotificationChannel(channelId, "test", NotificationManager.IMPORTANCE_DEFAULT); 84 new NotificationChannel(channelIdLong, "long", NotificationManager.IMPORTANCE_DEFAULT); 87 NotificationManager.IMPORTANCE_UNSPECIFIED); 304 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_preUpgrade() 309 defaultChannel.setImportance(NotificationManager.IMPORTANCE_LOW); in testImportance_locked_preUpgrade() 316 assertEquals(NotificationManager.IMPORTANCE_LOW, record.getImportance()); in testImportance_locked_preUpgrade() 321 defaultChannel.setImportance(NotificationManager.IMPORTANCE_UNSPECIFIED); in testImportance_locked_unspecified_preUpgrade() 328 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_locked_unspecified_preUpgrade() 337 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade()
|
/frameworks/support/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
D | NotificationsActivity.java | 22 import android.app.NotificationManager; 62 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostDirect() 77 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostInterstitial()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotServiceErrorReceiver.java | 19 import android.app.NotificationManager; 35 NotificationManager nm = (NotificationManager) in onReceive()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | TestAlertActivity.java | 4 import android.app.NotificationManager; 27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MockLockSettingsContext.java | 19 import android.app.NotificationManager; 29 private NotificationManager mNotificationManager; 34 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | ServiceIntentSender.java | 22 import android.app.NotificationManager; 44 NotificationManager.IMPORTANCE_LOW); in ServiceIntentSender() 45 final NotificationManager notificationManager = in ServiceIntentSender() 46 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ServiceIntentSender()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 26 import android.app.NotificationManager; 50 private NotificationManager mNotificationManager; 58 mNotificationManager = mock(NotificationManager.class); in setup() 59 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoService.java | 18 import android.app.NotificationManager; 57 NotificationManager noman = getSystemService(NotificationManager.class); in onStartJob() 128 NotificationManager noman = context.getSystemService(NotificationManager.class); in registerJob()
|
/frameworks/base/core/java/android/app/ |
D | RecoverableSecurityException.java | 117 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() 123 NotificationManager.IMPORTANCE_DEFAULT)); in showAsNotification() 147 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 20 import android.app.NotificationManager; 124 context.getSystemService(NotificationManager.class) in onShowCaptivePortalNotification() 136 context.getSystemService(NotificationManager.class) in onShowNoDataServiceNotification() 145 context.getSystemService(NotificationManager.class).cancelAll(); in onCancelAllNotifications() 183 context.getSystemService(NotificationManager.class) in createNotificationChannels() 188 NotificationManager.IMPORTANCE_DEFAULT)); in createNotificationChannels()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationInfoTest.java | 41 import android.app.NotificationManager; 120 TEST_CHANNEL, TEST_CHANNEL_NAME, NotificationManager.IMPORTANCE_LOW); in setUp() 123 NotificationManager.IMPORTANCE_LOW); in setUp() 422 "third_channel", "third_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenThreeInBundle() 440 "third_channel", "third_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenFourInBundle() 442 "fourth_channel", "fourth_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenFourInBundle() 490 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_NONE); in testbindNotification_ChannelDisabledTextVisibleWhenDisabled() 508 mDefaultNotificationChannel.setImportance(NotificationManager.IMPORTANCE_NONE); in testBindNotification_ChannelDisabledTextShowsForDefaultChannel() 530 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_LOW); in testDoesNotUpdateNotificationChannelAfterImportanceChanged() 558 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_UNSPECIFIED); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierServiceStateTracker.java | 21 import android.app.NotificationManager; 155 NotificationManager notificationManager = (NotificationManager) in sendNotification() 191 NotificationManager notificationManager = (NotificationManager) in cancelNotification()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 35 import android.app.NotificationManager; 96 = NotificationManager.INTERRUPTION_FILTER_ALL; 103 = NotificationManager.INTERRUPTION_FILTER_PRIORITY; 110 = NotificationManager.INTERRUPTION_FILTER_NONE; 117 = NotificationManager.INTERRUPTION_FILTER_ALARMS; 126 = NotificationManager.INTERRUPTION_FILTER_UNKNOWN; 148 NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 154 NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 1320 public static final int VISIBILITY_NO_OVERRIDE = NotificationManager.VISIBILITY_NO_OVERRIDE; 1328 private @NotificationManager.Importance int mImportance; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImpl.java | 21 import android.app.NotificationManager; 60 private final NotificationManager mNoMan; 86 mNoMan = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenModeControllerImpl() 151 filter.addAction(NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED); in onUserSwitched() 159 return NotificationManager.from(mContext).getEffectsSuppressor(); in getEffectsSuppressor() 164 return NotificationManager.from(mContext) in isCountdownConditionSupported() 239 if (NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED.equals(intent.getAction())) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 27 import android.app.NotificationManager; 46 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 19 import android.app.NotificationManager; 121 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 132 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 140 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/app/ |
D | MainActivity.java | 6 import android.app.NotificationManager; 224 NotificationManager notificationManager = in sendNotification() 225 (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in sendNotification() 230 NotificationManager notificationManager = in cancelNotification() 231 (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in cancelNotification() 262 NotificationManager notificationManager = in sendNotificationMessage() 263 (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in sendNotificationMessage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SysuiRestartReceiver.java | 17 import android.app.NotificationManager; 33 NotificationManager.from(context).cancel(pkg, SystemMessage.NOTE_PLUGIN); in onReceive()
|