Searched defs:findPositionOffset (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
H A DAdapterHelper.java414 if (findPositionOffset(op.itemCount, i + 1) == position) {
421 if (findPositionOffset(pos, i + 1) == position) {
466 int findPositionOffset(int position) { method in class:AdapterHelper
467 return findPositionOffset(position, 0);
470 int findPositionOffset(int position, int firstPostponedItem) { method in class:AdapterHelper
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAdapterHelper.java415 if (findPositionOffset(op.itemCount, i + 1) == position) {
422 if (findPositionOffset(pos, i + 1) == position) {
467 int findPositionOffset(int position) { method in class:AdapterHelper
468 return findPositionOffset(position, 0);
471 int findPositionOffset(int position, int firstPostponedItem) { method in class:AdapterHelper
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewAnimationsTest.java1507 public void findPositionOffset() throws Throwable { method in class:RecyclerViewAnimationsTest
1515 assertEquals("offset check", 0, mAdapterHelper.findPositionOffset(0));
1516 assertEquals("offset check", 1, mAdapterHelper.findPositionOffset(2));
1517 assertEquals("offset check", 2, mAdapterHelper.findPositionOffset(4));

Completed in 12 milliseconds