/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationRecordLogger.java | 394 old.getSbn().getChannelIdLogTag()) in shouldLogReported() 395 && Objects.equals(r.getSbn().getGroupLogTag(), old.getSbn().getGroupLogTag()) in shouldLogReported() 399 old.getSbn().getNotification().category) in shouldLogReported() 443 return (r.getSbn().getInstanceId() == null ? 0 : r.getSbn().getInstanceId().getId()); in getInstanceId() 450 return SmallHash.hash(Objects.hashCode(r.getSbn().getTag()) ^ r.getSbn().getId()); in getNotificationIdHash() 464 return SmallHash.hash(r.getSbn().getGroup()); in getGroupIdHash() 509 this.package_name = p.r.getSbn().getPackageName(); in NotificationReported() 528 this.is_ongoing = p.r.getSbn().isOngoing(); in NotificationReported() 548 p.r.getSbn().getPostTime(), p.r.getSbn().getNotification().when); in NotificationReported() 570 if (r.getSbn() == null || r.getSbn().getNotification() == null) { in isForegroundService() [all …]
|
H A D | NotificationRecord.java | 433 if (previous.getSbn().getOverrideGroupKey() != null && !getSbn().isAppGroup()) { in copyRankingInformation() 434 getSbn().setOverrideGroupKey(previous.getSbn().getOverrideGroupKey()); in copyRankingInformation() 483 pw.println(prefix + "uid=" + getSbn().getUid() + " userId=" + getSbn().getUserId()); in dump() 659 this.getSbn().getPackageName(), this.getSbn().getUser(), this.getSbn().getId(), in toString() 660 this.getSbn().getTag(), this.mImportance, this.getSbn().getKey(), in toString() 1086 return getSbn().getPostTime(); in calculateRankingTimeMs() 1119 return getSbn().getGroupKey(); in getGroupKey() 1361 return !Objects.equals(getSbn().getPackageName(), getSbn().getOpPkg()); in isProxied() 1426 final int sourceUid = getSbn().getUid(); in visitGrantableUri() 1459 LogMaker lm = getSbn().getLogMaker() in getLogMaker() [all …]
|
H A D | NotificationChannelExtractor.java | 48 record.getSbn().getPackageName(), in process() 49 record.getSbn().getUid(), record.getChannel().getId(), in process() 50 record.getSbn().getShortcutId(), true, false); in process()
|
H A D | NotificationComparator.java | 137 final int leftPriority = left.getSbn().getNotification().priority; in compare() 138 final int rightPriority = right.getSbn().getNotification().priority; in compare() 179 return mMessagingUtil.isImportantMessaging(record.getSbn(), record.getImportance()); in isImportantMessaging() 186 String packageName = record.getSbn().getPackageName(); in isSystemMax() 202 && isDefaultPhoneApp(record.getSbn().getPackageName()); in isCallCategory()
|
H A D | BadgeExtractor.java | 47 boolean userWantsBadges = mConfig.badgingEnabled(record.getSbn().getUser()); in process() 49 mConfig.canShowBadge(record.getSbn().getPackageName(), record.getSbn().getUid()); in process()
|
H A D | NotificationManagerService.java | 1701 record.getSbn().getPackageName(), record.getSbn().getTag(), 2535 r.getSbn().getUid(), r.getSbn().getInitialPid(), r.getSbn().getTag(), in onStart() 4615 r.getSbn().getPackageName(), r.getSbn().getTag(), 7535 r.getSbn().getGroupKey(), r.getSbn().getUserId()); 7806 r.getSbn().getPackageName(), r.getSbn().getKey()); 7817 r.getSbn().getPackageName(), r.getSbn().getKey()); 8097 if (r.getSbn().isGroup() && r.getSbn().getNotification().isGroupSummary()) { 10717 r.getSbn(), 10754 r.getSbn(), 10795 r.getSbn(), [all …]
|
H A D | SnoozeHelper.java | 159 if (r.getUserId() == userId && r.getSbn().getPackageName().equals(pkg)) { in getSnoozed() 174 if (r.getSbn().getPackageName().equals(pkg) && r.getUserId() == userId in getNotifications() 175 && Objects.equals(r.getSbn().getGroup(), groupKey)) { in getNotifications() 249 final StatusBarNotification sbn = record.getValue().getSbn(); in cancel() 283 if (r.getSbn().getPackageName().equals(pkg) && r.getUserId() == userId) { in cancel() 337 if (potentialGroupSummary.getSbn().getPackageName().equals(pkg) in repostGroupSummary() 339 && potentialGroupSummary.getSbn().isGroup() in repostGroupSummary() 371 if (record.getUserId() == userId && record.getSbn().getPackageName().equals(pkg)) { in clearData()
|
H A D | ZenModeFiltering.java | 139 … return record != null && record.getSbn() != null && record.getSbn().getNotification() != null in extras() 140 ? record.getSbn().getNotification().extras : null; in extras() 163 && "android".equals(record.getSbn().getPackageName()) in shouldIntercept() 164 && SystemMessageProto.SystemMessage.NOTE_ZEN_UPGRADE == record.getSbn().getId()) { in shouldIntercept() 337 return record != null && (isDefaultPhoneApp(record.getSbn().getPackageName()) in isCall() 365 return mMessagingUtil.isMessaging(record.getSbn()); in isMessage()
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | SnoozeHelperTest.java | 756 r.getUser().getIdentifier(), r.getSbn().getPackageName(), 757 r.getSbn().getKey())); 760 r2.getSbn().getKey())); 763 r3.getSbn().getKey())); 766 r4.getSbn().getKey())); 783 r.getSbn().getKey()).longValue()); 786 r2.getSbn().getKey()).longValue()); 789 r3.getSbn().getKey())); 792 r4.getSbn().getKey())); 832 rb.getSbn().getKey())); [all …]
|
H A D | NotificationManagerServiceTest.java | 1592 nr.getSbn().getId(), nr.getSbn().getNotification(), nr.getSbn().getUserId()); in testEnqueueNotificationInternal_noChannel() 1602 nr.getSbn().getId(), nr.getSbn().getNotification(), nr.getSbn().getUserId()); in testEnqueueNotificationInternal_noChannel() 2098 n.getSbn().getId(), n.getSbn().getNotification(), n.getSbn().getUserId()); in testUserInitiatedClearAll_noLeak() 4857 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testNoNotificationDuringSetupPermission() 4882 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testNoFakeColorizedPermission() 4908 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testMediaStyleRemote_hasPermission() 4936 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testMediaStyleRemote_noPermission() 4969 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testCustomMediaStyleRemote_noPermission() 4998 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testSubstituteAppName_hasPermission() 5024 PKG, nr.getSbn().getTag(), nr.getSbn().getId(), nr.getSbn().getUserId()); in testSubstituteAppName_noPermission() [all …]
|
H A D | GroupHelperTest.java | 74 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() method in GroupHelperTest 86 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() method in GroupHelperTest 88 return getSbn(pkg, id, tag, user, null); in getSbn() 197 getSbn(pkg2, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM), false); in testNoGroup_multiPackage() 209 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.of(7)), false); in testNoGroup_multiUser() 218 getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), false); in testNoGroup_someAreGrouped() 221 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM, "a"), false); in testNoGroup_someAreGrouped() 230 getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), false); in testAddSummary() 244 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildOngoing_summaryOngoing() 262 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel() [all …]
|
H A D | ZenModeFilteringTest.java | 110 when(r.getSbn()).thenReturn(sbn); in getConversationRecord() 132 when(r.getSbn()).thenReturn(sbn); in getCallRecordWithPeopleInfo() 160 r.getSbn().getNotification().category = Notification.CATEGORY_ALARM; in testIsAlarm() 167 r.getSbn().getNotification().category = CATEGORY_CALL; in testIsAlarm_wrongCategory() 184 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_VisEffectsAllowed() 185 when(r.getSbn().getId()).thenReturn(SystemMessage.NOTE_ZEN_UPGRADE); in testSuppressDNDInfo_yes_VisEffectsAllowed() 195 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_WrongId() 205 when(r.getSbn().getPackageName()).thenReturn("android2"); in testSuppressDNDInfo_yes_WrongPackage() 215 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_no() 227 when(r.getSbn().getPackageName()).thenReturn("bananas"); in testSuppressAnything_yes_ZenModeOff() [all …]
|
H A D | NotificationListenersTest.java | 491 verify(r0, atLeast(2)).getSbn(); in testNotifyPostedLockedInLockdownMode() 495 verify(r1, atLeast(2)).getSbn(); in testNotifyPostedLockedInLockdownMode() 514 verify(r0, never()).getSbn(); in testNotifyPostedLockedInLockdownMode() 518 verify(r1, atLeast(2)).getSbn(); in testNotifyPostedLockedInLockdownMode() 540 when(r0.getSbn()).thenReturn(sbn); in testNotifyRemovedLockedInLockdownMode() 545 when(r1.getSbn()).thenReturn(sbn); in testNotifyRemovedLockedInLockdownMode() 549 verify(r0, atLeast(2)).getSbn(); in testNotifyRemovedLockedInLockdownMode() 553 verify(r1, atLeast(2)).getSbn(); in testNotifyRemovedLockedInLockdownMode() 565 when(r0.getSbn()).thenReturn(sbn); in testNotifyRemovedLockedInLockdownMode() 574 verify(r0, never()).getSbn(); in testNotifyRemovedLockedInLockdownMode() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationChannelHelper.java | 46 final String conversationId = entry.getSbn().getShortcutId(); in createConversationChannelIfNeeded() 47 final String pkg = entry.getSbn().getPackageName(); in createConversationChannelIfNeeded() 48 final int appUid = entry.getSbn().getUid(); in createConversationChannelIfNeeded() 74 Bundle extras = entry.getSbn().getNotification().extras; in getName()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
H A D | NotificationInterruptStateProviderImpl.java | 175 final StatusBarNotification sbn = entry.getSbn(); in shouldBubbleUp() 247 if (entry.getSbn().getNotification().fullScreenIntent == null) { in getFullScreenIntentDecision() 271 StatusBarNotification sbn = entry.getSbn(); in getFullScreenIntentDecision() 346 final int uid = entry.getSbn().getUid(); in logFullScreenIntentDecision() 347 final String packageName = entry.getSbn().getPackageName(); in logFullScreenIntentDecision() 384 StatusBarNotification sbn = entry.getSbn(); in shouldHeadsUpWhenAwake() 450 final int uid = entry.getSbn().getUid(); in shouldHeadsUpWhenAwake() 544 StatusBarNotification sbn = entry.getSbn(); in canAlertHeadsUpCommon() 567 StatusBarNotification sbn = entry.getSbn(); in canAlertAwakeCommon() 624 final int uid = entry.getSbn().getUid(); in shouldSuppressHeadsUpWhenAwakeForOldWhen() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
H A D | NotificationHelper.java | 69 Notification n1 = e1.getSbn().getNotification(); 70 Notification n2 = e2.getSbn().getNotification(); 105 return e != null && e.getSbn().getNotification() != null in isMissedCall() 106 && isMissedCall(e.getSbn().getNotification()); in isMissedCall() 119 getMessagingStyleMessages(e.getSbn().getNotification()); in hasContent() 127 && e.getSbn().getNotification() != null; in isValid() 248 entry.getKey(), entry.getSbn().getGroupKey()); in shouldFilterOut()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotifCollection.java | 321 entry.getSbn().getPackageName(), in dismissNotifications() 323 entry.getSbn().getKey(), in dismissNotifications() 417 if (entry.getSbn().getNotification().isGroupSummary()) { in locallyDismissNotifications() 459 postNotification(event.getSbn(), event.getRanking()); in onNotificationGroupPosted() 612 String groupKey = entry.getSbn().getGroupKey(); in isOnlyChildInGroup() 777 if (entry.getSbn().getNotification().isGroupSummary()) { in cancelLocalDismissal() 779 if (otherEntry.getSbn().getGroupKey().equals(entry.getSbn().getGroupKey()) in cancelLocalDismissal() 875 return entry.getSbn().getGroupKey().equals(dismissedGroupKey) 876 && !entry.getSbn().getNotification().isGroupSummary() 902 return (entry.getSbn().getNotification().flags & flag) != 0; [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationGroupTestHelper.java | 65 entry.getSbn().getNotification().when = when; in createSummaryNotification() 84 entry.getSbn().getNotification().when = when; in createChildNotification() 113 StatusBarNotification oldSbn = entry.getSbn(); in incrementPost() 120 assertThat(entry.getSbn().getPostTime()).isEqualTo(newPostTime); in incrementPost()
|
H A D | StatusBarNotificationActivityStarterTest.java | 188 StatusBarNotification sbn = mNotificationRow.getEntry().getSbn(); in setUp() 194 StatusBarNotification bubbleSbn = mBubbleNotificationRow.getEntry().getSbn(); in setUp() 293 Notification notification = entry.getSbn().getNotification(); in testOnNotificationClicked_keyGuardShowing() 327 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() 359 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 387 StatusBarNotification sbn = entry.getSbn(); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing() 426 when(entry.getSbn()).thenReturn(sbn); in testOnFullScreenIntentWhenDozing_wakeUpDevice() 459 when(entry.getSbn()).thenReturn(sbn); in testOnFullScreenIntentWhenDozing_logToStatsd()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotifCollectionTest.java | 202 assertEquals(summary.sbn, entry.getSbn()); in testGetGroupSummary() 242 assertEquals(notif1.sbn, entry.getSbn()); in testEventDispatchedWhenNotifPosted() 289 assertEquals(entry1.getSbn(), capturedAdds.get(0).getSbn()); in testEventDispatchedWhenNotifBatchPosted() 292 assertEquals(entry3.getSbn(), capturedAdds.get(1).getSbn()); in testEventDispatchedWhenNotifBatchPosted() 298 assertEquals(entry2.getSbn(), capturedUpdate.getSbn()); in testEventDispatchedWhenNotifBatchPosted() 326 assertEquals(notif2.sbn, entry.getSbn()); in testEventDispatchedWhenNotifUpdated() 348 assertEquals(notif.sbn, entry.getSbn()); in testEventDispatchedWhenNotifRemoved() 371 entry.getSbn().getUser(), in testEventDispatchedWhenChannelChanged() 378 entry.getSbn().getUser(), in testEventDispatchedWhenChannelChanged() 1494 container.getSbn(), in testClearNotificationDoesntThrowIfMissing() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
H A D | NotificationInterruptStateProviderImplTest.java | 445 entry.getSbn().getNotification().when = makeWhenHoursAgo(13); in testShouldHeadsUp_oldWhen_whenRecent() 458 entry.getSbn().getNotification().when = 0L; in testShouldHeadsUp_oldWhen_whenZero() 472 entry.getSbn().getNotification().when = -1L; in testShouldHeadsUp_oldWhen_whenNegative() 486 entry.getSbn().getNotification().when = when; in testShouldHeadsUp_oldWhen_hasFullScreenIntent() 501 entry.getSbn().getNotification().when = when; in testShouldHeadsUp_oldWhen_isForegroundService() 516 entry.getSbn().getNotification().when = when; in testShouldNotHeadsUp_oldWhen() 614 assertThat(fakeUiEvent.uid).isEqualTo(entry.getSbn().getUid()); in testShouldNotFullScreen_isGroupAlertSilenced() 641 assertThat(fakeUiEvent.uid).isEqualTo(entry.getSbn().getUid()); in testShouldNotFullScreen_isSuppressedByBubbleMetadata() 753 assertThat(fakeUiEvent.uid).isEqualTo(entry.getSbn().getUid()); in testShouldHeadsUp_snoozed_occluding() 797 assertThat(fakeUiEvent.uid).isEqualTo(entry.getSbn().getUid()); in testShouldHeadsUp_snoozed_lockedShade() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
H A D | PeopleTileKey.java | 56 mUserId = entry.getSbn().getUser() != null in PeopleTileKey() 57 ? entry.getSbn().getUser().getIdentifier() : INVALID_USER_ID; in PeopleTileKey() 58 mPackageName = entry.getSbn().getPackageName(); in PeopleTileKey()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | HeadsUpManager.java | 153 return entry.getSbn().getNotification().fullScreenIntent != null; in hasFullScreenIntent() 166 if (isPinned && entry.getSbn() != null) { in setEntryPinned() 168 NotificationPeekEvent.NOTIFICATION_PEEK, entry.getSbn().getUid(), in setEntryPinned() 169 entry.getSbn().getPackageName(), entry.getSbn().getInstanceId()); in setEntryPinned() 248 String packageName = entry.mEntry.getSbn().getPackageName(); in snooze() 436 Notification n = entry.getSbn().getNotification(); in isCriticalCallNotif() 439 return isIncomingCall || (entry.getSbn().isOngoing() in isCriticalCallNotif()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | SmartReplyController.java | 72 mBarService.onNotificationSmartReplySent(entry.getSbn().getKey(), replyIndex, reply, in smartReplySent() 104 mBarService.onNotificationSmartSuggestionsAdded(entry.getSbn().getKey(), replyCount, in smartSuggestionsAdded() 113 mSendingKeys.remove(entry.getSbn().getKey()); in stopSending()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | ColorizedFgsCoordinator.java | 69 Notification notification = entry.getSbn().getNotification(); 76 Notification notification = entry.getSbn().getNotification();
|