Searched refs:packageChecksum (Results 1 – 4 of 4) sorted by relevance
76 public final byte[] packageChecksum; field in PackageDownloadInfo85 packageChecksum = checkNotNull(builder.mPackageChecksum, "package checksum can't be null"); in PackageDownloadInfo()102 if (packageChecksum.length == 0 && signatureChecksum.length == 0) { in validateFields()135 StoreUtils.byteArrayToString(packageChecksum)); in toPersistableBundle()158 public Builder setPackageChecksum(byte[] packageChecksum) { in setPackageChecksum() argument159 mPackageChecksum = packageChecksum; in setPackageChecksum()
115 if (mDownloadInfo.packageChecksum.length > 0) { in run()116 if (!doesPackageHashMatch(downloadLocation, mDownloadInfo.packageChecksum)) { in run()181 private boolean doesPackageHashMatch(String downloadLocation, byte[] packageChecksum) { in doesPackageHashMatch() argument186 if (Arrays.equals(packageChecksum, packageSha256Hash)) { in doesPackageHashMatch()192 + StoreUtils.byteArrayToString(packageChecksum)); in doesPackageHashMatch()
53 assertEquals(TEST_PACKAGE_CHECKSUM, downloadInfo.packageChecksum); in testBuilderWriteAndReadBack()95 assertEquals(TEST_PACKAGE_CHECKSUM, downloadInfo.packageChecksum); in testConstructPackageInfoWithDownloadLocationAndPackageChecksum()
192 private void runWithDownloadInfo(byte[] packageChecksum, byte[] signatureChecksum) { in runWithDownloadInfo() argument195 .setPackageChecksum(packageChecksum) in runWithDownloadInfo()