/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarHeadsUpNotificationManager.java | 161 StatusBarNotification statusBarNotification, in maybeShowHeadsUp() argument 164 if (!shouldShowHeadsUp(statusBarNotification, rankingMap)) { in maybeShowHeadsUp() 168 statusBarNotification.getKey()); in maybeShowHeadsUp() 170 activeNotifications.put(statusBarNotification.getKey(), statusBarNotification); in maybeShowHeadsUp() local 175 statusBarNotification) in maybeShowHeadsUp() 177 animateOutHUN(statusBarNotification); in maybeShowHeadsUp() 179 activeNotifications.put(statusBarNotification.getKey(), statusBarNotification); in maybeShowHeadsUp() local 182 if (!activeNotifications.containsKey(statusBarNotification.getKey()) || canUpdate( in maybeShowHeadsUp() 183 statusBarNotification) || alertAgain(statusBarNotification.getNotification())) { in maybeShowHeadsUp() 184 showHeadsUp(mPreprocessingManager.optimizeForDriving(statusBarNotification), in maybeShowHeadsUp() [all …]
|
D | NotificationUtils.java | 42 StatusBarNotification statusBarNotification) { in isSystemPrivilegedOrPlatformKey() argument 43 return isSystemPrivilegedOrPlatformKeyInner(context, statusBarNotification, in isSystemPrivilegedOrPlatformKey() 57 StatusBarNotification statusBarNotification) { in isSystemOrPlatformKey() argument 58 return isSystemPrivilegedOrPlatformKeyInner(context, statusBarNotification, in isSystemOrPlatformKey() 66 StatusBarNotification statusBarNotification) { in isSystemApp() argument 72 statusBarNotification.getPackageName(), /* flags= */ 0, in isSystemApp() 75 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in isSystemApp() 86 StatusBarNotification statusBarNotification) { in isSignedWithPlatformKey() argument 92 statusBarNotification.getPackageName(), /* flags= */ 0, in isSignedWithPlatformKey() 95 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in isSignedWithPlatformKey() [all …]
|
D | NotificationClickHandlerFactory.java | 84 public View.OnClickListener getClickHandler(StatusBarNotification statusBarNotification) { in getClickHandler() argument 86 Notification notification = statusBarNotification.getNotification(); in getClickHandler() 107 statusBarNotification.getKey(), in getClickHandler() 110 mBarService.onNotificationClick(statusBarNotification.getKey(), in getClickHandler() 112 if (shouldAutoCancel(statusBarNotification)) { in getClickHandler() 114 statusBarNotification.getPackageName(), in getClickHandler() 115 statusBarNotification.getTag(), in getClickHandler() 116 statusBarNotification.getId(), in getClickHandler() 117 statusBarNotification.getUser().getIdentifier(), in getClickHandler() 118 statusBarNotification.getKey(), in getClickHandler() [all …]
|
D | PreprocessingManager.java | 212 notifications.removeIf(statusBarNotification in filter() 213 -> isLessImportantForegroundNotification(statusBarNotification, in filter() 217 notifications.removeIf(statusBarNotification in filter() 218 -> isMediaOrNavigationNotification(statusBarNotification)); in filter() 224 StatusBarNotification statusBarNotification, RankingMap rankingMap) { in isLessImportantForegroundNotification() argument 226 (statusBarNotification.getNotification().flags in isLessImportantForegroundNotification() 236 if (rankingMap.getRanking(statusBarNotification.getKey(), ranking)) { in isLessImportantForegroundNotification() 241 statusBarNotification); in isLessImportantForegroundNotification() 244 private boolean isMediaOrNavigationNotification(StatusBarNotification statusBarNotification) { in isMediaOrNavigationNotification() argument 245 Notification notification = statusBarNotification.getNotification(); in isMediaOrNavigationNotification() [all …]
|
D | NotificationGroup.java | 51 public NotificationGroup(StatusBarNotification statusBarNotification) { in NotificationGroup() argument 52 addNotification(statusBarNotification); in NotificationGroup() 55 public void addNotification(StatusBarNotification statusBarNotification) { in addNotification() argument 56 assertSameGroupKey(statusBarNotification.getGroupKey()); in addNotification() 57 mNotifications.add(statusBarNotification); in addNotification()
|
D | HeadsUpEntry.java | 44 HeadsUpEntry(StatusBarNotification statusBarNotification) { in HeadsUpEntry() argument 45 mStatusBarNotification = statusBarNotification; in HeadsUpEntry()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | MessageNotificationViewHolder.java | 82 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 84 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 85 bindBody(statusBarNotification, isInGroup, /* isRestricted= */ false, isHeadsUp); in bind() 86 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 87 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 94 public void bindRestricted(StatusBarNotification statusBarNotification, boolean isInGroup, in bindRestricted() argument 96 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bindRestricted() 97 bindBody(statusBarNotification, isInGroup, /* isRestricted= */ true, isHeadsUp); in bindRestricted() 98 mHeaderView.bind(statusBarNotification, isInGroup); in bindRestricted() 99 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bindRestricted() [all …]
|
D | CarNotificationActionsView.java | 112 StatusBarNotification statusBarNotification) { in bind() argument 114 Notification notification = statusBarNotification.getNotification(); in bind() 120 if (CarAssistUtils.isCarCompatibleMessagingNotification(statusBarNotification)) { in bind() 121 createPlayButton(clickHandlerFactory, statusBarNotification); in bind() 122 createMuteButton(clickHandlerFactory, statusBarNotification); in bind() 136 statusBarNotification, i)); in bind() 162 StatusBarNotification statusBarNotification) { in createPlayButton() argument 168 button.setOnClickListener(clickHandlerFactory.getPlayClickHandler(statusBarNotification)); in createPlayButton() 176 StatusBarNotification statusBarNotification) { in createMuteButton() argument 183 statusBarNotification)) in createMuteButton() [all …]
|
D | CarNotificationHeaderView.java | 112 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup) { in bind() argument 119 Notification notification = statusBarNotification.getNotification(); in bind() 121 Context packageContext = statusBarNotification.getPackageContext(getContext()); in bind() 134 mHeaderTextView.setText(loadHeaderAppName(statusBarNotification)); in bind() 139 stringBuilder.append(loadHeaderAppName(statusBarNotification)); in bind() 210 private String loadHeaderAppName(StatusBarNotification statusBarNotification) { in loadHeaderAppName() argument 211 Notification notification = statusBarNotification.getNotification(); in loadHeaderAppName() 214 if (NotificationUtils.isSystemOrPlatformKey(mContext, statusBarNotification) in loadHeaderAppName() 215 && CarAssistUtils.isCarCompatibleMessagingNotification(statusBarNotification) in loadHeaderAppName() 221 return loadHeaderAppName(statusBarNotification.getPackageName()); in loadHeaderAppName()
|
D | NavigationNotificationViewHolder.java | 50 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 52 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 53 bindBody(statusBarNotification); in bind() 54 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 55 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 61 private void bindBody(StatusBarNotification statusBarNotification) { in bindBody() argument 62 Notification notification = statusBarNotification.getNotification(); in bindBody()
|
D | CallNotificationViewHolder.java | 50 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 52 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 53 bindBody(statusBarNotification); in bind() 54 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 55 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 61 private void bindBody(StatusBarNotification statusBarNotification) { in bindBody() argument 62 Notification notification = statusBarNotification.getNotification(); in bindBody()
|
D | InboxNotificationViewHolder.java | 50 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 52 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 53 bindBody(statusBarNotification); in bind() 54 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 55 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 61 private void bindBody(StatusBarNotification statusBarNotification) { in bindBody() argument 62 Notification notification = statusBarNotification.getNotification(); in bindBody()
|
D | BasicNotificationViewHolder.java | 50 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 52 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 53 bindBody(statusBarNotification); in bind() 54 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 55 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 61 private void bindBody(StatusBarNotification statusBarNotification) { in bindBody() argument 62 Notification notification = statusBarNotification.getNotification(); in bindBody()
|
D | ProgressNotificationViewHolder.java | 60 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 62 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 63 bindBody(statusBarNotification); in bind() 64 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 65 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind() 71 private void bindBody(StatusBarNotification statusBarNotification) { in bindBody() argument 72 Notification notification = statusBarNotification.getNotification(); in bindBody()
|
D | EmergencyNotificationViewHolder.java | 62 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 64 super.bind(statusBarNotification, isInGroup, isHeadsUp); in bind() 66 Notification notification = statusBarNotification.getNotification(); in bind() 69 mHeaderView.bind(statusBarNotification, isInGroup); in bind() 70 mActionsView.bind(mClickHandlerFactory, statusBarNotification); in bind()
|
D | CarNotificationBaseViewHolder.java | 116 public void bind(StatusBarNotification statusBarNotification, boolean isInGroup, in bind() argument 119 mStatusBarNotification = statusBarNotification; in bind()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationInfo.java | 61 public NotificationInfo(Context context, StatusBarNotification statusBarNotification) { in NotificationInfo() argument 62 packageUserKey = PackageUserKey.fromNotification(statusBarNotification); in NotificationInfo() 63 notificationKey = statusBarNotification.getKey(); in NotificationInfo() 64 Notification notification = statusBarNotification.getNotification(); in NotificationInfo() 76 mIconColor = statusBarNotification.getNotification().color; in NotificationInfo() 86 .getDefaultIcon(statusBarNotification.getUser()).icon); in NotificationInfo()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmNotifications.java | 173 for (StatusBarNotification statusBarNotification : notifications) { in getFirstActiveNotification() 174 final Notification n = statusBarNotification.getNotification(); in getFirstActiveNotification() 177 && statusBarNotification.getId() != canceledNotificationId) { in getFirstActiveNotification() 192 for (StatusBarNotification statusBarNotification : notifications) { in getActiveGroupSummaryNotification() 193 final Notification n = statusBarNotification.getNotification(); in getActiveGroupSummaryNotification()
|
D | AlarmNotifications.kt | 257 for (statusBarNotification in notifications) { in getFirstActiveNotification() variable 258 val n: Notification = statusBarNotification.getNotification() in getFirstActiveNotification() 260 statusBarNotification.getId() != canceledNotificationId) { in getFirstActiveNotification() 275 for (statusBarNotification in notifications) { in getActiveGroupSummaryNotification() constant 276 val n: Notification = statusBarNotification.getNotification() in getActiveGroupSummaryNotification()
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/ |
D | PreprocessingManagerTest.java | 188 StatusBarNotification statusBarNotification = new StatusBarNotification( in getEmptyAutoGeneratedGroupSummary() local 191 statusBarNotification.setOverrideGroupKey(OVERRIDE_GROUP_KEY); in getEmptyAutoGeneratedGroupSummary() 193 return statusBarNotification; in getEmptyAutoGeneratedGroupSummary()
|
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/ |
D | FallbackAssistant.java | 242 ActionRequestInfo(@Nullable StatusBarNotification statusBarNotification, in ActionRequestInfo() argument 244 mStatusBarNotification = statusBarNotification; in ActionRequestInfo()
|