/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 80 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 124 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest 205 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification() 218 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification() 232 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade() 244 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade() 257 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel() 270 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification() 282 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification() 295 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade() 307 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel() [all …]
|
D | NotificationManagerServiceTest.java | 567 nrBubble.sbn.getId(), nrBubble.sbn.getNotification(), nrBubble.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 573 assertTrue((notifsAfter[0].getNotification().flags & FLAG_BUBBLE) != 0); in addGroupWithBubblesAndValidateAdded() 579 nrPlain.sbn.getId(), nrPlain.sbn.getNotification(), nrPlain.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 589 nrSummary.getNotification().flags |= FLAG_AUTO_CANCEL; in addGroupWithBubblesAndValidateAdded() 592 nrSummary.sbn.getId(), nrSummary.sbn.getNotification(), nrSummary.sbn.getUserId()); in addGroupWithBubblesAndValidateAdded() 736 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel() 752 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 754 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 781 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 783 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() [all …]
|
D | ZenModeFilteringTest.java | 75 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/java/android/service/notification/ |
D | StatusBarNotification.java | 138 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/ |
D | NotificationRemoteInputManagerTest.java | 150 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 154 assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 156 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 164 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 168 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 170 assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 183 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_withExistingInput() 195 assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies() 197 assertTrue(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 224 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/ |
D | NotificationComparator.java | 119 final int leftPriority = left.sbn.getNotification().priority; in compare() 120 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()
|
D | NotificationRecord.java | 199 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord() 229 final Notification n = sbn.getNotification(); in calculateSound() 265 final Notification notification = sbn.getNotification(); in calculateLights() 296 final Notification notification = sbn.getNotification(); in calculateVibration() 309 final Notification n = sbn.getNotification(); in calculateAttributes() 335 final Notification n = sbn.getNotification(); in calculateInitialImportance() 412 public Notification getNotification() { return sbn.getNotification(); } in getNotification() method in NotificationRecord 413 public int getFlags() { return sbn.getNotification().flags; } in getFlags() 430 proto.write(NotificationRecordProto.FLAGS, sbn.getNotification().flags); in dump() 452 final Notification notification = sbn.getNotification(); in dump() [all …]
|
D | NotificationIntrusivenessExtractor.java | 45 if (record == null || record.getNotification() == null) { in process() 58 if (record.getNotification().fullScreenIntent != null) { in process()
|
D | NotificationAdjustmentExtractor.java | 34 if (record == null || record.getNotification() == null) { in process()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarNotificationActivityStarterTest.java | 148 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() 200 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_keyGuardShowing() 201 sbn.getNotification().flags |= Notification.FLAG_AUTO_CANCEL; in testOnNotificationClicked_keyGuardShowing() 236 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() 265 sbn.getNotification().contentIntent = null; in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 295 sbn.getNotification().contentIntent = mContentIntent; in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceNotificationListener.java | 123 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/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 237 return (notification.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble() 244 return notification.getNotification().getBubbleMetadata(); in getBubbleMetadata() 310 Notification n = sbn.getNotification(); in createIcons() 357 if (notification.getNotification().isMediaNotification()) { in createIcons() 395 Notification n = sbn.getNotification(); in updateIcons() 422 notification.getNotification().color; in getContrastedColor() 488 Bundle extras = notification.getNotification().extras; in isLastMessageFromReply() 716 if (isNotificationBlockedByPolicy(notification.getNotification())) { in isExemptFromDndVisualSuppression() 720 if ((notification.getNotification().flags in isExemptFromDndVisualSuppression() 724 if (notification.getNotification().isMediaNotification()) { in isExemptFromDndVisualSuppression()
|
D | NotificationData.java | 135 return Long.compare(nb.getNotification().when, na.getNotification().when); 272 if (isImportantOngoing(statusBarNotification.getNotification()) in hasHighPriorityCharacteristics() 273 || statusBarNotification.getNotification().hasMediaSession() in hasHighPriorityCharacteristics() 274 || hasPerson(statusBarNotification.getNotification()) in hasHighPriorityCharacteristics() 275 || hasStyle(statusBarNotification.getNotification(), in hasHighPriorityCharacteristics() 468 pw.println(" notification=" + n.getNotification()); in dumpEntry()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationFilter.java | 99 && (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET in shouldFilterOut() 128 final String[] apps = sbn.getNotification().extras.getStringArray( in shouldFilterOut() 152 && sbn.getNotification().extras.getBoolean(Notification.EXTRA_ALLOW_DURING_SETUP); in showNotificationEvenIfUnprovisioned()
|
D | NotificationInterruptionStateProvider.java | 193 final Notification n = sbn.getNotification(); in shouldBubbleUp() 350 if (sbn.isGroup() && sbn.getNotification().suppressAlertingDueToGrouping()) { in canAlertCommon() 427 return entry.notification.getNotification().fullScreenIntent != null in shouldLaunchFullScreenIntentWhenAdded()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationFilterTest.java | 145 sbn.getNotification().extras = bundle; in testSuppressSystemAlertNotification() 155 sbn.getNotification().extras = bundle; in testDoNotSuppressSystemAlertNotification() 183 sbn.getNotification().extras = bundle; in testDoNotSuppressMalformedSystemAlertNotification() 214 when(mMockStatusBarNotification.getNotification()).thenReturn(notification); in initStatusBarNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupManager.java | 213 && group.summary.notification.getNotification().isGroupSummary() in updateSuppression() 273 return isGroupSuppressed(getGroupKey(sbn)) && sbn.getNotification().isGroupSummary(); in isSummaryOfSuppressedGroup() 277 return !sbn.getNotification().isGroupSummary() in isOnlyChild() 451 return sbn.getNotification().isGroupSummary(); in isGroupSummary() 464 return sbn.isGroup() && !sbn.getNotification().isGroupSummary(); in isGroupChild() 494 if (!sbn.isGroup() || sbn.getNotification().isGroupSummary()) { in shouldIsolate() 500 return (sbn.getNotification().fullScreenIntent != null in shouldIsolate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | InflatedSmartReplies.java | 147 boolean showingSpinner = entry.notification.getNotification() in shouldShowSmartReplyView() 153 boolean hideSmartReplies = entry.notification.getNotification() in shouldShowSmartReplyView() 171 Notification notification = entry.notification.getNotification(); in chooseSmartRepliesAndActions() 274 Notification notification = entry.notification.getNotification(); in hasFreeformRemoteInput()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationMessagingUtil.java | 88 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/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 234 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_foreground() 250 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_media() 254 when(mMockStatusBarNotification.getNotification()).thenReturn(n); in testIsExemptFromDndVisualSuppression_media() 292 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 298 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 303 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 308 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 313 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 326 mMockStatusBarNotification.getNotification().actions = in testCreateNotificationDataEntry_RankingUpdate() 600 when(mMockStatusBarNotification.getNotification()).thenReturn(notification); in initStatusBarNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationRemoteInputManager.java | 192 Notification.Action[] actions = statusBarNotification.getNotification().actions; 198 statusBarNotification.getNotification().actions[actionIndex]; 535 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildNotificationWithRemoteInput() 537 CharSequence[] oldHistory = sbn.getNotification().extras in rebuildNotificationWithRemoteInput() 555 newNotification.contentView = sbn.getNotification().contentView; in rebuildNotificationWithRemoteInput() 556 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildNotificationWithRemoteInput() 557 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildNotificationWithRemoteInput()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | UiBot.java | 56 public UiObject getNotification(String text) { in getNotification() method in UiBot 78 UiObject notification = getNotification(text); in clickOnNotification()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 175 Notification notification = getNotification(context, R.string.portal_notification_id, in onShowCaptivePortalNotification() 187 Notification notification = getNotification(context, R.string.no_data_notification_id, in onShowNoDataServiceNotification() 210 private static Notification getNotification(Context context, int titleId, int textId, in getNotification() method in CarrierActionUtils
|