Searched refs:toPosition (Results 1 - 25 of 33) 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.java46 * @param toPosition The new position of the item.
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.java80 * @param toPosition The destination position of the items
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
126 if (toPosition < 0) {
127 Log.w(TAG, "notifyItemRangeMoved: Invalid toPosition=" + toPosition);
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 DObjectAdapter.java82 * @param toPosition New position of the item.
84 public void onItemMoved(int fromPosition, int toPosition) { argument
134 public void notifyItemMoved(int positionStart, int toPosition) { argument
136 mObservers.get(i).onItemMoved(positionStart, toPosition);
274 * Notifies UI that item at fromPosition has been moved to toPosition.
277 * @param toPosition New position of the item.
279 protected final void notifyItemMoved(int fromPosition, int toPosition) { argument
280 mObservable.notifyItemMoved(fromPosition, toPosition);
H A DArrayObjectAdapter.java150 * Moved the item at fromPosition to toPosition.
153 * @param toPosition New position of the item.
155 public void move(int fromPosition, int toPosition) { argument
156 if (fromPosition == toPosition) {
161 mItems.add(toPosition, item);
162 notifyItemMoved(fromPosition, toPosition);
306 public void onMoved(int fromPosition, int toPosition) {
310 notifyItemMoved(fromPosition, toPosition);
H A DItemBridgeAdapter.java186 public void onItemMoved(int fromPosition, int toPosition) {
187 ItemBridgeAdapter.this.notifyItemMoved(fromPosition, toPosition);
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
H A DXmlEditor.java77 replace(lines, toPosition(it.getStart()), toEndPosition(it.getStop()), "");
93 Position rootStartTag = toPosition(root.getStart());
94 Position rootEndTag = toPosition(root.content().getStart());
126 Position start1 = toPosition(o1.getContext().getStart());
127 Position start2 = toPosition(o2.getContext().getStart());
170 private static Position toPosition(Token token) { method in class:XmlEditor
218 Position endTag = toPosition(context.getStop());
225 Position position = toPosition(context.content().getStart());
306 Position start = toPosition(it.getStart());
385 Position startPosition = toPosition(nod
[all...]
/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) {
98 toPosition++;
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) {
384 target.add(toPosition, item);
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/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
H A DPreferenceFragmentCompat.java767 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { argument

Completed in 70 milliseconds

12