Home
last modified time | relevance | path

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

123

/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java71 public int getItemViewType(int position) { in getItemViewType() method in CompositeListAdapterTest.MockAdapter
200 assertEquals(1, adapter.getItemViewType(0)); in testGetItemViewType()
201 assertEquals(0, adapter.getItemViewType(1)); in testGetItemViewType()
205 assertEquals(4, adapter.getItemViewType(2)); in testGetItemViewType()
206 assertEquals(5, adapter.getItemViewType(3)); in testGetItemViewType()
207 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/Settings/src/com/android/settings/dashboard/
DDashboardDecorator.java46 if (holder.getItemViewType() == R.layout.dashboard_category) { in onDrawOver()
47 if (parent.getChildViewHolder(parent.getChildAt(i - 1)).getItemViewType() in onDrawOver()
51 } else if (holder.getItemViewType() != R.layout.condition_card) { in onDrawOver()
/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
DVideoItem.java159 view.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
213 public FilmstripItemType getItemViewType() { in getItemViewType() method in VideoItem
DPhotoItem.java124 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
160 public FilmstripItemType getItemViewType() { in getItemViewType() method in PhotoItem
DFilmstripItem.java59 public FilmstripItemType getItemViewType(); in getItemViewType() method
/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.java99 public int getItemViewType(int position) { in getItemViewType() method in HeaderEntryContactListAdapter
103 return super.getItemViewType(position - getHeaderEntryCount()); in getItemViewType()
DJoinContactListAdapter.java138 public int getItemViewType(int partition, int position) { in getItemViewType() method in JoinContactListAdapter
139 return super.getItemViewType(partition, position); in getItemViewType()
/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/Contacts/src/com/android/contacts/editor/
DCompactPhotoSelectionFragment.java181 public int getItemViewType(int index) { in getItemViewType() method in CompactPhotoSelectionFragment.PhotoAdapter
197 if (getItemViewType(position) == 0){ in getView()
204 if (getItemViewType(position) == 1) { in getView()
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java179 public int getItemViewType(int position) { in getItemViewType() method in CompositeListAdapter
186 return viewTypeOffset + mAdapters[i].getItemViewType(position - start); in getItemViewType()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java143 public int getItemViewType(int position) { in getItemViewType() method in SectionedAlbumDataAdapter
147 return mAlbumData.getItemViewType(internalPosition(position)); in getItemViewType()
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DDrawerApiAdapter.java89 public int getItemViewType(int position) { in getItemViewType() method in DrawerApiAdapter
145 if (holder.getItemViewType() == R.layout.car_list_item_empty) { in onBindViewHolder()
147 } else if (holder.getItemViewType() == R.layout.car_unavailable_category) { in onBindViewHolder()
289 if (holder.getItemViewType() == R.layout.car_unavailable_category) { in setDayNightModeColors()
/packages/apps/Dialer/src/com/android/dialer/list/
DDialerPhoneNumberListAdapter.java79 public int getItemViewType(int position) { in getItemViewType() method in DialerPhoneNumberListAdapter
85 return super.getItemViewType(position); in getItemViewType()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DGroupingRecyclerViewAdapter.java96 public int getItemViewType(int position) { in getItemViewType() method in GroupingRecyclerViewAdapter
126 switch (holder.getItemViewType()) { in onBindViewHolder()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java273 final int itemViewType = getItemViewType(position); in getItem()
293 final int itemViewType = getItemViewType(position); in getView()
355 public int getItemViewType(int position) { in getItemViewType() method in CitySelectionActivity.CityAdapter
/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowAdapter.java130 public int getItemViewType(int position) { in getItemViewType() method in ChannelsRowAdapter
146 int viewType = getItemViewType(position); in onBindViewHolder()
/packages/apps/Camera2/src/com/android/camera/filmstrip/
DFilmstripDataAdapter.java97 public int getItemViewType(int index); in getItemViewType() method
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java408 public int getItemViewType(int position) { in getItemViewType() method in HeaderGridView.HeaderViewGridAdapter
418 return mAdapter.getItemViewType(adjPosition); in getItemViewType()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java122 int viewType = getItemViewType(host); in onInitializeAccessibilityNodeInfoForItem()
563 switch (holder.getItemViewType()) { in onBindViewHolder()
616 public int getItemViewType(int position) { in getItemViewType() method in AllAppsGridAdapter
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsListAdapter.java90 public int getItemViewType(int position) { in getItemViewType() method in SuggestionsListAdapter.Adapter

123