Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java19 import static android.app.Notification.CarExtender.UnreadConversation.KEY_ON_READ;
20 import static android.app.Notification.CarExtender.UnreadConversation.KEY_ON_REPLY;
21 import static android.app.Notification.CarExtender.UnreadConversation.KEY_REMOTE_INPUT;
22 import static android.app.Notification.DEFAULT_SOUND;
23 import static android.app.Notification.DEFAULT_VIBRATE;
24 import static android.app.Notification.EXTRA_ANSWER_INTENT;
25 import static android.app.Notification.EXTRA_BUILDER_APPLICATION_INFO;
26 import static android.app.Notification.EXTRA_CALL_PERSON;
27 import static android.app.Notification.EXTRA_CONVERSATION_ICON;
28 import static android.app.Notification.EXTRA_DECLINE_INTENT;
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java27 import com.android.server.notification.NotificationHistoryProto.Notification;
98 case (int) NotificationHistoryProto.Notification.PACKAGE: in readNotification()
99 pkg = parser.readString(Notification.PACKAGE); in readNotification()
103 case (int) Notification.PACKAGE_INDEX: in readNotification()
104 pkg = stringPool.get(parser.readInt(Notification.PACKAGE_INDEX) - 1); in readNotification()
107 case (int) Notification.CHANNEL_NAME: in readNotification()
108 String channelName = parser.readString(Notification.CHANNEL_NAME); in readNotification()
112 case (int) Notification.CHANNEL_NAME_INDEX: in readNotification()
114 Notification.CHANNEL_NAME_INDEX) - 1)); in readNotification()
116 case (int) Notification.CHANNEL_ID: in readNotification()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
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")
172 n = new Notification.Builder(NotificationTestList.this, "low")
178 n = new Notification.Builder(NotificationTestList.this, "default")
187 n = new Notification.Builder(NotificationTestList.this, "low")
199 Notification n = new Notification.Builder(NotificationTestList.this, "min")
205 n = new Notification.Builder(NotificationTestList.this, "low")
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DNotificationHelperTest.java18 import static android.app.Notification.CATEGORY_MISSED_CALL;
32 import android.app.Notification;
72 private final Notification mNotification1 = new Notification.Builder(mContext, "test")
76 .setStyle(new Notification.MessagingStyle(PERSON)
77 .addMessage(new Notification.MessagingStyle.Message(
79 .addMessage(new Notification.MessagingStyle.Message(
81 .addMessage(new Notification.MessagingStyle.Message(
86 private final Notification mNotification2 = new Notification.Builder(mContext, "test")
90 .setStyle(new Notification.MessagingStyle(PERSON)
91 .addMessage(new Notification.MessagingStyle.Message(
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationComparatorTest.java34 import android.app.Notification;
137 Notification nonInterruptiveNotif = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
138 .setCategory(Notification.CATEGORY_CALL) in setUp()
139 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true) in setUp()
149 Notification n1 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
150 .setCategory(Notification.CATEGORY_CALL) in setUp()
151 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true) in setUp()
159 Notification n2 = new Notification.Builder(mMockContext, TEST_CHANNEL_ID) in setUp()
160 .setCategory(Notification.CATEGORY_CALL) in setUp()
161 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true) in setUp()
[all …]
DNotificationShellCmdTest.java34 import android.app.Notification;
114 Notification captureNotification(String aTag) throws Exception { in captureNotification()
115 ArgumentCaptor<Notification> notificationCaptor = in captureNotification()
116 ArgumentCaptor.forClass(Notification.class); in captureNotification()
136 final Notification captured = captureNotification(aTag); in testBasic()
137 assertEquals(aText, captured.extras.getString(Notification.EXTRA_TEXT)); in testBasic()
138 assertEquals(aTitle, captured.extras.getString(Notification.EXTRA_TITLE)); in testBasic()
146 final Notification captured = captureNotification(aTag); in testIcon()
161 final Notification captured = captureNotification(aTag); in testBigText()
162 assertSame(captured.getNotificationStyle(), Notification.BigTextStyle.class); in testBigText()
[all …]
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 …]
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()
DNotificationChannelExtractorTest.java19 import static android.app.Notification.CATEGORY_ALARM;
44 import android.app.Notification;
87 private NotificationRecord getRecord(NotificationChannel channel, Notification n) { in getRecord()
96 final Notification n = new Notification.Builder(getContext()) in testExtractsUpdatedConversationChannel()
115 final Notification n = new Notification.Builder(getContext()) in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
117 .setStyle(new Notification.MessagingStyle("name")) in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
136 final Notification n = new Notification.Builder(getContext()) in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
138 .setStyle(new Notification.MessagingStyle("name")) in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
160 final Notification n = new Notification.Builder(getContext()) in testAudioAttributes_callStyleCanUseCallUsage()
162 .setStyle(Notification.CallStyle.forIncomingCall( in testAudioAttributes_callStyleCanUseCallUsage()
[all …]
DRankingHelperTest.java33 import android.app.Notification;
97 private Notification mNotiGroupGSortA;
98 private Notification mNotiGroupGSortB;
99 private Notification mNotiNoGroup;
100 private Notification mNotiNoGroup2;
101 private Notification mNotiNoGroupSortA;
162 mNotiGroupGSortA = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp()
172 mNotiGroupGSortB = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp()
182 mNotiNoGroup = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp()
190 mNotiNoGroup2 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
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();
82 List<Notification.MessagingStyle.Message> messages1 =
84 List<Notification.MessagingStyle.Message> messages2 =
88 Notification.MessagingStyle.Message message1 = messages1.get(0);
89 Notification.MessagingStyle.Message message2 = messages2.get(0);
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
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;
23 import static android.app.Notification.CATEGORY_REMINDER;
24 import static android.app.Notification.FLAG_FSI_REQUESTED_BUT_DENIED;
37 import android.app.Notification;
83 Notification.Builder n = new Notification.Builder(mContext, "") in setup()
103 mEntry.getSbn().getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testIsExemptFromDndVisualSuppression_foreground()
152 Notification.Builder n = new Notification.Builder(mContext, "") in testIsExemptFromDndVisualSuppression_media()
[all …]
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()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateNotificationControllerTest.java30 import android.app.Notification;
85 private final ArgumentCaptor<Notification> mNotificationCaptor = ArgumentCaptor.forClass(
86 Notification.class);
140 Notification notification = mNotificationCaptor.getValue(); in test_activeNotification()
141 assertEquals(TITLE_1, notification.extras.getString(Notification.EXTRA_TITLE)); in test_activeNotification()
143 notification.extras.getString(Notification.EXTRA_TEXT)); 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()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationMemoryMeter.kt3 import android.app.Notification in <lambda>()
4 import android.app.Notification.BigPictureStyle in <lambda>()
5 import android.app.Notification.BigTextStyle in <lambda>()
6 import android.app.Notification.CallStyle in <lambda>()
7 import android.app.Notification.DecoratedCustomViewStyle in <lambda>()
8 import android.app.Notification.InboxStyle in <lambda>()
9 import android.app.Notification.MediaStyle in <lambda>()
10 import android.app.Notification.MessagingStyle in <lambda>()
78 notification: Notification, in <lambda>()
89 computeParcelableUse(extras, Notification.EXTRA_LARGE_ICON_BIG, seenBitmaps) in <lambda>()
[all …]
DNotificationPanelLogger.java96 final Notifications.Notification[] proto_array = in toNotificationProto()
97 new Notifications.Notification[visibleNotifications.size()]; in toNotificationProto()
102 final Notifications.Notification proto = new Notifications.Notification(); in toNotificationProto()
130 case BUCKET_MEDIA_CONTROLS : return Notifications.Notification.SECTION_MEDIA_CONTROLS; in toNotificationSection()
131 case BUCKET_HEADS_UP: return Notifications.Notification.SECTION_HEADS_UP; in toNotificationSection()
133 return Notifications.Notification.SECTION_FOREGROUND_SERVICE; in toNotificationSection()
135 return Notifications.Notification.SECTION_PEOPLE; in toNotificationSection()
136 case BUCKET_ALERTING: return Notifications.Notification.SECTION_ALERTING; in toNotificationSection()
137 case BUCKET_SILENT: return Notifications.Notification.SECTION_SILENT; in toNotificationSection()
139 return Notifications.Notification.SECTION_UNKNOWN; in toNotificationSection()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerTestUtil.java19 import android.app.Notification;
37 protected static StatusBarNotification createSbn(int id, Notification.Builder n) { in createSbn()
42 final Notification.Builder b = new Notification.Builder(context, "") in createSbn()
49 protected static StatusBarNotification createSbn(int id, Notification n) { in createSbn()
63 protected static NotificationEntry createEntry(int id, Notification n) { in createEntry()
77 final Notification notif = new Notification.Builder(context, "") in createFullScreenIntentEntry()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
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()
133 .extras.getParcelableArray(Notification.EXTRA_REMOTE_INPUT_HISTORY_ITEMS); in testRebuildWithRemoteInput_withExistingInput()
[all …]
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()
129 Notification.Action secondAction = in needReinflate_differentChoices()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
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()
102 doReturn(Notification.BigTextStyle.class).when(mNotif).getNotificationStyle(); in testGetUpdateMessage_bigText()
103 mExtras.putCharSequence(Notification.EXTRA_TEXT, "A small hello there."); in testGetUpdateMessage_bigText()
104 mExtras.putCharSequence(Notification.EXTRA_BIG_TEXT, msg); in testGetUpdateMessage_bigText()
112 doReturn(Notification.MediaStyle.class).when(mNotif).getNotificationStyle(); in testGetUpdateMessage_media()
120 doReturn(Notification.InboxStyle.class).when(mNotif).getNotificationStyle(); in testGetUpdateMessage_inboxStyle()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java20 import android.app.Notification;
21 import android.app.Notification.Action;
240 Notification.Builder builder = in updateMissingPrivateVolumes()
241 new Notification.Builder(mContext, NotificationChannels.STORAGE) in updateMissingPrivateVolumes()
248 .setStyle(new Notification.BigTextStyle().bigText(text)) in updateMissingPrivateVolumes()
249 .setVisibility(Notification.VISIBILITY_PUBLIC) in updateMissingPrivateVolumes()
251 .setCategory(Notification.CATEGORY_SYSTEM) in updateMissingPrivateVolumes()
253 .extend(new Notification.TvExtender()); in updateMissingPrivateVolumes()
270 Notification.Builder builder = in onDiskScannedInternal()
271 new Notification.Builder(mContext, NotificationChannels.STORAGE) in onDiskScannedInternal()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDismissibilityCoordinatorTest.kt19 import android.app.Notification
78 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true) in testProviderCleared()
92 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true) in testNonDismissableEntry()
109 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true) in testOngoingNotifWhenPhoneIsLocked()
126 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true) in testOngoingNotifWhenPhoneIsUnLocked()
143 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true) in testOngoingNondismissNotifWhenPhoneIsUnLocked()
144 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true) in testOngoingNondismissNotifWhenPhoneIsUnLocked()
162 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true) in testMultipleEntries()
167 .setFlag(mContext, Notification.FLAG_ONGOING_EVENT, true) in testMultipleEntries()
168 .setFlag(mContext, Notification.FLAG_NO_DISMISS, true) in testMultipleEntries()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java20 import android.app.Notification;
280 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, strings().getTitle()); in createErrorNotification()
283 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createErrorNotification()
298 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, strings().getTitle()); in createRecordingNotification()
309 Notification.Action stopAction = new Notification.Action.Builder( in createRecordingNotification()
313 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createRecordingNotification()
320 .setForegroundServiceBehavior(Notification.FOREGROUND_SERVICE_IMMEDIATE) in createRecordingNotification()
327 protected Notification createProcessingNotification() { in createProcessingNotification()
333 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, strings().getTitle()); in createProcessingNotification()
335 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createProcessingNotification()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageResolver.java20 import android.app.Notification;
161 public void preloadImages(Notification notification) { in preloadImages()
186 private void retrieveWantedUriSet(Notification notification) { in retrieveWantedUriSet()
189 List<Notification.MessagingStyle.Message> messageList; in retrieveWantedUriSet()
190 List<Notification.MessagingStyle.Message> historicList; in retrieveWantedUriSet()
198 messages = extras.getParcelableArray(Notification.EXTRA_MESSAGES); in retrieveWantedUriSet()
200 Notification.MessagingStyle.Message.getMessagesFromBundleArray(messages); in retrieveWantedUriSet()
202 for (Notification.MessagingStyle.Message message : messageList) { in retrieveWantedUriSet()
209 historicMessages = extras.getParcelableArray(Notification.EXTRA_HISTORIC_MESSAGES); in retrieveWantedUriSet()
211 Notification.MessagingStyle.Message.getMessagesFromBundleArray(historicMessages); in retrieveWantedUriSet()
[all …]

12345678910>>...18