/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BubbleExtractorTest.java | 177 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelNo() 220 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelYesFeatureNo() 235 assertFalse(r.getNotification().isBubbleNotification()); in testAppNoChannelYes() 250 assertFalse(r.getNotification().isBubbleNotification()); in testAppNoChannelDefault() 265 assertFalse(r.getNotification().isBubbleNotification()); in testAppSelectedChannelDefault() 280 assertFalse(r.getNotification().isBubbleNotification()); in testAppSelectedChannelNo() 311 assertFalse(r.getNotification().isBubbleNotification()); in testAppSeletedChannelYesFeatureNo() 332 assertNotNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_previouslyRemoved() 333 assertFalse(r.getNotification().isBubbleNotification()); in testFlagBubble_false_previouslyRemoved() 348 assertNotNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_true_shortcutBubble() [all …]
|
D | NotificationRecordTest.java | 153 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest 226 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest 247 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest 249 return getNotification( in getNotification() 253 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest 255 return getNotification( in getNotification() 283 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification() 296 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification() 310 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade() 322 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade() [all …]
|
D | ArchiveTest.java | 81 private StatusBarNotification getNotification(String pkg, int id, UserHandle user) { in getNotification() method in ArchiveTest 94 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead() 109 mArchive.record(getNotification("pkg", 1, UserHandle.of(USER_SYSTEM)), REASON_CANCEL); in testCrossUser() 110 mArchive.record(getNotification("pkg", 2, UserHandle.of(USER_CURRENT)), REASON_CANCEL); in testCrossUser() 111 mArchive.record(getNotification("pkg", 3, UserHandle.of(USER_ALL)), REASON_CANCEL); in testCrossUser() 112 mArchive.record(getNotification("pkg", 4, UserHandle.of(USER_NULL)), REASON_CANCEL); in testCrossUser() 127 StatusBarNotification sbn = getNotification("pkg" + i, i, UserHandle.of(USER_SYSTEM)); in testRecordAndRead_overLimit() 147 StatusBarNotification sbn = getNotification("pkg" + i, i, in testDoesNotRecordIfHistoryDisabled() 167 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRemovesEntriesWhenHistoryDisabled() 188 StatusBarNotification sbn0 = getNotification("pkg", 0, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications() [all …]
|
D | NotificationManagerServiceTest.java | 1275 nrBubble.getSbn().getId(), nrBubble.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded() 1282 assertTrue((notifsAfter[0].getNotification().flags & FLAG_BUBBLE) != 0); in addGroupWithBubblesAndValidateAdded() 1290 nrPlain.getSbn().getId(), nrPlain.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded() 1303 nrSummary.getNotification().flags |= FLAG_AUTO_CANCEL; in addGroupWithBubblesAndValidateAdded() 1306 nrSummary.getSbn().getId(), nrSummary.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded() 1344 nr.getSbn().getId(), nr.getSbn().getNotification(), nr.getSbn().getUserId()); in createAndPostNotification() 1639 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel() 1657 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 1659 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 1688 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() [all …]
|
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()
|
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()
|
D | GroupHelperTest.java | 120 when(r.getNotification()).thenReturn(sbn.getNotification()); in setUp() 330 sbn.getNotification().flags |= FLAG_ONGOING_EVENT; in testAddSummary_oneChildOngoing_summaryOngoing_alwaysAutogroup() 349 sbn.getNotification().flags |= FLAG_ONGOING_EVENT; in testAddSummary_oneChildOngoing_summaryOngoing() 368 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel_alwaysAutogroup() 387 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel() 405 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_allChildrenAutoCancel_summaryAutoCancel_alwaysAutogroup() 422 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_allChildrenAutoCancel_summaryAutoCancel() 439 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_summaryAutoCancelNoClear_alwaysAutogroup() 441 sbn.getNotification().flags |= FLAG_NO_CLEAR; in testAddSummary_summaryAutoCancelNoClear_alwaysAutogroup() 459 sbn.getNotification().flags |= FLAG_AUTO_CANCEL; in testAddSummary_summaryAutoCancelNoClear() [all …]
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 90 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker() 110 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData() 121 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory() 128 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel() 135 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel() 144 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup() 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() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
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 …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
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()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
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() 515 this.is_group_summary = p.r.getSbn().getNotification().isGroupSummary(); in NotificationReported() 516 this.category = p.r.getSbn().getNotification().category; in NotificationReported() 530 this.timeout_millis = p.r.getSbn().getNotification().getTimeoutAfter(); in NotificationReported() [all …]
|
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()
|
D | GroupHelper.java | 160 NotificationAttributes attr = new NotificationAttributes(sbn.getNotification().flags, in maybeGroup() 161 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeGroup() 162 sbn.getNotification().visibility); in maybeGroup() 175 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeGroup() 184 Icon summaryIcon = sbn.getNotification().getSmallIcon(); in maybeGroup() 185 int summaryIconColor = sbn.getNotification().color; in maybeGroup() 269 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeUngroup()
|
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()
|
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()
|
D | NotificationChannelExtractor.java | 64 if (record == null || record.getNotification() == null) { in process() 84 && !record.getNotification().isStyle(Notification.CallStyle.class) in process() 89 && record.getNotification().category != CATEGORY_ALARM in process()
|
D | NotificationIntrusivenessExtractor.java | 45 if (record == null || record.getNotification() == null) { in process() 58 if (record.getNotification().fullScreenIntent != null) { in process()
|
D | NotificationRecord.java | 232 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord() 264 final Notification n = getSbn().getNotification(); in calculateSound() 300 final Notification notification = getSbn().getNotification(); in calculateLights() 338 final Notification notification = getSbn().getNotification(); in calculateVibration() 355 final Notification n = getSbn().getNotification(); in calculateAttributes() 381 final Notification n = getSbn().getNotification(); in calculateInitialImportance() 458 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord 459 public int getFlags() { return getSbn().getNotification().flags; } in getFlags() 476 proto.write(NotificationRecordProto.FLAGS, getSbn().getNotification().flags); in dump() 499 final Notification notification = getSbn().getNotification(); in dump() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
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()
|
/frameworks/base/core/java/android/service/notification/ |
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() 388 public Notification getNotification() { in getNotification() method in StatusBarNotification 430 return getNotification().getGroup(); in getGroup() 503 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker() 505 getNotification().category); in getLogMaker() 506 if (getNotification().extras != null) { in getLogMaker() 509 String template = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in getLogMaker() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | RemoteInputNotificationRebuilder.java | 113 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildWithRemoteInputInserted() 130 Parcelable[] oldHistoryItems = sbn.getNotification().extras in rebuildWithRemoteInputInserted() 146 Parcelable[] oldHistoryItems = sbn.getNotification().extras in rebuildWithRemoteInputInserted() 163 newNotification.contentView = sbn.getNotification().contentView; in rebuildWithRemoteInputInserted() 164 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildWithRemoteInputInserted() 165 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildWithRemoteInputInserted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 204 final boolean fsiRequestedButDenied = (getSbn().getNotification().flags in isStickyAndNotDemoted() 296 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn() 428 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble() 457 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 460 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 536 mSbn.getNotification().color; in getContrastedColor() 587 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply() 804 if (isNotificationBlockedByPolicy(mSbn.getNotification())) { in isExemptFromDndVisualSuppression() 808 if (mSbn.getNotification().isFgsOrUij()) { in isExemptFromDndVisualSuppression() 811 if (mSbn.getNotification().isMediaNotification()) { in isExemptFromDndVisualSuppression() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | SingleLineViewInflaterTest.kt | 95 val notification = getNotification(NonMessaging()) in <lambda>() 109 val notification = getNotification(notificationType) in <lambda>() 136 val notification = getNotification(notificationType) in <lambda>() 157 val notification = getNotification(notificationType) in <lambda>() 180 val notification = getNotification(notificationType) in <lambda>() 209 val notification = getNotification(notificationType) in <lambda>() 239 val notification = getNotification(notificationType) in <lambda>() 288 private fun getNotification(type: NotificationType): Notification { in <lambda>() method
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarNotificationActivityStarterTest.java | 195 sbn.getNotification().contentIntent = mContentIntent; in setUp() 196 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp() 201 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp() 202 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp() 301 Notification notification = entry.getSbn().getNotification(); in testOnNotificationClicked_keyGuardShowing() 338 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() 370 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 398 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing() 427 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationBubbleIconClicked_unbubble_keyGuardShowing() 449 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationBubbleIconClicked_bubble_keyGuardShowing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ColorizedFgsCoordinator.java | 75 Notification notification = entry.getSbn().getNotification(); in isColorizedForegroundService() 82 Notification notification = entry.getSbn().getNotification(); in isCall()
|