Home
last modified time | relevance | path

Searched refs:StatusBarNotification (Results 1 – 25 of 229) sorted by relevance

12345678910

/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DArchiveTest.java34 import android.service.notification.StatusBarNotification;
81 return new StatusBarNotification( in getNotification()
89 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead()
97 for (StatusBarNotification sbn : actual) { in testRecordAndRead()
111 for (StatusBarNotification sbn : actual) { in testCrossUser()
129 List<StatusBarNotification> actual = Arrays.asList( in testRecordAndRead_overLimit()
132 for (StatusBarNotification sbn : actual) { in testRecordAndRead_overLimit()
152 for (StatusBarNotification sbn : actual) { in testDoesNotRecordIfHistoryDisabled()
173 for (StatusBarNotification sbn : actual) { in testRemovesEntriesWhenHistoryDisabled()
198 for (StatusBarNotification sbn : actual) { in testRemoveChannelNotifications()
[all …]
H A DNotificationRecordTest.java68 import android.service.notification.StatusBarNotification;
228 private StatusBarNotification getMessagingStyleNotification() { in getMessagingStyleNotification()
820 StatusBarNotification sbn = in testCalculateGrantableUris_PappProvided()
844 StatusBarNotification sbn = in testCalculateGrantableUris_PuserOverridden()
861 StatusBarNotification sbn = in testCalculateGrantableUris_prePappProvided()
1163 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation()
1215 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut()
1225 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut_appHasPreviousSentFullConversation()
1236 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut_userDemotedApp()
1255 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_channelDemoted()
[all …]
H A DGroupHelperTest.java32 import android.service.notification.StatusBarNotification;
167 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_addingNoGroupSBN()
172 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_addingNoGroupSBN()
192 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_UpdateNotification()
197 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_UpdateNotification()
221 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_UpdateNotificationAfterChanges()
226 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_UpdateNotificationAfterChanges()
254 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_RemoveNotification()
259 for (StatusBarNotification sbn: notifications) { in testAutoGroupCount_RemoveNotification()
393 final StatusBarNotification sbn = in testAppStartsGrouping()
[all …]
H A DZenModeFilteringTest.java47 import android.service.notification.StatusBarNotification;
82 StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationRecord()
89 StatusBarNotification sbn) { in getConversationRecord()
208 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_allAllowed()
226 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isImportant()
244 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isNotImportant()
261 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_notCallOrMsg()
278 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_callAllowed()
298 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_msgAllowed()
H A DNotificationIntrusivenessExtractorTest.java33 import android.service.notification.StatusBarNotification;
49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testNonIntrusive()
67 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testIntrusive_fillScreen()
86 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testOldNotificationsNotIntrusive()
H A DGlobalSortKeyComparatorTest.java24 import android.service.notification.StatusBarNotification;
51 new StatusBarNotification(PKG, in testComparator()
58 new StatusBarNotification(PKG, in testComparator()
65 new StatusBarNotification(PKG, in testComparator()
90 new StatusBarNotification(PKG, in testNoCrash_leftNull()
96 new StatusBarNotification(PKG, in testNoCrash_leftNull()
120 new StatusBarNotification(PKG, in testNoCrash_rightNull()
127 new StatusBarNotification(PKG, in testNoCrash_rightNull()
H A DNotificationComparatorTest.java42 import android.service.notification.StatusBarNotification;
124 new StatusBarNotification(callPkg, in setUp()
135 mRecordMinCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp()
145 mRecordHighCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp()
174 mRecordSms = new NotificationRecord(mContext, new StatusBarNotification(smsPkg, in setUp()
188 mRecordContact = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
195 mRecordUrgent = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
205 mRecordCheater = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
213 mRecordEmail = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
232 mNoMediaSessionMedia = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
[all …]
H A DNotificationChannelExtractorTest.java34 import android.service.notification.StatusBarNotification;
63 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testExtractsUpdatedChannel()
90 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "tag", 0, in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
118 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "tag", 0, in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/
H A DNotificationThrottler.java22 import android.service.notification.StatusBarNotification;
59 static Set<StatusBarNotification> throttle( in throttle()
63 Set<StatusBarNotification> throttledNotificationSet = new HashSet<>(); in throttle()
72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle()
86 for (StatusBarNotification currentNotification : activeNotifications) { in throttle()
108 private static List<StatusBarNotification> getSortedMatchingNotifications( in getSortedMatchingNotifications()
110 List<StatusBarNotification> notifications = new ArrayList<>(); in getSortedMatchingNotifications()
112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications()
119 new Comparator<StatusBarNotification>() { in getSortedMatchingNotifications()
121 public int compare(StatusBarNotification left, StatusBarNotification right) { in getSortedMatchingNotifications()
[all …]
H A DDialerNotificationManager.java22 import android.service.notification.StatusBarNotification;
72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel()
76 Pair<StatusBarNotification, Integer> groupSummaryAndCount = in cancel()
94 for (StatusBarNotification notification : notifications) { in cancelAll()
108 @NonNull StatusBarNotification[] notifications, @NonNull String tag, int id) { in findGroupKey()
109 for (StatusBarNotification notification : notifications) { in findGroupKey()
118 private static Pair<StatusBarNotification, Integer> getGroupSummaryAndCount( in getGroupSummaryAndCount()
119 @NonNull StatusBarNotification[] notifications, @NonNull String groupKey) { in getGroupSummaryAndCount()
120 StatusBarNotification groupSummaryNotification = null; in getGroupSummaryAndCount()
122 for (StatusBarNotification notification : notifications) { in getGroupSummaryAndCount()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/
H A DNotificationListener.kt20 import android.service.notification.StatusBarNotification
25 private val notifications: MutableMap<Any, StatusBarNotification> = mutableMapOf()
27 override fun onNotificationPosted(sbn: StatusBarNotification) {
32 override fun onNotificationRemoved(sbn: StatusBarNotification) {
78 predicate: (StatusBarNotification) -> Boolean
79 ): StatusBarNotification? {
86 predicate: (StatusBarNotification) -> Boolean
87 ): StatusBarNotification? {
96 predicate: (StatusBarNotification) -> Boolean
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DForegroundServiceControllerTest.java38 import android.service.notification.StatusBarNotification;
169 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testNeedsDisclosureAfterRemovingUnrelatedNotification()
196 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testSimpleAddRemove()
241 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testDisclosureBasic()
394 final StatusBarNotification sbn = mock(StatusBarNotification.class); in makeMockSBN()
405 private StatusBarNotification makeMockSBN(int uid, String pkg, int id, in makeMockSBN()
407 StatusBarNotification sbn = makeMockSBN(uid, pkg, id, "foo", 0); in makeMockSBN()
420 StatusBarNotification sbn = in makeMockFgSBN()
432 private StatusBarNotification makeMockFgSBN(int uid, String pkg) { in makeMockFgSBN()
443 final StatusBarNotification sbn = makeMockSBN(userid, "android", in makeMockDisclosure()
[all …]
/aosp12/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DNotificationListenerController.java20 import android.service.notification.StatusBarNotification;
38 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted()
45 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
61 default StatusBarNotification[] getActiveNotifications( in getActiveNotifications()
62 StatusBarNotification[] activeNotifications) { in getActiveNotifications()
75 StatusBarNotification[] getActiveNotifications(); in getActiveNotifications()
79 void addNotification(StatusBarNotification sbn); in addNotification()
80 void removeNotification(StatusBarNotification sbn); in removeNotification()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DEapFailureNotifierTest.java30 import android.service.notification.StatusBarNotification;
118 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
119 activeNotifications[0] = new StatusBarNotification("android", "", 56, "", 0, 0, 0, in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
143 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailure_showNotificationFalse_notShown()
144 activeNotifications[0] = new StatusBarNotification("android", "", 56, "", 0, 0, 0, in onEapFailure_showNotificationFalse_notShown()
164 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid()
165 activeNotifications[0] = new StatusBarNotification("android", "", 57, "", 0, 0, 0, in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid()
192 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErroCodeWithNotificationShownWithSameSsid()
193 activeNotifications[0] = new StatusBarNotification("android", "", 57, "", 0, 0, 0, in onEapFailureWithDefinedErroCodeWithNotificationShownWithSameSsid()
212 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithUnDefinedErrorCode()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationListener.java31 import android.service.notification.StatusBarNotification;
118 StatusBarNotification sbn = (StatusBarNotification) message.obj; in handleWorkerMessage()
125 StatusBarNotification sbn = (StatusBarNotification) message.obj; in handleWorkerMessage()
148 List<StatusBarNotification> activeNotifications = null; in handleWorkerMessage()
171 for (StatusBarNotification sbn : getActiveNotifications(keys)) { in handleWorkerMessage()
199 (List<StatusBarNotification>) message.obj); in handleUiMessage()
240 public void onNotificationPosted(final StatusBarNotification sbn) { in onNotificationPosted()
247 public void onNotificationRemoved(final StatusBarNotification sbn) { in onNotificationRemoved()
267 private void updateGroupKeyIfNecessary(StatusBarNotification sbn) { in updateGroupKeyIfNecessary()
305 StatusBarNotification[] notifications = getActiveNotifications( in getNotificationsForKeys()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipNotificationTests.kt22 import android.service.notification.StatusBarNotification
75 val notification: StatusBarNotification = waitForNotificationToAppear {
93 val notification: StatusBarNotification = waitForNotificationToAppear {
154 private val StatusBarNotification.extras: Bundle? regex
157 private val StatusBarNotification.title: String regex
161 private val StatusBarNotification.tvExtensions: Bundle? regex
165 private val StatusBarNotification.contentIntent: PendingIntent? regex
169 private val StatusBarNotification.deleteIntent: PendingIntent? regex
172 private fun StatusBarNotification.isPipNotificationWithTitle(expectedTitle: String): Boolean = regex
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
H A DTvNotificationHandler.java23 import android.service.notification.StatusBarNotification;
39 private final SparseArray<StatusBarNotification> mNotifications = new SparseArray<>();
49 public SparseArray<StatusBarNotification> getCurrentNotifications() { in getCurrentNotifications()
64 public void onNotificationPosted(StatusBarNotification sbn, in onNotificationPosted()
79 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved()
93 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved()
112 void notificationsUpdated(SparseArray<StatusBarNotification> sbns); in notificationsUpdated()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationListenerWithPlugins.java23 import android.service.notification.StatusBarNotification;
59 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications()
60 StatusBarNotification[] activeNotifications = super.getActiveNotifications(); in getActiveNotifications()
85 public boolean onPluginNotificationPosted(StatusBarNotification sbn, in onPluginNotificationPosted()
99 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, in onPluginNotificationRemoved()
143 public StatusBarNotification[] getActiveNotifications() { in getProvider()
153 public void addNotification(StatusBarNotification sbn) { in getProvider()
158 public void removeNotification(StatusBarNotification sbn) { in getProvider()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java45 public class StatusBarNotification implements Parcelable { class
75 public StatusBarNotification(String pkg, String opPkg, int id, in StatusBarNotification() method in StatusBarNotification
118 public StatusBarNotification(Parcel in) { in StatusBarNotification() method in StatusBarNotification
220 Parcelable.Creator<StatusBarNotification> CREATOR =
221 new Parcelable.Creator<StatusBarNotification>() {
223 return new StatusBarNotification(parcel);
226 public StatusBarNotification[] newArray(int size) {
227 return new StatusBarNotification[size];
234 public StatusBarNotification cloneLight() { in cloneLight()
241 public StatusBarNotification clone() { in clone()
[all …]
H A DNotificationListenerService.java431 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted()
465 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved()
953 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications()
1038 private StatusBarNotification[] cleanUpNotificationList( in cleanUpNotificationList()
1041 return new StatusBarNotification[0]; in cleanUpNotificationList()
1043 List<StatusBarNotification> list = parceledList.getList(); in cleanUpNotificationList()
1047 StatusBarNotification sbn = list.get(i); in cleanUpNotificationList()
1389 StatusBarNotification sbn; in onNotificationPosted()
1434 StatusBarNotification sbn; in onNotificationRemoved()
2303 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DRemoteInputNotificationRebuilder.java25 import android.service.notification.StatusBarNotification;
56 public StatusBarNotification rebuildForSendingSmartReply(NotificationEntry entry, in rebuildForSendingSmartReply()
69 public StatusBarNotification rebuildForCanceledSmartReplies( in rebuildForCanceledSmartReplies()
81 public StatusBarNotification rebuildForRemoteInputReply(NotificationEntry entry) { in rebuildForRemoteInputReply()
88 StatusBarNotification newSbn = rebuildWithRemoteInputInserted(entry, in rebuildForRemoteInputReply()
97 StatusBarNotification rebuildWithRemoteInputInserted(NotificationEntry entry, in rebuildWithRemoteInputInserted()
99 StatusBarNotification sbn = entry.getSbn(); in rebuildWithRemoteInputInserted()
127 return new StatusBarNotification( in rebuildWithRemoteInputInserted()
H A DNotificationListener.java31 import android.service.notification.StatusBarNotification;
86 final StatusBarNotification[] notifications = getActiveNotifications(); in onListenerConnected()
99 for (StatusBarNotification sbn : notifications) { in onListenerConnected()
104 for (StatusBarNotification sbn : notifications) { in onListenerConnected()
118 public void onNotificationPosted(final StatusBarNotification sbn, in onNotificationPosted()
133 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved()
146 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
242 void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationPosted()
243 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationRemoved()
244 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason); in onNotificationRemoved()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DNotificationMessagingUtil.java28 import android.service.notification.StatusBarNotification;
50 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging()
58 public boolean isMessaging(StatusBarNotification sbn) { in isMessaging()
63 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { in isDefaultMessagingApp()
88 private boolean hasMessagingStyle(StatusBarNotification sbn) { in hasMessagingStyle()
92 private boolean isCategoryMessage(StatusBarNotification sbn) { in isCategoryMessage()
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
H A DNotificationEntryTest.java43 import android.service.notification.StatusBarNotification;
75 private StatusBarNotification generateSbn(String channelId) { in generateSbn()
80 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, 0, n, in generateSbn()
84 private StatusBarNotification generateSbn(String channelId, String packageName) { in generateSbn()
89 return new StatusBarNotification(packageName, packageName, 0, "tag", mUid, mUid, 0, n, in generateSbn()
93 private StatusBarNotification generateSbn(Notification n) { in generateSbn()
94 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, 0, n, in generateSbn()
112 StatusBarNotification sbn = generateSbn(channel.getId()); in testHasPerson()
125 StatusBarNotification sbn = generateSbn(channel.getId()); in testNotPerson()
134 StatusBarNotification sbn = generateSbn(channel.getId(), DEFAULT_SMS_PACKAGE_NAME); in testHasPerson_matchesDefaultSmsApp()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/service/notification/
H A DStatusBarNotificationTest.java107 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
135 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongChannel()
154 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongGroup()
160 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
193 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testIsAppGroup()
212 StatusBarNotification sbn = new StatusBarNotification( in testGetPackageContext_worksWithUserAll()
220 private StatusBarNotification getNotification(String pkg, String group, String channelId) { in getNotification()
235 private StatusBarNotification getNotification(String pkg, Notification.Builder builder) { in getNotification()
237 return new StatusBarNotification( in getNotification()

12345678910