Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java558 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnGroup() local
560 assertThat(itemViewType).isEqualTo(NotificationViewType.GROUP); in getItemViewType_shouldReturnGroup()
574 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarEmergency() local
576 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_EMERGENCY); in getItemViewType_shouldReturnCarEmergency()
590 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarWarning() local
592 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_WARNING); in getItemViewType_shouldReturnCarWarning()
606 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarInformation() local
608 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_INFORMATION); in getItemViewType_shouldReturnCarInformation()
622 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarInformationInGroup() local
624 assertThat(itemViewType).isEqualTo(NotificationViewType.CAR_INFORMATION_IN_GROUP); in getItemViewType_shouldReturnCarInformationInGroup()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPhotosTabItemDecoration.java53 final int itemViewType = parent.getAdapter().getItemViewType(adapterPosition); in getItemOffsets() local
56 if (itemViewType == ITEM_TYPE_BANNER || itemViewType == ITEM_TYPE_SECTION) { in getItemOffsets()
DAlbumsTabItemDecoration.java55 final int itemViewType = parent.getAdapter().getItemViewType(adapterPosition); in getItemOffsets() local
58 if (itemViewType == ITEM_TYPE_BANNER) { in getItemOffsets()
DTabAdapter.java127 final int itemViewType = getItemViewType(position); in onBindViewHolder() local
128 switch (itemViewType) { in onBindViewHolder()
139 throw new IllegalArgumentException("Unknown item view type " + itemViewType); in onBindViewHolder()
DTabFragment.java1062 final int itemViewType = adapter.getItemViewType(position);
1065 if (itemViewType == ITEM_TYPE_BANNER || itemViewType == ITEM_TYPE_SECTION) {
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DRecyclerViewTestUtils.java76 static Matcher<View> atPositionOnItemViewType(int position, int itemViewType) { in atPositionOnItemViewType() argument
81 + itemViewType); in atPositionOnItemViewType()
92 return viewHolder.getItemViewType() == itemViewType; in atPositionOnItemViewType()
/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()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt275 val itemViewType = getItemViewType(position) in getItem() constant
276 when (itemViewType) { in getItem()
280 throw IllegalStateException("unexpected item view type: $itemViewType") in getItem()
292 val itemViewType = getItemViewType(position) in getView() constant
293 when (itemViewType) { in getView()
342 else -> throw IllegalStateException("unexpected item view type: $itemViewType") in getView()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/adapters/
DTermsListAdapter.java107 int itemViewType = getItemViewType(position); in onBindViewHolder() local
108 switch (itemViewType) { in onBindViewHolder()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/picker/
DPickerAppCardViewAdapter.kt81 val type = AppCardType.fromInt(holder.itemViewType) in <lambda>()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/reorder/
DReorderAppCardViewAdapter.kt85 val type = AppCardType.fromInt(holder.itemViewType) in <lambda>()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java386 @NonNull ViewGroup parent, int itemViewType) {
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1739 int itemViewType = getItemViewType(position); in isEnabled() local
1740 if (itemViewType == VIEW_TYPE_EXTRA_VIEW || itemViewType == VIEW_TYPE_APP_HEADER in isEnabled()