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.java115 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() argument
186 if (Arrays.equals(packageChecksum, packageSha256Hash)) { in doesPackageHashMatch()
192 + 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.java192 private void runWithDownloadInfo(byte[] packageChecksum, byte[] signatureChecksum) { in runWithDownloadInfo() argument
195 .setPackageChecksum(packageChecksum) in runWithDownloadInfo()