Home
last modified time | relevance | path

Searched refs:getItemViewType (Results 1 – 25 of 121) sorted by relevance

12345

/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java79 if (getItemViewType(position) == ITEM_TYPE_SECTION_BREAK in createSpanSizeLookup()
80 || getItemViewType(position) == ITEM_TYPE_HEADER_MESSAGE in createSpanSizeLookup()
81 || getItemViewType(position) == ITEM_TYPE_INFLATED_MESSAGE) { in createSpanSizeLookup()
87 return getItemViewType(position) == ITEM_TYPE_DIRECTORY in createSpanSizeLookup()
128 switch (holder.getItemViewType()) {
146 switch (holder.getItemViewType()) {
206 public int getItemViewType(int p) {
219 return mDelegate.getItemViewType(toDelegatePosition(p));
DDocumentItemDetails.java36 public int getItemViewType() { in getItemViewType() method in DocumentItemDetails
37 return mDocumentHolder.getItemViewType(); in getItemViewType()
DInputHandlers.java68 switch (item.getItemViewType()) { in createKeyHandler()
78 "Unsupported item type: " + item.getItemViewType()); in createKeyHandler()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java520 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnGroupCollapsed()
537 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnGroupExpanded()
553 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarEmergency()
569 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarWarning()
585 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarInformation()
601 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnCarInformationInGroup()
617 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnMessageInGroup()
633 int itemViewType = mCarNotificationViewAdapter.getItemViewType(2); in getItemViewType_shouldReturnMessage()
645 int itemViewType = mCarNotificationViewAdapter.getItemViewType(1); in getItemViewType_shouldReturnGroupSummary()
657 int itemViewType = mCarNotificationViewAdapter.getItemViewType(0); in getItemViewType_shouldReturnBasic()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java73 public int getItemViewType(int position) { in getItemViewType() method in CompositeListAdapterTest.MockAdapter
202 assertEquals(1, adapter.getItemViewType(0)); in testGetItemViewType()
203 assertEquals(0, adapter.getItemViewType(1)); in testGetItemViewType()
207 assertEquals(4, adapter.getItemViewType(2)); in testGetItemViewType()
208 assertEquals(5, adapter.getItemViewType(3)); in testGetItemViewType()
209 assertEquals(3, adapter.getItemViewType(4)); in testGetItemViewType()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DMtpAdapter.java118 public int getItemViewType(int position) { in getItemViewType() method in MtpAdapter
129 return getItemViewType(position) == ITEM_TYPE_BUCKET; in itemAtPositionIsBucket()
133 return getItemViewType(position) == ITEM_TYPE_MEDIA; in itemAtPositionIsMedia()
138 int type = getItemViewType(position); in getView()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.java75 mListenersByViewType.get(viewHolder.getItemViewType());
256 public int getItemViewType(int position) { in getItemViewType() method in ItemAdapter
257 return mItemHolders.get(position).getItemViewType(); in getItemViewType()
331 public abstract int getItemViewType(); in getItemViewType() method in ItemAdapter.ItemHolder
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsAdapter.java75 public int getItemViewType(int position) { in getItemViewType() method in ContactDetailsAdapter
111 switch (viewHolder.getItemViewType()) { in onBindViewHolder()
119 Log.e(TAG, "Unknown view type " + viewHolder.getItemViewType()); in onBindViewHolder()
/packages/apps/Camera2/src/com/android/camera/data/
DFixedLastProxyAdapter.java128 public int getItemViewType(int index) { in getItemViewType() method in FixedLastProxyAdapter
132 return mAdapter.getItemViewType(index); in getItemViewType()
134 return mLastData.getItemViewType().ordinal(); in getItemViewType()
DFixedFirstProxyAdapter.java123 public int getItemViewType(int index) { in getItemViewType() method in FixedFirstProxyAdapter
125 return mFirstData.getItemViewType().ordinal(); in getItemViewType()
127 return mAdapter.getItemViewType(index); in getItemViewType()
DSessionItem.java101 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
116 public FilmstripItemType getItemViewType() { in getItemViewType() method in SessionItem
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialAdapter.java106 public int getItemViewType(int position) { in getItemViewType() method in SpeedDialAdapter
139 switch (getItemViewType(position)) { in onBindViewHolder()
218 switch (getItemViewType(position)) { in getSpanSizeLookup()
328 return !speedDialUiItems.isEmpty() && getItemViewType(getItemCount() - 1) == RowType.SUGGESTION;
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegateTest.java114 viewHolder).getItemViewType(); in getSliceViewHolder()
125 viewHolder).getItemViewType(); in getConditionalViewHolder()
134 doReturn(VIEW_TYPE_DEFERRED_SETUP).when(viewHolder).getItemViewType(); in getDeferredSetupViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSliceContextualCardRenderer.java120 switch (holder.getItemViewType()) { in bindView()
132 switch (holder.getItemViewType()) { in bindView()
182 if (viewHolder.getItemViewType() == VIEW_TYPE_HALF_WIDTH) { in getInitialView()
DSwipeDismissalDelegate.java55 switch (viewHolder.getItemViewType()) { in getMovementFlags()
117 if (viewHolder.getItemViewType() == SliceContextualCardRenderer.VIEW_TYPE_HALF_WIDTH) { in getSwipeableView()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRenderer.java135 switch (holder.getItemViewType()) { in bindView()
150 switch (holder.getItemViewType()) { in bindView()
200 if (viewHolder.getItemViewType() == VIEW_TYPE_HALF_WIDTH) { in getInitialView()
DSwipeDismissalDelegate.java55 switch (viewHolder.getItemViewType()) { in getMovementFlags()
117 if (viewHolder.getItemViewType() == SliceContextualCardRenderer.VIEW_TYPE_HALF_WIDTH) { in getSwipeableView()
/packages/apps/TV/src/com/android/tv/ui/
DGuidedActionsStylistWithDivider.java33 public int getItemViewType(GuidedAction action) { in getItemViewType() method in GuidedActionsStylistWithDivider
37 return super.getItemViewType(action); in getItemViewType()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSeparatedFolderListAdapter.java76 public int getItemViewType(int position) { in getItemViewType() method in SeparatedFolderListAdapter
82 return type + adapter.getItemViewType(position); in getItemViewType()
/packages/apps/Contacts/src/com/android/contacts/list/
DHeaderEntryContactListAdapter.java97 public int getItemViewType(int position) { in getItemViewType() method in HeaderEntryContactListAdapter
101 return super.getItemViewType(position - getHeaderEntryCount()); in getItemViewType()
/packages/apps/Dialer/java/com/android/dialer/rtt/
DRttTranscriptAdapter.java48 public int getItemViewType(int position) { in getItemViewType() method in RttTranscriptAdapter
49 return super.getItemViewType(position); in getItemViewType()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsAdapter.java103 return getItemViewType(position) != TYPE_SPACER; in isEnabled()
107 public int getItemViewType(int position) { in getItemViewType() method in RootsAdapter
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridAdapter.java77 public int getItemViewType(int position) { in getItemViewType() method in AppGridAdapter
98 switch (holder.getItemViewType()) { in onBindViewHolder()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMergedAdapter.java147 public int getItemViewType(int position) { in getItemViewType() method in MergedAdapter
156 int type = result.mAdapter.getItemViewType(result.mLocalPosition); in getItemViewType()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskAdapter.java125 int itemType = getItemViewType(position); in onBindViewHolderInternal()
163 public int getItemViewType(int position) { in getItemViewType() method in TaskAdapter

12345