Home
last modified time | relevance | path

Searched refs:packageChecksum (Results 1 – 4 of 4) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DPackageDownloadInfo.java76 public final byte[] packageChecksum; field in PackageDownloadInfo
85 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() argument
159 mPackageChecksum = packageChecksum; in setPackageChecksum()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java118 if (mDownloadInfo.packageChecksum.length > 0) { in run()
120 packageLocation.getAbsolutePath(), mDownloadInfo.packageChecksum)) { in run()
180 private boolean doesPackageHashMatch(String downloadLocation, byte[] packageChecksum) { in doesPackageHashMatch() argument
185 if (Arrays.equals(packageChecksum, packageSha256Hash)) { in doesPackageHashMatch()
191 + StoreUtils.byteArrayToString(packageChecksum)); in doesPackageHashMatch()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DPackageDownloadInfoTest.java53 assertEquals(TEST_PACKAGE_CHECKSUM, downloadInfo.packageChecksum); in testBuilderWriteAndReadBack()
95 assertEquals(TEST_PACKAGE_CHECKSUM, downloadInfo.packageChecksum); in testConstructPackageInfoWithDownloadLocationAndPackageChecksum()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DVerifyPackageTaskTest.java195 private void runWithDownloadInfo(byte[] packageChecksum, byte[] signatureChecksum) { in runWithDownloadInfo() argument
198 .setPackageChecksum(packageChecksum) in runWithDownloadInfo()