/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; 42 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 45 NotificationManager.IMPORTANCE_MAX); in createAll() 57 NotificationManager.IMPORTANCE_HIGH), in createAll() 61 NotificationManager.IMPORTANCE_LOW), in createAll() 65 NotificationManager.IMPORTANCE_MIN), in createAll() 70 ? NotificationManager.IMPORTANCE_DEFAULT in createAll() 71 : NotificationManager.IMPORTANCE_LOW), in createAll() 82 NotificationManager.IMPORTANCE_MAX)); in createAll()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 19 import android.app.NotificationManager; 57 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 64 NotificationManager.IMPORTANCE_LOW); in createAll() 68 context.getSystemService(NotificationManager.class) in createAll() 72 NotificationManager.IMPORTANCE_LOW), in createAll() 75 NotificationManager.IMPORTANCE_HIGH), in createAll() 78 NotificationManager.IMPORTANCE_LOW), in createAll() 88 context.getSystemService(NotificationManager.class) in createAll() 102 return context.getSystemService(NotificationManager.class) in getChannel() 118 NotificationManager.IMPORTANCE_DEFAULT); in migrateVoicemailNotificationSettings() [all …]
|
/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; 31 import android.app.NotificationManager; 330 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXml() 389 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXmlForBackup() 562 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXml_backup() [all …]
|
D | NotificationChannelExtractorTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 20 import static android.app.NotificationManager.IMPORTANCE_HIGH; 21 import static android.app.NotificationManager.IMPORTANCE_LOW;
|
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/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoService.java | 19 import android.app.NotificationManager; 58 NotificationManager noman = context.getSystemService(NotificationManager.class); in setupNotificationChannels() 61 NotificationManager.IMPORTANCE_DEFAULT); in setupNotificationChannels() 73 NotificationManager noman = getSystemService(NotificationManager.class); in onStartJob() 147 NotificationManager noman = context.getSystemService(NotificationManager.class); in registerJob()
|
/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/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/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/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 19 import android.app.NotificationManager; 31 private NotificationManager mNotificationManager; 37 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 28 import android.app.NotificationManager; 94 = NotificationManager.INTERRUPTION_FILTER_ALL; 101 = NotificationManager.INTERRUPTION_FILTER_PRIORITY; 108 = NotificationManager.INTERRUPTION_FILTER_NONE; 115 = NotificationManager.INTERRUPTION_FILTER_ALARMS; 124 = NotificationManager.INTERRUPTION_FILTER_UNKNOWN; 146 NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF; 152 NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON; 1325 public static final int VISIBILITY_NO_OVERRIDE = NotificationManager.VISIBILITY_NO_OVERRIDE; 1333 private @NotificationManager.Importance int mImportance; [all …]
|
/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() 448 "third_channel", "third_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenThreeInBundle() 466 "third_channel", "third_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenFourInBundle() 468 "fourth_channel", "fourth_channel", NotificationManager.IMPORTANCE_LOW); in testBindNotification_NumChannelsTextListsChannelsWhenFourInBundle() 516 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_NONE); in testbindNotification_ChannelDisabledTextVisibleWhenDisabled() 547 mDefaultNotificationChannel.setImportance(NotificationManager.IMPORTANCE_NONE); in testBindNotification_ChannelDisabledTextShowsForDefaultChannel() 569 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_LOW); in testDoesNotUpdateNotificationChannelAfterImportanceChanged() 597 mNotificationChannel.setImportance(NotificationManager.IMPORTANCE_UNSPECIFIED); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() [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/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/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WrongPasswordNotifier.java | 20 import android.app.NotificationManager; 46 private final NotificationManager mNotificationManager; 53 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in WrongPasswordNotifier()
|
/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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 20 import android.app.NotificationManager; 175 context.getSystemService(NotificationManager.class) in onShowCaptivePortalNotification() 187 context.getSystemService(NotificationManager.class) in onShowNoDataServiceNotification() 196 context.getSystemService(NotificationManager.class).cancelAll(); in onCancelAllNotifications() 240 context.getSystemService(NotificationManager.class) in createNotificationChannels() 245 NotificationManager.IMPORTANCE_DEFAULT)); in createNotificationChannels()
|