Searched defs:hashFunction (Results 1 - 13 of 13) sorted by relevance

/external/guava/guava/src/com/google/common/hash/
H A DHashingOutputStream.java45 public HashingOutputStream(HashFunction hashFunction, OutputStream out) { argument
47 this.hasher = checkNotNull(hashFunction.newHasher());
H A DHashingInputStream.java41 public HashingInputStream(HashFunction hashFunction, InputStream in) { argument
43 this.hasher = checkNotNull(hashFunction.newHasher());
/external/guava/guava-tests/benchmark/com/google/common/hash/
H A DChecksumBenchmark.java85 private byte runHashFunction(int reps, HashFunction hashFunction) { argument
91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
H A DHashFunctionBenchmark.java54 @Benchmark int hashFunction(int reps) { method in class:HashFunctionBenchmark
55 HashFunction hashFunction = hashFunctionEnum.getHashFunction();
58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
/external/guava/guava-tests/test/com/google/common/hash/
H A DHashingOutputStreamTest.java32 private HashFunction hashFunction; field in class:HashingOutputStreamTest
38 hashFunction = EasyMock.createMock(HashFunction.class);
40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
41 EasyMock.replay(hashFunction);
48 HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
52 EasyMock.verify(hashFunction);
60 HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
64 EasyMock.verify(hashFunction);
72 HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
76 EasyMock.verify(hashFunction);
[all...]
H A DHashingInputStreamTest.java36 private HashFunction hashFunction; field in class:HashingInputStreamTest
43 hashFunction = EasyMock.createMock(HashFunction.class);
46 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
47 EasyMock.replay(hashFunction);
53 HashingInputStream in = new HashingInputStream(hashFunction, buffer);
58 EasyMock.verify(hashFunction);
66 HashingInputStream in = new HashingInputStream(hashFunction, buffer);
75 EasyMock.verify(hashFunction);
83 HashingInputStream in = new HashingInputStream(hashFunction, buffer);
92 EasyMock.verify(hashFunction);
[all...]
H A DHashFunctionEnum.java43 private final HashFunction hashFunction; field in class:HashFunctionEnum
45 private HashFunctionEnum(HashFunction hashFunction) { argument
46 this.hashFunction = hashFunction;
50 return hashFunction;
H A DHashTestUtils.java58 static void verifyHashFunction(HashFn hashFunction, int hashbits, int expected) { argument
68 byte[] hash = hashFunction.hash(Arrays.copyOf(key, i), seed);
73 byte[] result = hashFunction.hash(hashes, 0);
414 static void assertInvariants(HashFunction hashFunction) { argument
419 HashCode hashcode1 = hashFunction.hashObject(o, HashTestUtils.BAD_FUNNEL);
420 HashCode hashcode2 = hashFunction.hashObject(o, HashTestUtils.BAD_FUNNEL);
422 Assert.assertEquals(hashFunction.bits(), hashcode1.bits());
423 Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8);
428 assertHashBytesThrowsCorrectExceptions(hashFunction);
429 assertIndependentHashers(hashFunction);
433 assertHashBytesThrowsCorrectExceptions(HashFunction hashFunction) argument
450 assertIndependentHashers(HashFunction hashFunction) argument
470 randomHash(HashFunction hashFunction, Random random, int numActions) argument
478 assertShortcutsAreEquivalent(HashFunction hashFunction, int trials) argument
489 assertHashBytesEquivalence(HashFunction hashFunction, Random random) argument
501 assertHashIntEquivalence(HashFunction hashFunction, Random random) argument
507 assertHashLongEquivalence(HashFunction hashFunction, Random random) argument
521 assertHashStringEquivalence(HashFunction hashFunction, Random random) argument
553 assertHashStringWithSurrogatesEquivalence( HashFunction hashFunction, Random random) argument
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/model/
H A DHost.java54 initHash(builder.hashFunction);
72 private void initHash(HashFunction hashFunction) { argument
74 this.hash = hashFunction.hashObject(this, HostFunnel.INSTANCE).asInt();
103 private HashFunction hashFunction = getPersistentHashFunction(); field in class:Host.Builder
119 @VisibleForTesting public Builder hashFunctionForTesting(HashFunction hashFunction) { argument
121 this.hashFunction = checkNotNull(hashFunction);
/external/guava/guava/src/com/google/common/io/
H A DByteSource.java295 public HashCode hash(HashFunction hashFunction) throws IOException { argument
296 Hasher hasher = hashFunction.newHasher();
536 public HashCode hash(HashFunction hashFunction) throws IOException { argument
537 return hashFunction.hashBytes(bytes);
H A DFiles.java584 * Computes the hash code of the {@code file} using {@code hashFunction}.
587 * @param hashFunction the hash function to use to hash the data
592 public static HashCode hash(File file, HashFunction hashFunction) argument
594 return asByteSource(file).hash(hashFunction);
/external/guice/lib/
H A Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ...
/external/dagger2/lib/
H A Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/googlejavaformat/ com/google/googlejavaformat/CloseOp ...

Completed in 329 milliseconds