/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | BubbleExtractorTest.java | 177 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelNo() 332 assertNotNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_previouslyRemoved() 381 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_noIntentInvalidShortcut() 398 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_invalidIntentNoShortcut() 414 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_noIntentNoShortcut() 429 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_noMetadata() 448 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_noShortcut() 467 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_notConversation() 483 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_lowRamDevice() 500 assertNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_noIntent() [all …]
|
H A D | NotificationRecordTest.java | 308 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel() 414 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testImportance_upgrade() 463 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade_defaultLights() 479 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade() 488 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade_noLight() 498 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLogMaker() 528 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLogMakerImportanceApp() 1317 sbn.getNotification().category = Notification.CATEGORY_MESSAGE; in isConversation_pkgAllowed_isMsgType() 1330 sbn.getNotification().category = Notification.CATEGORY_ALARM; in isConversation_pkgAllowed_isMNotsgType() 1343 sbn.getNotification().category = Notification.CATEGORY_MESSAGE; in isConversation_pkgNotAllowed_isMsgType() [all …]
|
H A D | ArchiveTest.java | 76 private StatusBarNotification getNotification(String pkg, int id, UserHandle user) { in getNotification() method in ArchiveTest 89 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead() 104 mArchive.record(getNotification("pkg", 1, UserHandle.of(USER_SYSTEM)), REASON_CANCEL); in testCrossUser() 105 mArchive.record(getNotification("pkg", 2, UserHandle.of(USER_CURRENT)), REASON_CANCEL); in testCrossUser() 106 mArchive.record(getNotification("pkg", 3, UserHandle.of(USER_ALL)), REASON_CANCEL); in testCrossUser() 107 mArchive.record(getNotification("pkg", 4, UserHandle.of(USER_NULL)), REASON_CANCEL); in testCrossUser() 142 StatusBarNotification sbn = getNotification("pkg" + i, i, in testDoesNotRecordIfHistoryDisabled() 162 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRemovesEntriesWhenHistoryDisabled() 183 StatusBarNotification sbn0 = getNotification("pkg", 0, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications() 186 StatusBarNotification sbn = getNotification("pkg", i, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications() [all …]
|
H A D | GroupHelperTest.java | 246 sbn.getNotification().flags |= FLAG_ONGOING_EVENT; in testAddSummary_oneChildOngoing_summaryOngoing() 264 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel() 281 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_allChildrenAutoCancel_summaryAutoCancel() 297 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_summaryAutoCancelNoClear() 299 sbn.getNotification().flags |= FLAG_NO_CLEAR; in testAddSummary_summaryAutoCancelNoClear() 319 sbn.getNotification().flags |= FLAG_ONGOING_EVENT; in testAutoGrouped_allOngoing_updateChildNotOngoing() 402 sbn.getNotification().flags |= FLAG_ONGOING_EVENT; in testAutoGrouped_noOngoing_addOngoingChild() 469 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAutoGrouped_allAutoCancel_updateChildNotAutoCancel() 494 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAutoGrouped_almostAllAutoCancel_updateChildAutoCancel() 520 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAutoGrouped_allAutoCancel_updateChildAppGrouped() [all …]
|
H A D | NotificationManagerServiceTest.java | 2365 sbn.getNotification().flags = in testCancelAfterSecondEnqueueDoesNotSpecifyForegroundFlag() 3184 temp.getNotification(), 0); in testPostNotification_appPermissionFixed() 4938 assertFalse(posted.getNotification().extras in testMediaStyleRemote_noPermission() 4940 assertFalse(posted.getNotification().extras in testMediaStyleRemote_noPermission() 4942 assertFalse(posted.getNotification().extras in testMediaStyleRemote_noPermission() 4971 assertFalse(posted.getNotification().extras in testCustomMediaStyleRemote_noPermission() 4973 assertFalse(posted.getNotification().extras in testCustomMediaStyleRemote_noPermission() 4975 assertFalse(posted.getNotification().extras in testCustomMediaStyleRemote_noPermission() 5000 assertTrue(posted.getNotification().extras in testSubstituteAppName_hasPermission() 5002 assertEquals(posted.getNotification().extras in testSubstituteAppName_hasPermission() [all …]
|
H A D | NotificationRecordLoggerTest.java | 61 private NotificationRecord getNotification(int id, String tag) { in getNotification() method in NotificationRecordLoggerTest 74 return new NotificationRecordLogger.NotificationRecordPair(getNotification(id, tag), in getNotificationRecordPair() 144 p.r.getSbn().getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testIsForegroundService() 154 p.r.getNotification().flags |= Notification.FLAG_NO_DISMISS; in testIsNonDismissible_hasFlagNoDismiss_shouldReturnTrue() 166 p.r.getNotification().flags &= ~Notification.FLAG_NO_DISMISS; in testIsNonDismissible_noFlagNoDismiss_shouldReturnFalse()
|
H A D | NotificationRecordExtractorDataTest.java | 47 r.getNotification().isBubbleNotification(), in testHasDiffs_noDiffs() 75 r.getNotification().isBubbleNotification(), in testHasDiffs_proposedImportanceChange() 109 r.getNotification().isBubbleNotification(), in testHasDiffs_autoBundled() 144 r.getNotification().isBubbleNotification(), in testHasDiffs_sensitiveContentChange()
|
H A D | BuzzBeepBlinkTest.java | 539 r.getNotification().visibility = Notification.VISIBILITY_PUBLIC; in testLockedOverridePrivateA11yRedaction() 561 r.getNotification().visibility = Notification.VISIBILITY_PUBLIC; in testLockedPublicA11yNoRedaction() 576 assertEquals(r.getNotification(), event.getParcelableData()); in testLockedPublicA11yNoRedaction() 598 assertEquals(r.getNotification(), event.getParcelableData()); in testUnlockedPrivateA11yNoRedaction() 1810 record.getNotification().setBubbleMetadata(metadata); in testBubbleSuppressedNotificationDoesntMakeSound() 1812 record.getNotification().flags |= FLAG_BUBBLE; in testBubbleSuppressedNotificationDoesntMakeSound() 1828 record.getNotification().setBubbleMetadata(metadata); in testOverflowBubbleSuppressedNotificationDoesntMakeSound() 1845 record.getNotification().setBubbleMetadata(metadata); in testBubbleUpdateMakesSound() 1847 record.getNotification().flags |= FLAG_BUBBLE; in testBubbleUpdateMakesSound() 1863 record.getNotification().setBubbleMetadata(metadata); in testNewBubbleSuppressedNotifMakesSound() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/service/notification/ |
H A D | StatusBarNotificationTest.java | 110 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData() 121 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory() 152 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup() 163 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup() 180 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson() 189 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle() 199 sbn = getNotification(PKG, null, CHANNEL_ID); in testIsAppGroup() 205 sbn = getNotification(PKG, nb); in testIsAppGroup() 225 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetUidFromKey() 235 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetPkgFromKey() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | RemoteInputNotificationRebuilderTest.java | 81 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInput_image() 94 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInputNoSpinner() 98 assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 100 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 109 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInputWithSpinner() 113 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 115 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 132 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_withExistingInput() 155 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_withExistingInput_image() 169 assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleEntry.java | 81 return mSbn.getNotification().getLocusId(); in getLocusId() 87 return getStatusBarNotification().getNotification().getBubbleMetadata(); in getBubbleMetadata() 101 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 104 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 110 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationRecordLogger.java | 396 && (r.getSbn().getNotification().isGroupSummary() in shouldLogReported() 397 == old.getSbn().getNotification().isGroupSummary()) in shouldLogReported() 398 && Objects.equals(r.getSbn().getNotification().category, in shouldLogReported() 399 old.getSbn().getNotification().category) in shouldLogReported() 409 return getStyle(r.getSbn().getNotification().extras); in getStyle() 423 return getNumPeople(r.getSbn().getNotification().extras); in getNumPeople() 457 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash() 516 this.category = p.r.getSbn().getNotification().category; in NotificationReported() 537 p.r.getSbn().getNotification().fullScreenIntent != null; in NotificationReported() 570 if (r.getSbn() == null || r.getSbn().getNotification() == null) { in isForegroundService() [all …]
|
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() 152 return record.getNotification().isColorized(); in isImportantColorized() 162 if (!record.getNotification().isFgsOrUij()) { in isImportantOngoing() 197 return record.getNotification().isMediaNotification(); in isMediaNotification() 206 return record.getNotification().isStyle(Notification.CallStyle.class); in isCallStyle()
|
H A D | BubbleExtractor.java | 64 if (record == null || record.getNotification() == null) { in process() 83 && !record.getNotification().isFgsOrUij(); in process() 96 record.getNotification().setBubbleMetadata(null); in process() 116 record.getNotification().flags |= FLAG_BUBBLE; in process() 118 record.getNotification().flags &= ~FLAG_BUBBLE; in process() 150 Notification notification = r.getNotification(); in canPresentAsBubble()
|
H A D | BadgeExtractor.java | 38 if (record == null || record.getNotification() == null) { in process() 65 Notification.BubbleMetadata metadata = record.getNotification().getBubbleMetadata(); in process() 71 final Notification notif = record.getNotification(); in process()
|
H A D | NotificationRecord.java | 225 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord() 257 final Notification n = getSbn().getNotification(); in calculateSound() 310 final Notification notification = getSbn().getNotification(); in calculateVibration() 336 final Notification n = getSbn().getNotification(); in calculateAttributes() 362 final Notification n = getSbn().getNotification(); in calculateInitialImportance() 439 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord 661 this.getSbn().getNotification()); in toString() 1076 Notification n = getNotification(); in calculateRankingTimeMs() 1394 final Notification notification = getNotification(); in calculateGrantableUris() 1506 Notification notification = getNotification(); in hasUndecoratedRemoteView() [all …]
|
H A D | NotificationIntrusivenessExtractor.java | 45 if (record == null || record.getNotification() == null) { in process() 58 if (record.getNotification().fullScreenIntent != null) { in process()
|
/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() 148 Notification notification = sbn.getNotification(); in shouldMatchNotificationByUri() 167 ArrayList<Person> people = sbn.getNotification().extras.getParcelableArrayList( in getContactUri() 178 getMessagingStyleMessages(sbn.getNotification()); in getContactUri()
|
/aosp14/frameworks/base/core/java/android/service/notification/ |
H A D | StatusBarNotification.java | 171 if (overrideGroupKey != null && getNotification().isGroupSummary()) { in key() 181 final String group = getNotification().getGroup(); in groupKey() 182 final String sortKey = getNotification().getSortKey(); in groupKey() 207 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { in isAppGroup() 386 public Notification getNotification() { in getNotification() method in StatusBarNotification 428 return getNotification().getGroup(); in getGroup() 501 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker() 503 getNotification().category); in getLogMaker() 504 if (getNotification().extras != null) { in getLogMaker() 512 ArrayList<Person> people = getNotification().extras.getParcelableArrayList( in getLogMaker() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | RemoteInputNotificationRebuilder.java | 102 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildWithRemoteInputInserted() 107 Parcelable[] oldHistoryItems = sbn.getNotification().extras in rebuildWithRemoteInputInserted() 123 newNotification.contentView = sbn.getNotification().contentView; in rebuildWithRemoteInputInserted() 124 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildWithRemoteInputInserted() 125 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildWithRemoteInputInserted()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotificationEntry.java | 201 final boolean fsiRequestedButDenied = (getSbn().getNotification().flags in isStickyAndNotDemoted() 278 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn() 410 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble() 439 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 442 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 518 mSbn.getNotification().color; in getContrastedColor() 582 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply() 801 if (isNotificationBlockedByPolicy(mSbn.getNotification())) { in isExemptFromDndVisualSuppression() 805 if (mSbn.getNotification().isFgsOrUij()) { in isExemptFromDndVisualSuppression() 808 if (mSbn.getNotification().isMediaNotification()) { in isExemptFromDndVisualSuppression()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotificationEntryTest.java | 103 mEntry.getSbn().getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testIsExemptFromDndVisualSuppression_foreground() 225 sbn.getNotification().actions = in testCreateNotificationDataEntry_RankingUpdate() 254 mEntry.getSbn().getNotification().flags &= ~FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_noFlagAndDemoted_returnFalse() 260 mEntry.getSbn().getNotification().flags &= ~FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_noFlagAndNotDemoted_demoteAndReturnFalse() 268 mEntry.getSbn().getNotification().flags |= FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_hasFlagButAlreadyDemoted_returnFalse() 276 mEntry.getSbn().getNotification().flags |= FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_hasFlagAndNotDemoted_returnTrue()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarNotificationActivityStarterTest.java | 189 sbn.getNotification().contentIntent = mContentIntent; in setUp() 190 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp() 195 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp() 196 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp() 293 Notification notification = entry.getSbn().getNotification(); in testOnNotificationClicked_keyGuardShowing() 330 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() 362 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 390 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
|
/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();
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
H A D | NotificationBigPictureTemplateViewWrapper.java | 57 final Bundle extras = sbn.getNotification().extras; in updateImageTag() 65 mRightIcon.setTag(ImageTransformState.ICON_TAG, getLargeIcon(sbn.getNotification())); in updateImageTag()
|