Home
last modified time | relevance | path

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

/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java574 public boolean sameAs(Icon otherIcon) { in sameAs() argument
575 if (otherIcon == this) { in sameAs()
578 if (mType != otherIcon.getType()) { in sameAs()
584 return getBitmap() == otherIcon.getBitmap(); in sameAs()
586 return getDataLength() == otherIcon.getDataLength() in sameAs()
587 && getDataOffset() == otherIcon.getDataOffset() in sameAs()
588 && Arrays.equals(getDataBytes(), otherIcon.getDataBytes()); in sameAs()
590 return getResId() == otherIcon.getResId() in sameAs()
591 && Objects.equals(getResPackage(), otherIcon.getResPackage()); in sameAs()
594 return Objects.equals(getUriString(), otherIcon.getUriString()); in sameAs()
/aosp12/frameworks/base/core/java/android/view/
H A DPointerIcon.java418 PointerIcon otherIcon = (PointerIcon) other; in equals() local
419 if (mType != otherIcon.mType in equals()
420 || mSystemIconResourceId != otherIcon.mSystemIconResourceId) { in equals()
424 if (mSystemIconResourceId == 0 && (mBitmap != otherIcon.mBitmap in equals()
425 || mHotSpotX != otherIcon.mHotSpotX in equals()
426 || mHotSpotY != otherIcon.mHotSpotY)) { in equals()