Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeVisEffectsCustomPreferenceControllerTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
36 import android.app.NotificationManager;
[all …]
DZenFooterPreferenceControllerTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
35 import android.app.NotificationManager;
[all …]
DZenModeVisEffectsNonePreferenceControllerTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
38 import android.app.NotificationManager;
[all …]
DZenModeVisEffectsAllPreferenceControllerTest.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
26 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
27 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
38 import android.app.NotificationManager;
[all …]
DZenModeBackendTest.java3 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_ANYONE;
4 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_IMPORTANT;
5 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_NONE;
6 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
7 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
8 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS;
9 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES;
10 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_ANY;
11 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_CONTACTS;
12 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_STARRED;
[all …]
DZenModeRepeatCallersPreferenceControllerTest.java28 import android.app.NotificationManager;
60 private NotificationManager mNotificationManager;
64 private NotificationManager.Policy mPolicy;
114 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)). in updateState_Priority()
126 when(mBackend.isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) in updateState_Priority_anyCallers()
129 NotificationManager.Policy.PRIORITY_SENDERS_ANY); in updateState_Priority_anyCallers()
131 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) in updateState_Priority_anyCallers()
146 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_EnableRepeatCallers()
156 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, in onPreferenceChanged_DisableRepeatCallers()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeBackend.java19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_OFF;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_SCREEN_ON;
26 import android.app.NotificationManager;
65 protected NotificationManager.Policy mPolicy;
66 private final NotificationManager mNotificationManager;
80 mNotificationManager = (NotificationManager) context.getSystemService( in ZenModeBackend()
101 return NotificationManager.from(mContext).updateAutomaticZenRule(id, rule); in updateZenRule()
109 NotificationManager.from(mContext).setZenMode(zenMode, null, TAG); in setZenMode()
152 if (isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) { in getPriorityCallSenders()
[all …]
DZenOnboardingActivity.java21 import android.app.NotificationManager;
22 import android.app.NotificationManager.Policy;
56 private NotificationManager mNm;
62 setNotificationManager(getSystemService(NotificationManager.class)); in onCreate()
108 protected void setNotificationManager(NotificationManager nm) { in setNotificationManager()
126 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in save()
129 NotificationManager.Policy newPolicy = new NotificationManager.Policy( in save()
133 NotificationManager.Policy.getAllSuppressedVisualEffects()); in save()
166 NotificationManager nm = context.getSystemService(NotificationManager.class); in wasZenUpdated()
167 if (NotificationManager.Policy.areAllVisualEffectsSuppressed( in wasZenUpdated()
DZenModeBlockedEffectsSettings.java19 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT;
20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_BADGE;
21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
22 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS;
23 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST;
24 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK;
25 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR;
DZenModeVisEffectsCustomPreferenceController.java19 import android.app.NotificationManager;
37 NotificationManager.Policy.SUPPRESSED_EFFECT_AMBIENT
38 | NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK
39 | NotificationManager.Policy.SUPPRESSED_EFFECT_LIGHTS
40 | NotificationManager.Policy.SUPPRESSED_EFFECT_FULL_SCREEN_INTENT;
75 NotificationManager.Policy.areAllVisualEffectsSuppressed( in areCustomOptionsSelected()
DZenModePeoplePreferenceController.java19 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_ANYONE;
20 import static android.app.NotificationManager.Policy.CONVERSATION_SENDERS_NONE;
21 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS;
22 import static android.app.NotificationManager.Policy.PRIORITY_SENDERS_ANY;
24 import android.app.NotificationManager;
67 NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)); in updateState()
DZenModeSettings.java19 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS;
20 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CALLS;
21 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_CONVERSATIONS;
22 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_EVENTS;
23 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MEDIA;
24 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES;
25 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REMINDERS;
26 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS;
27 import static android.app.NotificationManager.Policy.PRIORITY_CATEGORY_SYSTEM;
32 import android.app.NotificationManager;
[all …]
DZenModeSliceBuilder.java23 import android.app.NotificationManager;
64 INTENT_FILTER.addAction(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED);
65 INTENT_FILTER.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED);
66 INTENT_FILTER.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED_INTERNAL);
121 NotificationManager.from(context).setZenMode(zenMode, /* conditionId= */ null, TAG, in handleUriChange()
124 NotificationManager.from(context).setZenMode(zenMode, null /* conditionId */, TAG); in handleUriChange()
142 final NotificationManager manager = context.getSystemService(NotificationManager.class); in isZenModeEnabled()
/packages/apps/Dialer/java/com/android/dialer/notification/
DNotificationChannelManager.java21 import android.app.NotificationManager;
57 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels()
100 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getAllExistingChannelIds()
122 NotificationManager.IMPORTANCE_MAX); in createIncomingCallChannel()
128 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createIncomingCallChannel()
136 NotificationManager.IMPORTANCE_DEFAULT); in createOngoingCallChannel()
142 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createOngoingCallChannel()
150 NotificationManager.IMPORTANCE_DEFAULT); in createMissedCallChannel()
156 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createMissedCallChannel()
164 NotificationManager.IMPORTANCE_DEFAULT); in createDefaultChannel()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java20 import android.app.NotificationManager;
80 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
88 importance = NotificationManager.IMPORTANCE_MAX; in createChannel()
96 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
104 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
112 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
120 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
128 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
135 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
156 private NotificationManager getNotificationManager(Context context) { in getNotificationManager()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationChannels.java21 import android.app.NotificationManager;
59 static NotificationManager getNotificationManagerForUser( in getNotificationManagerForUser()
62 NotificationManager notificationManager = in getNotificationManagerForUser()
64 ? contextAsUser.getSystemService(NotificationManager.class) in getNotificationManagerForUser()
94 String getCreatedChannelId(NotificationManager notificationManager, SafetySourceIssue issue) { in getCreatedChannelId()
138 NotificationManager notificationManager = getNotificationManagerForUser(context, user); in createAllChannelsForUser()
183 private void createAllChannelsWithoutCallingIdentity(NotificationManager notificationManager) { in createAllChannelsWithoutCallingIdentity()
197 private void clearAllChannelsWithoutCallingIdentity(NotificationManager notificationManager) { in clearAllChannelsWithoutCallingIdentity()
218 NotificationManager.IMPORTANCE_LOW); in getInformationChannelDefinition()
229 NotificationManager.IMPORTANCE_DEFAULT); in getRecommendationChannelDefinition()
[all …]
/packages/services/Car/service-builtin/src/com/android/car/admin/
DNotificationHelper.java23 import android.app.NotificationManager;
76 @NotificationManager.Importance int importance) { in newNotificationBuilder()
81 case NotificationManager.IMPORTANCE_DEFAULT: in newNotificationBuilder()
85 case NotificationManager.IMPORTANCE_HIGH: in newNotificationBuilder()
92 NotificationManager notificationMgr = context.getSystemService(NotificationManager.class); in newNotificationBuilder()
112 getContext().getSystemService(NotificationManager.class).cancelAsUser(TAG, notificationId, in cancelNotificationAsUser()
123 .newNotificationBuilder(getContext(), NotificationManager.IMPORTANCE_DEFAULT) in showUserDisclaimerNotification()
138 getContext().getSystemService(NotificationManager.class) in showUserDisclaimerNotification()
149 getContext().getSystemService(NotificationManager.class) in cancelUserDisclaimerNotification()
177 packagesByImportance.put(NotificationManager.IMPORTANCE_HIGH, in showResourceOveruseNotificationsAsUser()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/notification/
DMigrationNotificationSender.java25 import android.app.NotificationManager;
75 NotificationManager notificationManager = getNotificationManagerForUser(userHandle); in sendNotification()
85 NotificationManager notificationManager = getNotificationManagerForUser(userHandle); in clearNotifications()
91 private NotificationManager getNotificationManagerForUser(@NonNull UserHandle userHandle) { in getNotificationManagerForUser()
93 return contextAsUser.getSystemService(NotificationManager.class); in getNotificationManagerForUser()
98 @Nullable NotificationManager notificationManager, @NonNull Notification notification) { in notifyFromSystem()
113 private void cancelFromSystem(@Nullable NotificationManager notificationManager) { in cancelFromSystem()
137 int importance = NotificationManager.IMPORTANCE_HIGH; in createNotificationChannel()
145 NotificationManager notificationManager = getNotificationManagerForUser(userHandle); in createNotificationChannel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DDndConditionalCardControllerTest.java26 import android.app.NotificationManager;
59 mNotificationManager = Shadow.extract(mContext.getSystemService(NotificationManager.class)); in setUp()
94 config.applyNotificationPolicy(new NotificationManager.Policy( in getCustomConfig()
95 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS in getCustomConfig()
96 | NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS in getCustomConfig()
97 | NotificationManager.Policy.PRIORITY_CATEGORY_CALLS, in getCustomConfig()
98 NotificationManager.Policy.PRIORITY_SENDERS_ANY, 0)); in getCustomConfig()
104 config.applyNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in getMutedAllConfig()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java39 import android.app.NotificationManager;
260 NotificationManager.IMPORTANCE_LOW); in createSimSelectNotification()
275 NotificationManager notificationManager = in createSimSelectNotification()
276 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createSimSelectNotification()
282 NotificationManager notificationManager = in cancelSimSelectNotification()
283 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in cancelSimSelectNotification()
294 NotificationManager.IMPORTANCE_HIGH); in createEnableMmsNotification()
314 NotificationManager notificationManager = in createEnableMmsNotification()
315 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in createEnableMmsNotification()
321 NotificationManager notificationManager = in cancelEnableMmsNotification()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNotificationManager.java27 import android.app.NotificationManager;
48 private NotificationManager mNotificationManager;
54 private NotificationManager getNotificationManagerForCurrentUser() { in getNotificationManagerForCurrentUser()
57 UserHandle.CURRENT).getSystemService(NotificationManager.class); in getNotificationManagerForCurrentUser()
83 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
90 NotificationManager.IMPORTANCE_HIGH); in createNotificationChannels()
98 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
106 NotificationManager.IMPORTANCE_HIGH); in createNotificationChannels()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/notifications/
DTvNotificationPanel.java20 import android.app.NotificationManager;
61 new Intent(NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL)); in toggleNotificationsPanel()
64 NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL); in toggleNotificationsPanel()
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()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessController.java21 import android.app.NotificationManager;
87 autoApproved.addAll(context.getSystemService(NotificationManager.class) in getAutoApprovedPackages()
94 NotificationManager.class).isNotificationPolicyAccessGrantedForPackage(pkg); in hasAccess()
99 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in setAccess()
104 final NotificationManager mgr = context.getSystemService(NotificationManager.class); in deleteRules()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DNotificationHelper.java23 import android.app.NotificationManager;
60 final NotificationManager notificationManager = in showResumeNotification()
61 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in showResumeNotification()
63 mContext.getString(R.string.encrypt), NotificationManager.IMPORTANCE_HIGH); in showResumeNotification()
83 @NotificationManager.Importance int importance) { in showPrivacyReminderNotification()
84 final NotificationManager notificationManager = in showPrivacyReminderNotification()
85 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in showPrivacyReminderNotification()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java21 import android.app.NotificationManager;
87 NotificationManager notificationManager = in onCreate()
88 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
91 NotificationManager.IMPORTANCE_HIGH); in onCreate()
120 NotificationManager notificationManager = in onDestroy()
121 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onDestroy()

12345678910>>...16