Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java37 private static final Comparator<WidgetItem> WIDGET_SHORTCUT_COMPARATOR = (item, otherItem) -> {
38 if (item.widgetInfo != null && otherItem.widgetInfo == null) return -1;
40 if (item.widgetInfo == null && otherItem.widgetInfo != null) return 1;
41 if (item.spanX == otherItem.spanX) {
42 if (item.spanY == otherItem.spanY) return 0;
43 return item.spanY > otherItem.spanY ? 1 : -1;
45 return item.spanX > otherItem.spanX ? 1 : -1;
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSliceItem.java70 final WifiSliceItem otherItem = (WifiSliceItem) other; in equals() local
71 if (!TextUtils.equals(getKey(), otherItem.getKey())) { in equals()
74 if (getConnectedState() != otherItem.getConnectedState()) { in equals()
77 if (getLevel() != otherItem.getLevel()) { in equals()
80 if (shouldShowXLevelIcon() != otherItem.shouldShowXLevelIcon()) { in equals()
83 if (!TextUtils.equals(getSummary(), otherItem.getSummary())) { in equals()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetItem.java57 public boolean hasSameType(WidgetItem otherItem) { in hasSameType() argument
58 if (widgetInfo != null && otherItem.widgetInfo != null) { in hasSameType()
61 if (activityInfo != null && otherItem.activityInfo != null) { in hasSameType()