Home
last modified time | relevance | path

Searched refs:Notification (Results 1 – 25 of 274) sorted by relevance

1234567891011

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/notification/
DMigrationNotificationFactory.java31 import android.app.Notification;
116 public Notification createNotification( in createNotification()
120 Notification notification; in createNotification()
169 private Notification getMigrationInProgressNotification(@NonNull String channelId) { in getMigrationInProgressNotification()
173 Notification notification = in getMigrationInProgressNotification()
174 new Notification.Builder(mContext, channelId) in getMigrationInProgressNotification()
182 notification.flags = Notification.FLAG_NO_CLEAR; in getMigrationInProgressNotification()
187 private Notification getModuleUpdateNeededNotification(@NonNull String channelId) { in getModuleUpdateNeededNotification()
195 Notification notification = in getModuleUpdateNeededNotification()
196 new Notification.Builder(mContext, channelId) in getModuleUpdateNeededNotification()
[all …]
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java18 import static android.app.Notification.CATEGORY_MESSAGE;
25 import android.app.Notification;
81 private static void lightenNotificationPayload(Notification notification) { in lightenNotificationPayload()
94 || Notification.EXTRA_MESSAGES.equals(key) in lightenNotificationPayload()
95 || Notification.EXTRA_MESSAGING_PERSON.equals(key) in lightenNotificationPayload()
96 || Notification.EXTRA_PEOPLE_LIST.equals(key)) { in lightenNotificationPayload()
112 private Notification cloneNotificationLight(Notification notification) { in cloneNotificationLight()
115 Notification lightNotification = in cloneNotificationLight()
116 Notification.Builder.recoverBuilder(mContext, notification) in cloneNotificationLight()
159 final Notification n = getNotification(); in calculateAudioAttributes()
[all …]
DNotificationOtpDetectionHelper.java19 import static android.app.Notification.CATEGORY_EMAIL;
20 import static android.app.Notification.CATEGORY_MESSAGE;
21 import static android.app.Notification.CATEGORY_SOCIAL;
22 import static android.app.Notification.EXTRA_BIG_TEXT;
23 import static android.app.Notification.EXTRA_MESSAGES;
24 import static android.app.Notification.EXTRA_SUB_TEXT;
25 import static android.app.Notification.EXTRA_SUMMARY_TEXT;
26 import static android.app.Notification.EXTRA_TEXT;
27 import static android.app.Notification.EXTRA_TEXT_LINES;
28 import static android.app.Notification.EXTRA_TITLE;
[all …]
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DNotificationEntryTest.java19 import static android.app.Notification.FLAG_FOREGROUND_SERVICE;
32 import android.app.Notification;
76 Notification n = new Notification.Builder(mContext, channelId) in generateSbn()
85 Notification n = new Notification.Builder(mContext, channelId) in generateSbn()
93 private StatusBarNotification generateSbn(Notification n) { in generateSbn()
115 sbn.getNotification().extras.putParcelableArrayList(Notification.EXTRA_PEOPLE_LIST, people); in testHasPerson()
153 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsInboxStyle()
154 .setStyle(new Notification.InboxStyle()) in testIsInboxStyle()
158 assertTrue(entry.hasStyle(Notification.InboxStyle.class)); in testIsInboxStyle()
165 Notification n = new Notification.Builder(mContext, channel.getId()) in testIsMessagingStyle()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DNotificationCompatUtils.java19 import android.app.Notification;
28 CompatUtils.getMethod(Notification.Builder.class, "setColor", int.class);
30 CompatUtils.getMethod(Notification.Builder.class, "setVisibility", int.class);
32 CompatUtils.getMethod(Notification.Builder.class, "setCategory", String.class);
34 CompatUtils.getMethod(Notification.Builder.class, "setPriority", int.class);
36 CompatUtils.getMethod(Notification.Builder.class, "build");
38 CompatUtils.getField(Notification.class, "VISIBILITY_SECRET");
43 CompatUtils.getField(Notification.class, "CATEGORY_RECOMMENDATION");
48 CompatUtils.getField(Notification.class, "PRIORITY_LOW");
58 public static void setColor(final Notification.Builder builder, final int color) { in setColor()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java3 import static android.app.Notification.FLAG_FOREGROUND_SERVICE;
6 import android.app.Notification;
151 Notification notification = new Notification in initCarCategoriesButton()
155 .setCategory(Notification.CATEGORY_CAR_EMERGENCY) in initCarCategoriesButton()
163 Notification notification = new Notification in initCarCategoriesButton()
169 .setCategory(Notification.CATEGORY_CAR_WARNING) in initCarCategoriesButton()
178 Notification notification = new Notification in initCarCategoriesButton()
182 .setCategory(Notification.CATEGORY_CAR_INFORMATION) in initCarCategoriesButton()
197 Notification notification1 = new Notification in initImportanceHighBotton()
207 new Notification.Action.Builder( in initImportanceHighBotton()
[all …]
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java51 import android.app.Notification;
185 final Notification notification = in testEuNotification_gaUxFlagEnabled()
188 assertThat(notification.extras.getCharSequence(Notification.EXTRA_TITLE).toString()) in testEuNotification_gaUxFlagEnabled()
190 assertThat(notification.extras.getCharSequence(Notification.EXTRA_TEXT).toString()) in testEuNotification_gaUxFlagEnabled()
192 assertThat(Notification.FLAG_ONGOING_EVENT & notification.flags) in testEuNotification_gaUxFlagEnabled()
193 .isEqualTo(Notification.FLAG_ONGOING_EVENT); in testEuNotification_gaUxFlagEnabled()
194 assertThat(Notification.FLAG_NO_CLEAR & notification.flags) in testEuNotification_gaUxFlagEnabled()
195 .isEqualTo(Notification.FLAG_NO_CLEAR); in testEuNotification_gaUxFlagEnabled()
196 assertThat(Notification.FLAG_AUTO_CANCEL & notification.flags) in testEuNotification_gaUxFlagEnabled()
197 .isEqualTo(Notification.FLAG_AUTO_CANCEL); in testEuNotification_gaUxFlagEnabled()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConnectToNetworkNotificationBuilder.java19 import static android.app.Notification.VISIBILITY_SECRET;
21 import android.app.Notification;
77 public Notification createConnectToAvailableNetworkNotification(String notifierTag, in createConnectToAvailableNetworkNotification()
89 Notification.Action.Builder connectActionBuilder = in createConnectToAvailableNetworkNotification()
90 new Notification.Action.Builder(null /* icon */, in createConnectToAvailableNetworkNotification()
97 Notification.Action connectAction = connectActionBuilder.build(); in createConnectToAvailableNetworkNotification()
98 Notification.Action allNetworksAction = new Notification.Action.Builder(null /* icon */, in createConnectToAvailableNetworkNotification()
101 Notification.Builder notificationBuilder = in createConnectToAvailableNetworkNotification()
121 public Notification createNetworkConnectingNotification(String notifierTag, in createNetworkConnectingNotification()
137 public Notification createNetworkConnectedNotification(String notifierTag, ScanResult network) { in createNetworkConnectedNotification()
[all …]
/packages/modules/Bluetooth/system/profile/avrcp/
Ddevice.h362 using Notification = std::pair<bool, uint8_t>; variable
363 Notification track_changed_ = Notification(false, 0);
364 Notification play_status_changed_ = Notification(false, 0);
365 Notification play_pos_changed_ = Notification(false, 0);
366 Notification player_setting_changed_ = Notification(false, 0);
367 Notification now_playing_changed_ = Notification(false, 0);
368 Notification addr_player_changed_ = Notification(false, 0);
369 Notification avail_players_changed_ = Notification(false, 0);
370 Notification uids_changed_ = Notification(false, 0);
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationGroup.java20 import android.app.Notification;
230 (notification.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) in isDismissible()
277 if (extras.containsKey(Notification.EXTRA_TITLE)) { in generateChildTitles()
278 titles.add(extras.getString(Notification.EXTRA_TITLE)); in generateChildTitles()
279 } else if (extras.containsKey(Notification.EXTRA_TITLE_BIG)) { in generateChildTitles()
280 titles.add(extras.getString(Notification.EXTRA_TITLE_BIG)); in generateChildTitles()
281 } else if (extras.containsKey(Notification.EXTRA_MESSAGES)) { in generateChildTitles()
282 List<Notification.MessagingStyle.Message> messages = in generateChildTitles()
283 Notification.MessagingStyle.Message.getMessagesFromBundleArray( in generateChildTitles()
284 extras.getParcelableArray(Notification.EXTRA_MESSAGES)); in generateChildTitles()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperTest.java18 import static android.app.Notification.EXTRA_TEXT;
19 import static android.app.Notification.EXTRA_TITLE;
20 import static android.app.Notification.FLAG_ONGOING_EVENT;
42 import android.app.Notification;
94 @Captor private ArgumentCaptor<Notification> mNotificationCaptor;
130 ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); in testShowUserDisclaimerNotification()
135 Notification notification = captor.getValue(); in testShowUserDisclaimerNotification()
188 SparseArray<Notification> expectedNotificationsById = new SparseArray<>(); in testShowResourceOveruseNotificationsAsUser()
207 private void assertNotificationContents(Notification notification) { in assertNotificationContents()
243 private Notification constructNotification(UserHandle userHandle, String packageName, in constructNotification()
[all …]
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationDiffTest.java21 import android.app.Notification;
62 private Notification.Builder mNotificationBuilder1;
63 private Notification.Builder mNotificationBuilder2;
82 mNotificationBuilder1 = new Notification.Builder(mContext, in setupBaseActivityAndLayout()
86 mNotificationBuilder2 = new Notification.Builder(mContext, in setupBaseActivityAndLayout()
303 Notification.Builder oldNotification = new Notification.Builder(mContext, in areBundleEqual_sameSize_shouldReturnTrue()
308 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameSize_shouldReturnTrue()
346 Notification.Builder oldNotification = new Notification.Builder(mContext, in areBundleEqual_diffSize_shouldReturnFalse()
354 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_diffSize_shouldReturnFalse()
390 Notification.Builder oldNotification = new Notification.Builder(mContext, in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue()
[all …]
DNotificationUtilsTest.java26 import android.app.Notification;
217 typeMap.put(Notification.CATEGORY_CAR_EMERGENCY, CarNotificationTypeItem.EMERGENCY); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
218 typeMap.put(Notification.CATEGORY_NAVIGATION, CarNotificationTypeItem.NAVIGATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
219 typeMap.put(Notification.CATEGORY_CALL, CarNotificationTypeItem.CALL); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
220 typeMap.put(Notification.CATEGORY_CAR_WARNING, CarNotificationTypeItem.WARNING); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
221 typeMap.put(Notification.CATEGORY_CAR_INFORMATION, CarNotificationTypeItem.INFORMATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
222 typeMap.put(Notification.CATEGORY_MESSAGE, CarNotificationTypeItem.MESSAGE); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
225 Notification notification = new Notification(); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
236 extras.putBoolean(Notification.EXTRA_TITLE_BIG, true); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
237 extras.putBoolean(Notification.EXTRA_SUMMARY_TEXT, true); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
[all …]
DPreprocessingManagerTest.java34 import android.app.Notification;
138 private Notification mMediaNotification;
140 private Notification mSummaryNotification;
148 private Notification mForegroundNotification;
149 private Notification mBackgroundNotification;
150 private Notification mNavigationNotification;
317 Notification callNotification = new Notification(); in onFilter_doShowLessImportantNotifications_filtersCalls()
318 callNotification.category = Notification.CATEGORY_CALL; in onFilter_doShowLessImportantNotifications_filtersCalls()
330 Notification callNotification = new Notification(); in onFilter_dontShowLessImportantNotifications_filtersCalls()
331 callNotification.category = Notification.CATEGORY_CALL; in onFilter_dontShowLessImportantNotifications_filtersCalls()
[all …]
DCarHeadsUpNotificationManagerTest.java32 import android.app.Notification;
157 Notification mNotificationMessageHeadsUp = new MockMessageNotificationBuilder(mContext, in setup()
160 .setCategory(Notification.CATEGORY_MESSAGE) in setup()
165 Notification mNotificationNavigationHeadsUp = new MockMessageNotificationBuilder(mContext, in setup()
168 .setCategory(Notification.CATEGORY_NAVIGATION) in setup()
170 Notification mNotificationCallHeadsUp = new MockMessageNotificationBuilder(mContext, in setup()
173 .setCategory(Notification.CATEGORY_CALL) in setup()
175 Notification mNotificationWarningHeadsUp = new MockMessageNotificationBuilder(mContext, in setup()
178 .setCategory(Notification.CATEGORY_CAR_WARNING) in setup()
180 Notification mNotificationEmergencyHeadsUp = new MockMessageNotificationBuilder(mContext, in setup()
[all …]
/packages/apps/TvSystemUI/src/com/android/systemui/tv/vpn/
DVpnStatusObserver.kt21 import android.app.Notification in <lambda>()
113 Notification.Builder(context, NOTIFICATION_CHANNEL_TV_VPN) in <lambda>()
115 .setVisibility(Notification.VISIBILITY_PUBLIC) in <lambda>()
116 .setCategory(Notification.CATEGORY_SYSTEM) in <lambda>()
117 .extend(Notification.TvExtender()) in <lambda>()
123 Notification.Builder(context, NOTIFICATION_CHANNEL_TV_VPN) in <lambda>()
125 .setVisibility(Notification.VISIBILITY_PUBLIC) in <lambda>()
126 .setCategory(Notification.CATEGORY_SYSTEM) in <lambda>()
127 .extend(Notification.TvExtender()) in <lambda>()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationSbnAdapter.java19 import static android.app.Notification.COLOR_DEFAULT;
30 import android.app.Notification;
205 private static String getTitleString(Notification n) { in getTitleString()
208 title = n.extras.getCharSequence(Notification.EXTRA_TITLE); in getTitleString()
216 private static String getTextString(Context appContext, Notification n) { in getTextString()
219 text = n.extras.getCharSequence(Notification.EXTRA_TEXT); in getTextString()
221 Notification.Builder nb = Notification.Builder.recoverBuilder(appContext, n); in getTextString()
223 if (nb.getStyle() instanceof Notification.BigTextStyle) { in getTextString()
224 text = ((Notification.BigTextStyle) nb.getStyle()).getBigText(); in getTextString()
225 } else if (nb.getStyle() instanceof Notification.MessagingStyle) { in getTextString()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java21 import android.app.Notification;
227 private Notification getPhoneAccountNotification(Context context) { in getPhoneAccountNotification()
228 final Notification.Builder builder = new Notification.Builder(context, CHANNEL_ID); in getPhoneAccountNotification()
233 builder.setPriority(Notification.PRIORITY_HIGH); in getPhoneAccountNotification()
252 private Notification getMainNotification(Context context) { in getMainNotification()
253 final Notification.Builder builder = new Notification.Builder(context, CHANNEL_ID); in getMainNotification()
255 builder.setPriority(Notification.PRIORITY_HIGH); in getMainNotification()
327 private void addAddCallAction(Notification.Builder builder, Context context) { in addAddCallAction()
335 private void addAddOneWayVideoCallAction(Notification.Builder builder, Context context) { in addAddOneWayVideoCallAction()
343 private void addAddTwoWayVideoCallAction(Notification.Builder builder, Context context) { in addAddTwoWayVideoCallAction()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DJob.java30 import android.app.Notification;
31 import android.app.Notification.Builder;
109 final Notification.Builder mProgressBuilder;
187 abstract Notification getSetupNotification(); in getSetupNotification()
188 abstract Notification getProgressNotification(); in getProgressNotification()
189 abstract Notification getFailureNotification(); in getFailureNotification()
191 abstract Notification getWarningNotification(); in getWarningNotification()
295 Notification getSetupNotification(String content) { in getSetupNotification()
301 Notification getFailureNotification(@PluralsRes int titleId, @DrawableRes int icon) { in getFailureNotification()
308 final Notification.Builder errorBuilder = createNotificationBuilder() in getFailureNotification()
[all …]
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DNotificationUtils.java19 import android.app.Notification;
50 private static Notification.Builder createNotificationBuilder(Context context) { in createNotificationBuilder()
53 return new Notification.Builder(context); in createNotificationBuilder()
67 return new Notification.Builder(context, CHANNEL_ID); in createNotificationBuilder()
84 final Notification.Action action = in sendDirectReplyNotification()
85 new Notification.Action.Builder(null, "Direct Reply Test", pendingIntent) in sendDirectReplyNotification()
88 final Notification notification = createNotificationBuilder(context) in sendDirectReplyNotification()
106 final Notification.Builder notificationBuilder = in onReceiveDirectReply()
107 new Notification.Builder(context, CHANNEL_ID); in onReceiveDirectReply()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java29 import android.app.Notification;
72 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testShouldShowNotificationFirstTime()
84 verify(mNotificationManager, times(i)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfShownTooManyTimes()
104 verify(mNotificationManager, times(i + 1)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfDismissedTooManyTimes()
122 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testDismissNotificationDelay()
137 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testDismissNotificationDelay()
144 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testNoThanksNotificationDelay()
159 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testNoThanksNotificationDelay()
176 ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); in testNotificationIsLocalOnly()
180 assertThat(captor.getValue().flags & Notification.FLAG_LOCAL_ONLY) in testNotificationIsLocalOnly()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DPageAgnosticNotificationService.java19 import android.app.Notification;
68 private Notification buildNotification() { in buildNotification()
92 Notification.Action action = in buildNotification()
93 new Notification.Action.Builder( in buildNotification()
99 Notification.Builder builder = in buildNotification()
100 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in buildNotification()
105 .setStyle(new Notification.BigTextStyle().bigText(text)) in buildNotification()
130 Notification notification = buildNotification(); in onStartCommand()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java44 import android.app.Notification;
283 Notification.Builder builder1 = makeNotificationBuilder("builder1"); in setupMissedCallNotificationThroughDefaultDialer()
284 Notification.Builder builder2 = makeNotificationBuilder("builder2"); in setupMissedCallNotificationThroughDefaultDialer()
291 Notification.Builder builder1 = makeNotificationBuilder("builder1"); in cancelNotificationTestInternal()
292 Notification.Builder builder2 = makeNotificationBuilder("builder2"); in cancelNotificationTestInternal()
309 requestIdCaptor.capture(), nullable(Notification.class), eq(userHandle)); in cancelNotificationTestInternal()
320 Notification.Builder[] builders = new Notification.Builder[4]; in testNotifyMultipleMissedCalls()
346 ArgumentCaptor<Notification> notificationArgumentCaptor = ArgumentCaptor.forClass( in testNotifyMultipleMissedCalls()
347 Notification.class); in testNotifyMultipleMissedCalls()
351 for (Notification n : notificationArgumentCaptor.getAllValues()) { in testNotifyMultipleMissedCalls()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java35 import android.app.Notification;
340 Notification.Builder publicBuilder = new Notification.Builder(context); in buildAndSendNotification()
350 final Notification.Builder builder = getNotificationBuilder(); in buildAndSendNotification()
365 builder.setCategory(Notification.CATEGORY_CALL); in buildAndSendNotification()
367 builder.setPriority(Notification.PRIORITY_MAX); in buildAndSendNotification()
412 Notification notification = builder.build(); in buildAndSendNotification()
415 notification.flags |= Notification.FLAG_INSISTENT; in buildAndSendNotification()
444 DialerCall call, int state, CallAudioState callAudioState, Notification.Builder builder) { in createIncomingCallNotification()
469 private void setNotificationWhen(DialerCall call, int state, Notification.Builder builder) { in setNotificationWhen()
582 Notification.Builder builder, ContactCacheEntry contactInfo, DialerCall call) { in addPersonReference()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationFactory.java27 import android.app.Notification;
82 Notification newNotificationForSuccessfulAction( in newNotificationForSuccessfulAction()
101 Notification.Builder builder = in newNotificationForSuccessfulAction()
102 new Notification.Builder(mContext, channelId) in newNotificationForSuccessfulAction()
128 Notification newNotificationForIssue( in newNotificationForIssue()
142 SafetySourceIssue.Notification customNotification = issue.getCustomNotification(); in newNotificationForIssue()
155 Notification.Builder builder = in newNotificationForIssue()
156 new Notification.Builder(mContext, channelId) in newNotificationForIssue()
173 Notification.Action notificationAction = in newNotificationForIssue()
262 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, appName); in getNotificationExtras()
[all …]

1234567891011