Searched refs:fromPosition (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAdapterListUpdateCallback.java53 public void onMoved(int fromPosition, int toPosition) { argument
54 mAdapter.notifyItemMoved(fromPosition, toPosition);
H A DListUpdateCallback.java45 * @param fromPosition The previous position of the item before the move.
48 void onMoved(int fromPosition, int toPosition); argument
H A DSortedListAdapterCallback.java48 public void onMoved(int fromPosition, int toPosition) { argument
49 mAdapter.notifyItemMoved(fromPosition, toPosition);
H A DBatchingListUpdateCallback.java103 public void onMoved(int fromPosition, int toPosition) { argument
105 mWrapped.onMoved(fromPosition, toPosition);
H A DSortedList.java972 public void onMoved(int fromPosition, int toPosition) { argument
973 mBatchingListUpdateCallback.onMoved(fromPosition, toPosition);
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
H A DObservableList.java79 * @param fromPosition The position from which the items were moved
83 public abstract void onItemRangeMoved(T sender, int fromPosition, int toPosition, argument
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DAbstractItemHierarchy.java121 public void notifyItemRangeMoved(int fromPosition, int toPosition, int itemCount) { argument
122 if (fromPosition < 0) {
123 Log.w(TAG, "notifyItemRangeMoved: Invalid fromPosition=" + fromPosition);
136 observer.onItemRangeMoved(this, fromPosition, toPosition, itemCount);
H A DItemHierarchy.java58 void onItemRangeMoved(ItemHierarchy itemHierarchy, int fromPosition, int toPosition, argument
H A DItemAdapter.java103 public void onItemRangeMoved(ItemHierarchy itemHierarchy, int fromPosition, int toPosition, argument
H A DItemGroup.java249 public void onItemRangeMoved(ItemHierarchy itemHierarchy, int fromPosition, int toPosition, argument
254 notifyItemRangeMoved(childPosition + fromPosition, childPosition + toPosition,
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DArrayObjectAdapter.java150 * Moved the item at fromPosition to toPosition.
152 * @param fromPosition Previous position of the item.
155 public void move(int fromPosition, int toPosition) { argument
156 if (fromPosition == toPosition) {
160 Object item = mItems.remove(fromPosition);
162 notifyItemMoved(fromPosition, toPosition);
306 public void onMoved(int fromPosition, int toPosition) {
310 notifyItemMoved(fromPosition, toPosition);
H A DObjectAdapter.java81 * @param fromPosition Previous position of the item.
84 public void onItemMoved(int fromPosition, int toPosition) { argument
274 * Notifies UI that item at fromPosition has been moved to toPosition.
276 * @param fromPosition Previous position of the item.
279 protected final void notifyItemMoved(int fromPosition, int toPosition) { argument
280 mObservable.notifyItemMoved(fromPosition, toPosition);
H A DItemBridgeAdapter.java186 public void onItemMoved(int fromPosition, int toPosition) {
187 ItemBridgeAdapter.this.notifyItemMoved(fromPosition, toPosition);
H A DGridLayoutManager.java2840 public void onItemsMoved(RecyclerView recyclerView, int fromPosition, int toPosition, argument
2842 if (DEBUG) Log.v(getTag(), "onItemsMoved fromPosition "
2843 + fromPosition + " toPosition " + toPosition);
2846 if (fromPosition <= pos && pos < fromPosition + itemCount) {
2848 mFocusPositionOffset += toPosition - fromPosition;
2849 } else if (fromPosition < pos && toPosition > pos - itemCount) {
2852 } else if (fromPosition > pos && toPosition < pos) {
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
H A DRecyclerItemAdapter.java175 public void onItemRangeMoved(ItemHierarchy itemHierarchy, int fromPosition, int toPosition, argument
180 notifyItemMoved(fromPosition, toPosition);
/frameworks/support/paging/runtime/src/main/java/androidx/paging/
H A DPagedStorageDiffHelper.java110 public void onMoved(int fromPosition, int toPosition) { argument
111 mCallback.onRemoved(fromPosition + mOffset, toPosition + mOffset);
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
H A DHeaderRecyclerView.java95 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
97 fromPosition++;
102 notifyItemMoved(fromPosition + i, toPosition + i);
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
H A DTestAdapter.java69 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DAsyncListDifferTest.kt252 override fun onMoved(fromPosition: Int, toPosition: Int) {
317 override fun onMoved(fromPosition: Int, toPosition: Int) {}
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DDiffUtilTest.java382 public void onMoved(int fromPosition, int toPosition) {
383 Item item = target.remove(fromPosition);
H A DSortedListTest.java106 public void onMoved(int fromPosition, int toPosition) {
107 mEvents.add(new Event(TYPE.MOVE, fromPosition, toPosition));
108 mMoves.add(new Pair(fromPosition, toPosition));
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/
H A DAsyncPagedListDifferTest.kt266 override fun onMoved(fromPosition: Int, toPosition: Int) {
337 override fun onMoved(fromPosition: Int, toPosition: Int) {}
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java877 * @param fromPosition Position to start filling from
881 final int fillUp(int fromPosition, int overhang) { argument
890 int position = fromPosition;
991 * @param fromPosition Position to start filling from
995 final int fillDown(int fromPosition, int overhang) { argument
1004 int position = fromPosition;
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DDefaultSelectionTracker.java568 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { argument
/frameworks/support/preference/src/main/java/androidx/preference/
H A DPreferenceFragment.java767 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { argument

Completed in 102 milliseconds

12