Home
last modified time | relevance | path

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

1234567

/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DBubbleExtractorTest.java177 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 DNotificationRecordTest.java304 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel()
410 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testImportance_upgrade()
459 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade_defaultLights()
475 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade()
484 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLights_upgrade_noLight()
494 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLogMaker()
524 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testLogMakerImportanceApp()
1285 sbn.getNotification().category = Notification.CATEGORY_MESSAGE; in isConversation_pkgAllowed_isMsgType()
1298 sbn.getNotification().category = Notification.CATEGORY_ALARM; in isConversation_pkgAllowed_isMNotsgType()
1311 sbn.getNotification().category = Notification.CATEGORY_MESSAGE; in isConversation_pkgNotAllowed_isMsgType()
[all …]
H A 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()
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 DNotificationManagerServiceTest.java1124 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1252 sbn.getNotification().category = category; in testEnqueuedRestrictedNotifications_hasPermission()
1276 sbn.getNotification().category = category; in testEnqueuedRestrictedNotifications_notAutomotive()
1298 sbn.getNotification().category = category; in testEnqueuedRestrictedNotifications_noPermission()
1494 sbn.getNotification(), sbn.getUserId()); in testPostCancelPostNotifiesListeners()
1501 sbn.getNotification(), sbn.getUserId()); in testPostCancelPostNotifiesListeners()
1852 sbn.getNotification().flags = in testCancelAfterSecondEnqueueDoesNotSpecifyForegroundFlag()
3506 assertFalse(posted.getNotification().isColorized()); in testNoFakeColorizedPermission()
5044 r.getSbn().getNotification().setSmallIcon(null); in testMaybeRecordInterruptionLocked_smallIconsRequiredForHistory()
6506 nr.getSbn().getNotification().flags |= FLAG_BUBBLE; in testCancelAllNotificationsFromApp_cancelsBubble()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/service/notification/
H A DStatusBarNotificationTest.java107 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
118 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory()
125 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel()
149 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup()
160 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
177 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson()
186 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle()
193 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testIsAppGroup()
196 sbn = getNotification(PKG, null, CHANNEL_ID); in testIsAppGroup()
202 sbn = getNotification(PKG, nb); in testIsAppGroup()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A 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 …]
/aosp12/frameworks/base/core/java/android/service/notification/
H A 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()
475 ArrayList<Person> people = getNotification().extras.getParcelableArrayList( in getLogMaker()
[all …]
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/notification/
H A DNotificationEntry.java134 cloneNotificationLight(sbn.getNotification()), in cloneStatusBarNotificationLight()
159 final Notification n = getNotification(); in calculateAudioAttributes()
182 final Notification n = getNotification(); in calculateInitialImportance()
222 return Objects.equals(getNotification().category, category); in isCategory()
230 Notification publicVersion = getNotification().publicVersion; in isPublicVersionCategory()
243 ArrayList<Person> people = getNotification().extras.getParcelableArrayList( in hasPerson()
249 String templateClass = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in hasStyle()
254 return (getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) != 0; in isOngoing()
279 Notification.Action[] actions = getNotification().actions; in hasInlineReply()
325 public Notification getNotification() { in getNotification() method in NotificationEntry
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A 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()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A 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()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DPreprocessingManager.java232 alertEntry.getNotification().category)); in filter()
244 (alertEntry.getNotification().flags in isLessImportantForegroundNotification()
282 Notification notification = alertEntry.getNotification(); in isMediaOrNavigationNotification()
317 Bundle extras = alertEntry.getNotification().extras; in optimizeForDriving()
372 Notification notification = alertEntry.getNotification(); in group()
532 if (notification.getNotification().showsTime()) { in group()
535 notification.getNotification().when); in group()
562 Notification notification = newNotification.getNotification(); in additionalGroupAndRank()
695 if (left.getNotification().getSortKey() != null in compare()
697 return left.getNotification().getSortKey().compareTo( in compare()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DForegroundServiceControllerTest.java262 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; 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()
424 sbn.getNotification().headsUpContentView = null; in makeMockFgSBN()
425 sbn.getNotification().bigContentView = null; in makeMockFgSBN()
427 sbn.getNotification().contentView = mock(RemoteViews.class); in makeMockFgSBN()
[all …]
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DPreprocessingManagerTest.java316 when(callSBN.getNotification()).thenReturn(callNotification); in onFilter_doShowLessImportantNotifications_filtersCalls()
329 when(callSBN.getNotification()).thenReturn(callNotification); in onFilter_dontShowLessImportantNotifications_filtersCalls()
355 when(mNavigation.getNotification()).thenReturn(nonMessageNotification); in onOptimizeForDriving_alertEntryHasNonMessageNotification_trimsNotificationTexts()
358 Bundle trimmed = optimized.getNotification().extras; in onOptimizeForDriving_alertEntryHasNonMessageNotification_trimsNotificationTexts()
396 Bundle trimmed = optimized.getNotification().extras; in onOptimizeForDriving_alertEntryHasMessageNotification_doesNotTrimMessageTexts()
660 && groupSummaryNotification.getNotification() != null) { in onGroup_childNotificationHasTimeStamp_groupHasMostRecentTimeStamp()
661 assertThat(groupSummaryNotification.getNotification() in onGroup_childNotificationHasTimeStamp_groupHasMostRecentTimeStamp()
761 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking()
801 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification()
823 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A 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().isMediaNotification(); in isMediaNotification()
191 return record.getNotification().isStyle(Notification.CallStyle.class); in isCallStyle()
H A 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()
H A DNotificationRecordLogger.java363 && (r.getSbn().getNotification().isGroupSummary() in shouldLogReported()
364 == old.getSbn().getNotification().isGroupSummary()) in shouldLogReported()
365 && Objects.equals(r.getSbn().getNotification().category, in shouldLogReported()
366 old.getSbn().getNotification().category) in shouldLogReported()
376 return getStyle(r.getSbn().getNotification().extras); in getStyle()
390 return getNumPeople(r.getSbn().getNotification().extras); in getNumPeople()
424 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
H A 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()
H A DNotificationRecord.java214 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
244 final Notification n = getSbn().getNotification(); in calculateSound()
297 final Notification notification = getSbn().getNotification(); in calculateVibration()
323 final Notification n = getSbn().getNotification(); in calculateAttributes()
349 final Notification n = getSbn().getNotification(); in calculateInitialImportance()
426 public Notification getNotification() { return getSbn().getNotification(); } in getNotification() method in NotificationRecord
626 this.getSbn().getNotification()); in toString()
1006 Notification n = getNotification(); in calculateRankingTimeMs()
1318 final Notification notification = getNotification(); in calculateGrantableUris()
1420 Notification notification = getNotification(); in hasUndecoratedRemoteView()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A 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()
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
H A DNotificationHelperTest.java58 assertThat(notification.getNotification().getChannelId()).isEqualTo(CHANNEL_ID); in showResumeNotification_showsExpectedNotification()
59 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in showResumeNotification_showsExpectedNotification()
72 assertThat(notification.getNotification().getChannelId()).isEqualTo(CHANNEL_ID); in showPrivacyReminderNotification_showsExpectedNotification()
73 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in showPrivacyReminderNotification_showsExpectedNotification()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/history/
H A DNotificationSbnAdapter.java117 holder.setTitle(getTitleString(sbn.getNotification())); in onBindViewHolder()
118 holder.setSummary(getTextString(mContext, sbn.getNotification())); in onBindViewHolder()
129 sbn.getNotification().contentIntent, sbn.getInstanceId(), mIsSnoozed, in onBindViewHolder()
134 .putExtra(EXTRA_CHANNEL_ID, sbn.getNotification().getChannelId()) in onBindViewHolder()
135 .putExtra(EXTRA_CONVERSATION_ID, sbn.getNotification().getShortcutId()); in onBindViewHolder()
146 int color = sbn.getNotification().color; in loadBackground()
183 if (sbn.isGroup() && sbn.getNotification().isGroupSummary()) { in shouldShowSbn()
240 Drawable draw = sbn.getNotification().getSmallIcon().loadDrawableAsUser( in loadIcon()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
H A 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()
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()
807 if ((mSbn.getNotification().flags in isExemptFromDndVisualSuppression()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarNotificationActivityStarterTest.java167 sbn.getNotification().contentIntent = mContentIntent; in setUp()
168 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
173 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp()
174 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
254 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_keyGuardShowing()
255 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in testOnNotificationClicked_keyGuardShowing()
285 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
315 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
345 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
/aosp12/packages/apps/Car/libs/car-assist-lib/src/com/android/car/assist/payloadhandlers/
H A DNotificationPayloadHandler.java66 public Notification getNotification(Bundle args) { in getNotification() method in NotificationPayloadHandler
69 return sbn == null ? null : sbn.getNotification(); in getNotification()
96 Notification notification = getNotification(args); in getMessages()
130 Notification notification = getNotification(args); in getAction()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A 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()

1234567