Searched refs:oldItem (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/paging/runtime/src/main/java/android/support/v7/recyclerview/extensions/
H A DDiffCallback.java38 * @param oldItem The item in the old list.
43 public abstract boolean areItemsTheSame(@NonNull T oldItem, @NonNull T newItem); argument
49 * @param oldItem The item in the old list.
54 public abstract boolean areContentsTheSame(@NonNull T oldItem, @NonNull T newItem); argument
62 public Object getChangePayload(@NonNull T oldItem, @NonNull T newItem) { argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDiffCallback.java40 * @param oldItem The item in the old list.
45 public abstract boolean areItemsTheSame(@NonNull Value oldItem, @NonNull Value newItem); argument
51 * @param oldItem The item in the old list.
56 public abstract boolean areContentsTheSame(@NonNull Value oldItem, @NonNull Value newItem); argument
64 public Object getChangePayload(@NonNull Value oldItem, @NonNull Value newItem) { argument
/frameworks/support/paging/runtime/src/main/java/android/arch/paging/
H A DSparseDiffHelper.java47 T oldItem = oldList.get(oldItemPosition);
49 if (oldItem == null || newItem == null) {
52 return diffCallback.getChangePayload(oldItem, newItem);
67 T oldItem = oldList.get(oldItemPosition);
69 if (oldItem == newItem) {
72 if (oldItem == null || newItem == null) {
75 return diffCallback.areItemsTheSame(oldItem, newItem);
80 T oldItem = oldList.get(oldItemPosition);
82 if (oldItem == newItem) {
85 if (oldItem
[all...]
H A DContiguousDiffHelper.java47 T oldItem = oldList.mList.get(oldItemPosition);
49 if (oldItem == null || newItem == null) {
52 return diffCallback.getChangePayload(oldItem, newItem);
67 T oldItem = oldList.mList.get(oldItemPosition);
69 if (oldItem == newItem) {
72 if (oldItem == null || newItem == null) {
75 return diffCallback.areItemsTheSame(oldItem, newItem);
80 T oldItem = oldList.mList.get(oldItemPosition);
82 if (oldItem == newItem) {
85 if (oldItem
[all...]
/frameworks/support/paging/integration-tests/testapp/src/main/java/android/arch/paging/integration/testapp/
H A DItem.java50 public boolean areContentsTheSame(@NonNull Item oldItem, @NonNull Item newItem) {
51 return oldItem.equals(newItem);
55 public boolean areItemsTheSame(@NonNull Item oldItem, @NonNull Item newItem) {
56 return oldItem.id == newItem.id;
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DObjectAdapterTest.java162 public boolean areItemsTheSame(AdapterItem oldItem, AdapterItem newItem) { argument
163 return oldItem.getId() == newItem.getId();
168 public boolean areContentsTheSame(AdapterItem oldItem, AdapterItem newItem) { argument
169 return oldItem.equals(newItem);
174 public Object getChangePayload(AdapterItem oldItem, argument
177 if (oldItem.getId() != newItem.getId()) {
181 if (!oldItem.getStringMemberOne().equals(newItem.getStringMemberOne())) {
185 if (!oldItem.getStringMemberTwo().equals(newItem.getStringMemberTwo())) {
189 if (!oldItem.getNotRelatedStringMember().equals(newItem.getNotRelatedStringMember())) {
261 public boolean areItemsTheSame(AdapterItem oldItem, AdapterIte
[all...]
/frameworks/support/paging/runtime/src/androidTest/java/android/arch/paging/
H A DContiguousDiffHelperTest.java43 public boolean areItemsTheSame(@NonNull String oldItem, @NonNull String newItem) {
45 return oldItem.charAt(0) == newItem.charAt(0);
49 public boolean areContentsTheSame(@NonNull String oldItem, @NonNull String newItem) {
50 return oldItem.equals(newItem);
H A DPagedListAdapterHelperTest.java59 public boolean areItemsTheSame(@NonNull String oldItem, @NonNull String newItem) {
60 return oldItem.equals(newItem);
64 public boolean areContentsTheSame(@NonNull String oldItem, @NonNull String newItem) {
65 return oldItem.equals(newItem);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DSearchFragment.java53 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
54 return oldItem.getId() == newItem.getId();
60 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
61 return oldItem.equals(newItem);
66 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
68 if (oldItem.getImageResourceId()
73 if (oldItem.getTitle() != null && newItem.getTitle() != null
74 && !oldItem.getTitle().equals(newItem.getTitle())) {
78 if (oldItem.getContent() != null && newItem.getContent() != null
79 && !oldItem
[all...]
H A DSearchSupportFragment.java56 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
57 return oldItem.getId() == newItem.getId();
63 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
64 return oldItem.equals(newItem);
69 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
71 if (oldItem.getImageResourceId()
76 if (!oldItem.getTitle().equals(newItem.getTitle())) {
80 if (!oldItem.getContent().equals(newItem.getContent())) {
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DSearchFragment.java53 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
54 return oldItem.getId() == newItem.getId();
60 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
61 return oldItem.equals(newItem);
66 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
68 if (oldItem.getImageResourceId()
73 if (oldItem.getTitle() != null && newItem.getTitle() != null
74 && !oldItem.getTitle().equals(newItem.getTitle())) {
78 if (oldItem.getContent() != null && newItem.getContent() != null
79 && !oldItem
[all...]
H A DSearchSupportFragment.java56 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
57 return oldItem.getId() == newItem.getId();
63 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
64 return oldItem.equals(newItem);
69 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
71 if (oldItem.getImageResourceId()
76 if (!oldItem.getTitle().equals(newItem.getTitle())) {
80 if (!oldItem.getContent().equals(newItem.getContent())) {
/frameworks/support/paging/runtime/src/androidTest/java/android/support/v7/recyclerview/extensions/
H A DListAdapterHelperTest.java45 public boolean areItemsTheSame(@NonNull String oldItem, @NonNull String newItem) {
46 return oldItem.equals(newItem);
50 public boolean areContentsTheSame(@NonNull String oldItem, @NonNull String newItem) {
51 return oldItem.equals(newItem);
/frameworks/base/core/java/com/android/internal/widget/
H A DSimpleItemAnimator.java312 * @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...]
H A DDefaultItemAnimator.java420 boolean oldItem = false;
425 oldItem = true;
432 dispatchChangeFinished(item, oldItem);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DSimpleItemAnimator.java312 * @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...]
H A DDefaultItemAnimator.java419 boolean oldItem = false;
424 oldItem = true;
431 dispatchChangeFinished(item, oldItem);
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DSortedList.java303 T oldItem = mOldData[mOldDataStart];
305 int compare = mCallback.compare(oldItem, newItem);
312 } else if (compare == 0 && mCallback.areItemsTheSame(oldItem, newItem)) {
317 if (!mCallback.areContentsTheSame(oldItem, newItem)) {
323 mData[mMergedSize++] = oldItem;
726 * @param oldItem The previous representation of the object.
731 abstract public boolean areContentsTheSame(T2 oldItem, T2 newItem); argument
804 public boolean areContentsTheSame(T2 oldItem, T2 newItem) { argument
805 return mWrappedCallback.areContentsTheSame(oldItem, newItem);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DBaseMenuPresenter.java96 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ?
99 if (item != oldItem) {
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DBaseMenuPresenter.java102 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ?
105 if (item != oldItem) {
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/
H A DSortedListActivity.java98 public boolean areContentsTheSame(Item oldItem,
100 return oldItem.mText.equals(newItem.mText);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/
H A DSortedListActivity.java98 public boolean areContentsTheSame(Item oldItem,
100 return oldItem.mText.equals(newItem.mText);
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java100 public boolean areContentsTheSame(Item oldItem, Item newItem) {
101 return oldItem.cmpField == newItem.cmpField && oldItem.data == newItem.data;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DDefaultItemAnimatorTest.java96 public void onChangeFinished(RecyclerView.ViewHolder item, boolean oldItem) {

Completed in 447 milliseconds