Home
last modified time | relevance | path

Searched refs:getNotification (Results 1 – 25 of 115) 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.java137 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest
254 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification()
267 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification()
281 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade()
293 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade()
306 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel()
319 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification()
331 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification()
345 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade()
358 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel()
[all …]
DArchiveTest.java76 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()
122 StatusBarNotification sbn = getNotification("pkg" + i, i, UserHandle.of(USER_SYSTEM)); in testRecordAndRead_overLimit()
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()
[all …]
DNotificationManagerServiceTest.java901 nrBubble.getSbn().getId(), nrBubble.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
908 assertTrue((notifsAfter[0].getNotification().flags & FLAG_BUBBLE) != 0); in addGroupWithBubblesAndValidateAdded()
915 nrPlain.getSbn().getId(), nrPlain.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
927 nrSummary.getNotification().flags |= FLAG_AUTO_CANCEL; in addGroupWithBubblesAndValidateAdded()
930 nrSummary.getSbn().getId(), nrSummary.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
1157 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel()
1175 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1177 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1206 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
1208 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
[all …]
DGroupHelperTest.java166 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testPostingOverLimit_addsOngoingFlag()
185 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_addingNoGroupSBN()
210 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotification()
218 notifications.get(0).getNotification().flags &= ~Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotification()
238 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
246 notifications.get(0).getNotification().flags &= ~Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
250 notifications.get(0).getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateNotificationAfterChanges()
271 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_RemoveNotification()
306 notifications.get(0).getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_UpdateToNoneOngoingNotification()
325 sbn.getNotification().flags |= Notification.FLAG_ONGOING_EVENT; in testAutoGroupCount_AddOneOngoingNotification()
DNotificationRecordLoggerTest.java47 private NotificationRecord getNotification(int id, String tag) { in getNotification() method in NotificationRecordLoggerTest
60 return new NotificationRecordLogger.NotificationRecordPair(getNotification(id, tag), in getNotificationRecordPair()
130 p.r.getSbn().getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testIsForegroundService()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java90 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/
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/core/java/android/service/notification/
DStatusBarNotification.java171 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()
376 public Notification getNotification() { in getNotification() method in StatusBarNotification
418 return getNotification().getGroup(); in getGroup()
491 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker()
493 getNotification().category); in getLogMaker()
494 if (getNotification().extras != null) { in getLogMaker()
497 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/src/com/android/systemui/statusbar/
DRemoteInputNotificationRebuilder.java102 .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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java259 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testDisclosureBasic()
266 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
279 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
296 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
392 when(sbn.getNotification()).thenReturn(n); in makeMockSBN()
406 sbn.getNotification().contentView = null; in makeMockSBN()
407 sbn.getNotification().headsUpContentView = null; in makeMockSBN()
408 sbn.getNotification().bigContentView = null; in makeMockSBN()
410 sbn.getNotification().contentView = mock(RemoteViews.class); in makeMockSBN()
420 sbn.getNotification().contentView = null; in makeMockFgSBN()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordLogger.java380 && (r.getSbn().getNotification().isGroupSummary() in shouldLogReported()
381 == old.getSbn().getNotification().isGroupSummary()) in shouldLogReported()
382 && Objects.equals(r.getSbn().getNotification().category, in shouldLogReported()
383 old.getSbn().getNotification().category) in shouldLogReported()
393 return getStyle(r.getSbn().getNotification().extras); in getStyle()
407 return getNumPeople(r.getSbn().getNotification().extras); in getNumPeople()
441 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
471 if (r.getSbn() == null || r.getSbn().getNotification() == null) { in isForegroundService()
474 return (r.getSbn().getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) != 0; in isForegroundService()
DNotificationComparator.java131 final int leftPriority = left.getSbn().getNotification().priority; in compare()
132 final int rightPriority = right.getSbn().getNotification().priority; in compare()
152 return record.getNotification().isColorized(); in isImportantColorized()
198 return (record.getNotification().flags & ongoingFlags) != 0; in isOngoing()
202 return record.getNotification().isMediaNotification(); in isMediaNotification()
211 return record.getNotification().isStyle(Notification.CallStyle.class); in isCallStyle()
DBubbleExtractor.java65 if (record == null || record.getNotification() == null) { in process()
84 && (record.getNotification().flags & FLAG_FOREGROUND_SERVICE) == 0; in process()
97 record.getNotification().setBubbleMetadata(null); in process()
117 record.getNotification().flags |= FLAG_BUBBLE; in process()
119 record.getNotification().flags &= ~FLAG_BUBBLE; in process()
151 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()
DNotificationRecordLoggerImpl.java67 /* bool is_group_summary = 9 */ p.r.getSbn().getNotification().isGroupSummary(), in writeNotificationReportedAtom()
68 /* string category = 10 */ p.r.getSbn().getNotification().category, in writeNotificationReportedAtom()
89 p.r.getSbn().getNotification().getTimeoutAfter() in writeNotificationReportedAtom()
DNotificationIntrusivenessExtractor.java45 if (record == null || record.getNotification() == null) { in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
DNotificationRecord.java224 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
254 final Notification n = getSbn().getNotification(); in calculateSound()
290 final Notification notification = getSbn().getNotification(); in calculateLights()
307 final Notification notification = getSbn().getNotification(); in calculateVibration()
333 final Notification n = getSbn().getNotification(); in calculateAttributes()
359 final Notification n = getSbn().getNotification(); in calculateInitialImportance()
436 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord
437 public int getFlags() { return getSbn().getNotification().flags; } in getFlags()
454 proto.write(NotificationRecordProto.FLAGS, getSbn().getNotification().flags); in dump()
477 final Notification notification = getSbn().getNotification(); in dump()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java123 final Bundle extras = sbn.getNotification().extras; in updateNotification()
127 userState.setRunningServices(svcs, sbn.getNotification().when); in updateNotification()
131 if (0 != (sbn.getNotification().flags in updateNotification()
140 mContext, sbn.getNotification()); in updateNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java234 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn()
357 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
386 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble()
389 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble()
465 mSbn.getNotification().color; in getContrastedColor()
529 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply()
762 if (isNotificationBlockedByPolicy(mSbn.getNotification())) { in isExemptFromDndVisualSuppression()
766 if ((mSbn.getNotification().flags in isExemptFromDndVisualSuppression()
770 if (mSbn.getNotification().isMediaNotification()) { in isExemptFromDndVisualSuppression()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterTest.java176 sbn.getNotification().contentIntent = mContentIntent; in setUp()
177 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
182 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp()
183 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
270 Notification notification = entry.getSbn().getNotification(); in testOnNotificationClicked_keyGuardShowing()
307 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
339 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
367 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationBigPictureTemplateViewWrapper.java57 final Bundle extras = sbn.getNotification().extras; in updateImageTag()
65 mRightIcon.setTag(ImageTransformState.ICON_TAG, getLargeIcon(sbn.getNotification())); in updateImageTag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DHighPriorityProvider.java102 && (entry.getSbn().getNotification().isMediaNotification() in hasHighPriorityCharacteristics()
108 return entry.getSbn().getNotification().isStyle(Notification.MessagingStyle.class); in isMessagingStyle()

12345