Home
last modified time | relevance | path

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

12345

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBubbleExtractorTest.java177 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 …]
DNotificationRecordTest.java135 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest
252 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification()
265 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification()
279 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade()
291 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade()
304 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel()
317 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification()
329 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification()
343 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade()
356 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel()
[all …]
DArchiveTest.java64 private StatusBarNotification getNotification(String pkg, int id, UserHandle user) { in getNotification() method in ArchiveTest
78 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead()
95 StatusBarNotification sbn = getNotification("pkg" + i, i, UserHandle.of(USER_SYSTEM)); in testRecordAndRead_overLimit()
114 StatusBarNotification sbn = getNotification("pkg" + i, i, in testDoesNotRecordIfHistoryDisabled()
134 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRemovesEntriesWhenHistoryDisabled()
155 StatusBarNotification sbn0 = getNotification("pkg", 0, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications()
158 StatusBarNotification sbn = getNotification("pkg", i, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications()
180 StatusBarNotification sbn0 = getNotification("pkg", 0, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications_concurrently()
183 StatusBarNotification sbn = getNotification("pkg", i, UserHandle.of(USER_CURRENT)); in testRemoveChannelNotifications_concurrently()
DNotificationManagerServiceTest.java907 nrBubble.getSbn().getId(), nrBubble.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
914 assertTrue((notifsAfter[0].getNotification().flags & FLAG_BUBBLE) != 0); in addGroupWithBubblesAndValidateAdded()
921 nrPlain.getSbn().getId(), nrPlain.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
933 nrSummary.getNotification().flags |= FLAG_AUTO_CANCEL; in addGroupWithBubblesAndValidateAdded()
936 nrSummary.getSbn().getId(), nrSummary.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
1122 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel()
1138 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1140 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1167 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
1169 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
[all …]
DGroupHelperTest.java168 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_addingNoGroupSBN()
193 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotification()
201 notifications.get(0).getNotification().flags &= ~Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotification()
222 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
230 notifications.get(0).getNotification().flags &= ~Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
234 notifications.get(0).getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
255 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_RemoveNotification()
290 notifications.get(0).getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateToNoneOngoingNotification()
309 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_AddOneOngoingNotification()
DBuzzBeepBlinkTest.java507 r.getNotification().visibility = Notification.VISIBILITY_PRIVATE; in testLockedPrivateA11yRedaction()
522 assertEquals(r.getNotification().publicVersion, event.getParcelableData()); in testLockedPrivateA11yRedaction()
529 r.getNotification().visibility = Notification.VISIBILITY_PUBLIC; in testLockedOverridePrivateA11yRedaction()
544 assertEquals(r.getNotification().publicVersion, event.getParcelableData()); in testLockedOverridePrivateA11yRedaction()
551 r.getNotification().visibility = Notification.VISIBILITY_PUBLIC; in testLockedPublicA11yNoRedaction()
566 assertEquals(r.getNotification(), event.getParcelableData()); in testLockedPublicA11yNoRedaction()
573 r.getNotification().visibility = Notification.VISIBILITY_PRIVATE; in testUnlockedPrivateA11yNoRedaction()
588 assertEquals(r.getNotification(), event.getParcelableData()); in testUnlockedPrivateA11yNoRedaction()
984 summary.getNotification().flags |= Notification.FLAG_GROUP_SUMMARY; in testGroupAlertSummaryNoSilenceSummary()
1008 summary.getNotification().flags |= Notification.FLAG_GROUP_SUMMARY; in testGroupAlertChildSilenceSummary()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java82 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker()
102 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
113 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory()
120 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel()
127 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel()
136 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup()
144 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup()
155 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
172 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson()
181 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle()
[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/core/java/android/service/notification/
DStatusBarNotification.java144 if (overrideGroupKey != null && getNotification().isGroupSummary()) { in key()
154 final String group = getNotification().getGroup(); in groupKey()
155 final String sortKey = getNotification().getSortKey(); in groupKey()
180 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { in isAppGroup()
349 public Notification getNotification() { in getNotification() method in StatusBarNotification
391 return getNotification().getGroup(); in getGroup()
464 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker()
466 getNotification().category); in getLogMaker()
467 if (getNotification().extras != null) { in getLogMaker()
470 String template = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in getLogMaker()
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java166 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInput_image()
179 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInputNoSpinner()
183 assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner()
185 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner()
194 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_noExistingInputWithSpinner()
198 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner()
200 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner()
217 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_withExistingInput()
240 RemoteInputHistoryItem[] messages = (RemoteInputHistoryItem[]) newSbn.getNotification() in testRebuildWithRemoteInput_withExistingInput_image()
254 assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java125 final int leftPriority = left.getSbn().getNotification().priority; in compare()
126 final int rightPriority = right.getSbn().getNotification().priority; in compare()
146 return record.getNotification().isColorized(); in isImportantColorized()
178 return (record.getNotification().flags & ongoingFlags) != 0; in isOngoing()
182 return record.getNotification().hasMediaSession(); in isMediaNotification()
191 return record.getNotification().isStyle(Notification.CallStyle.class); in isCallStyle()
DBubbleExtractor.java59 if (record == null || record.getNotification() == null) { in process()
78 && (record.getNotification().flags & FLAG_FOREGROUND_SERVICE) == 0; in process()
91 record.getNotification().setBubbleMetadata(null); in process()
111 record.getNotification().flags |= FLAG_BUBBLE; in process()
113 record.getNotification().flags &= ~FLAG_BUBBLE; in process()
141 Notification notification = r.getNotification(); in canPresentAsBubble()
DNotificationRecordLogger.java347 && (r.getSbn().getNotification().isGroupSummary() in shouldLogReported()
348 == old.getSbn().getNotification().isGroupSummary()) in shouldLogReported()
349 && Objects.equals(r.getSbn().getNotification().category, in shouldLogReported()
350 old.getSbn().getNotification().category) in shouldLogReported()
359 return getStyle(r.getSbn().getNotification().extras); in getStyle()
373 return getNumPeople(r.getSbn().getNotification().extras); in getNumPeople()
407 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
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()
DNotificationRecord.java210 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
240 final Notification n = getSbn().getNotification(); in calculateSound()
276 final Notification notification = getSbn().getNotification(); in calculateLights()
293 final Notification notification = getSbn().getNotification(); in calculateVibration()
319 final Notification n = getSbn().getNotification(); in calculateAttributes()
345 final Notification n = getSbn().getNotification(); in calculateInitialImportance()
422 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord
423 public int getFlags() { return getSbn().getNotification().flags; } in getFlags()
440 proto.write(NotificationRecordProto.FLAGS, getSbn().getNotification().flags); in dump()
462 final Notification notification = getSbn().getNotification(); in dump()
[all …]
DNotificationIntrusivenessExtractor.java45 if (record == null || record.getNotification() == null) { in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
DNotificationRecordLoggerImpl.java49 /* bool is_group_summary = 9 */ r.getSbn().getNotification().isGroupSummary(), in maybeLogNotificationPosted()
50 /* string category = 10 */ r.getSbn().getNotification().category, in maybeLogNotificationPosted()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java262 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testDisclosureBasic()
269 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
282 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
299 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
395 when(sbn.getNotification()).thenReturn(n); in makeMockSBN()
409 sbn.getNotification().contentView = null; in makeMockSBN()
410 sbn.getNotification().headsUpContentView = null; in makeMockSBN()
411 sbn.getNotification().bigContentView = null; in makeMockSBN()
413 sbn.getNotification().contentView = mock(RemoteViews.class); in makeMockSBN()
423 sbn.getNotification().contentView = null; in makeMockFgSBN()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java251 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn()
373 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
402 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble()
405 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble()
481 mSbn.getNotification().color; in getContrastedColor()
543 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply()
781 boolean ongoing = ((mSbn.getNotification().flags & Notification.FLAG_ONGOING_EVENT) != 0); in isDismissable()
782 boolean noclear = ((mSbn.getNotification().flags & Notification.FLAG_NO_CLEAR) != 0); in isDismissable()
783 boolean fgs = ((mSbn.getNotification().flags & FLAG_FOREGROUND_SERVICE) != 0); in isDismissable()
803 if (isNotificationBlockedByPolicy(mSbn.getNotification())) { in isExemptFromDndVisualSuppression()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterTest.java170 sbn.getNotification().contentIntent = mContentIntent; in setUp()
171 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
176 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp()
177 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
257 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_keyGuardShowing()
258 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in testOnNotificationClicked_keyGuardShowing()
288 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
318 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
348 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java149 final Bundle extras = sbn.getNotification().extras; in updateNotification()
153 userState.setRunningServices(svcs, sbn.getNotification().when); in updateNotification()
157 if (0 != (sbn.getNotification().flags in updateNotification()
166 mContext, sbn.getNotification()); in updateNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationBigPictureTemplateViewWrapper.java46 final Bundle extras = sbn.getNotification().extras; in updateImageTag()
55 mRightIcon.setTag(ImageTransformState.ICON_TAG, getLargeIcon(sbn.getNotification())); in updateImageTag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/
DNotificationGroupManagerLegacy.java170 sbn.getNotification().isGroupSummary()); in onEntryRemovedInternal()
312 && group.summary.getSbn().getNotification().isGroupSummary() in updateSuppression()
378 if (group.summary.getSbn().getNotification().getGroupAlertBehavior() in getPriorityConversationAlertOverride()
400 if (child.getSbn().getNotification().getGroupAlertBehavior() in getPriorityConversationAlertOverride()
436 long childWhen = child.getSbn().getNotification().when; in getPriorityConversationAlertOverride()
498 oldNotification.getNotification().isGroupSummary()); in onEntryUpdated()
535 return sbn.getNotification().isGroupSummary() && isGroupSuppressed(getGroupKey(sbn)); in isSummaryOfSuppressedGroup()
542 if (sbn.getNotification().isGroupSummary()) { in getGroupForSummary()
549 return !sbn.getNotification().isGroupSummary() in isOnlyChild()
727 return sbn.getNotification().isGroupSummary(); in isGroupSummary()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DHighPriorityProvider.java102 && (entry.getSbn().getNotification().hasMediaSession() in hasHighPriorityCharacteristics()
108 return entry.getSbn().getNotification().isStyle(Notification.MessagingStyle.class); in isMessagingStyle()

12345