Home
last modified time | relevance | path

Searched refs:otherIcon (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java590 public boolean sameAs(@NonNull Icon otherIcon) { in sameAs() argument
591 if (otherIcon == this) { in sameAs()
594 if (mType != otherIcon.getType()) { in sameAs()
600 return getBitmap() == otherIcon.getBitmap(); in sameAs()
602 return getDataLength() == otherIcon.getDataLength() in sameAs()
603 && getDataOffset() == otherIcon.getDataOffset() in sameAs()
604 && Arrays.equals(getDataBytes(), otherIcon.getDataBytes()); in sameAs()
606 return getResId() == otherIcon.getResId() in sameAs()
607 && Objects.equals(getResPackage(), otherIcon.getResPackage()); in sameAs()
610 return Objects.equals(getUriString(), otherIcon.getUriString()); in sameAs()
/frameworks/base/core/java/android/view/
DPointerIcon.java419 PointerIcon otherIcon = (PointerIcon) other; in equals() local
420 if (mType != otherIcon.mType in equals()
421 || mSystemIconResourceId != otherIcon.mSystemIconResourceId) { in equals()
425 if (mSystemIconResourceId == 0 && (mBitmap != otherIcon.mBitmap in equals()
426 || mHotSpotX != otherIcon.mHotSpotX in equals()
427 || mHotSpotY != otherIcon.mHotSpotY)) { in equals()