Fields Summary |
---|
public static final int | NO_UIDA constant used to indicate that a uid value is not present. |
private static final String | TO_STRING_PREFIXWhat we print out first when toString() is called. |
private final android.net.Uri | mVerificationURIThe location of the supplementary verification file. |
private final android.net.Uri | mOriginatingURIURI referencing where the package was downloaded from. |
private final android.net.Uri | mReferrerHTTP referrer URI associated with the originatingURI. |
private final int | mOriginatingUidUID of the application that the install request originated from. |
private int | mInstallerUidUID of application requesting the install |
private final android.content.pm.ManifestDigest | mManifestDigestAn object that holds the digest of the package which can be used to
verify ownership. |
public static final Parcelable.Creator | CREATOR |
Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object o)
if (this == o) {
return true;
}
if (!(o instanceof VerificationParams)) {
return false;
}
final VerificationParams other = (VerificationParams) o;
if (mVerificationURI == null) {
if (other.mVerificationURI != null) {
return false;
}
} else if (!mVerificationURI.equals(other.mVerificationURI)) {
return false;
}
if (mOriginatingURI == null) {
if (other.mOriginatingURI != null) {
return false;
}
} else if (!mOriginatingURI.equals(other.mOriginatingURI)) {
return false;
}
if (mReferrer == null) {
if (other.mReferrer != null) {
return false;
}
} else if (!mReferrer.equals(other.mReferrer)) {
return false;
}
if (mOriginatingUid != other.mOriginatingUid) {
return false;
}
if (mManifestDigest == null) {
if (other.mManifestDigest != null) {
return false;
}
} else if (!mManifestDigest.equals(other.mManifestDigest)) {
return false;
}
if (mInstallerUid != other.mInstallerUid) {
return false;
}
return true;
|
public int | getInstallerUid()
return mInstallerUid;
|
public android.content.pm.ManifestDigest | getManifestDigest()
return mManifestDigest;
|
public android.net.Uri | getOriginatingURI()
return mOriginatingURI;
|
public int | getOriginatingUid()return NO_UID if not available
return mOriginatingUid;
|
public android.net.Uri | getReferrer()
return mReferrer;
|
public android.net.Uri | getVerificationURI()
return mVerificationURI;
|
public int | hashCode()
int hash = 3;
hash += 5 * (mVerificationURI == null ? 1 : mVerificationURI.hashCode());
hash += 7 * (mOriginatingURI == null ? 1 : mOriginatingURI.hashCode());
hash += 11 * (mReferrer == null ? 1 : mReferrer.hashCode());
hash += 13 * mOriginatingUid;
hash += 17 * (mManifestDigest == null ? 1 : mManifestDigest.hashCode());
hash += 19 * mInstallerUid;
return hash;
|
public void | setInstallerUid(int uid)
mInstallerUid = uid;
|
public java.lang.String | toString()
final StringBuilder sb = new StringBuilder(TO_STRING_PREFIX);
sb.append("mVerificationURI=");
sb.append(mVerificationURI.toString());
sb.append(",mOriginatingURI=");
sb.append(mOriginatingURI.toString());
sb.append(",mReferrer=");
sb.append(mReferrer.toString());
sb.append(",mOriginatingUid=");
sb.append(mOriginatingUid);
sb.append(",mManifestDigest=");
sb.append(mManifestDigest.toString());
sb.append(",mInstallerUid=");
sb.append(mInstallerUid);
sb.append('}");
return sb.toString();
|
public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeParcelable(mVerificationURI, 0);
dest.writeParcelable(mOriginatingURI, 0);
dest.writeParcelable(mReferrer, 0);
dest.writeInt(mOriginatingUid);
dest.writeParcelable(mManifestDigest, 0);
dest.writeInt(mInstallerUid);
|