/external/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHashFunction.java | 37 return newHasher().putObject(instance, funnel).hash(); in hashObject() 41 return newHasher().putUnencodedChars(input).hash(); in hashUnencodedChars() 45 return newHasher().putString(input, charset).hash(); in hashString() 49 return newHasher().putInt(input).hash(); in hashInt() 53 return newHasher().putLong(input).hash(); in hashLong() 57 return newHasher().putBytes(input).hash(); in hashBytes() 61 return newHasher().putBytes(input, off, len).hash(); in hashBytes() 64 @Override public Hasher newHasher(int expectedInputSize) { in newHasher() method in AbstractStreamingHashFunction 66 return newHasher(); in newHasher()
|
D | AbstractNonStreamingHashFunction.java | 34 public Hasher newHasher() { in newHasher() method in AbstractNonStreamingHashFunction 39 public Hasher newHasher(int expectedInputSize) { in newHasher() method in AbstractNonStreamingHashFunction 45 return newHasher().putObject(instance, funnel).hash(); in hashObject() 50 Hasher hasher = newHasher(len * 2); in hashUnencodedChars() 62 return newHasher(4).putInt(input).hash(); in hashInt() 66 return newHasher(8).putLong(input).hash(); in hashLong()
|
D | HashFunction.java | 143 Hasher newHasher(); in newHasher() method 151 Hasher newHasher(int expectedInputSize); in newHasher() method
|
D | AbstractCompositeHashFunction.java | 49 public Hasher newHasher() { in newHasher() method in AbstractCompositeHashFunction 52 hashers[i] = functions[i].newHasher(); in newHasher()
|
D | Crc32cHashFunction.java | 31 public Hasher newHasher() { in newHasher() method in Crc32cHashFunction
|
D | HashingOutputStream.java | 47 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingOutputStream()
|
D | HashingInputStream.java | 43 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingInputStream()
|
D | ChecksumHashFunction.java | 49 public Hasher newHasher() { in newHasher() method in ChecksumHashFunction
|
D | SipHashFunction.java | 67 @Override public Hasher newHasher() { in newHasher() method in SipHashFunction
|
D | MessageDigestHashFunction.java | 81 @Override public Hasher newHasher() { in newHasher() method in MessageDigestHashFunction
|
D | Murmur3_32HashFunction.java | 61 @Override public Hasher newHasher() { in newHasher() method in Murmur3_32HashFunction
|
D | Murmur3_128HashFunction.java | 55 @Override public Hasher newHasher() { in newHasher() method in Murmur3_128HashFunction
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | AbstractNonStreamingHashFunctionTest.java | 41 new StreamingVersion().newHasher(), in testExhaustive() 42 new StreamingVersion().newHasher(52), in testExhaustive() 43 new NonStreamingVersion().newHasher(), in testExhaustive() 44 new NonStreamingVersion().newHasher(123)); in testExhaustive() 83 Hasher h1 = new NonStreamingVersion().newHasher(); in assertPutString() 84 Hasher h2 = new NonStreamingVersion().newHasher(); in assertPutString() 101 public Hasher newHasher() { in newHasher() method in AbstractNonStreamingHashFunctionTest.StreamingVersion
|
D | HashTestUtils.java | 459 Hasher hasher1 = hashFunction.newHasher(); in assertIndependentHashers() 460 Hasher hasher2 = hashFunction.newHasher(); in assertIndependentHashers() 471 Hasher hasher = hashFunction.newHasher(); in randomHash() 494 hashFunction.newHasher(size).putBytes(bytes).hash()); in assertHashBytesEquivalence() 498 hashFunction.newHasher(size).putBytes(bytes, off, len).hash()); in assertHashBytesEquivalence() 504 hashFunction.newHasher().putInt(i).hash()); in assertHashIntEquivalence() 510 hashFunction.newHasher().putLong(l).hash()); in assertHashLongEquivalence() 526 hashFunction.newHasher().putUnencodedChars("abc").hash(), in assertHashStringEquivalence() 527 hashFunction.newHasher().putUnencodedChars("ab").putUnencodedChars("c").hash(), in assertHashStringEquivalence() 528 hashFunction.newHasher().putUnencodedChars("a").putUnencodedChars("bc").hash(), in assertHashStringEquivalence() [all …]
|
D | SipHashFunctionTest.java | 166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip() 175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
|
D | Murmur3Hash128Test.java | 55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); in assertHash() 72 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid()
|
D | MessageDigestHashFunctionTest.java | 62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash() 76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
|
D | Murmur3Hash32Test.java | 62 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid()
|
D | HashingOutputStreamTest.java | 40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
|
D | HashingInputStreamTest.java | 46 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
|
D | AbstractStreamingHasherTest.java | 156 Hasher controlSink = control.newHasher(1024); in testExhaustive()
|
D | HashingTest.java | 366 Hasher hasher = Hashing.md5().newHasher(); in testHashIntVsForLoop()
|
/external/caliper/caliper/src/main/java/com/google/caliper/model/ |
D | InstrumentSpec.java | 78 .newHasher() in initHash()
|
D | Scenario.java | 84 .newHasher() in initHash()
|
/external/guava/guava/src/com/google/common/io/ |
D | ByteSource.java | 296 Hasher hasher = hashFunction.newHasher(); in hash()
|