Lines Matching defs:position

167                     int position) {
168 super.onBindViewHolder(holder, position);
185 if (position == removePos) {
261 // add a bunch of items right before that view, make sure it keeps its position
271 assertEquals("focused child's screen position should stay unchanged", top,
372 // add a bunch of items right before that view, make sure it keeps its position
439 final int position = mRecyclerView.getChildLayoutPosition(child);
448 scrollToPositionWithOffset(position, scrollOffset);
457 + "child " + position,
504 int position = mRecyclerView.getChildLayoutPosition(child);
505 if (position < minPosition) {
506 minPosition = position;
508 if (position > maxPosition) {
509 maxPosition = position;
560 assertEquals("[" + config + "]: last visible position should not change.",
562 assertEquals("[" + config + "]: last completely visible position should not change",
566 assertEquals("[" + config + "]: first visible position should not change.",
568 assertEquals("[" + config + "]: last completely visible position should not change",
593 assertEquals("pending scroll position should still be pending",
596 assertEquals("pending scroll position offset should still be pending",
602 assertNotNull("scroll to position should work", vh);
695 // now trigger lots of add again, followed by a scroll to position
798 int position) {
799 super.onBindViewHolder(holder, position);
840 return "scroll to position";
854 return "scroll to position with positive offset";
868 return "scroll to position with negative offset";
950 int position;
953 position = mTestAdapter.getItemCount() / 2;
954 mLayoutManager.scrollToPosition(position);
964 return "Scroll to position " + position ;
971 position,
1096 void scrollToPositionWithOffset(final int position, final int offset) throws Throwable {
1100 mLayoutManager.scrollToPositionWithOffset(position, offset);
1172 assertEquals("result should have first position",
1175 assertEquals("result should have last position",
1232 int position) {
1233 super.onBindViewHolder(holder, position);
1287 // make sure it has the position we wanted
1403 final int position = mCurrentPosition;
1406 assertEquals("position of the returned view must match current position",
1407 position, RecyclerView.getChildViewHolderInt(next).getLayoutPosition());
1462 final int position = getPosition(child);
1464 if (position < visibleChildren.firstFullyVisiblePosition ||
1466 visibleChildren.firstFullyVisiblePosition = position;
1469 if (position > visibleChildren.lastFullyVisiblePosition) {
1470 visibleChildren.lastFullyVisiblePosition = position;
1474 if (position < visibleChildren.firstVisiblePosition ||
1476 visibleChildren.firstVisiblePosition = position;
1479 if (position > visibleChildren.lastVisiblePosition) {
1480 visibleChildren.lastVisiblePosition = position;