use of android.content.pm.VerificationParams in project android_frameworks_base by AOSPA.
the class VerificationParamsTest method testHashCode_Success.
public void testHashCode_Success() throws Exception {
VerificationParams params1 = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, REFERRER, ORIGINATING_UID);
VerificationParams params2 = new VerificationParams(Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), Uri.parse(REFERRER_STRING), ORIGINATING_UID);
assertEquals(params1.hashCode(), params2.hashCode());
}
use of android.content.pm.VerificationParams in project android_frameworks_base by AOSPA.
the class VerificationParamsTest method testEquals_Success.
public void testEquals_Success() throws Exception {
VerificationParams params1 = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, REFERRER, ORIGINATING_UID);
VerificationParams params2 = new VerificationParams(Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), Uri.parse(REFERRER_STRING), ORIGINATING_UID);
assertEquals(params1, params2);
}
use of android.content.pm.VerificationParams in project android_frameworks_base by AOSPA.
the class VerificationParamsTest method testHashCode_InstallerUid_Failure.
public void testHashCode_InstallerUid_Failure() throws Exception {
VerificationParams params1 = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, REFERRER, ORIGINATING_UID);
VerificationParams params2 = new VerificationParams(Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), Uri.parse(REFERRER_STRING), ORIGINATING_UID);
params2.setInstallerUid(INSTALLER_UID);
assertFalse(params1.hashCode() == params2.hashCode());
}
use of android.content.pm.VerificationParams in project android_frameworks_base by AOSPA.
the class VerificationParamsTest method testEquals_InstallerUid_Failure.
public void testEquals_InstallerUid_Failure() throws Exception {
VerificationParams params1 = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, REFERRER, ORIGINATING_UID);
VerificationParams params2 = new VerificationParams(Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), Uri.parse(REFERRER_STRING), ORIGINATING_UID);
params2.setInstallerUid(INSTALLER_UID);
assertFalse(params1.equals(params2));
}
use of android.content.pm.VerificationParams in project android_frameworks_base by ResurrectionRemix.
the class VerificationParamsTest method testEquals_InstallerUid_Failure.
public void testEquals_InstallerUid_Failure() throws Exception {
VerificationParams params1 = new VerificationParams(VERIFICATION_URI, ORIGINATING_URI, REFERRER, ORIGINATING_UID);
VerificationParams params2 = new VerificationParams(Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), Uri.parse(REFERRER_STRING), ORIGINATING_UID);
params2.setInstallerUid(INSTALLER_UID);
assertFalse(params1.equals(params2));
}
Aggregations