Home
last modified time | relevance | path

Searched refs:fromPosition (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/
DLocaleDragAndDropAdapter.java190 void onItemMove(int fromPosition, int toPosition) { in onItemMove() argument
191 if (fromPosition >= 0 && toPosition >= 0) { in onItemMove()
192 final LocaleStore.LocaleInfo saved = mFeedItemList.get(fromPosition); in onItemMove()
193 mFeedItemList.remove(fromPosition); in onItemMove()
199 "Negative position in onItemMove %d -> %d", fromPosition, toPosition)); in onItemMove()
201 notifyItemChanged(fromPosition); // to update the numbers in onItemMove()
203 notifyItemMoved(fromPosition, toPosition); in onItemMove()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java190 void onItemMove(int fromPosition, int toPosition) { in onItemMove() argument
191 if (fromPosition >= 0 && toPosition >= 0) { in onItemMove()
192 final LocaleStore.LocaleInfo saved = mFeedItemList.get(fromPosition); in onItemMove()
193 mFeedItemList.remove(fromPosition); in onItemMove()
199 "Negative position in onItemMove %d -> %d", fromPosition, toPosition)); in onItemMove()
201 notifyItemChanged(fromPosition); // to update the numbers in onItemMove()
203 notifyItemMoved(fromPosition, toPosition); in onItemMove()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialAdapter.java235 public void onItemMove(int fromPosition, int toPosition) {
242 speedDialUiItems.add(toPosition - 2, speedDialUiItems.remove(fromPosition - 2));
243 notifyItemMoved(fromPosition, toPosition);
307 int fromPosition = fromViewHolder.getAdapterPosition();
309 SpeedDialUiItem removedItem = speedDialUiItems.remove(fromPosition - 2);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestDocumentsAdapter.java71 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in TestDocumentsAdapter()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java166 static int writeUIntToBuffer(final byte[] buffer, final int fromPosition, final int value, in writeUIntToBuffer() argument
168 int position = fromPosition; in writeUIntToBuffer()
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialItemTouchHelperCallback.java152 void onItemMove(int fromPosition, int toPosition); in onItemMove() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java319 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java111 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsPreferenceFragment.java111 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {