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.java472 public boolean sameAs(Icon otherIcon) { in sameAs() argument
473 if (otherIcon == this) { in sameAs()
476 if (mType != otherIcon.getType()) { in sameAs()
481 return getBitmap() == otherIcon.getBitmap(); in sameAs()
483 return getDataLength() == otherIcon.getDataLength() in sameAs()
484 && getDataOffset() == otherIcon.getDataOffset() in sameAs()
485 && getDataBytes() == otherIcon.getDataBytes(); in sameAs()
487 return getResId() == otherIcon.getResId() in sameAs()
488 && Objects.equals(getResPackage(), otherIcon.getResPackage()); in sameAs()
490 return Objects.equals(getUriString(), otherIcon.getUriString()); in sameAs()
/frameworks/base/core/java/android/view/
DPointerIcon.java384 PointerIcon otherIcon = (PointerIcon) other; in equals() local
385 if (mType != otherIcon.mType in equals()
386 || mSystemIconResourceId != otherIcon.mSystemIconResourceId) { in equals()
390 if (mSystemIconResourceId == 0 && (mBitmap != otherIcon.mBitmap in equals()
391 || mHotSpotX != otherIcon.mHotSpotX in equals()
392 || mHotSpotY != otherIcon.mHotSpotY)) { in equals()