/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | DiffCallback.java | 41 * @param oldItem The item in the old list. 46 public abstract boolean areItemsTheSame(@NonNull Value oldItem, @NonNull Value newItem); argument 52 * @param oldItem The item in the old list. 57 public abstract boolean areContentsTheSame(@NonNull Value oldItem, @NonNull Value newItem); argument 65 public Object getChangePayload(@NonNull Value oldItem, @NonNull Value newItem) { argument
|
H A D | GuidedActionDiffCallback.java | 39 public boolean areItemsTheSame(@NonNull GuidedAction oldItem, @NonNull GuidedAction newItem) { argument 40 if (oldItem == null) { 45 return oldItem.getId() == newItem.getId(); 49 public boolean areContentsTheSame(@NonNull GuidedAction oldItem, argument 51 if (oldItem == null) { 56 return oldItem.getCheckSetId() == newItem.getCheckSetId() 57 && oldItem.mActionFlags == newItem.mActionFlags 58 && TextUtils.equals(oldItem.getTitle(), newItem.getTitle()) 59 && TextUtils.equals(oldItem.getDescription(), newItem.getDescription()) 60 && oldItem [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SimpleItemAnimator.java | 312 * @param oldItem true if this is the old item that was changed, false if 316 public final void dispatchChangeFinished(ViewHolder item, boolean oldItem) { argument 317 onChangeFinished(item, oldItem); 354 * @param oldItem true if this is the old item that was changed, false if 357 public final void dispatchChangeStarting(ViewHolder item, boolean oldItem) { argument 358 onChangeStarting(item, oldItem); 437 * @param oldItem true if this is the old item that was changed, false if 441 public void onChangeStarting(ViewHolder item, boolean oldItem) { argument 451 * @param oldItem true if this is the old item that was changed, false if 454 public void onChangeFinished(ViewHolder item, boolean oldItem) { argument [all...] |
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | DummyItemAnimator.java | 153 public void onChangeStarting(RecyclerView.ViewHolder item, boolean oldItem) { argument 154 CountDownLatch latch = mCountDownLatches[oldItem ? CHANGE_OLD_START : CHANGE_NEW_START]; 185 public void onChangeFinished(RecyclerView.ViewHolder item, boolean oldItem) { argument 186 CountDownLatch latch = mCountDownLatches[oldItem
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | SimpleItemAnimator.java | 311 * @param oldItem true if this is the old item that was changed, false if 315 public final void dispatchChangeFinished(RecyclerView.ViewHolder item, boolean oldItem) { argument 316 onChangeFinished(item, oldItem); 353 * @param oldItem true if this is the old item that was changed, false if 356 public final void dispatchChangeStarting(RecyclerView.ViewHolder item, boolean oldItem) { argument 357 onChangeStarting(item, oldItem); 436 * @param oldItem true if this is the old item that was changed, false if 440 public void onChangeStarting(RecyclerView.ViewHolder item, boolean oldItem) { argument 450 * @param oldItem true if this is the old item that was changed, false if 453 public void onChangeFinished(RecyclerView.ViewHolder item, boolean oldItem) { argument [all...] |
H A D | DiffUtil.java | 329 * oldItem 376 * @param oldItem The item in the old list. 382 public abstract boolean areItemsTheSame(@NonNull T oldItem, @NonNull T newItem); argument 402 * @param oldItem The item in the old list. 408 public abstract boolean areContentsTheSame(@NonNull T oldItem, @NonNull T newItem); argument 426 public Object getChangePayload(@NonNull T oldItem, @NonNull T newItem) { argument
|
H A D | SortedList.java | 298 T oldItem = mOldData[mOldDataStart]; 301 int result = mCallback.compare(oldItem, newItem); 307 if (!mCallback.areItemsTheSame(oldItem, newItem)) { 316 if (!mCallback.areContentsTheSame(oldItem, newItem)) { 320 mCallback.getChangePayload(oldItem, newItem)); 441 T oldItem = mOldData[mOldDataStart]; 443 int compare = mCallback.compare(oldItem, newItem); 450 } else if (compare == 0 && mCallback.areItemsTheSame(oldItem, newItem)) { 455 if (!mCallback.areContentsTheSame(oldItem, newItem)) { 457 mCallback.getChangePayload(oldItem, newIte 887 areContentsTheSame(T2 oldItem, T2 newItem) argument 987 areContentsTheSame(T2 oldItem, T2 newItem) argument [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | ObjectAdapterTest.java | 163 public boolean areItemsTheSame(AdapterItem oldItem, AdapterItem newItem) { argument 164 return oldItem.getId() == newItem.getId(); 169 public boolean areContentsTheSame(AdapterItem oldItem, AdapterItem newItem) { argument 170 return oldItem.equals(newItem); 175 public Object getChangePayload(AdapterItem oldItem, argument 178 if (oldItem.getId() != newItem.getId()) { 182 if (!oldItem.getStringMemberOne().equals(newItem.getStringMemberOne())) { 186 if (!oldItem.getStringMemberTwo().equals(newItem.getStringMemberTwo())) { 190 if (!oldItem.getNotRelatedStringMember().equals(newItem.getNotRelatedStringMember())) { 262 public boolean areItemsTheSame(AdapterItem oldItem, AdapterIte [all...] |