Searched refs:DigestCalculator (Results 1 – 8 of 8) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/cache/ |
D | MerkleTreeTest.java | 55 DigestCalculator.compute("buzz".getBytes(UTF_8)), in buildMerkleTree() 60 DigestCalculator.compute("fizzbuzz".getBytes(UTF_8)), in buildMerkleTree() 68 DigestCalculator.compute("bar".getBytes(UTF_8)), in buildMerkleTree() 73 DigestCalculator.compute("foo".getBytes(UTF_8)), in buildMerkleTree() 78 .setDigest(DigestCalculator.compute(fizzDir))) in buildMerkleTree() 85 .setDigest(DigestCalculator.compute(srcsDir))) in buildMerkleTree() 90 assertEquals(tree.rootDigest(), DigestCalculator.compute(rootDir)); in buildMerkleTree()
|
/tools/tradefederation/core/common_util/com/android/tradefed/cache/ |
D | DigestCalculator.java | 34 public class DigestCalculator { class 57 return DigestCalculator.buildDigest(digest, Files.size(file.toPath())); in compute() 67 return DigestCalculator.compute(message.toByteArray()); in compute() 77 return DigestCalculator.buildDigest(HASH_FUNCTION.hashBytes(blob).asBytes(), blob.length); in compute()
|
D | MerkleTree.java | 47 .setDigest(DigestCalculator.compute(f)) in buildFromDir() 61 directory.getName(), DigestCalculator.compute(rootBuilder.build())); in buildFromDir()
|
D | ExecutableAction.java | 69 .setCommandDigest(DigestCalculator.compute(command)); in create() 75 return new AutoValue_ExecutableAction(action, DigestCalculator.compute(action), command); in create()
|
/tools/tradefederation/core/javatests/com/android/tradefed/cache/remote/ |
D | ByteStreamDownloaderTest.java | 24 import com.android.tradefed.cache.DigestCalculator; 76 Digest digest = DigestCalculator.compute(blob.getBytes(UTF_8)); in downloadBlob_works() 100 DigestCalculator.compute("not found blob".getBytes(UTF_8)), in downloadBlob_works() 129 downloader.downloadBlob(DigestCalculator.compute(blob.getBytes(UTF_8)), out); in downloadBlob_ignore_error_after_fully_downloaded()
|
D | RemoteCacheClientTest.java | 28 import com.android.tradefed.cache.DigestCalculator; 151 .setStdoutDigest(DigestCalculator.compute(stdoutFile)) in uploadCache_works() 157 assertEquals(actionCache.actionDigest, DigestCalculator.compute(action.action())); in uploadCache_works() 170 Digest stdOutDigest = DigestCalculator.compute(stdout.getBytes()); in lookupCache_works()
|
/tools/tradefederation/core/common_util/com/android/tradefed/cache/remote/ |
D | RemoteCacheClient.java | 25 import com.android.tradefed.cache.DigestCalculator; 78 actionResultBuilder.setStdoutDigest(DigestCalculator.compute(actionResult.stdOut())); in uploadCache() 82 actionResultBuilder.setStderrDigest(DigestCalculator.compute(actionResult.stdErr())); in uploadCache() 91 .setDigestFunction(DigestCalculator.DIGEST_FUNCTION) in uploadCache() 114 DigestCalculator in lookupCache()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | RunUtilTest.java | 33 import com.android.tradefed.cache.DigestCalculator; 141 DigestCalculator.compute(action.action()), in uploadCache() 151 Digest digest = DigestCalculator.compute(action.action()); in lookupCache()
|