Home
last modified time | relevance | path

Searched refs:CarNotificationTypeItem (Results 1 – 9 of 9) sorted by relevance

/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DCarNotificationTypeItemTest.java57 CarNotificationTypeItem navigation = CarNotificationTypeItem.of( in navigationNotificationType_shouldHaveCorrectValues()
67 CarNotificationTypeItem call = CarNotificationTypeItem.of( in callNotificationType_shouldHaveCorrectValues()
77 CarNotificationTypeItem message = CarNotificationTypeItem.of( in messageNotificationType_shouldHaveCorrectValues()
87 CarNotificationTypeItem messageInGroup = CarNotificationTypeItem.of( in messageInGroupNotificationType_shouldHaveCorrectValues()
98 CarNotificationTypeItem inbox = CarNotificationTypeItem.of( in inboxNotificationType_shouldHaveCorrectValues()
108 CarNotificationTypeItem inboxInGroup = CarNotificationTypeItem.of( in inboxInGroupNotificationType_shouldHaveCorrectValues()
119 CarNotificationTypeItem groupExpanded = CarNotificationTypeItem.of( in groupExpandedNotificationType_shouldHaveCorrectValues()
141 CarNotificationTypeItem groupSummary = CarNotificationTypeItem.of( in groupSummaryNotificationType_shouldHaveCorrectValues()
152 CarNotificationTypeItem progress = CarNotificationTypeItem.of( in progressNotificationType_shouldHaveCorrectValues()
174 CarNotificationTypeItem basic = CarNotificationTypeItem.of( in basicNotificationType_shouldHaveCorrectValues()
[all …]
H A DNotificationUtilsTest.java192 Map<String, CarNotificationTypeItem> typeMap = new HashMap<>(); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
193 typeMap.put(Notification.CATEGORY_CAR_EMERGENCY, CarNotificationTypeItem.EMERGENCY); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
194 typeMap.put(Notification.CATEGORY_NAVIGATION, CarNotificationTypeItem.NAVIGATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
195 typeMap.put(Notification.CATEGORY_CALL, CarNotificationTypeItem.CALL); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
196 typeMap.put(Notification.CATEGORY_CAR_WARNING, CarNotificationTypeItem.WARNING); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
197 typeMap.put(Notification.CATEGORY_CAR_INFORMATION, CarNotificationTypeItem.INFORMATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
198 typeMap.put(Notification.CATEGORY_MESSAGE, CarNotificationTypeItem.MESSAGE); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
221 CarNotificationTypeItem.INBOX); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
231 CarNotificationTypeItem.BASIC); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/headsup/
H A DCarHeadsUpNotificationContainerTest.java91 CarNotificationTypeItem.INBOX); in displayNotification_emptyContent_notificationOnlyChildInContentView()
102 CarNotificationTypeItem.INBOX); in displayNotification_lowerImportanceContent_higherImportanceOnTop()
105 CarNotificationTypeItem.CALL); in displayNotification_lowerImportanceContent_higherImportanceOnTop()
115 CarNotificationTypeItem.CALL); in displayNotification_higherImportanceContent_lowerImportanceBehind()
118 CarNotificationTypeItem.INBOX); in displayNotification_higherImportanceContent_lowerImportanceBehind()
130 CarNotificationTypeItem.MESSAGE); in displayNotification_allImportancePresent_newOtherImportance_newIndex1()
142 CarNotificationTypeItem.CALL); in displayNotification_allImportancePresent_newCallImportance_newIndex2()
166 CarNotificationTypeItem.WARNING); in displayNotification_allImportancePresent_newWarningImportance_newIndex4()
188 CarNotificationTypeItem.INBOX); in removeNotification_oneViewInContent_contentEmpty()
250 CarNotificationTypeItem.INBOX); in displayOneNotificationOfEveryImportance()
[all …]
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/notification/
H A DCarHeadsUpNotificationSystemContainerTest.java30 import com.android.car.notification.CarNotificationTypeItem;
76 CarNotificationTypeItem.INBOX); in testDisplayNotification_firstNotification_isVisible()
83 CarNotificationTypeItem.INBOX); in testRemoveNotification_lastNotification_isInvisible()
91 CarNotificationTypeItem.INBOX); in testRemoveNotification_nonLastNotification_isVisible()
93 CarNotificationTypeItem.INBOX); in testRemoveNotification_nonLastNotification_isVisible()
101 CarNotificationTypeItem.INBOX); in testDisplayNotification_userFullySetupTrue_isInvisible()
110 CarNotificationTypeItem.INBOX); in testDisplayNotification_userFullySetupFalse_isInvisible()
118 CarNotificationTypeItem.INBOX); in testDisplayNotification_overlayWindowStateShouldShowHUNFalse_isInvisible()
125 CarNotificationTypeItem.INBOX); in testDisplayNotification_overlayWindowStateShouldShowHUNTrue_isVisible()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationUtils.java110 public static CarNotificationTypeItem getNotificationViewType(AlertEntry alertEntry) { in getNotificationViewType()
115 return CarNotificationTypeItem.EMERGENCY; in getNotificationViewType()
117 return CarNotificationTypeItem.NAVIGATION; in getNotificationViewType()
119 return CarNotificationTypeItem.CALL; in getNotificationViewType()
121 return CarNotificationTypeItem.WARNING; in getNotificationViewType()
123 return CarNotificationTypeItem.INFORMATION; in getNotificationViewType()
125 return CarNotificationTypeItem.MESSAGE; in getNotificationViewType()
133 return CarNotificationTypeItem.INBOX; in getNotificationViewType()
136 return CarNotificationTypeItem.BASIC; in getNotificationViewType()
H A DCarNotificationTypeItem.java38 public enum CarNotificationTypeItem { enum
80 private static final Map<Integer, CarNotificationTypeItem>
85 for (CarNotificationTypeItem carNotificationTypeItem : values()) {
91 CarNotificationTypeItem(int headsUpTemplate, int notificationCenterTemplate, in CarNotificationTypeItem() method in CarNotificationTypeItem
170 public static CarNotificationTypeItem of(int viewType) { in of()
171 CarNotificationTypeItem result = VIEW_TYPE_CAR_NOTIFICATION_TYPE_ITEM_MAP.get(viewType); in of()
H A DCarNotificationViewAdapter.java146 CarNotificationTypeItem carNotificationTypeItem = CarNotificationTypeItem.of( in onCreateViewHolderImpl()
189 CarNotificationTypeItem carNotificationTypeItem = CarNotificationTypeItem.of(viewType); in onBindViewHolderImpl()
H A DCarHeadsUpNotificationManager.java340 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/headsup/
H A DCarHeadsUpNotificationContainer.java27 import com.android.car.notification.CarNotificationTypeItem;
64 CarNotificationTypeItem notificationTypeItem) { in displayNotification()
155 CarNotificationTypeItem notificationTypeItem) { in getImportanceForCarNotificationTypeItem()
156 if (notificationTypeItem == CarNotificationTypeItem.EMERGENCY) { in getImportanceForCarNotificationTypeItem()
158 } else if (notificationTypeItem == CarNotificationTypeItem.WARNING) { in getImportanceForCarNotificationTypeItem()
160 } else if (notificationTypeItem == CarNotificationTypeItem.NAVIGATION) { in getImportanceForCarNotificationTypeItem()
162 } else if (notificationTypeItem == CarNotificationTypeItem.CALL) { in getImportanceForCarNotificationTypeItem()