Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java21 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()
108 NotificationManager.IMPORTANCE_HIGH); in createAll()
115 NotificationManager.IMPORTANCE_LOW); in createAll()
121 NotificationManager.IMPORTANCE_LOW); in createAll()
128 NotificationManager.IMPORTANCE_HIGH); in createAll()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/repository/
DFakeNotificationsSoundPolicyRepository.kt19 import android.app.NotificationManager
28 private val mutableNotificationPolicy = MutableStateFlow<NotificationManager.Policy?>(null)
29 override val notificationPolicy: StateFlow<NotificationManager.Policy?>
40 fun updateNotificationPolicy(policy: NotificationManager.Policy?) { in updateNotificationPolicy()
51 priorityCallSenders: Int = NotificationManager.Policy.PRIORITY_SENDERS_ANY,
52 priorityMessageSenders: Int = NotificationManager.Policy.CONVERSATION_SENDERS_NONE,
53 suppressedVisualEffects: Int = NotificationManager.Policy.SUPPRESSED_EFFECTS_UNSET,
54 state: Int = NotificationManager.Policy.STATE_UNSET,
55 priorityConversationSenders: Int = NotificationManager.Policy.CONVERSATION_SENDERS_NONE,
58 NotificationManager.Policy(
DNotificationsSoundPolicyRepository.kt19 import android.app.NotificationManager in <lambda>()
43 val notificationPolicy: StateFlow<NotificationManager.Policy?> in <lambda>()
51 private val notificationManager: NotificationManager,
68 addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED) in <lambda>()
69 addAction(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED) in <lambda>()
80 override val notificationPolicy: StateFlow<NotificationManager.Policy?> =
82 .filter { NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED == it } in <lambda>()
90 .filter { NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED == it } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java18 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 …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java20 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()
117 context.getSystemService(NotificationManager.class) in createAll()
[all …]
/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.java36 import android.app.NotificationManager;
146 mRecordMinCallNonInterruptive.setSystemImportance(NotificationManager.IMPORTANCE_MIN); in setUp()
156 mRecordMinCall.setSystemImportance(NotificationManager.IMPORTANCE_MIN); in setUp()
166 mRecordHighCall.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
178 mRecordHighCallStyle.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
186 mRecordInlineReply.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
195 mRecordSms.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
203 mRecordStarredContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
210 mRecordContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
216 mRecordSystemMax.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp()
[all …]
DImportanceExtractorTest.java24 import android.app.NotificationManager;
83 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone()
90 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getImportance()); in testAppPreferenceChannelNone()
100 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
106 assertEquals(r.getImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractorTest.kt19 import android.app.NotificationManager in <lambda>()
66 NotificationManager.Policy.ALL_PRIORITY_CATEGORIES.associateWith { in <lambda>()
67 it == NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS in <lambda>()
89 NotificationManager.Policy.ALL_PRIORITY_CATEGORIES.associateWith { in <lambda>()
90 it == NotificationManager.Policy.PRIORITY_CATEGORY_MEDIA in <lambda>()
110 for (category in NotificationManager.Policy.ALL_PRIORITY_CATEGORIES) { in <lambda>()
113 state = NotificationManager.Policy.STATE_UNSET, in <lambda>()
131 NotificationManager.Policy.ALL_PRIORITY_CATEGORIES.reduce { acc, value -> in <lambda>()
134 state = NotificationManager.Policy.STATE_PRIORITY_CHANNELS_BLOCKED, in <lambda>()
151 state = NotificationManager.Policy.STATE_PRIORITY_CHANNELS_BLOCKED, in <lambda>()
[all …]
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DNotificationActivity.java25 import android.app.NotificationManager;
76 NotificationManager notificationManager = getSystemService(NotificationManager.class); in postNotification()
83 int importance = NotificationManager.IMPORTANCE_HIGH; in createNotificationChannel()
88 NotificationManager notificationManager = getSystemService(NotificationManager.class); in createNotificationChannel()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/statusbar/notification/data/repository/
DNotificationsSoundPolicyRepositoryTest.kt19 import android.app.NotificationManager
51 @Mock private lateinit var notificationManager: NotificationManager
74 val values = mutableListOf<NotificationManager.Policy?>() in policyChanges_repositoryEmits()
80 triggerIntent(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED) in policyChanges_repositoryEmits()
98 triggerIntent(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED) in zenModeChanges_repositoryEmits()
116 NotificationManager.Policy(
122 NotificationManager.Policy(
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java26 import android.app.NotificationManager;
60 NotificationManager mNm;
76 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp()
107 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
116 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
117 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
127 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
128 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java24 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java23 import android.app.NotificationManager;
74 private final NotificationManager mNoMan;
86 private NotificationManager.Policy mConsolidatedNotificationPolicy;
98 filter.addAction(NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED);
140 mNoMan = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenModeControllerImpl()
180 & NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST) != 0; in areNotificationsHiddenInShade()
231 public NotificationManager.Policy getConsolidatedPolicy() { in getConsolidatedPolicy()
244 return NotificationManager.from(mContext).getEffectsSuppressor(); in getEffectsSuppressor()
249 return NotificationManager.from(mContext) in isCountdownConditionSupported()
278 private void fireConsolidatedPolicyChanged(NotificationManager.Policy policy) { in fireConsolidatedPolicyChanged()
[all …]
DZenModeController.java19 import android.app.NotificationManager;
34 NotificationManager.Policy getConsolidatedPolicy(); in getConsolidatedPolicy()
52 default void onConsolidatedPolicyChanged(NotificationManager.Policy policy) {} in onConsolidatedPolicyChanged()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DBiometricNotificationUtils.java22 import android.app.NotificationManager;
76 final NotificationManager notificationManager = in showReEnrollmentNotification()
77 context.getSystemService(NotificationManager.class); in showReEnrollmentNotification()
310 final NotificationManager notificationManager = in showNotificationHelper()
311 context.getSystemService(NotificationManager.class); in showNotificationHelper()
313 NotificationManager.IMPORTANCE_HIGH); in showNotificationHelper()
351 final NotificationManager notificationManager = in cancelFaceReEnrollNotification()
352 context.getSystemService(NotificationManager.class); in cancelFaceReEnrollNotification()
361 final NotificationManager notificationManager = in cancelFaceEnrollNotification()
362 context.getSystemService(NotificationManager.class); in cancelFaceEnrollNotification()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/data/repository/
DZenModeRepository.kt19 import android.app.NotificationManager
34 val consolidatedNotificationPolicy: Flow<NotificationManager.Policy?>
59 override val consolidatedNotificationPolicy: Flow<NotificationManager.Policy?> =
63 override fun onConsolidatedPolicyChanged(policy: NotificationManager.Policy?) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotServiceErrorReceiver.java19 import android.app.NotificationManager;
36 NotificationManager notificationManager = context.getSystemService( in onReceive()
37 NotificationManager.class); in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderImplTest.kt22 import android.app.NotificationManager
100 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowConversationFromAfterEvent()
120 importance = NotificationManager.IMPORTANCE_DEFAULT in testAvalancheFilter_duringAvalanche_suppressConversationFromBeforeEvent()
140 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowHighPriorityConversation()
158 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCall()
176 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCategoryReminder()
194 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCategoryEvent()
224 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowColorized()
249 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowEmergency()
/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/tests/src/com/android/systemui/volume/
DCsdWarningDialogTest.java28 import android.app.NotificationManager;
49 private NotificationManager mNotificationManager;
54 mNotificationManager = mock(NotificationManager.class); in setup()
55 getContext().addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DLocalMediaProjectionService.java20 import android.app.NotificationManager;
72 CHANNEL_NAME, NotificationManager.IMPORTANCE_NONE); in startForeground()
75 final NotificationManager notificationManager = in startForeground()
76 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in startForeground()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSchedulerService.java21 import android.app.NotificationManager;
32 getSystemService(NotificationManager.class).createNotificationChannel( in onStartCommand()
34 NotificationManager.IMPORTANCE_DEFAULT)); in onStartCommand()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java35 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()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java18 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()

12345678910>>...12