Home
last modified time | relevance | path

Searched refs:NotificationManager (Results 1 – 25 of 164) sorted by relevance

1234567

/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java20 import android.app.NotificationManager;
56 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll()
61 NotificationManager.IMPORTANCE_LOW); in createAll()
68 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
77 NotificationManager.IMPORTANCE_LOW); in createAll()
83 NotificationManager.IMPORTANCE_LOW); in createAll()
92 NotificationManager.IMPORTANCE_LOW); in createAll()
99 NotificationManager.IMPORTANCE_LOW); in createAll()
105 NotificationManager.IMPORTANCE_LOW); in createAll()
111 NotificationManager.IMPORTANCE_HIGH); in createAll()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java29 import android.app.NotificationManager;
72 fsc.addNotification(sbn_user1_app1_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
73 fsc.addNotification(sbn_user2_app2_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
74 fsc.addNotification(sbn_user1_app3_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
75 fsc.addNotification(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
76 fsc.addNotification(sbn_user2_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
82 fsc.updateNotification(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
83 fsc.updateNotification(sbn_user2_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
88 fsc.updateNotification(sbn_user2_app2_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
89 fsc.updateNotification(sbn_user1_app3_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNotificationCRUD_dungeon()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java19 import android.app.NotificationManager;
58 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
67 NotificationManager.IMPORTANCE_LOW); in createAll()
74 NotificationManager.IMPORTANCE_LOW in createAll()
79 context.getSystemService(NotificationManager.class) in createAll()
83 NotificationManager.IMPORTANCE_LOW), in createAll()
86 NotificationManager.IMPORTANCE_HIGH), in createAll()
89 NotificationManager.IMPORTANCE_LOW), in createAll()
100 context.getSystemService(NotificationManager.class) in createAll()
114 return context.getSystemService(NotificationManager.class) in getChannel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java18 import android.app.NotificationManager;
43 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll()
46 NotificationManager.IMPORTANCE_MAX); in createAll()
58 NotificationManager.IMPORTANCE_HIGH); in createAll()
63 NotificationManager.IMPORTANCE_MIN); in createAll()
69 ? NotificationManager.IMPORTANCE_DEFAULT in createAll()
70 : NotificationManager.IMPORTANCE_LOW); in createAll()
75 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
102 NotificationManager.IMPORTANCE_MAX)); in createAll()
114 name, NotificationManager.IMPORTANCE_HIGH); // pop on screen in createScreenshotChannel()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeExtractorTest.java19 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()
DNotificationComparatorTest.java28 import android.app.NotificationManager;
113 mRecordMinCall.setUserImportance(NotificationManager.IMPORTANCE_MIN); in setUp()
122 mRecordHighCall.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
131 mRecordDefaultMedia.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
138 mRecordInlineReply.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
147 mRecordSms.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
155 mRecordStarredContact.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
162 mRecordContact.setUserImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
168 mRecordUrgent.setUserImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
178 mRecordCheater.setUserImportance(NotificationManager.IMPORTANCE_LOW); in setUp()
[all …]
DImportanceExtractorTest.java25 import android.app.NotificationManager;
87 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelNone()
89 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone()
96 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getUserImportance()); in testAppPreferenceChannelNone()
106 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelPreference()
108 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
114 assertEquals(r.getUserImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
DZenModeFilteringTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
34 import android.app.NotificationManager;
125 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed()
137 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects(); in testSuppressDNDInfo_yes_WrongId()
148 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects(); in testSuppressDNDInfo_yes_WrongPackage()
159 config.suppressedVisualEffects = NotificationManager.Policy.getAllSuppressedVisualEffects(); in testSuppressDNDInfo_no()
DRankingHelperTest.java18 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;
47 import android.app.NotificationManager;
122 private NotificationManager.Policy mTestNotificationPolicy;
179 mTestNotificationPolicy = new NotificationManager.Policy(0, 0, 0, 0, in setUp()
180 NotificationManager.Policy.STATE_CHANNELS_BYPASSING_DND); in setUp()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java27 import android.app.NotificationManager;
49 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class);
87 NotificationManager.IMPORTANCE_MIN); in testInheritFromLegacy_keepsUserLockedLegacySettings()
88 legacyChannel.setImportance(NotificationManager.IMPORTANCE_NONE);; in testInheritFromLegacy_keepsUserLockedLegacySettings()
96 assertEquals(NotificationManager.IMPORTANCE_NONE, newChannel.getImportance()); in testInheritFromLegacy_keepsUserLockedLegacySettings()
103 NotificationManager.IMPORTANCE_MIN); in testInheritFromLegacy_dropsUnlockedLegacySettings()
109 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_dropsUnlockedLegacySettings()
118 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_noLegacyExists()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java25 import android.app.NotificationManager;
50 NotificationManager mNm;
59 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp()
83 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
93 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR; in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
103 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java19 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/main/java/com/example/android/support/appnavigation/app/
DNotificationsActivity.java20 import android.app.NotificationManager;
63 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostDirect()
78 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostInterstitial()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java33 import android.app.NotificationManager;
60 private NotificationManager mNotificationManager;
82 NotificationManager.Policy alarmsEnabledPolicy = new NotificationManager.Policy( in setup()
83 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0); in setup()
170 new NotificationManager.Policy( in testNoAlarmWarning()
171 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0)); in testNoAlarmWarning()
186 new NotificationManager.Policy(0, 0, 0, 0)); in testAlarmWarning()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotServiceErrorReceiver.java19 import android.app.NotificationManager;
35 NotificationManager nm = (NotificationManager) in onReceive()
/frameworks/support/media/src/androidTest/java/androidx/media/
DMockMediaSessionService2.java21 import android.app.NotificationManager;
41 private NotificationManager mNotificationManager;
47 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
84 NotificationManager.IMPORTANCE_DEFAULT); in onUpdateNotification()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java19 import android.app.NotificationManager;
62 private final NotificationManager mNotificationManager;
91 private NotificationManager.Policy mNotificationPolicy;
99 mNotificationManager = context.getSystemService(NotificationManager.class); in SeekBarVolumizer()
101 mAllowAlarms = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer()
103 mAllowMedia = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer()
423 filter.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED); in setListening()
424 filter.addAction(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED); in setListening()
450 } else if (NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED.equals(action)) { in onReceive()
453 } else if (NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED.equals(action)) { in onReceive()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestAlertActivity.java4 import android.app.NotificationManager;
27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java21 import android.app.NotificationManager;
59 private final NotificationManager mNoMan;
86 mNoMan = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenModeControllerImpl()
108 return (mConfig.suppressedVisualEffects & NotificationManager.Policy in areNotificationsHiddenInShade()
166 filter.addAction(NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED); in onUserSwitched()
174 return NotificationManager.from(mContext).getEffectsSuppressor(); in getEffectsSuppressor()
179 return NotificationManager.from(mContext) in isCountdownConditionSupported()
236 if (NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED.equals(intent.getAction())) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakReporterTest.java26 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/MtpDocumentsProvider/src/com/android/mtp/
DServiceIntentSender.java22 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/support/navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/
DAndroidFragment.java20 import android.app.NotificationManager;
66 NotificationManager notificationManager = (NotificationManager) in onViewCreated()
70 "deeplink", "Deep Links", NotificationManager.IMPORTANCE_HIGH)); in onViewCreated()
/frameworks/base/core/java/android/app/
DRecoverableSecurityException.java117 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/
DMockLockSettingsContext.java20 import android.app.NotificationManager;
32 private NotificationManager mNotificationManager;
39 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java19 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()

1234567