/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/prioritylist/ |
D | PriorityListAdapter.kt | 77 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/ |
D | AppSourcesAdapter.kt | 94 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/ |
D | LocaleDragAndDropAdapter.java | 226 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/ |
D | SpeedDialAdapter.java | 235 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/ |
D | RVAdapterWrapper.java | 69 public void onItemMoved(int fromPosition, int toPosition) { 70 RVAdapterWrapper.super.notifyItemMoved(fromPosition, toPosition);
|
D | CarListItemAdapterAdapterProxy.java | 195 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/ |
D | PreferenceHighlightManager.kt | 55 override fun onItemRangeMoved(fromPosition: Int, toPosition: Int, itemCount: Int) { in onItemRangeMoved()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestDocumentsAdapter.java | 71 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in TestDocumentsAdapter()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/ |
D | SpeedDialItemTouchHelperCallback.java | 152 void onItemMove(int fromPosition, int toPosition); in onItemMove() argument
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictEncoderUtils.java | 166 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/ |
D | DirectoryAddonsAdapter.java | 342 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | PermissionUsageFragment.java | 153 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in onCreateAdapter()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsPreferenceFragment.java | 109 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/ |
D | AppGridActivity.java | 270 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in onCreate()
|