Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
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 groupNotificationType_shouldHaveCorrectValues()
130 CarNotificationTypeItem groupSummary = CarNotificationTypeItem.of( in groupSummaryNotificationType_shouldHaveCorrectValues()
141 CarNotificationTypeItem progress = CarNotificationTypeItem.of( in progressNotificationType_shouldHaveCorrectValues()
151 CarNotificationTypeItem progressInGroup = CarNotificationTypeItem.of( in progressInGroupNotificationType_shouldHaveCorrectValues()
[all …]
DNotificationUtilsTest.java216 Map<String, CarNotificationTypeItem> typeMap = new HashMap<>(); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
217 typeMap.put(Notification.CATEGORY_CAR_EMERGENCY, CarNotificationTypeItem.EMERGENCY); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
218 typeMap.put(Notification.CATEGORY_NAVIGATION, CarNotificationTypeItem.NAVIGATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
219 typeMap.put(Notification.CATEGORY_CALL, CarNotificationTypeItem.CALL); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
220 typeMap.put(Notification.CATEGORY_CAR_WARNING, CarNotificationTypeItem.WARNING); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
221 typeMap.put(Notification.CATEGORY_CAR_INFORMATION, CarNotificationTypeItem.INFORMATION); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
222 typeMap.put(Notification.CATEGORY_MESSAGE, CarNotificationTypeItem.MESSAGE); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
245 CarNotificationTypeItem.INBOX); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
255 CarNotificationTypeItem.BASIC); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/headsup/
DCarHeadsUpNotificationContainerTest.java30 import com.android.car.notification.CarNotificationTypeItem;
91 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()
154 CarNotificationTypeItem.NAVIGATION); in displayNotification_allImportancePresent_newNavigationImportance_newIndex3()
166 CarNotificationTypeItem.WARNING); in displayNotification_allImportancePresent_newWarningImportance_newIndex4()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/notification/
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()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java113 public static CarNotificationTypeItem getNotificationViewType(AlertEntry alertEntry) { in getNotificationViewType()
118 return CarNotificationTypeItem.EMERGENCY; in getNotificationViewType()
120 return CarNotificationTypeItem.NAVIGATION; in getNotificationViewType()
122 return CarNotificationTypeItem.CALL; in getNotificationViewType()
124 return CarNotificationTypeItem.WARNING; in getNotificationViewType()
126 return CarNotificationTypeItem.INFORMATION; in getNotificationViewType()
128 return CarNotificationTypeItem.MESSAGE; in getNotificationViewType()
136 return CarNotificationTypeItem.INBOX; in getNotificationViewType()
139 return CarNotificationTypeItem.BASIC; in getNotificationViewType()
DCarNotificationTypeItem.java38 public enum CarNotificationTypeItem { enum
78 private static final Map<Integer, CarNotificationTypeItem>
83 for (CarNotificationTypeItem carNotificationTypeItem : values()) {
89 CarNotificationTypeItem(int headsUpTemplate, int notificationCenterTemplate, in CarNotificationTypeItem() method in CarNotificationTypeItem
167 public static CarNotificationTypeItem of(int viewType) { in of()
168 CarNotificationTypeItem result = VIEW_TYPE_CAR_NOTIFICATION_TYPE_ITEM_MAP.get(viewType); in of()
DCarNotificationViewAdapter.java152 CarNotificationTypeItem carNotificationTypeItem = CarNotificationTypeItem.of( in onCreateViewHolderImpl()
194 CarNotificationTypeItem carNotificationTypeItem = CarNotificationTypeItem.of(viewType); in onBindViewHolderImpl()
DCarHeadsUpNotificationManager.java442 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp()
/packages/apps/Car/Notification/src/com/android/car/notification/headsup/
DCarHeadsUpNotificationContainer.java27 import com.android.car.notification.CarNotificationTypeItem;
70 CarNotificationTypeItem notificationTypeItem) { in displayNotification()
161 CarNotificationTypeItem notificationTypeItem) { in getImportanceForCarNotificationTypeItem()
162 if (notificationTypeItem == CarNotificationTypeItem.EMERGENCY) { in getImportanceForCarNotificationTypeItem()
164 } else if (notificationTypeItem == CarNotificationTypeItem.WARNING) { in getImportanceForCarNotificationTypeItem()
166 } else if (notificationTypeItem == CarNotificationTypeItem.NAVIGATION) { in getImportanceForCarNotificationTypeItem()
168 } else if (notificationTypeItem == CarNotificationTypeItem.CALL) { in getImportanceForCarNotificationTypeItem()