Home
last modified time | relevance | path

Searched refs:adapterPosition (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java359 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(viewPosition); in getSpanGroupIndex() local
360 if (adapterPosition == -1) { in getSpanGroupIndex()
368 return mSpanSizeLookup.getSpanGroupIndex(adapterPosition, mSpanCount); in getSpanGroupIndex()
379 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos); in getSpanIndex() local
380 if (adapterPosition == -1) { in getSpanIndex()
389 return mSpanSizeLookup.getCachedSpanIndex(adapterPosition, mSpanCount); in getSpanIndex()
400 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos); in getSpanSize() local
401 if (adapterPosition == -1) { in getSpanSize()
410 return mSpanSizeLookup.getSpanSize(adapterPosition); in getSpanSize()
801 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DDetailsFragment.java353 adapterPosition, int selectedPosition, int selectedSubPosition) { in onSetRowStatus() argument
357 adapterPosition, selectedPosition, selectedSubPosition); in onSetRowStatus() local
378 FullWidthDetailsOverviewRowPresenter.ViewHolder viewHolder, int adapterPosition, in onSetDetailsOverviewRowStatus() argument
380 if (selectedPosition > adapterPosition) { in onSetDetailsOverviewRowStatus()
382 } else if (selectedPosition == adapterPosition && selectedSubPosition == 1) { in onSetDetailsOverviewRowStatus()
384 } else if (selectedPosition == adapterPosition && selectedSubPosition == 0){ in onSetDetailsOverviewRowStatus()
DDetailsSupportFragment.java355 adapterPosition, int selectedPosition, int selectedSubPosition) { in onSetRowStatus() argument
359 adapterPosition, selectedPosition, selectedSubPosition); in onSetRowStatus() local
380 FullWidthDetailsOverviewRowPresenter.ViewHolder viewHolder, int adapterPosition, in onSetDetailsOverviewRowStatus() argument
382 if (selectedPosition > adapterPosition) { in onSetDetailsOverviewRowStatus()
384 } else if (selectedPosition == adapterPosition && selectedSubPosition == 1) { in onSetDetailsOverviewRowStatus()
386 } else if (selectedPosition == adapterPosition && selectedSubPosition == 0){ in onSetDetailsOverviewRowStatus()
/frameworks/base/core/java/android/widget/
DAdapterViewAnimator.java220 int adapterPosition; field in AdapterViewAnimator.ViewAndMetaData
223 ViewAndMetaData(View view, int relativeIndex, int adapterPosition, long itemId) { in ViewAndMetaData() argument
226 this.adapterPosition = adapterPosition; in ViewAndMetaData()
545 final int adapterPosition = modulo(i, adapterCount); in showOnly() local
546 View newView = mAdapter.getView(adapterPosition, null, this); in showOnly()
547 long itemId = mAdapter.getItemId(adapterPosition); in showOnly()
558 adapterPosition, itemId)); in showOnly()
654 performItemClick(v, viewData.adapterPosition, in onTouchEvent()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseRecyclerViewInstrumentationTest.java632 final int adapterPosition = holder.getAdapterPosition(); in onViewRecycled() local
636 assertEquals(log, shouldHavePosition, adapterPosition != RecyclerView.NO_POSITION); in onViewRecycled()
638 assertTrue(log, mItems.size() > adapterPosition); in onViewRecycled()
639 assertSame(log, holder.mBoundItem, mItems.get(adapterPosition)); in onViewRecycled()