Searched refs:computeHashOfFile (Results 1 – 4 of 4) sorted by relevance
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 357 Arrays.equals(sha256, mUtils.computeHashOfFile(fileLocation, Utils.SHA256_TYPE))); in testComputeHashOfFile() 359 assertTrue(Arrays.equals(sha1, mUtils.computeHashOfFile(fileLocation, Utils.SHA1_TYPE))); in testComputeHashOfFile() 368 assertNull(mUtils.computeHashOfFile(fileLocation, Utils.SHA256_TYPE)); in testComputeHashOfFile_NotPresent() 369 assertNull(mUtils.computeHashOfFile(fileLocation, Utils.SHA1_TYPE)); in testComputeHashOfFile_NotPresent()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTaskTest.java | 122 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA256_TYPE)) in testPackageChecksumSha256_success() 136 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA1_TYPE)) in testPackageChecksumSha1_success() 150 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA1_TYPE)) in testPackageChecksumSha1_failure()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTask.java | 181 packageSha256Hash = mUtils.computeHashOfFile(downloadLocation, Utils.SHA256_TYPE); in doesPackageHashMatch() 188 packageSha1Hash = mUtils.computeHashOfFile(downloadLocation, Utils.SHA1_TYPE); in doesPackageHashMatch()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | Utils.java | 625 public byte[] computeHashOfFile(String fileLocation, String hashType) { in computeHashOfFile() method in Utils
|