Home
last modified time | relevance | path

Searched refs:DigestCalculator (Results 1 – 8 of 8) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/cache/
DMerkleTreeTest.java55 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/
DDigestCalculator.java34 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()
DMerkleTree.java47 .setDigest(DigestCalculator.compute(f)) in buildFromDir()
61 directory.getName(), DigestCalculator.compute(rootBuilder.build())); in buildFromDir()
DExecutableAction.java69 .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/
DByteStreamDownloaderTest.java24 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()
DRemoteCacheClientTest.java28 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/
DRemoteCacheClient.java25 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/
DRunUtilTest.java33 import com.android.tradefed.cache.DigestCalculator;
141 DigestCalculator.compute(action.action()), in uploadCache()
151 Digest digest = DigestCalculator.compute(action.action()); in lookupCache()