Searched refs:otherItem (Results 1 – 3 of 3) sorted by relevance
37 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;
70 final WifiSliceItem otherItem = (WifiSliceItem) other; in equals() local71 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()
57 public boolean hasSameType(WidgetItem otherItem) { in hasSameType() argument58 if (widgetInfo != null && otherItem.widgetInfo != null) { in hasSameType()61 if (activityInfo != null && otherItem.activityInfo != null) { in hasSameType()