Home
last modified time | relevance | path

Searched refs:getAdapterPosition (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileAdapter.java229 } else if (!canRemoveTiles() && mCurrentDrag.getAdapterPosition() < mEditIndex) { in onBindViewHolder()
248 selectPosition(holder.getAdapterPosition(), v); in onBindViewHolder()
294 int position = holder.getAdapterPosition(); in onBindViewHolder()
511 if (holder.getAdapterPosition() < mEditIndex && !(child instanceof TextView)) { in onDraw()
547 int position = mCurrentDrag.getAdapterPosition();
569 if (!canRemoveTiles() && current.getAdapterPosition() < mEditIndex) {
570 return target.getAdapterPosition() < mEditIndex;
572 return target.getAdapterPosition() <= mEditIndex + 1;
587 int from = viewHolder.getAdapterPosition();
588 int to = target.getAdapterPosition();
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DStaggeredGridLayoutManagerTest.java395 + lastViewHolder.getAdapterPosition() + " vs " in focusSearchFailureFromSubChild()
396 + containingViewHolder.getAdapterPosition(), in focusSearchFailureFromSubChild()
397 lastViewHolder.getAdapterPosition() < containingViewHolder.getAdapterPosition()); in focusSearchFailureFromSubChild()
463 mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition()); in focusSearchFailure()
469 assertEquals(i, mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition()); in focusSearchFailure()
475 assertEquals(25, mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition()); in focusSearchFailure()
479 assertEquals(i, mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition()); in focusSearchFailure()
579 actualFocusIndex = mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition(); in topUnfocusableViewsVisibility()
590 actualFocusIndex = mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition(); in topUnfocusableViewsVisibility()
692 actualFocusIndex = mRecyclerView.getChildViewHolder(focusedView).getAdapterPosition(); in bottomUnfocusableViewsVisibility()
[all …]
DRecyclerViewPrefetchTest.java100 assertThat(cachedViews().get(0).getAdapterPosition(), is(6)); in prefetchTest()
DLinearLayoutManagerCacheTest.java114 int prefetchedPosition = cachedViews().get(0).getAdapterPosition(); in cacheAndPrefetch()
DItemTouchHelperTest.java322 fromPos = from.getAdapterPosition(); in MoveRecord()
323 toPos = to.getAdapterPosition(); in MoveRecord()
DGridLayoutManagerCacheTest.java72 if (cachedViews().get(i).getAdapterPosition() == position) return true; in cachedViewsContains()
DLinearLayoutManagerBaseConfigSetTest.java259 assertThat(vh.getAdapterPosition(), is(500)); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
293 assertThat(vh.getAdapterPosition(), is(500)); in dontRecycleViewsTranslatedOutOfBoundsFromEnd()
DStaggeredGridLayoutManagerCacheTest.java73 if (cachedViews().get(i).getAdapterPosition() == position) return true; in cachedViewsContains()
DRecyclerViewCacheTest.java497 assertNotEquals(RecyclerView.NO_POSITION, holder.getAdapterPosition()); in partialPrefetchAvoidsViewRecycledCallback()
522 assertEquals(RecyclerView.NO_POSITION, pooledHolder.getAdapterPosition()); in partialPrefetchAvoidsViewRecycledCallback()
856 mSavedStates.set(holder.getAdapterPosition(), in onViewRecycled()
1201 if (holder.getAdapterPosition() >= 0) { in onViewRecycled()
1202 mSavedStates.set(holder.getAdapterPosition(), in onViewRecycled()
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
DStableIdKeyProvider.java78 int position = holder.getAdapterPosition(); in onAttached()
88 int position = holder.getAdapterPosition(); in onDetached()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/touch/
DItemTouchHelperActivity.java118 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition()); in createCallback()
124 mAdapter.delete(viewHolder.getAdapterPosition()); in createCallback()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DRecyclerViewParallax.java120 public int getAdapterPosition() { in getAdapterPosition() method in RecyclerViewParallax.ChildPositionProperty
158 int firstPosition = vh.getAdapterPosition(); in updateValue()
/frameworks/support/car/src/main/java/androidx/car/drawer/
DDrawerItemViewHolder.java87 ? v -> listener.onItemClick(getAdapterPosition()) in setItemClickListener()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoLand.java225 onCatClick(mCats[holder.getAdapterPosition()]); in onBindViewHolder()
245 onCatRemove(mCats[holder.getAdapterPosition()]); in onBindViewHolder()
255 Cat cat = mCats[holder.getAdapterPosition()]; in onBindViewHolder()
DNekoDialog.java90 onFoodSelected(mFoods.get(holder.getAdapterPosition())); in onBindViewHolder()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/simple/
DDemoHolder.java45 return DemoHolder.this.getAdapterPosition(); in DemoHolder()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/
DFancyHolder.java47 return FancyHolder.this.getAdapterPosition(); in FancyHolder()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
DStableIdActivity.java118 final int pos = viewHolder.getAdapterPosition(); in onCreateViewHolder()
DGridLayoutManagerActivity.java125 final int pos = vh.getAdapterPosition();
DNestedRecyclerViewActivity.java141 mSavedStates.set(holder.getAdapterPosition(), in onViewRecycled()
DBaseLayoutManagerActivity.java90 final int pos = vh.getAdapterPosition(); in createAdapter()
/frameworks/support/leanback-preference/src/main/java/androidx/leanback/preference/
DLeanbackListPreferenceDialogFragment.java216 final int index = viewHolder.getAdapterPosition(); in onItemClick()
271 final int index = viewHolder.getAdapterPosition(); in onItemClick()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/
DSortedListActivity.java124 int adapterPosition = getAdapterPosition(); in onCreateViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DLockscreenFragment.java283 v -> mCallback.accept(mItems.get(holder.getAdapterPosition()))); in onBindViewHolder()
289 v -> mItems.get(holder.getAdapterPosition()).toggleExpando(Adapter.this)); in onBindViewHolder()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridActivity.java229 int position = vh.getAdapterPosition();
385 int position = vh.getAdapterPosition();

1234