Home
last modified time | relevance | path

Searched refs:otherItem (Results 1 – 4 of 4) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/option/ui/viewmodel/
DOptionItemViewModel.kt59 val otherItem = other as? OptionItemViewModel<*> ?: return false in equals() constant
62 return this.payload == otherItem.payload && in equals()
63 this.text == otherItem.text && in equals()
64 this.isSelected.value == otherItem.isSelected.value && in equals()
65 this.isEnabled == otherItem.isEnabled && in equals()
66 this.onLongClicked == otherItem.onLongClicked in equals()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSliceItem.java81 final WifiSliceItem otherItem = (WifiSliceItem) other; in equals() local
82 if (!TextUtils.equals(getKey(), otherItem.getKey())) { in equals()
85 if (getConnectedState() != otherItem.getConnectedState()) { in equals()
88 if (getLevel() != otherItem.getLevel()) { in equals()
91 if (shouldShowXLevelIcon() != otherItem.shouldShowXLevelIcon()) { in equals()
94 if (!TextUtils.equals(getSummary(), otherItem.getSummary())) { in equals()
97 if (isInstantHotspotNetwork() != otherItem.isInstantHotspotNetwork()) { in equals()
100 if (getInstantHotspotDeviceType() != otherItem.getInstantHotspotDeviceType()) { in equals()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java45 private static final Comparator<WidgetItem> WIDGET_SHORTCUT_COMPARATOR = (item, otherItem) -> {
46 if (item.widgetInfo != null && otherItem.widgetInfo == null) return -1;
48 if (item.widgetInfo == null && otherItem.widgetInfo != null) return 1;
49 if (item.spanY == otherItem.spanY) {
50 if (item.spanX == otherItem.spanX) return 0;
51 return item.spanX > otherItem.spanX ? 1 : -1;
53 return item.spanY > otherItem.spanY ? 1 : -1;
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetItem.java97 public boolean hasSameType(WidgetItem otherItem) { in hasSameType() argument
98 if (widgetInfo != null && otherItem.widgetInfo != null) { in hasSameType()
101 if (activityInfo != null && otherItem.activityInfo != null) { in hasSameType()