Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if (!(o instanceof DisplayAdjustments)) {
return false;
}
DisplayAdjustments daj = (DisplayAdjustments)o;
return Objects.equals(daj.mCompatInfo, mCompatInfo) &&
Objects.equals(daj.mActivityToken, mActivityToken);
|
public android.os.IBinder | getActivityToken()
return mActivityToken;
|
public android.content.res.CompatibilityInfo | getCompatibilityInfo()
return mCompatInfo;
|
public int | hashCode()
int hash = 17;
hash = hash * 31 + mCompatInfo.hashCode();
if (DEVELOPMENT_RESOURCES_DEPEND_ON_ACTIVITY_TOKEN) {
hash = hash * 31 + (mActivityToken == null ? 0 : mActivityToken.hashCode());
}
return hash;
|
public void | setActivityToken(android.os.IBinder token)
if (this == DEFAULT_DISPLAY_ADJUSTMENTS) {
throw new IllegalArgumentException(
"setActivityToken: Cannot modify DEFAULT_DISPLAY_ADJUSTMENTS");
}
mActivityToken = token;
|
public void | setCompatibilityInfo(android.content.res.CompatibilityInfo compatInfo)
if (this == DEFAULT_DISPLAY_ADJUSTMENTS) {
throw new IllegalArgumentException(
"setCompatbilityInfo: Cannot modify DEFAULT_DISPLAY_ADJUSTMENTS");
}
if (compatInfo != null && (compatInfo.isScalingRequired()
|| !compatInfo.supportsScreen())) {
mCompatInfo = compatInfo;
} else {
mCompatInfo = CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO;
}
|