Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/prioritylist/
DPriorityListAdapter.kt77 fun onItemMove(fromPosition: Int, toPosition: Int): Boolean { in <lambda>()
78 val movedAppInfo: AppMetadata = appMetadataList.removeAt(fromPosition) in <lambda>()
80 if (toPosition > fromPosition + 1) toPosition - 1 else toPosition, movedAppInfo) in <lambda>()
81 notifyItemMoved(fromPosition, toPosition) in <lambda>()
82 if (toPosition < fromPosition) { in <lambda>()
84 toPosition, fromPosition - toPosition + 1, POSITION_CHANGED_PAYLOAD) in <lambda>()
87 fromPosition, toPosition - fromPosition + 1, POSITION_CHANGED_PAYLOAD) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/
DAppSourcesAdapter.kt94 fun onItemMove(fromPosition: Int, toPosition: Int): Boolean { in <lambda>()
95 val movedAppInfo: AppMetadata = priorityList.removeAt(fromPosition) in <lambda>()
97 if (toPosition > fromPosition + 1) toPosition - 1 else toPosition, movedAppInfo) in <lambda>()
98 notifyItemMoved(fromPosition, toPosition) in <lambda>()
99 if (toPosition < fromPosition) { in <lambda>()
101 toPosition, fromPosition - toPosition + 1, POSITION_CHANGED_PAYLOAD) in <lambda>()
104 fromPosition, toPosition - fromPosition + 1, POSITION_CHANGED_PAYLOAD) in <lambda>()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java226 void onItemMove(int fromPosition, int toPosition) { in onItemMove() argument
227 if (fromPosition >= 0 && toPosition >= 0) { in onItemMove()
228 final LocaleStore.LocaleInfo saved = mFeedItemList.get(fromPosition); in onItemMove()
229 mFeedItemList.remove(fromPosition); in onItemMove()
236 "Negative position in onItemMove %d -> %d", fromPosition, toPosition)); in onItemMove()
239 if (fromPosition != toPosition) { in onItemMove()
244 notifyItemChanged(fromPosition); // to update the numbers in onItemMove()
246 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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/
DRVAdapterWrapper.java69 public void onItemMoved(int fromPosition, int toPosition) {
70 RVAdapterWrapper.super.notifyItemMoved(fromPosition, toPosition);
DCarListItemAdapterAdapterProxy.java195 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
198 observer.onItemMoved(fromPosition + i, toPosition + i);
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DPreferenceHighlightManager.kt55 override fun onItemRangeMoved(fromPosition: Int, toPosition: Int, itemCount: Int) { in onItemRangeMoved()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestDocumentsAdapter.java71 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in TestDocumentsAdapter()
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialItemTouchHelperCallback.java152 void onItemMove(int fromPosition, int toPosition); in onItemMove() argument
/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/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java342 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DPermissionUsageFragment.java153 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in onCreateAdapter()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java109 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppGridActivity.java270 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in onCreate()