Home
last modified time | relevance | path

Searched defs:sbn (Results 1 – 25 of 83) sorted by relevance

1234

/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationRecordTest.java864 StatusBarNotification sbn = in testCalculateGrantableUris_PappProvided() local
885 StatusBarNotification sbn = in testCalculateGrantableUris_PappProvided_invalidSound() local
904 StatusBarNotification sbn = in testCalculateGrantableUris_PuserOverridden() local
921 StatusBarNotification sbn = in testCalculateGrantableUris_prePappProvided() local
1195 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation() local
1205 StatusBarNotification sbn = getMessagingStyleNotification(PKG_R); in testIsConversation_shortcutHasOneBot_targetsR() local
1247 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut() local
1257 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut_appHasPreviousSentFullConversation() local
1268 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_noShortcut_userDemotedApp() local
1287 StatusBarNotification sbn = getMessagingStyleNotification(); in testIsConversation_channelDemoted() local
[all …]
H A DGroupHelperTest.java244 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildOngoing_summaryOngoing() local
262 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel() local
280 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_allChildrenAutoCancel_summaryAutoCancel() local
296 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_summaryAutoCancelNoClear() local
318 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAutoGrouped_allOngoing_updateChildNotOngoing() local
343 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAutoGrouped_singleOngoing_removeOngoingChild() local
368 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAutoGrouped_noOngoing_updateOngoingChild() local
392 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAutoGrouped_noOngoing_addOngoingChild() local
429 StatusBarNotification sbn = getSbn(pkg, 0, "0", UserHandle.SYSTEM, "app group now"); in testAutoGrouped_singleOngoing_appGroupOngoingChild() local
529 StatusBarNotification sbn = getSbn(pkg, 0, "0", UserHandle.SYSTEM, "app group now"); in testAutoGrouped_allAutoCancel_updateChildAppGrouped() local
[all …]
H A DArchiveTest.java89 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead() local
122 StatusBarNotification sbn = getNotification("pkg" + i, i, UserHandle.of(USER_SYSTEM)); in testRecordAndRead_overLimit() local
142 StatusBarNotification sbn = getNotification("pkg" + i, i, in testDoesNotRecordIfHistoryDisabled() local
162 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRemovesEntriesWhenHistoryDisabled() local
186 StatusBarNotification sbn = getNotification("pkg", i, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications() local
211 StatusBarNotification sbn = getNotification("pkg", i, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications_concurrently() local
H A DNotificationIntrusivenessExtractorTest.java49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testNonIntrusive() local
67 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testIntrusive_fillScreen() local
86 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testOldNotificationsNotIntrusive() local
H A DZenModeFilteringTest.java100 StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationRecord() local
107 StatusBarNotification sbn) { in getConversationRecord()
128 StatusBarNotification sbn = mock(StatusBarNotification.class); in getCallRecordWithPeopleInfo() local
249 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_allAllowed() local
267 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isImportant() local
285 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isNotImportant() local
302 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_notCallOrMsg() local
319 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_callAllowed() local
339 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_msgAllowed() local
H A DNotificationChannelExtractorTest.java63 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testExtractsUpdatedChannel() local
90 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "tag", 0, in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() local
118 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "tag", 0, in testInvalidShortcutFlagDisabled_looksUpCorrectChannel() local
H A DNotificationManagerServiceTest.java849 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, uid, in generateSbn() local
868 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateNotificationRecord() local
926 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateMessageBubbleNotifRecord() local
1452 final StatusBarNotification sbn = in testEnqueuedRestrictedNotifications_hasPermission() local
1476 final StatusBarNotification sbn = in testEnqueuedRestrictedNotifications_notAutomotive() local
2065 final StatusBarNotification sbn = r.getSbn(); in testCancelNotificationsFromListenerImmediatelyAfterEnqueue() local
4847 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, in testNoNotificationDuringSetupPermission() local
4872 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, in testNoFakeColorizedPermission() local
4898 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, in testMediaStyleRemote_hasPermission() local
7186 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, in testCannotRemoveForegroundFlagWhenOverLimit_enqueued() local
[all …]
H A DBadgeExtractorTest.java80 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, in getNotificationRecord() local
111 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, in getNotificationRecordWithBubble() local
136 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, in getNotificationRecordWithMedia() local
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DNotificationMessagingUtil.java53 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging()
61 public boolean isMessaging(StatusBarNotification sbn) { in isMessaging()
66 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { in isDefaultMessagingApp()
95 private boolean hasMessagingStyle(StatusBarNotification sbn) { in hasMessagingStyle()
99 private boolean isCategoryMessage(StatusBarNotification sbn) { in isCategoryMessage()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationListenerWithPlugins.java88 public boolean onPluginNotificationPosted(StatusBarNotification sbn, in onPluginNotificationPosted()
102 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, in onPluginNotificationRemoved()
159 public void addNotification(StatusBarNotification sbn) { in getProvider()
164 public void removeNotification(StatusBarNotification sbn) { in getProvider()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
H A DTvNotificationHandler.java64 public void onNotificationPosted(StatusBarNotification sbn, in onNotificationPosted()
71 mNotifications.put(sbn.getId(), sbn); in onNotificationPosted() local
79 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved()
93 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved()
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DNotificationListenerController.java38 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted()
45 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
79 void addNotification(StatusBarNotification sbn); in addNotification()
80 void removeNotification(StatusBarNotification sbn); in removeNotification()
H A DNotificationPersonExtractorPlugin.java41 PersonData extractPerson(StatusBarNotification sbn); in extractPerson()
50 default String extractPersonKey(StatusBarNotification sbn) { in extractPersonKey()
58 default boolean isPersonNotification(StatusBarNotification sbn) { in isPersonNotification()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarNotificationActivityStarterTest.java188 StatusBarNotification sbn = mNotificationRow.getEntry().getSbn(); in setUp() local
327 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() local
359 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() local
387 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing() local
421 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, in testOnFullScreenIntentWhenDozing_wakeUpDevice() local
454 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, in testOnFullScreenIntentWhenDozing_logToStatsd() local
/aosp14/frameworks/base/core/tests/coretests/src/android/service/notification/
H A DStatusBarNotificationTest.java110 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData() local
163 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup() local
196 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testIsAppGroup() local
215 StatusBarNotification sbn = new StatusBarNotification( in testGetPackageContext_worksWithUserAll() local
225 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetUidFromKey() local
235 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetPkgFromKey() local
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationListener.java140 public void onNotificationPosted(final StatusBarNotification sbn, in onNotificationPosted()
155 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved()
168 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
308 void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationPosted()
309 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationRemoved()
310 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason); in onNotificationRemoved()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
H A DNoManSimulator.java61 public NotifEvent retractNotif(StatusBarNotification sbn, int reason) { in retractNotif()
99 public final StatusBarNotification sbn; field in NoManSimulator.NotifEvent
104 StatusBarNotification sbn, in NotifEvent()
H A DTargetSdkResolverTest.kt77 val sbn = createSbn(notification) regex
88 val sbn = createSbn(Notification()) regex
101 val sbn = createSbn(Notification()) regex
/aosp14/frameworks/base/core/java/android/service/notification/
H A DNotificationAssistantService.java141 abstract public void onNotificationSnoozedUntilContext(@NonNull StatusBarNotification sbn, in onNotificationSnoozedUntilContext()
154 abstract public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn); in onNotificationEnqueued()
166 public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn, in onNotificationEnqueued()
180 public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn, in onNotificationEnqueued()
208 public void onNotificationRemoved(@NonNull StatusBarNotification sbn, in onNotificationRemoved()
374 StatusBarNotification sbn; in onNotificationEnqueuedWithChannel() local
399 StatusBarNotification sbn; in onNotificationSnoozedUntilContext() local
542 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage() local
568 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage() local
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
H A DNotificationInterruptStateProviderImpl.java175 final StatusBarNotification sbn = entry.getSbn(); in shouldBubbleUp() local
271 StatusBarNotification sbn = entry.getSbn(); in getFullScreenIntentDecision() local
384 StatusBarNotification sbn = entry.getSbn(); in shouldHeadsUpWhenAwake() local
544 StatusBarNotification sbn = entry.getSbn(); in canAlertHeadsUpCommon() local
567 StatusBarNotification sbn = entry.getSbn(); in canAlertAwakeCommon() local
580 private boolean isSnoozedPackage(StatusBarNotification sbn) { in isSnoozedPackage()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DGroupHelper.java91 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) { in onNotificationPosted()
104 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved()
121 private void maybeGroup(StatusBarNotification sbn, boolean autogroupSummaryExists) { in maybeGroup()
159 private void maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) { in maybeUngroup()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DNotificationHelper.java137 PackageManager packageManager, StatusBarNotification sbn) { in hasReadContactsPermission()
147 public static boolean shouldMatchNotificationByUri(StatusBarNotification sbn) { in shouldMatchNotificationByUri()
165 public static String getContactUri(StatusBarNotification sbn) { in getContactUri()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
H A DInternalNotifUpdater.java36 void onInternalNotificationUpdate(StatusBarNotification sbn, String reason); in onInternalNotificationUpdate()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A DNotificationHelperTest.java147 StatusBarNotification sbn = new SbnBuilder() in testGetMessagingStyleMessagesNoMessage() local
159 StatusBarNotification sbn = new SbnBuilder() in testGetMessagingStyleMessages() local
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
H A DMediaOutputControllerTest.java224 final StatusBarNotification sbn = mock(StatusBarNotification.class); in setUp() local
900 final StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationLargeIcon_withoutLargeIcon_returnsNull() local
918 final StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationLargeIcon_withPackageNameAndMediaSession_returnsIconCompat() local
937 final StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationLargeIcon_withPackageNameAndNoMediaSession_returnsNull() local
956 final StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationSmallIcon_withoutSmallIcon_returnsNull() local
974 final StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationSmallIcon_withPackageNameAndMediaSession_returnsIconCompat() local

1234