Home
last modified time | relevance | path

Searched refs:getSbn (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordLogger.java344 return !(Objects.equals(r.getSbn().getChannelIdLogTag(), in shouldLogReported()
345 old.getSbn().getChannelIdLogTag()) in shouldLogReported()
346 && Objects.equals(r.getSbn().getGroupLogTag(), old.getSbn().getGroupLogTag()) in shouldLogReported()
347 && (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()
393 return (r.getSbn().getInstanceId() == null ? 0 : r.getSbn().getInstanceId().getId()); in getInstanceId()
[all …]
DNotificationRecordLoggerImpl.java43 /* string package_name = 3 */ r.getSbn().getPackageName(), in maybeLogNotificationPosted()
49 /* bool is_group_summary = 9 */ r.getSbn().getNotification().isGroupSummary(), in maybeLogNotificationPosted()
50 /* string category = 10 */ r.getSbn().getNotification().category, in maybeLogNotificationPosted()
75 mUiEventLogger.logWithInstanceId(event, r.getUid(), r.getSbn().getPackageName(), in log()
76 r.getSbn().getInstanceId()); in log()
DNotificationRecord.java238 final Notification n = getSbn().getNotification(); in calculateSound()
274 final Notification notification = getSbn().getNotification(); in calculateLights()
305 final Notification notification = getSbn().getNotification(); in calculateVibration()
318 final Notification n = getSbn().getNotification(); in calculateAttributes()
344 final Notification n = getSbn().getNotification(); in calculateInitialImportance()
415 if (previous.getSbn().getOverrideGroupKey() != null && !getSbn().isAppGroup()) { in copyRankingInformation()
416 getSbn().setOverrideGroupKey(previous.getSbn().getOverrideGroupKey()); in copyRankingInformation()
421 public Notification getNotification() { return getSbn().getNotification(); } in getNotification()
422 public int getFlags() { return getSbn().getNotification().flags; } in getFlags()
423 public UserHandle getUser() { return getSbn().getUser(); } in getUser()
[all …]
DNotificationChannelExtractor.java48 record.getSbn().getPackageName(), in process()
49 record.getSbn().getUid(), record.getChannel().getId(), in process()
50 record.getSbn().getShortcutId(), true, false); in process()
DBadgeExtractor.java47 boolean userWantsBadges = mConfig.badgingEnabled(record.getSbn().getUser()); in process()
49 mConfig.canShowBadge(record.getSbn().getPackageName(), record.getSbn().getUid()); in process()
DZenModeFiltering.java110 … return record != null && record.getSbn() != null && record.getSbn().getNotification() != null in extras()
111 ? record.getSbn().getNotification().extras : null; in extras()
129 && "android".equals(record.getSbn().getPackageName()) in shouldIntercept()
130 && SystemMessageProto.SystemMessage.NOTE_ZEN_UPGRADE == record.getSbn().getId()) { in shouldIntercept()
265 return record != null && (isDefaultPhoneApp(record.getSbn().getPackageName()) in isCall()
293 return mMessagingUtil.isMessaging(record.getSbn()); in isMessage()
DNotificationManagerService.java674 int oldFlags = summary.getSbn().getNotification().flags; in updateAutobundledSummaryFlags()
676 summary.getSbn().getNotification().flags |= FLAG_ONGOING_EVENT; in updateAutobundledSummaryFlags()
678 summary.getSbn().getNotification().flags &= ~FLAG_ONGOING_EVENT; in updateAutobundledSummaryFlags()
681 if (summary.getSbn().getNotification().flags != oldFlags) { in updateAutobundledSummaryFlags()
914 StatusBarNotification sbn = r.getSbn();
958 r.getSbn(), actionIndex, action, generatedByAssistant);
1047 mAssistants.notifyAssistantVisibilityChangedLocked(r.getSbn(), true);
1066 mAssistants.notifyAssistantVisibilityChangedLocked(r.getSbn(), false);
1098 r.getSbn(), userAction, expanded);
1117 mAssistants.notifyAssistantNotificationDirectReplyLocked(r.getSbn());
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java768 mBinderService.enqueueNotificationWithTag(PKG, PKG, nrBubble.getSbn().getTag(), in addGroupWithBubblesAndValidateAdded()
769 nrBubble.getSbn().getId(), nrBubble.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
770 nrBubble.getSbn().getUserId()); in addGroupWithBubblesAndValidateAdded()
782 mBinderService.enqueueNotificationWithTag(PKG, PKG, nrPlain.getSbn().getTag(), in addGroupWithBubblesAndValidateAdded()
783 nrPlain.getSbn().getId(), nrPlain.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
784 nrPlain.getSbn().getUserId()); in addGroupWithBubblesAndValidateAdded()
797 mBinderService.enqueueNotificationWithTag(PKG, PKG, nrSummary.getSbn().getTag(), in addGroupWithBubblesAndValidateAdded()
798 nrSummary.getSbn().getId(), nrSummary.getSbn().getNotification(), in addGroupWithBubblesAndValidateAdded()
799 nrSummary.getSbn().getUserId()); in addGroupWithBubblesAndValidateAdded()
961 final StatusBarNotification sbn = generateNotificationRecord(channel).getSbn(); in testBlockedNotifications_blockedChannel()
[all …]
DSnoozeHelperTest.java200 mSnoozeHelper.cleanupPersistedContext(r.getSbn().getKey()); in testCleanupContextShouldRemovePersistedRecord()
203 r.getSbn().getPackageName(), in testCleanupContextShouldRemovePersistedRecord()
204 r.getSbn().getKey() in testCleanupContextShouldRemovePersistedRecord()
256 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey())); in testSnoozeForTime()
266 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
276 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
278 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
280 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), "one", 1);
284 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
286 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
[all …]
DGroupHelperTest.java66 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() method in GroupHelperTest
78 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() method in GroupHelperTest
80 return getSbn(pkg, id, tag, user, null); in getSbn()
87 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_postingUnderLimit()
102 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiPackage()
106 getSbn(pkg2, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM), false); in testNoGroup_multiPackage()
118 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiUser()
122 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.ALL), false); in testNoGroup_multiUser()
134 getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), false); in testNoGroup_someAreGrouped()
137 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM, "a"), false); in testNoGroup_someAreGrouped()
[all …]
DZenModeFilteringTest.java92 when(r.getSbn()).thenReturn(sbn); in getConversationRecord()
119 r.getSbn().getNotification().category = Notification.CATEGORY_ALARM; in testIsAlarm()
126 r.getSbn().getNotification().category = CATEGORY_CALL; in testIsAlarm_wrongCategory()
143 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_VisEffectsAllowed()
144 when(r.getSbn().getId()).thenReturn(SystemMessage.NOTE_ZEN_UPGRADE); in testSuppressDNDInfo_yes_VisEffectsAllowed()
154 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_WrongId()
155 when(r.getSbn().getId()).thenReturn(SystemMessage.NOTE_ACCOUNT_CREDENTIAL_PERMISSION); in testSuppressDNDInfo_yes_WrongId()
164 when(r.getSbn().getPackageName()).thenReturn("android2"); in testSuppressDNDInfo_yes_WrongPackage()
165 when(r.getSbn().getId()).thenReturn(SystemMessage.NOTE_ZEN_UPGRADE); in testSuppressDNDInfo_yes_WrongPackage()
174 when(r.getSbn().getPackageName()).thenReturn("android"); in testSuppressDNDInfo_no()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupManagerTest.java81 assertTrue(mGroupManager.isOnlyChildInGroup(childEntry.getSbn())); in testIsOnlyChildInGroup()
93 assertTrue(mGroupManager.isChildInGroupWithSummary(childEntry.getSbn())); in testIsChildInGroupWithSummary()
105 assertTrue(mGroupManager.isSummaryOfGroup(summaryEntry.getSbn())); in testIsSummaryOfGroupWithChildren()
106 assertEquals(summaryEntry, mGroupManager.getGroupSummary(childEntry.getSbn())); in testIsSummaryOfGroupWithChildren()
119 assertFalse(mGroupManager.isChildInGroupWithSummary(childEntry.getSbn())); in testRemoveChildFromGroupWithSummary()
132 assertNull(mGroupManager.getGroupSummary(childEntry.getSbn())); in testRemoveSummaryFromGroupWithSummary()
133 assertFalse(mGroupManager.isSummaryOfGroup(summaryEntry.getSbn())); in testRemoveSummaryFromGroupWithSummary()
149 assertEquals(childEntry, mGroupManager.getGroupSummary(childEntry.getSbn())); in testHeadsUpEntryIsIsolated()
150 assertEquals(summaryEntry, mGroupManager.getLogicalGroupSummary(childEntry.getSbn())); in testHeadsUpEntryIsIsolated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java124 onEntryRemovedInternal(removed, removed.getSbn()); in onEntryRemoved()
180 final StatusBarNotification sbn = added.getSbn(); in onEntryAddedInternal()
243 && group.summary.getSbn().getNotification().isGroupSummary() in updateSuppression()
256 return getNumberOfIsolatedChildren(group.summary.getSbn().getGroupKey()) != 0; in hasIsolatedChildren()
288 String newGroupKey = entry.getSbn().getGroupKey(); in onEntryUpdated()
291 boolean isGroupChild = isGroupChild(entry.getSbn()); in onEntryUpdated()
298 if (isIsolated(entry.getSbn().getKey())) { in onEntryUpdated()
299 mIsolatedEntries.put(entry.getKey(), entry.getSbn()); in onEntryUpdated()
324 && !logicalGroupSummary.getSbn().equals(sbn); in isOnlyChildInGroup()
391 return !group.children.isEmpty() && Objects.equals(group.summary.getSbn(), sbn); in isSummaryOfGroup()
[all …]
DNotificationGroupAlertTransferHelper.java155 group.summary.getSbn()));
177 if (isAlerting && mGroupManager.isSummaryOfSuppressedGroup(entry.getSbn())) { in onAlertStateChanged()
188 String groupKey = mGroupManager.getGroupKey(entry.getSbn());
257 String groupKey = mGroupManager.getGroupKey(group.summary.getSbn()); in isPendingNotificationInGroup()
258 return mGroupManager.isGroupChild(entry.getSbn()) in isPendingNotificationInGroup()
259 && Objects.equals(mGroupManager.getGroupKey(entry.getSbn()), groupKey) in isPendingNotificationInGroup()
274 StatusBarNotification sbn = summary.getSbn(); in handleSuppressedSummaryAlerted()
277 if (!mGroupManager.isSummaryOfSuppressedGroup(summary.getSbn()) in handleSuppressedSummaryAlerted()
289 mGroupManager.getLogicalChildren(summary.getSbn()).iterator().next(); in handleSuppressedSummaryAlerted()
339 summary.getSbn()); in checkShouldTransferBack()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DHighPriorityProvider.java90 && mGroupManager.isGroupSummary(entry.getRepresentativeEntry().getSbn())) { in hasHighPriorityChild()
92 children = mGroupManager.getChildren(entry.getRepresentativeEntry().getSbn()); in hasHighPriorityChild()
109 || entry.getSbn().getNotification().hasMediaSession() in hasHighPriorityCharacteristics()
115 return entry.getSbn().getNotification().isForegroundService() in isImportantOngoing()
121 entry.getSbn().getNotification().getNotificationStyle()); in isMessagingStyle()
126 entry.getSbn(), entry.getRanking()) != PeopleNotificationIdentifier.TYPE_NON_PERSON; in isPeopleNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java46 final String conversationId = entry.getSbn().getShortcutId(); in createConversationChannelIfNeeded()
47 final String pkg = entry.getSbn().getPackageName(); in createConversationChannelIfNeeded()
48 final int appUid = entry.getSbn().getUid(); in createConversationChannelIfNeeded()
59 pkg, appUid, entry.getSbn().getKey(), channel, in createConversationChannelIfNeeded()
74 Bundle extras = entry.getSbn().getNotification().extras; in getName()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DHighPriorityProviderTest.java74 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in highImportance()
91 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in peopleNotification()
108 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in messagingStyle()
126 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in lowImportanceForeground()
144 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in minImportanceForeground()
168 .getPeopleNotificationType(entry.getSbn(), entry.getRanking())) in userChangeTrumpsHighPriorityCharacteristics()
181 when(mGroupManager.isGroupSummary(summary.getSbn())).thenReturn(true); in testIsHighPriority_checkChildrenToCalculatePriority()
182 when(mGroupManager.getChildren(summary.getSbn())).thenReturn( in testIsHighPriority_checkChildrenToCalculatePriority()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DAppOpsCoordinator.java96 StatusBarNotification sbn = entry.getSbn();
142 if ((entry.getSbn().getNotification().flags
148 final boolean extendLife = currTime - entry.getSbn().getPostTime() < MIN_FGS_TIME_MS;
161 MIN_FGS_TIME_MS - (currTime - entry.getSbn().getPostTime()));
193 final StatusBarNotification sbn = entry.getSbn();
232 && uid == entry.getSbn().getUid() in handleAppOpsChanged()
233 && packageName.equals(entry.getSbn().getPackageName())) { in handleAppOpsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExperimentConfig.java139 isPackageWhitelistedToAutoBubble(context, entry.getSbn().getPackageName()); in adjustForExperiments()
141 Notification notification = entry.getSbn().getNotification(); in adjustForExperiments()
148 String shortcutId = entry.getSbn().getNotification().getShortcutId(); in adjustForExperiments()
165 ShortcutInfo info = getShortcutInfo(context, entry.getSbn().getPackageName(), in adjustForExperiments()
166 entry.getSbn().getUser(), shortcutId); in adjustForExperiments()
212 Notification notification = entry.getSbn().getNotification(); in createFromNotif()
236 int notifColor = entry.getSbn().getNotification().color; in createFromNotif()
276 Bundle extras = entry.getSbn().getNotification().extras; in getPeopleFromNotification()
289 entry.getSbn().getNotification().getNotificationStyle())) { in getPeopleFromNotification()
DBubble.java376 Objects.requireNonNull(entry.getSbn()); in setEntry()
377 mLastUpdated = entry.getSbn().getPostTime(); in setEntry()
378 mIsBubble = entry.getSbn().getNotification().isBubbleNotification(); in setEntry()
379 mPackageName = entry.getSbn().getPackageName(); in setEntry()
380 mUser = entry.getSbn().getUser(); in setEntry()
386 mChannelId = entry.getSbn().getNotification().getChannelId(); in setEntry()
387 mNotificationId = entry.getSbn().getId(); in setEntry()
388 mAppUid = entry.getSbn().getUid(); in setEntry()
389 mInstanceId = entry.getSbn().getInstanceId(); in setEntry()
733 final CharSequence titleCharSeq = e.getSbn().getNotification().extras.getCharSequence( in getTitle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java255 entry.getSbn().getPackageName(), in dismissNotifications()
256 entry.getSbn().getTag(), in dismissNotifications()
257 entry.getSbn().getId(), in dismissNotifications()
258 entry.getSbn().getUser().getIdentifier(), in dismissNotifications()
259 entry.getSbn().getKey(), in dismissNotifications()
334 if (entry.getSbn().getNotification().isGroupSummary()) { in locallyDismissNotifications()
336 if (shouldAutoDismissChildren(otherEntry, entry.getSbn().getGroupKey())) { in locallyDismissNotifications()
367 mLogger.logNotifGroupPosted(batch.get(0).getSbn().getGroupKey(), batch.size()); in onNotificationGroupPosted()
370 postNotification(event.getSbn(), event.getRanking()); in onNotificationGroupPosted()
497 if (!Objects.equals(entry.getSbn().getOverrideGroupKey(), in applyRanking()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManagerTest.java141 when(mGroupManager.isChildInGroupWithSummary(entry0.getSbn())).thenReturn(false); in testNotificationsBecomingBundled()
142 when(mGroupManager.isChildInGroupWithSummary(entry1.getSbn())).thenReturn(true); in testNotificationsBecomingBundled()
143 when(mGroupManager.isChildInGroupWithSummary(entry2.getSbn())).thenReturn(true); in testNotificationsBecomingBundled()
144 when(mGroupManager.getGroupSummary(entry1.getSbn())).thenReturn(entry0); in testNotificationsBecomingBundled()
145 when(mGroupManager.getGroupSummary(entry2.getSbn())).thenReturn(entry0); in testNotificationsBecomingBundled()
170 when(mGroupManager.isChildInGroupWithSummary(entry0.getSbn())).thenReturn(false); in testNotificationsBecomingUnbundled()
171 when(mGroupManager.isChildInGroupWithSummary(entry1.getSbn())).thenReturn(false); in testNotificationsBecomingUnbundled()
172 when(mGroupManager.isChildInGroupWithSummary(entry2.getSbn())).thenReturn(false); in testNotificationsBecomingUnbundled()
199 when(mGroupManager.isChildInGroupWithSummary(entry0.getSbn())).thenReturn(false); in testNotificationsBecomingSuppressed()
200 when(mGroupManager.isChildInGroupWithSummary(entry1.getSbn())).thenReturn(false); in testNotificationsBecomingSuppressed()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManager.java164 int userId = ent.getSbn().getUserId(); in updateNotificationViews()
186 boolean isChildInGroup = mGroupManager.isChildInGroupWithSummary(ent.getSbn()); in updateNotificationViews()
192 NotificationEntry parent = mGroupManager.getGroupSummary(ent.getSbn()); in updateNotificationViews()
202 if (mGroupManager.isLogicalGroupExpanded(ent.getSbn())) { in updateNotificationViews()
392 remove.getEntry().getSbn().getKey()) == null) { in removeNotificationChildren()
436 mGroupManager.isChildInGroupWithSummary(entry.getSbn()); in updateRowStatesInternal()
448 int userId = entry.getSbn().getUserId(); in updateRowStatesInternal()
450 entry.getSbn()) && !entry.isRowRemoved(); in updateRowStatesInternal()
454 if (mGroupManager.isChildInGroupWithSummary(entry.getSbn())) { in updateRowStatesInternal()
456 entry.getSbn()); in updateRowStatesInternal()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DPreparationCoordinatorTest.java124 eq(mEntry.getSbn().getPackageName()), in testErrorLogsToService()
125 eq(mEntry.getSbn().getTag()), in testErrorLogsToService()
126 eq(mEntry.getSbn().getId()), in testErrorLogsToService()
127 eq(mEntry.getSbn().getUid()), in testErrorLogsToService()
128 eq(mEntry.getSbn().getInitialPid()), in testErrorLogsToService()
130 eq(mEntry.getSbn().getUserId())); in testErrorLogsToService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java132 final StatusBarNotification sbn = entry.getSbn(); in shouldBubbleUp()
178 return entry.getSbn().getNotification().fullScreenIntent != null in shouldLaunchFullScreenIntentWhenAdded()
184 StatusBarNotification sbn = entry.getSbn(); in shouldHeadsUpWhenAwake()
266 StatusBarNotification sbn = entry.getSbn(); in shouldHeadsUpWhenDozing()
312 StatusBarNotification sbn = entry.getSbn(); in canAlertCommon()
356 StatusBarNotification sbn = entry.getSbn(); in canAlertAwakeCommon()

12345