Home
last modified time | relevance | path

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

12345678910>>...15

/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationTest.java124 Notification n = new Notification.Builder(mContext, "test") in testColorizedByPermission()
171 Notification n = new Notification.Builder(mContext) in testHasCompletedProgress_complete()
174 Notification n2 = new Notification.Builder(mContext) in testHasCompletedProgress_complete()
183 Notification n = new Notification.Builder(mContext) in testHasCompletedProgress_notComplete()
186 Notification n2 = new Notification.Builder(mContext) in testHasCompletedProgress_notComplete()
195 Notification n = new Notification.Builder(mContext) in testHasCompletedProgress_zeroMax()
289 Notification unparceled = new Notification(p); in allPendingIntents_resilientToAnotherNotificationInExtras()
313 Notification unparceled = new Notification(p); in allPendingIntents_alsoInPublicVersion()
690 Notification.Colors c = new Notification.Colors(); in testColors_ensureColors_dayMode_producesValidPalette()
699 Notification.Colors c = new Notification.Colors(); in testColors_ensureColors_nightMode_producesValidPalette()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryProtoHelper.java103 case (int) Notification.PACKAGE_INDEX: in readNotification()
107 case (int) Notification.CHANNEL_NAME: in readNotification()
116 case (int) Notification.CHANNEL_ID: in readNotification()
125 case (int) Notification.UID: in readNotification()
128 case (int) Notification.USER_ID: in readNotification()
131 case (int) Notification.POSTED_TIME_MS: in readNotification()
134 case (int) Notification.TITLE: in readNotification()
137 case (int) Notification.TEXT: in readNotification()
140 case (int) Notification.ICON: in readNotification()
163 int iconType = Notification.TYPE_UNKNOWN; in loadIcon()
[all …]
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DNotificationTestList.java24 import android.app.Notification;
119 Notification n = new Notification.Builder(NotificationTestList.this,
131 Notification n = new Notification.Builder(NotificationTestList.this,
149 Notification n = new Notification.Builder(NotificationTestList.this,
166 Notification n = new Notification.Builder(NotificationTestList.this, "min")
539 Notification.Builder n = new Notification.Builder(
696 final Notification.Builder n = new Notification.Builder(
909 Notification n = new Notification.Builder(NotificationTestList.this)
930 Notification n = new Notification.Builder(
1016 Notification n = new Notification.Builder(
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A DNotificationHelperTest.java32 import android.app.Notification;
72 private final Notification mNotification1 = new Notification.Builder(mContext, "test")
86 private final Notification mNotification2 = new Notification.Builder(mContext, "test")
96 private final Notification mNoContentNotification = new Notification.Builder(mContext, "test")
142 Notification notification = new Notification.Builder(mContext, "test") in testGetMessagingStyleMessagesNoMessage()
210 Notification.MessagingStyle.Message message = new Notification.MessagingStyle.Message( in testGetSenderIfGroupConversation_notGroup()
212 Notification notification = new Notification.Builder(mContext, "test") in testGetSenderIfGroupConversation_notGroup()
225 Notification.MessagingStyle.Message message = new Notification.MessagingStyle.Message( in testGetSenderIfGroupConversation_group()
228 Notification notification = new Notification.Builder(mContext, "test") in testGetSenderIfGroupConversation_group()
244 Notification.MessagingStyle.Message message = new Notification.MessagingStyle.Message( in testGetSenderIfGroupConversation_groupNoName()
[all …]
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationComparatorTest.java34 import android.app.Notification;
149 Notification n1 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
159 Notification n2 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
181 Notification n4 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
190 Notification n5 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
224 Notification n9 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
235 Notification n10 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
242 Notification n11 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
251 Notification n12 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
261 Notification n13 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
[all …]
H A DNotificationShellCmdTest.java35 import android.app.Notification;
116 ArgumentCaptor<Notification> notificationCaptor = in captureNotification()
117 ArgumentCaptor.forClass(Notification.class); in captureNotification()
137 final Notification captured = captureNotification(aTag); in testBasic()
147 final Notification captured = captureNotification(aTag); in testIcon()
162 final Notification captured = captureNotification(aTag); in testBigText()
177 final Notification captured = captureNotification(aTag); in testBigPicture()
201 final Notification captured = captureNotification(aTag); in testInbox()
203 final Notification.Builder builder = in testInbox()
251 final Notification.Builder builder = in testMessaging()
[all …]
H A DCriticalNotificationExtractorTest.java26 import android.app.Notification;
60 assertCriticality(Notification.CATEGORY_CAR_EMERGENCY, in testExtractCritically_nonsupporting()
63 assertCriticality(Notification.CATEGORY_CAR_WARNING, CriticalNotificationExtractor.NORMAL); in testExtractCritically_nonsupporting()
65 assertCriticality(Notification.CATEGORY_CAR_INFORMATION, in testExtractCritically_nonsupporting()
68 assertCriticality(Notification.CATEGORY_CALL, in testExtractCritically_nonsupporting()
78 assertCriticality(Notification.CATEGORY_CAR_EMERGENCY, in testExtractCritically()
81 assertCriticality(Notification.CATEGORY_CAR_WARNING, in testExtractCritically()
84 assertCriticality(Notification.CATEGORY_CAR_INFORMATION, in testExtractCritically()
87 assertCriticality(Notification.CATEGORY_CALL, in testExtractCritically()
100 final Notification.Builder builder = new Notification.Builder(getContext()) in generateRecord()
[all …]
H A DNotificationIntrusivenessExtractorTest.java28 import android.app.Notification;
44 final Notification.Builder builder = new Notification.Builder(getContext()) in testNonIntrusive()
48 Notification n = builder.build(); in testNonIntrusive()
59 final Notification.Builder builder = new Notification.Builder(getContext()) in testIntrusive_fillScreen()
66 Notification n = builder.build(); in testIntrusive_fillScreen()
78 final Notification.Builder builder = new Notification.Builder(getContext()) in testOldNotificationsNotIntrusive()
85 Notification n = builder.build(); in testOldNotificationsNotIntrusive()
H A DNotificationChannelExtractorTest.java30 import android.app.Notification;
59 final Notification.Builder builder = new Notification.Builder(getContext()) in testExtractsUpdatedChannel()
62 Notification n = builder.build(); in testExtractsUpdatedChannel()
85 final Notification.Builder builder = new Notification.Builder(getContext()) in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
87 .setStyle(new Notification.MessagingStyle("name")) in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
89 Notification n = builder.build(); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
113 final Notification.Builder builder = new Notification.Builder(getContext()) in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
115 .setStyle(new Notification.MessagingStyle("name")) in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
117 Notification n = builder.build(); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DNotificationHelper.java19 import static android.app.Notification.CATEGORY_MISSED_CALL;
20 import static android.app.Notification.EXTRA_MESSAGES;
21 import static android.app.Notification.EXTRA_PEOPLE_LIST;
24 import android.app.Notification;
69 Notification n1 = e1.getSbn().getNotification();
70 Notification n2 = e2.getSbn().getNotification();
118 List<Notification.MessagingStyle.Message> messages = in hasContent()
148 Notification notification = sbn.getNotification(); in shouldMatchNotificationByUri()
177 List<Notification.MessagingStyle.Message> messages = in getContactUri()
197 Notification notification) { in getMessagingStyleMessages()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
H A DNotificationEntryTest.java19 import static android.app.Notification.CATEGORY_ALARM;
20 import static android.app.Notification.CATEGORY_CALL;
21 import static android.app.Notification.CATEGORY_EVENT;
22 import static android.app.Notification.CATEGORY_MESSAGE;
37 import android.app.Notification;
83 Notification.Builder n = new Notification.Builder(mContext, "") in setup()
152 Notification.Builder n = new Notification.Builder(mContext, "") in testIsExemptFromDndVisualSuppression_media()
297 Notification notification = new Notification.Builder(mContext, "test") in notificationDataEntry_testIsLastMessageFromReply()
329 Notification notification = new Notification.Builder(mContext, "test") in notificationDataEntry_testIsLastMessageFromReply_invalidPerson_noCrash()
350 return new Notification.Action.Builder( in createContextualAction()
[all …]
H A DHighPriorityProviderTest.java31 import android.app.Notification;
85 final Notification notification = new Notification.Builder(mContext, "test") in peopleNotification()
103 final Notification notification = new Notification.Builder(mContext, "test") in highImportanceConversation()
120 final Notification notification = new Notification.Builder(mContext, "test") in lowImportanceConversation()
156 final Notification notification = new Notification.Builder(mContext, "test") in messagingStyle()
157 .setStyle(new Notification.MessagingStyle("")) in messagingStyle()
174 final Notification notification = mock(Notification.class); in lowImportanceForeground()
193 final Notification notification = new Notification.Builder(mContext, "test") in userChangeTrumpsHighPriorityCharacteristics()
194 .setStyle(new Notification.MessagingStyle("")) in userChangeTrumpsHighPriorityCharacteristics()
/aosp14/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java146 Notification.BigTextStyle bigTextStyle = new Notification.BigTextStyle() in makeBigTextNotification()
148 Notification bigText = new Notification.Builder(context) in makeBigTextNotification()
166 Notification.Builder uploadNotification = new Notification.Builder(context) in makeUploadNotification()
249 ArrayList<Notification> mNotifications = new ArrayList<Notification>(); in testCreate()
274 Notification phoneCall = new Notification.Builder(mContext) in testCreate()
296 final Notification n = new Notification.Builder(mContext) in testCreate()
309 final Notification n = new Notification.Builder(mContext) in testCreate()
332 final Notification n = new Notification.Builder(mContext) in testCreate()
354 final Notification n = new Notification.Builder(mContext) in testCreate()
372 final Notification n = new Notification.Builder(mContext) in testCreate()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
H A DDeviceStateNotificationControllerTest.java30 import android.app.Notification;
86 Notification.class);
140 Notification notification = mNotificationCaptor.getValue(); in test_activeNotification()
144 assertEquals(Notification.FLAG_ONGOING_EVENT, in test_activeNotification()
145 notification.flags & Notification.FLAG_ONGOING_EVENT); in test_activeNotification()
148 Notification.Action[] actions = notification.actions; in test_activeNotification()
150 Notification.Action action = actions[0]; in test_activeNotification()
170 Notification notification = mNotificationCaptor.getValue(); in test_powerSaveNotification()
174 assertEquals(Notification.FLAG_ONGOING_EVENT, in test_powerSaveNotification()
206 Notification notification = mNotificationCaptor.getValue(); in test_thermalNotification()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
H A DNotificationMemoryMeter.kt3 import android.app.Notification
4 import android.app.Notification.BigPictureStyle
5 import android.app.Notification.BigTextStyle
6 import android.app.Notification.CallStyle
7 import android.app.Notification.DecoratedCustomViewStyle
8 import android.app.Notification.InboxStyle
9 import android.app.Notification.MediaStyle
10 import android.app.Notification.MessagingStyle
78 notification: Notification,
108 extras.getParcelableArray(Notification.EXTRA_MESSAGES)
[all …]
H A DNotificationPanelLogger.java89 final Notifications.Notification[] proto_array = in toNotificationProto()
90 new Notifications.Notification[visibleNotifications.size()]; in toNotificationProto()
95 final Notifications.Notification proto = new Notifications.Notification(); in toNotificationProto()
123 case BUCKET_MEDIA_CONTROLS : return Notifications.Notification.SECTION_MEDIA_CONTROLS; in toNotificationSection()
124 case BUCKET_HEADS_UP: return Notifications.Notification.SECTION_HEADS_UP; in toNotificationSection()
126 return Notifications.Notification.SECTION_FOREGROUND_SERVICE; in toNotificationSection()
127 case BUCKET_PEOPLE: return Notifications.Notification.SECTION_PEOPLE; in toNotificationSection()
128 case BUCKET_ALERTING: return Notifications.Notification.SECTION_ALERTING; in toNotificationSection()
129 case BUCKET_SILENT: return Notifications.Notification.SECTION_SILENT; in toNotificationSection()
131 return Notifications.Notification.SECTION_UNKNOWN; in toNotificationSection()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java20 import android.app.Notification;
21 import android.app.Notification.Action;
240 Notification.Builder builder = in updateMissingPrivateVolumes()
270 Notification.Builder builder = in onDiskScannedInternal()
334 final Notification notif; in onPublicVolumeStateChangedInternal()
484 .setCategory(Notification.CATEGORY_ERROR) in onVolumeUnmountable()
501 .setCategory(Notification.CATEGORY_ERROR) in onVolumeRemoved()
518 .setCategory(Notification.CATEGORY_ERROR) in onVolumeBadRemoval()
544 Notification.Builder builder = in onMoveProgress()
595 Notification.Builder builder = in onMoveFinished()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DDismissibilityCoordinatorTest.kt19 import android.app.Notification
78 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
92 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
109 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true)
126 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true)
143 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true)
144 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
168 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
196 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
251 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationUiAdjustmentTest.java20 import android.app.Notification;
46 Notification.Action action = in needReinflate_differentLength()
60 Notification.Action firstAction = in needReinflate_differentLabels()
62 Notification.Action secondAction = in needReinflate_differentLabels()
77 Notification.Action firstAction = in needReinflate_differentIcons()
79 Notification.Action secondAction = in needReinflate_differentIcons()
100 Notification.Action firstAction = in needReinflate_differentPendingIntent()
103 Notification.Action secondAction = in needReinflate_differentPendingIntent()
125 Notification.Action firstAction = in needReinflate_differentChoices()
152 Notification.Action firstAction = in needReinflate_differentRemoteInputLabel()
[all …]
H A DRemoteInputNotificationRebuilderTest.java25 import android.app.Notification;
67 .setNotification(new Notification()) in setUp()
82 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInput_image()
95 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
99 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
101 .getBoolean(Notification.EXTRA_HIDE_SMART_REPLIES, false)); in testRebuildWithRemoteInput_noExistingInputNoSpinner()
110 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
114 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
116 .getBoolean(Notification.EXTRA_HIDE_SMART_REPLIES, false)); in testRebuildWithRemoteInput_noExistingInputWithSpinner()
170 .getBoolean(Notification.EXTRA_SHOW_REMOTE_INPUT_SPINNER, false)); in testRebuildNotificationForCanceledSmartReplies()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
H A DBubbleTest.java29 import android.app.Notification;
59 private Notification mNotif;
80 Notification.BubbleMetadata metadata = new Notification.BubbleMetadata.Builder( in setUp()
94 doReturn(Notification.Style.class).when(mNotif).getNotificationStyle(); in testGetUpdateMessage_default()
95 mExtras.putCharSequence(Notification.EXTRA_TEXT, msg); in testGetUpdateMessage_default()
103 mExtras.putCharSequence(Notification.EXTRA_TEXT, "A small hello there."); in testGetUpdateMessage_bigText()
104 mExtras.putCharSequence(Notification.EXTRA_BIG_TEXT, msg); in testGetUpdateMessage_bigText()
122 Notification.EXTRA_TEXT_LINES, in testGetUpdateMessage_inboxStyle()
138 Notification.EXTRA_MESSAGES, in testGetUpdateMessage_messagingStyle()
140 new Notification.MessagingStyle.Message( in testGetUpdateMessage_messagingStyle()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
H A DSbnBuilder.java20 import android.app.Notification;
39 @Nullable private Notification mNotification;
40 @Nullable private Notification.Builder mNotificationBuilder;
41 private Notification.BubbleMetadata mBubbleMetadata;
65 Notification notification; in build()
71 notification = new Notification(); in build()
125 public SbnBuilder setNotification(Notification notification) { in setNotification()
156 public Notification.Builder modifyNotification(Context context) { in modifyNotification()
158 mNotificationBuilder = new Notification.Builder(context, mNotification); in modifyNotification()
161 mNotificationBuilder = new Notification.Builder(context); in modifyNotification()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
H A DVpnStatusObserver.kt21 import android.app.Notification
114 Notification.Builder(context, NOTIFICATION_CHANNEL_TV_VPN)
116 .setVisibility(Notification.VISIBILITY_PUBLIC)
117 .setCategory(Notification.CATEGORY_SYSTEM)
118 .extend(Notification.TvExtender())
124 Notification.Builder(context, NOTIFICATION_CHANNEL_TV_VPN)
126 .setVisibility(Notification.VISIBILITY_PUBLIC)
127 .setCategory(Notification.CATEGORY_SYSTEM)
128 .extend(Notification.TvExtender())
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DRecordingService.java20 import android.app.Notification;
274 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, in createErrorNotification()
278 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID) in createErrorNotification()
306 Notification.Action stopAction = new Notification.Action.Builder( in createRecordingNotification()
310 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID) in createRecordingNotification()
324 protected Notification createProcessingNotification() { in createProcessingNotification()
334 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID) in createProcessingNotification()
351 Notification.Action shareAction = new Notification.Action.Builder( in createSaveNotification()
365 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID) in createSaveNotification()
382 Notification.BigPictureStyle pictureStyle = new Notification.BigPictureStyle() in createSaveNotification()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationInlineImageResolver.java20 import android.app.Notification;
156 public void preloadImages(Notification notification) { in preloadImages()
181 private void retrieveWantedUriSet(Notification notification) { in retrieveWantedUriSet()
184 List<Notification.MessagingStyle.Message> messageList; in retrieveWantedUriSet()
185 List<Notification.MessagingStyle.Message> historicList; in retrieveWantedUriSet()
193 messages = extras.getParcelableArray(Notification.EXTRA_MESSAGES); in retrieveWantedUriSet()
195 Notification.MessagingStyle.Message.getMessagesFromBundleArray(messages); in retrieveWantedUriSet()
197 for (Notification.MessagingStyle.Message message : messageList) { in retrieveWantedUriSet()
204 historicMessages = extras.getParcelableArray(Notification.EXTRA_HISTORIC_MESSAGES); in retrieveWantedUriSet()
206 Notification.MessagingStyle.Message.getMessagesFromBundleArray(historicMessages); in retrieveWantedUriSet()
[all …]

12345678910>>...15