Home
last modified time | relevance | path

Searched refs:oldItemPosition (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DAsyncListDiffer.java233 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in submitList()
234 T oldItem = oldList.get(oldItemPosition); in submitList()
244 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in submitList()
245 T oldItem = oldList.get(oldItemPosition); in submitList()
262 public Object getChangePayload(int oldItemPosition, int newItemPosition) { in submitList()
263 T oldItem = oldList.get(oldItemPosition); in submitList()
DDiffUtil.java312 public abstract boolean areItemsTheSame(int oldItemPosition, int newItemPosition); in areItemsTheSame() argument
332 public abstract boolean areContentsTheSame(int oldItemPosition, int newItemPosition); in areContentsTheSame() argument
352 public Object getChangePayload(int oldItemPosition, int newItemPosition) { in getChangePayload() argument
/frameworks/support/paging/runtime/src/main/java/androidx/paging/
DPagedStorageDiffHelper.java40 public Object getChangePayload(int oldItemPosition, int newItemPosition) { in computeDiff()
41 T oldItem = oldList.get(oldItemPosition + oldOffset); in computeDiff()
60 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in computeDiff() argument
61 T oldItem = oldList.get(oldItemPosition + oldOffset); in computeDiff()
74 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in computeDiff() argument
75 T oldItem = oldList.get(oldItemPosition + oldOffset); in computeDiff()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DArrayObjectAdapter.java262 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in setItems()
263 return callback.areItemsTheSame(mOldItems.get(oldItemPosition), in setItems()
268 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in setItems()
269 return callback.areContentsTheSame(mOldItems.get(oldItemPosition), in setItems()
275 public Object getChangePayload(int oldItemPosition, int newItemPosition) { in setItems()
276 return callback.getChangePayload(mOldItems.get(oldItemPosition), in setItems()
DGuidedActionAdapter.java200 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in setActions()
201 return mDiffCallback.areItemsTheSame(oldActions.get(oldItemPosition), in setActions()
206 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in setActions()
207 return mDiffCallback.areContentsTheSame(oldActions.get(oldItemPosition), in setActions()
213 public Object getChangePayload(int oldItemPosition, int newItemPosition) { in setActions()
214 return mDiffCallback.getChangePayload(oldActions.get(oldItemPosition), in setActions()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/
DDiffUtilActivity.java123 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in areItemsTheSame() argument
126 return mOld.get(oldItemPosition).equals(mNew.get(newItemPosition)); in areItemsTheSame()
130 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in areContentsTheSame() argument
131 return mOld.get(oldItemPosition).equals(mNew.get(newItemPosition)); in areContentsTheSame()
/frameworks/support/preference/src/main/java/androidx/preference/
DPreferenceGroupAdapter.java185 public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) { in syncMyPreferences()
187 oldVisibleList.get(oldItemPosition), in syncMyPreferences()
192 public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) { in syncMyPreferences()
194 oldVisibleList.get(oldItemPosition), in syncMyPreferences()