/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 128 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() method in NotificationRecordTest 187 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification() 200 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification() 214 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade() 226 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade() 239 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel() 252 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification() 264 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification() 277 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_userLocked_preUpgrade() 289 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */, in testVibration_custom_upgradeUsesChannel() [all …]
|
D | NotificationManagerServiceTest.java | 521 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testBlockedNotifications_blockedChannel() 537 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 539 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 566 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 568 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 588 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 590 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 621 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_blockedApp() 633 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE; in testEnqueuedBlockedNotifications_blockedAppForegroundService() 635 sbn.getId(), sbn.getNotification(), sbn.getUserId()); in testEnqueuedBlockedNotifications_blockedAppForegroundService() [all …]
|
D | ZenModeFilteringTest.java | 73 when(sbn.getNotification()).thenReturn(mock(Notification.class)); in getNotificationRecord() 98 r.sbn.getNotification().category = Notification.CATEGORY_ALARM; in testIsAlarm() 105 r.sbn.getNotification().category = Notification.CATEGORY_CALL; in testIsAlarm_wrongCategory()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 118 if (overrideGroupKey != null && getNotification().isGroupSummary()) { in key() 128 final String group = getNotification().getGroup(); in groupKey() 129 final String sortKey = getNotification().getSortKey(); in groupKey() 155 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { in isAppGroup() 288 public Notification getNotification() { in getNotification() method in StatusBarNotification 328 return getNotification().getGroup(); in getGroup()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 109 final int leftPriority = left.sbn.getNotification().priority; in compare() 110 final int rightPriority = right.sbn.getNotification().priority; in compare() 124 return record.getNotification().isColorized(); in isImportantColorized() 155 return (record.getNotification().flags & ongoingFlags) != 0; in isOngoing() 159 return record.getNotification().hasMediaSession(); in isMediaNotification()
|
D | NotificationRecord.java | 179 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord() 208 final Notification n = sbn.getNotification(); in calculateSound() 244 final Notification notification = sbn.getNotification(); in calculateLights() 275 final Notification notification = sbn.getNotification(); in calculateVibration() 288 final Notification n = sbn.getNotification(); in calculateAttributes() 314 final Notification n = sbn.getNotification(); in calculateImportance() 384 public Notification getNotification() { return sbn.getNotification(); } in getNotification() method in NotificationRecord 385 public int getFlags() { return sbn.getNotification().flags; } in getFlags() 402 proto.write(NotificationRecordProto.FLAGS, sbn.getNotification().flags); in dump() 422 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()
|
D | ImportanceExtractor.java | 35 if (record == null || record.getNotification() == null) { in process()
|
D | VisibilityExtractor.java | 36 if (record == null || record.getNotification() == null) { in process()
|
D | PriorityExtractor.java | 36 if (record == null || record.getNotification() == null) { in process()
|
D | NotificationChannelExtractor.java | 35 if (record == null || record.getNotification() == null) { in process()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 323 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testDungeonBasic() 329 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testDungeonBasic() 342 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDungeonBasic() 359 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testDungeonBasic() 387 sbn_user1_app1.getNotification().flags = 0; in testStdLayoutBasic() 402 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; in testStdLayoutBasic() 407 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; in testStdLayoutBasic() 425 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; in testStdLayoutBasic() 450 when(sbn.getNotification()).thenReturn(n); in makeMockSBN() 465 sbn.getNotification().contentView = null; in makeMockFgSBN() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationDataTest.java | 220 sbn.getNotification().extras = bundle; in testSuppressSystemAlertNotification() 230 sbn.getNotification().extras = bundle; in testDoNotSuppressSystemAlertNotification() 258 sbn.getNotification().extras = bundle; in testDoNotSuppressMalformedSystemAlertNotification() 306 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_foreground() 319 Notification n = mMockStatusBarNotification.getNotification(); in testIsExemptFromDndVisualSuppression_media() 323 when(mMockStatusBarNotification.getNotification()).thenReturn(n); in testIsExemptFromDndVisualSuppression_media() 349 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 355 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 360 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() 365 when(mMockStatusBarNotification.getNotification()).thenReturn( in testIsNotExemptFromDndVisualSuppression_hiddenCategories() [all …]
|
D | NotificationEntryManagerTest.java | 380 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 384 Assert.assertFalse(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 386 Assert.assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputNoSpinner() 394 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 398 Assert.assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 400 Assert.assertTrue(newSbn.getNotification().extras in testRebuildWithRemoteInput_noExistingInputWithSpinner() 413 CharSequence[] messages = newSbn.getNotification().extras in testRebuildWithRemoteInput_withExistingInput() 425 Assert.assertFalse(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies() 427 Assert.assertTrue(newSbn.getNotification().extras in testRebuildNotificationForCanceledSmartReplies()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationData.java | 180 Notification n = sbn.getNotification(); in createIcons() 234 Notification n = sbn.getNotification(); in updateIcons() 253 notification.getNotification().color; in getContrastedColor() 319 Bundle extras = notification.getNotification().extras; in isLastMessageFromReply() 410 return Long.compare(nb.getNotification().when, na.getNotification().when); 545 if (isNotificationBlockedByPolicy(entry.notification.getNotification())) { in isExemptFromDndVisualSuppression() 549 if ((entry.notification.getNotification().flags in isExemptFromDndVisualSuppression() 553 if (entry.notification.getNotification().isMediaNotification()) { in isExemptFromDndVisualSuppression() 704 (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET in shouldFilterOut() 732 final String[] apps = sbn.getNotification().extras.getStringArray( in shouldFilterOut() [all …]
|
D | NotificationEntryManager.java | 172 Notification notification = sbn.getNotification(); in register() 580 .recoverBuilder(mContext, sbn.getNotification().clone()); in rebuildNotificationWithRemoteInput() 582 CharSequence[] oldHistory = sbn.getNotification().extras in rebuildNotificationWithRemoteInput() 600 newNotification.contentView = sbn.getNotification().contentView; in rebuildNotificationWithRemoteInput() 601 newNotification.bigContentView = sbn.getNotification().bigContentView; in rebuildNotificationWithRemoteInput() 602 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in rebuildNotificationWithRemoteInput() 670 if ((row.getStatusBarNotification().getNotification().flags in handleGroupSummaryRemoved() 718 entry.autoRedacted = entry.notification.getNotification().publicVersion == null; in updateNotification() 764 if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) { in addNotificationInternal() 786 notification.getNotification().fullScreenIntent.send(); in addNotificationInternal() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupManager.java | 269 && group.summary.notification.getNotification().isGroupSummary() in updateSuppression() 329 return isGroupSuppressed(getGroupKey(sbn)) && sbn.getNotification().isGroupSummary(); in isSummaryOfSuppressedGroup() 333 return !sbn.getNotification().isGroupSummary() in isOnlyChild() 460 return sbn.getNotification().isGroupSummary(); in isGroupSummary() 467 return sbn.isGroup() && !sbn.getNotification().isGroupSummary(); in isGroupChild() 523 || !sbn.getNotification().isGroupSummary() in handleSuppressedSummaryHeadsUpped() 563 return entry.notification.getNotification().getGroupAlertBehavior() in onlySummaryAlerts() 593 return (sbn.isGroup() && !sbn.getNotification().isGroupSummary()) in shouldIsolate() 594 && (sbn.getNotification().fullScreenIntent != null in shouldIsolate()
|
/frameworks/support/samples/SupportAppNavigation/src/main/java/com/example/android/support/appnavigation/app/ |
D | NotificationsActivity.java | 64 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); in onPostDirect() 79 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification()); in onPostInterstitial()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceControllerImpl.java | 147 final Bundle extras = sbn.getNotification().extras; in updateNotification() 150 userServices.setRunningServices(svcs, sbn.getNotification().when); in updateNotification() 154 if (0 != (sbn.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE)) { in updateNotification() 159 mContext, sbn.getNotification()); in updateNotification()
|
/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/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/av/packages/MediaComponents/src/com/android/media/ |
D | MediaSessionService2Impl.java | 121 mediaNotification.getNotification()); in updateNotification() 135 mediaNotification.getNotification()); in updateNotification()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 172 Notification notification = getNotification(context, R.string.portal_notification_id, in onShowCaptivePortalNotification() 184 Notification notification = getNotification(context, R.string.no_data_notification_id, in onShowNoDataServiceNotification() 199 private static Notification getNotification(Context context, int titleId, int textId, in getNotification() method in CarrierActionUtils
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationBigPictureTemplateViewWrapper.java | 45 final Bundle extras = notification.getNotification().extras; in updateImageTag()
|