Home
last modified time | relevance | path

Searched refs:getNotification (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBubbleExtractorTest.java186 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelNo()
232 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelYesFeatureNo()
248 assertFalse(r.getNotification().isBubbleNotification()); in testAppNoChannelYes()
264 assertFalse(r.getNotification().isBubbleNotification()); in testAppNoChannelDefault()
280 assertFalse(r.getNotification().isBubbleNotification()); in testAppSelectedChannelDefault()
296 assertFalse(r.getNotification().isBubbleNotification()); in testAppSelectedChannelNo()
329 assertFalse(r.getNotification().isBubbleNotification()); in testAppSeletedChannelYesFeatureNo()
351 assertNotNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_false_previouslyRemoved()
352 assertFalse(r.getNotification().isBubbleNotification()); in testFlagBubble_false_previouslyRemoved()
368 assertNotNull(r.getNotification().getBubbleMetadata()); in testFlagBubble_true_shortcutBubble()
[all …]
DNotificationRecordTest.java160 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest
233 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest
254 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest
256 return getNotification( in getNotification()
260 private StatusBarNotification getNotification( in getNotification() method in NotificationRecordTest
262 return getNotification( in getNotification()
290 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification()
303 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification()
317 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade()
329 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade()
[all …]
DArchiveTest.java81 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 …]
DNotificationRecordLoggerTest.java61 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()
DNotificationManagerServiceTest.java1350 nrBubble.getSbn().getId(), nrBubble.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
1357 assertTrue((notifsAfter[0].getNotification().flags & FLAG_BUBBLE) != 0); in addGroupWithBubblesAndValidateAdded()
1365 nrPlain.getSbn().getId(), nrPlain.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
1378 nrSummary.getNotification().flags |= FLAG_AUTO_CANCEL; in addGroupWithBubblesAndValidateAdded()
1381 nrSummary.getSbn().getId(), nrSummary.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
1419 nr.getSbn().getId(), nr.getSbn().getNotification(), nr.getSbn().getUserId()); in createAndPostNotification()
1714 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel()
1732 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1734 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1763 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
[all …]
DNotificationRecordExtractorDataTest.java54 r.getNotification().isBubbleNotification(), in testHasDiffs_noDiffs()
83 r.getNotification().isBubbleNotification(), in testHasDiffs_proposedImportanceChange()
118 r.getNotification().isBubbleNotification(), in testHasDiffs_autoBundled()
154 r.getNotification().isBubbleNotification(), in testHasDiffs_sensitiveContentChange()
190 r.getNotification().isBubbleNotification(), in testHasDiffs_summarization()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java105 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker()
125 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
136 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory()
143 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel()
150 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel()
159 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup()
167 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup()
178 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
195 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson()
204 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DRemoteInputNotificationRebuilderTest.java81 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/
DBubbleEntry.java81 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/packages/SystemUI/src/com/android/systemui/people/
DNotificationHelper.java69 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/
DStatusBarNotification.java186 if (overrideGroupKey != null && getNotification().isGroupSummary()) { in key()
200 final String group = getNotification().getGroup(); in groupKey()
201 final String sortKey = getNotification().getSortKey(); in groupKey()
226 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { in isAppGroup()
407 public Notification getNotification() { in getNotification() method in StatusBarNotification
449 return getNotification().getGroup(); in getGroup()
547 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker()
549 getNotification().category); in getLogMaker()
550 if (getNotification().extras != null) { in getLogMaker()
553 String template = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in getLogMaker()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DGroupHelper.java317 NotificationAttributes attr = new NotificationAttributes(sbn.getNotification().flags, in maybeGroup()
318 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeGroup()
319 sbn.getNotification().visibility, Notification.GROUP_ALERT_CHILDREN, in maybeGroup()
320 sbn.getNotification().getChannelId()); in maybeGroup()
333 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeGroup()
335 sbn.getNotification().getChannelId()); in maybeGroup()
344 Icon summaryIcon = sbn.getNotification().getSmallIcon(); in maybeGroup()
345 int summaryIconColor = sbn.getNotification().color; in maybeGroup()
347 String summaryChannelId = sbn.getNotification().getChannelId(); in maybeGroup()
432 sbn.getNotification().getSmallIcon(), sbn.getNotification().color, in maybeUngroup()
[all …]
DNotificationComparator.java137 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()
DNotificationRecordLogger.java411 && (r.getSbn().getNotification().isGroupSummary() in shouldLogReported()
412 == old.getSbn().getNotification().isGroupSummary()) in shouldLogReported()
413 && Objects.equals(r.getSbn().getNotification().category, in shouldLogReported()
414 old.getSbn().getNotification().category) in shouldLogReported()
424 return getStyle(r.getSbn().getNotification().extras); in getStyle()
438 return getNumPeople(r.getSbn().getNotification().extras); in getNumPeople()
472 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
524 final Notification notification = p.r.getSbn().getNotification(); in NotificationReported()
581 if (r.getSbn() == null || r.getSbn().getNotification() == null) { in isForegroundService()
584 return (r.getSbn().getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) != 0; in isForegroundService()
[all …]
DBubbleExtractor.java66 if (record == null || record.getNotification() == null) { in process()
90 && !record.getNotification().isFgsOrUij(); in process()
103 record.getNotification().setBubbleMetadata(null); in process()
123 record.getNotification().flags |= FLAG_BUBBLE; in process()
125 record.getNotification().flags &= ~FLAG_BUBBLE; in process()
161 Notification notification = r.getNotification(); in canPresentAsBubble()
DBadgeExtractor.java38 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()
DNotificationChannelExtractor.java64 if (record == null || record.getNotification() == null) { in process()
89 && !record.getNotification().isStyle(Notification.CallStyle.class) in process()
94 && !CATEGORY_ALARM.equals(record.getNotification().category) in process()
DNotificationIntrusivenessExtractor.java45 if (record == null || record.getNotification() == null) { in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
DNotificationRecord.java241 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
273 final Notification n = getSbn().getNotification(); in calculateSound()
309 final Notification notification = getSbn().getNotification(); in calculateLights()
356 final Notification notification = getSbn().getNotification(); in calculateVibration()
373 final Notification n = getSbn().getNotification(); in calculateAttributes()
399 final Notification n = getSbn().getNotification(); in calculateInitialImportance()
483 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord
484 public int getFlags() { return getSbn().getNotification().flags; } in getFlags()
501 proto.write(NotificationRecordProto.FLAGS, getSbn().getNotification().flags); in dump()
524 final Notification notification = getSbn().getNotification(); in dump()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DRemoteInputNotificationRebuilder.java114 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildWithRemoteInputInserted()
131 Parcelable[] oldHistoryItems = sbn.getNotification().extras in rebuildWithRemoteInputInserted()
147 Parcelable[] oldHistoryItems = sbn.getNotification().extras in rebuildWithRemoteInputInserted()
164 newNotification.contentView = sbn.getNotification().contentView; in rebuildWithRemoteInputInserted()
165 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildWithRemoteInputInserted()
166 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildWithRemoteInputInserted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java211 final boolean fsiRequestedButDenied = (getSbn().getNotification().flags in isStickyAndNotDemoted()
303 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn()
435 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
464 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble()
467 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble()
556 mSbn.getNotification().color; in getContrastedColor()
607 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply()
655 return getSbn().getNotification().isMediaNotification(); in isMediaNotification()
664 return getSbn().getNotification().containsCustomViews(); in containsCustomViews()
838 if (isNotificationBlockedByPolicy(mSbn.getNotification())) { in isExemptFromDndVisualSuppression()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DSingleLineViewInflaterTest.kt95 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>()
279 val notification = getNotification(notificationType) in <lambda>()
317 private fun getNotification(type: NotificationType): Notification { in <lambda>() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterTest.java197 sbn.getNotification().contentIntent = mContentIntent; in setUp()
198 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
203 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp()
204 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
299 Notification notification = entry.getSbn().getNotification(); in testOnNotificationClicked_keyGuardShowing()
336 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
368 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
396 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
425 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationBubbleIconClicked_unbubble_keyGuardShowing()
451 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationBubbleIconClicked_bubble_keyGuardShowing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationPanelLogger.java116 if (n.getNotification() != null) { in toNotificationProto()
117 proto.isGroupSummary = n.getNotification().isGroupSummary(); in toNotificationProto()
152 if (n.getNotification() != null) { in adapterToNotificationProto()
153 proto.isGroupSummary = n.getNotification().isGroupSummary(); in adapterToNotificationProto()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java113 mEntry.getSbn().getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testIsExemptFromDndVisualSuppression_foreground()
237 sbn.getNotification().actions = in testCreateNotificationDataEntry_RankingUpdate()
267 mEntry.getSbn().getNotification().flags &= ~FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_noFlagAndDemoted_returnFalse()
273 mEntry.getSbn().getNotification().flags &= ~FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_noFlagAndNotDemoted_demoteAndReturnFalse()
281 mEntry.getSbn().getNotification().flags |= FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_hasFlagButAlreadyDemoted_returnFalse()
289 mEntry.getSbn().getNotification().flags |= FLAG_FSI_REQUESTED_BUT_DENIED; in testIsStickyAndNotDemoted_hasFlagAndNotDemoted_returnTrue()
298 mEntry.getSbn().getNotification().flags &= ~FLAG_PROMOTED_ONGOING; in isPromotedOngoing_noFlagOnNotif_false()
306 mEntry.getSbn().getNotification().flags |= FLAG_PROMOTED_ONGOING; in isPromotedOngoing_statusBarNotifChipsFlagAndUiFlagOff_false()

12345