Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java256 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification() local
269 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification() local
283 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade() local
295 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade() local
308 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel() local
321 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification() local
333 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification() local
347 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade() local
360 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel() local
372 StatusBarNotification sbn = getInsistentNotification(false /* defaultBuzz */); in testVibration_insistent_createsInsistentVibrationEffect() local
[all …]
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
401 StatusBarNotification sbn = getSbn(pkg, AUTOGROUP_AT_COUNT + 1, null, UserHandle.SYSTEM); in testAutoGrouped_noOngoing_addOngoingChild() local
417 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAutoGrouped_singleOngoing_appGroupOngoingChild() local
[all …]
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
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
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
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
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
DNotificationManagerServiceTest.java848 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, uid, in generateSbn() local
867 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateNotificationRecord() local
889 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 8, "tag", mUid, 0, in generateNotificationRecord() local
906 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, in generateNotificationRecord() local
925 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateMessageBubbleNotifRecord() local
1098 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 8, "tag", mUid, 0, in testLimitTimeOutBroadcast() local
1303 final StatusBarNotification sbn = generateNotificationRecord(channel).getSbn(); in testBlockedNotifications_blockedChannel() local
1323 final StatusBarNotification sbn = generateNotificationRecord(channel).getSbn(); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() local
1354 StatusBarNotification sbn = generateNotificationRecord(channel).getSbn(); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() local
1408 final StatusBarNotification sbn = generateNotificationRecord(null).getSbn(); in testEnqueuedBlockedNotifications_blockedApp() local
[all …]
/frameworks/base/core/java/com/android/internal/util/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
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()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
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()
DNotificationPersonExtractorPlugin.java41 PersonData extractPerson(StatusBarNotification sbn); in extractPerson()
50 default String extractPersonKey(StatusBarNotification sbn) { in extractPersonKey()
58 default boolean isPersonNotification(StatusBarNotification sbn) { in isPersonNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
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
/frameworks/base/core/tests/coretests/src/android/service/notification/
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
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DTargetSdkResolverTest.kt77 val sbn = createSbn(notification) in resolveFromNotificationExtras() constant
88 val sbn = createSbn(Notification()) in resolveFromPackageManager() constant
101 val sbn = createSbn(Notification()) in resolveFromPackageManager_andPackageManagerCrashes() constant
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
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()
/frameworks/base/core/java/android/service/notification/
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
/frameworks/base/services/core/java/com/android/server/notification/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DInternalNotifUpdater.java36 void onInternalNotificationUpdate(StatusBarNotification sbn, String reason); in onInternalNotificationUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DNotificationHelperTest.java147 StatusBarNotification sbn = new SbnBuilder() in testGetMessagingStyleMessagesNoMessage() local
159 StatusBarNotification sbn = new SbnBuilder() in testGetMessagingStyleMessages() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
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