Home
last modified time | relevance | path

Searched refs:oldItem (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationDiff.java79 NotificationGroup oldItem = mOldList.get(oldItemPosition); in areItemsTheSame() local
82 return sameGroupUniqueIdentifiers(oldItem, newItem, mShowRecentsAndOlderHeaders); in areItemsTheSame()
99 static boolean sameGroupUniqueIdentifiers(NotificationGroup oldItem, in sameGroupUniqueIdentifiers() argument
102 if (oldItem == newItem) { in sameGroupUniqueIdentifiers()
106 if (!oldItem.getGroupKey().equals(newItem.getGroupKey())) { in sameGroupUniqueIdentifiers()
111 if (oldItem.isSeen() != newItem.isSeen()) { in sameGroupUniqueIdentifiers()
117 oldItem.getGroupSummaryNotification(), newItem.getGroupSummaryNotification()); in sameGroupUniqueIdentifiers()
125 static boolean sameNotificationKey(AlertEntry oldItem, AlertEntry newItem) { in sameNotificationKey() argument
126 if (oldItem == newItem) { in sameNotificationKey()
130 return oldItem != null in sameNotificationKey()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLinkPropertiesUtils.java96 for (T oldItem : oldItems) { in CompareOrUpdateResult()
97 updateTracker.put(keyCalculator.apply(oldItem), oldItem); in CompareOrUpdateResult() local
103 T oldItem = updateTracker.remove(keyCalculator.apply(newItem)); in CompareOrUpdateResult() local
104 if (oldItem != null) { in CompareOrUpdateResult()
105 if (!oldItem.equals(newItem)) { in CompareOrUpdateResult()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/
DDevicePolicyGroupListAdapter.java53 public boolean areItemsTheSame(DevicePolicyGroup oldItem, in DevicePolicyGroupListAdapter()
55 return oldItem.equals(newItem); in DevicePolicyGroupListAdapter()
59 public boolean areContentsTheSame(DevicePolicyGroup oldItem, in DevicePolicyGroupListAdapter()
61 return oldItem.equals(newItem); in DevicePolicyGroupListAdapter()
DProvisionInfoListAdapter.java46 public boolean areItemsTheSame(@NonNull ProvisionInfo oldItem, in ProvisionInfoListAdapter()
48 return oldItem.equals(newItem); in ProvisionInfoListAdapter()
52 public boolean areContentsTheSame(@NonNull ProvisionInfo oldItem, in ProvisionInfoListAdapter()
54 return oldItem.equals(newItem); in ProvisionInfoListAdapter()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsDiffCallback.java53 WidgetsListBaseEntry oldItem = mOldEntries.get(oldItemPosition); in areItemsTheSame() local
55 return oldItem.getClass().equals(newItem.getClass()) in areItemsTheSame()
56 && oldItem.mPkgItem.equals(newItem.mPkgItem); in areItemsTheSame()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/option/ui/adapter/
DOptionItemAdapter.kt68 val oldItem = oldItems[oldItemPosition] in setItems() constant
70 return oldItem.key.value == newItem.key.value in setItems()
77 val oldItem = oldItems[oldItemPosition] in setItems() constant
79 return oldItem == newItem in setItems()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManager.java478 for (EitItem oldItem : oldItems) { in handleEvents()
479 EitItem item = newEitItemMap.get(oldItem.getEventId()); in handleEvents()
481 outdatedOldItems.add(oldItem); in handleEvents()
487 if (oldItem.getDescription() != null in handleEvents()
489 && oldItem.getEventId() == item.getEventId() in handleEvents()
490 && oldItem.getStartTime() == item.getStartTime() in handleEvents()
491 && oldItem.getLengthInSecond() == item.getLengthInSecond() in handleEvents()
492 && Objects.equals(oldItem.getContentRating(), item.getContentRating()) in handleEvents()
493 && Objects.equals(oldItem.getBroadcastGenre(), item.getBroadcastGenre()) in handleEvents()
494 && Objects.equals(oldItem.getCanonicalGenre(), item.getCanonicalGenre())) { in handleEvents()
[all …]
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/
DDockAdapter.kt151 oldItem: DockAppItem, in getChangePayload()
154 if (oldItem.type != newItem.type) { in getChangePayload()
157 return super.getChangePayload(oldItem, newItem) in getChangePayload()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java329 public boolean areContentsTheSame(ListItem oldItem, ListItem newItem) { in VerticalListAdapter()
330 return comparator.compare(oldItem, newItem) == 0; in VerticalListAdapter()
401 ListItem oldItem = (ListItem) mItems.get(j);
402 if (!newItemSet.contains(oldItem)) {
403 toRemove.add(oldItem);