Home
last modified time | relevance | path

Searched refs:itemViewType (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java520 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnGroupCollapsed() local
522 assertThat(itemViewType).isEqualTo(NotificationViewType.GROUP_COLLAPSED); in getItemViewType_shouldReturnGroupCollapsed()
537 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnGroupExpanded() local
539 assertThat(itemViewType).isEqualTo(NotificationViewType.GROUP_EXPANDED); in getItemViewType_shouldReturnGroupExpanded()
553 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarEmergency() local
555 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_EMERGENCY); in getItemViewType_shouldReturnCarEmergency()
569 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarWarning() local
571 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_WARNING); in getItemViewType_shouldReturnCarWarning()
585 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarInformation() local
587 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_INFORMATION); in getItemViewType_shouldReturnCarInformation()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt276 val itemViewType = getItemViewType(position) in getItem() constant
277 when (itemViewType) { in getItem()
281 throw IllegalStateException("unexpected item view type: $itemViewType") in getItem()
293 val itemViewType = getItemViewType(position) in getView() constant
294 when (itemViewType) { in getView()
343 else -> throw IllegalStateException("unexpected item view type: $itemViewType") in getView()
DCitySelectionActivity.java314 final int itemViewType = getItemViewType(position); in getItem() local
315 switch (itemViewType) { in getItem()
321 throw new IllegalStateException("unexpected item view type: " + itemViewType); in getItem()
334 final int itemViewType = getItemViewType(position); in getView() local
335 switch (itemViewType) { in getView()
390 throw new IllegalStateException("unexpected item view type: " + itemViewType); in getView()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneViewHolder.kt55 val itemViewType: Int = getItemViewType() in onBindItemView() constant
56 if (itemViewType == VIEW_TYPE_CUSTOM_SOUND) { in onBindItemView()
79 if (itemViewType == VIEW_TYPE_CUSTOM_SOUND) { in onBindItemView()
DRingtoneViewHolder.java70 final int itemViewType = getItemViewType(); in onBindItemView() local
71 if (itemViewType == VIEW_TYPE_CUSTOM_SOUND) { in onBindItemView()
94 if (itemViewType == VIEW_TYPE_CUSTOM_SOUND) { in onBindItemView()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteAdapter.java100 int itemViewType = getItemViewType(position); in onBindViewHolder() local
101 switch (itemViewType) { in onBindViewHolder()