Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java120 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest
179 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification()
192 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification()
206 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade()
218 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade()
231 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel()
244 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification()
256 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification()
269 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade()
281 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel()
[all …]
DNotificationManagerServiceTest.java680 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel()
696 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
698 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
725 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
727 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
747 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
749 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
780 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_blockedApp()
792 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_blockedAppForegroundService()
794 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_blockedAppForegroundService()
[all …]
DZenModeFilteringTest.java75 when(sbn.getNotification()).thenReturn(notification); in getNotificationRecord()
100 r.sbn.getNotification().category = Notification.CATEGORY_ALARM; in testIsAlarm()
107 r.sbn.getNotification().category = Notification.CATEGORY_CALL; in testIsAlarm_wrongCategory()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java80 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker()
100 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
111 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory()
118 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel()
125 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel()
134 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup()
142 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup()
153 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
170 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson()
179 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle()
[all …]
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java138 if (overrideGroupKey != null && getNotification().isGroupSummary()) { in key()
148 final String group = getNotification().getGroup(); in groupKey()
149 final String sortKey = getNotification().getSortKey(); in groupKey()
176 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { in isAppGroup()
320 public Notification getNotification() { in getNotification() method in StatusBarNotification
362 return getNotification().getGroup(); in getGroup()
421 getNotification().isGroupSummary() ? 1 : 0) in getLogMaker()
423 getNotification().category); in getLogMaker()
424 if (getNotification().extras != null) { in getLogMaker()
427 String template = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in getLogMaker()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java145 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner()
149 assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner()
151 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner()
159 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner()
163 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner()
165 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner()
178 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_withExistingInput()
190 assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies()
192 assertTrue(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java224 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testDisclosureBasic()
231 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
244 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
261 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDisclosureBasic()
289 sbn_user1_app1.getNotification().flags = 0; in testStdLayoutBasic()
304 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testStdLayoutBasic()
309 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testStdLayoutBasic()
327 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testStdLayoutBasic()
352 when(sbn.getNotification()).thenReturn(n); in makeMockSBN()
367 sbn.getNotification().contentView = null; in makeMockFgSBN()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java125 final int leftPriority = left.sbn.getNotification().priority; in compare()
126 final int rightPriority = right.sbn.getNotification().priority; in compare()
140 return record.getNotification().isColorized(); in isImportantColorized()
171 return (record.getNotification().flags & ongoingFlags) != 0; in isOngoing()
175 return record.getNotification().hasMediaSession(); in isMediaNotification()
DNotificationRecord.java202 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
232 final Notification n = sbn.getNotification(); in calculateSound()
268 final Notification notification = sbn.getNotification(); in calculateLights()
299 final Notification notification = sbn.getNotification(); in calculateVibration()
312 final Notification n = sbn.getNotification(); in calculateAttributes()
338 final Notification n = sbn.getNotification(); in calculateInitialImportance()
415 public Notification getNotification() { return sbn.getNotification(); } in getNotification() method in NotificationRecord
416 public int getFlags() { return sbn.getNotification().flags; } in getFlags()
433 proto.write(NotificationRecordProto.FLAGS, sbn.getNotification().flags); in dump()
455 final Notification notification = sbn.getNotification(); in dump()
[all …]
DNotificationIntrusivenessExtractor.java45 if (record == null || record.getNotification() == null) { in process()
58 if (record.getNotification().fullScreenIntent != null) { in process()
DNotificationAdjustmentExtractor.java34 if (record == null || record.getNotification() == null) { in process()
/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()
139 mContext, sbn.getNotification()); in updateNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterTest.java148 sbn.getNotification().contentIntent = mContentIntent; in setUp()
149 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
154 bubbleSbn.getNotification().contentIntent = mContentIntent; in setUp()
155 bubbleSbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in setUp()
202 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_keyGuardShowing()
203 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in testOnNotificationClicked_keyGuardShowing()
238 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
267 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
297 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java238 return (notification.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
270 return notification.getNotification().getBubbleMetadata(); in getBubbleMetadata()
336 Notification n = sbn.getNotification(); in createIcons()
376 if (notification.getNotification().isMediaNotification()) { in createIcons()
410 Notification n = sbn.getNotification(); in updateIcons()
436 notification.getNotification().color; in getContrastedColor()
452 final Notification underlyingNotif = notification.getNotification(); in getUpdateMessage()
568 Bundle extras = notification.getNotification().extras; in isLastMessageFromReply()
786 if (isNotificationBlockedByPolicy(notification.getNotification())) { in isExemptFromDndVisualSuppression()
790 if ((notification.getNotification().flags in isExemptFromDndVisualSuppression()
[all …]
DNotificationData.java138 return Long.compare(nb.getNotification().when, na.getNotification().when);
275 if (isImportantOngoing(statusBarNotification.getNotification()) in hasHighPriorityCharacteristics()
276 || statusBarNotification.getNotification().hasMediaSession() in hasHighPriorityCharacteristics()
277 || hasPerson(statusBarNotification.getNotification()) in hasHighPriorityCharacteristics()
278 || hasStyle(statusBarNotification.getNotification(), in hasHighPriorityCharacteristics()
464 pw.println(" notification=" + n.getNotification()); in dumpEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java99 && (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET in shouldFilterOut()
128 final String[] apps = sbn.getNotification().extras.getStringArray( in shouldFilterOut()
157 && sbn.getNotification().extras.getBoolean(Notification.EXTRA_ALLOW_DURING_SETUP); in showNotificationEvenIfUnprovisioned()
DNotificationInterruptionStateProvider.java166 final Notification n = sbn.getNotification(); in shouldBubbleUp()
292 Bundle extras = sbn.getNotification().extras; in shouldPulse()
325 if (sbn.isGroup() && sbn.getNotification().suppressAlertingDueToGrouping()) { in canAlertCommon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java144 sbn.getNotification().extras = bundle; in testSuppressSystemAlertNotification()
154 sbn.getNotification().extras = bundle; in testDoNotSuppressSystemAlertNotification()
182 sbn.getNotification().extras = bundle; in testDoNotSuppressMalformedSystemAlertNotification()
213 when(mMockStatusBarNotification.getNotification()).thenReturn(notification); in initStatusBarNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java198 && group.summary.notification.getNotification().isGroupSummary() in updateSuppression()
258 return isGroupSuppressed(getGroupKey(sbn)) && sbn.getNotification().isGroupSummary(); in isSummaryOfSuppressedGroup()
262 return !sbn.getNotification().isGroupSummary() in isOnlyChild()
425 return sbn.getNotification().isGroupSummary(); in isGroupSummary()
438 return sbn.isGroup() && !sbn.getNotification().isGroupSummary(); in isGroupChild()
485 if (!sbn.isGroup() || sbn.getNotification().isGroupSummary()) { in shouldIsolate()
491 return (sbn.getNotification().fullScreenIntent != null in shouldIsolate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DInflatedSmartReplies.java146 boolean showingSpinner = entry.notification.getNotification() in shouldShowSmartReplyView()
152 boolean hideSmartReplies = entry.notification.getNotification() in shouldShowSmartReplyView()
170 Notification notification = entry.notification.getNotification(); in chooseSmartRepliesAndActions()
273 Notification notification = entry.notification.getNotification(); in hasFreeformRemoteInput()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationDataTest.java231 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_foreground()
246 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_media()
250 when(mMockStatusBarNotification.getNotification()).thenReturn(n); in testIsExemptFromDndVisualSuppression_media()
285 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
291 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
296 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
301 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
306 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
319 mMockStatusBarNotification.getNotification().actions = in testCreateNotificationDataEntry_RankingUpdate()
537 when(mMockStatusBarNotification.getNotification()).thenReturn(notification); in initStatusBarNotification()
/frameworks/base/core/java/com/android/internal/util/
DNotificationMessagingUtil.java88 Class<? extends Notification.Style> style = sbn.getNotification().getNotificationStyle(); in hasMessagingStyle()
93 return Notification.CATEGORY_MESSAGE.equals(sbn.getNotification().category); in isCategoryMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java190 Notification.Action[] actions = statusBarNotification.getNotification().actions;
196 statusBarNotification.getNotification().actions[actionIndex];
519 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildNotificationWithRemoteInput()
521 CharSequence[] oldHistory = sbn.getNotification().extras in rebuildNotificationWithRemoteInput()
539 newNotification.contentView = sbn.getNotification().contentView; in rebuildNotificationWithRemoteInput()
540 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildNotificationWithRemoteInput()
541 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildNotificationWithRemoteInput()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java56 public UiObject getNotification(String text) { in getNotification() method in UiBot
78 UiObject notification = getNotification(text); in clickOnNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleController.java555 bubble.entry.notification.getNotification().flags &= ~FLAG_BUBBLE;
708 if (n.getNotification().actions != null) { in shouldAutoBubbleForFlags()
709 for (Notification.Action action : n.getNotification().actions) { in shouldAutoBubbleForFlags()
716 boolean isCall = Notification.CATEGORY_CALL.equals(n.getNotification().category) in shouldAutoBubbleForFlags()
718 boolean isMusic = n.getNotification().hasMediaSession(); in shouldAutoBubbleForFlags()
721 Class<? extends Notification.Style> style = n.getNotification().getNotificationStyle(); in shouldAutoBubbleForFlags()
722 boolean isMessageType = Notification.CATEGORY_MESSAGE.equals(n.getNotification().category); in shouldAutoBubbleForFlags()

1234