Home
last modified time | relevance | path

Searched refs:Hasher (Results 1 – 25 of 31) sorted by relevance

12

/external/guava/guava/src/com/google/common/hash/
DAbstractCompositeHashFunction.java46 /* protected */ abstract HashCode makeHash(Hasher[] hashers); in makeHash()
49 public Hasher newHasher() { in newHasher()
50 final Hasher[] hashers = new Hasher[functions.length]; in newHasher()
54 return new Hasher() { in newHasher()
55 @Override public Hasher putByte(byte b) { in newHasher()
56 for (Hasher hasher : hashers) { in newHasher()
62 @Override public Hasher putBytes(byte[] bytes) { in newHasher()
63 for (Hasher hasher : hashers) { in newHasher()
69 @Override public Hasher putBytes(byte[] bytes, int off, int len) { in newHasher()
70 for (Hasher hasher : hashers) { in newHasher()
[all …]
DHasher.java53 public interface Hasher extends PrimitiveSink { interface
54 @Override Hasher putByte(byte b); in putByte()
55 @Override Hasher putBytes(byte[] bytes); in putBytes()
56 @Override Hasher putBytes(byte[] bytes, int off, int len); in putBytes()
57 @Override Hasher putShort(short s); in putShort()
58 @Override Hasher putInt(int i); in putInt()
59 @Override Hasher putLong(long l); in putLong()
64 @Override Hasher putFloat(float f); in putFloat()
69 @Override Hasher putDouble(double d); in putDouble()
74 @Override Hasher putBoolean(boolean b); in putBoolean()
[all …]
DAbstractNonStreamingHashFunction.java34 public Hasher newHasher() { in newHasher()
39 public Hasher newHasher(int expectedInputSize) { in newHasher()
50 Hasher hasher = newHasher(len * 2); in hashUnencodedChars()
85 public Hasher putByte(byte b) { in putByte()
91 public Hasher putBytes(byte[] bytes) { in putBytes()
101 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
107 public Hasher putShort(short s) { in putShort()
114 public Hasher putInt(int i) { in putInt()
123 public Hasher putLong(long l) { in putLong()
131 public Hasher putChar(char c) { in putChar()
[all …]
DAbstractByteHasher.java62 public Hasher putByte(byte b) { in putByte()
68 public Hasher putBytes(byte[] bytes) { in putBytes()
75 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
84 private Hasher update(int bytes) { in update()
94 public Hasher putShort(short s) { in putShort()
100 public Hasher putInt(int i) { in putInt()
106 public Hasher putLong(long l) { in putLong()
112 public Hasher putChar(char c) { in putChar()
118 public <T> Hasher putObject(T instance, Funnel<? super T> funnel) { in putObject()
DAbstractStreamingHashFunction.java64 @Override public Hasher newHasher(int expectedInputSize) { in newHasher()
144 public final Hasher putBytes(byte[] bytes) { in putBytes()
149 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
153 private Hasher putBytes(ByteBuffer readBuffer) { in putBytes()
179 public final Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars()
187 public final Hasher putByte(byte b) { in putByte()
194 public final Hasher putShort(short s) { in putShort()
201 public final Hasher putChar(char c) { in putChar()
208 public final Hasher putInt(int i) { in putInt()
215 public final Hasher putLong(long l) { in putLong()
[all …]
DAbstractHasher.java26 abstract class AbstractHasher implements Hasher {
27 @Override public final Hasher putBoolean(boolean b) { in putBoolean()
31 @Override public final Hasher putDouble(double d) { in putDouble()
35 @Override public final Hasher putFloat(float f) { in putFloat()
39 @Override public Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars()
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { in putString()
DHashFunction.java143 Hasher newHasher(); in newHasher()
151 Hasher newHasher(int expectedInputSize); in newHasher()
DCrc32cHashFunction.java31 public Hasher newHasher() { in newHasher()
DHashingOutputStream.java33 private final Hasher hasher;
DHashingInputStream.java33 private final Hasher hasher;
DHashing.java427 HashCode makeHash(Hasher[] hashers) { in makeHash()
430 for (Hasher hasher : hashers) { in makeHash()
DChecksumHashFunction.java49 public Hasher newHasher() { in newHasher()
DSipHashFunction.java67 @Override public Hasher newHasher() { in newHasher()
/external/lzma/CPP/7zip/UI/Common/
DHashCalc.cpp109 h.Hasher = hasher; in SetMethods()
124 h.Hasher->Init(); in InitForNewFile()
133 Hashers[i].Hasher->Update(data, size); in Update()
177 h.Hasher->Final(h.Digests[0]); in Final()
182 h.Hasher->Init(); in Final()
183 h.Hasher->Update(pre, sizeof(pre)); in Final()
184 h.Hasher->Update(h.Digests[0], h.DigestSize); in Final()
190 h.Hasher->Update(temp, 2); in Final()
194 h.Hasher->Final(tempDigest); in Final()
DHashCalc.h27 CMyComPtr<IHasher> Hasher; member
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java40 List<Hasher> hashers = ImmutableList.of( in testExhaustive()
83 Hasher h1 = new NonStreamingVersion().newHasher(); in assertPutString()
84 Hasher h2 = new NonStreamingVersion().newHasher(); in assertPutString()
101 public Hasher newHasher() { in newHasher()
DHashingOutputStreamTest.java31 private Hasher hasher;
37 hasher = EasyMock.createMock(Hasher.class); in setUp()
DMessageDigestHashFunctionTest.java62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash()
76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
DAbstractStreamingHasherTest.java156 Hasher controlSink = control.newHasher(1024); in testExhaustive()
158 Iterable<Hasher> sinksAndControl = in testExhaustive()
166 for (Hasher hasher : sinksAndControl) { in testExhaustive()
DHashingInputStreamTest.java35 private Hasher hasher;
42 hasher = EasyMock.createMock(Hasher.class); in setUp()
DMurmur3Hash32Test.java62 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid()
DMurmur3Hash128Test.java72 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid()
DHashTestUtils.java459 Hasher hasher1 = hashFunction.newHasher(); in assertIndependentHashers()
460 Hasher hasher2 = hashFunction.newHasher(); in assertIndependentHashers()
471 Hasher hasher = hashFunction.newHasher(); in randomHash()
/external/chromium-trace/catapult/third_party/coverage/coverage/
Dhtml.py16 from coverage.misc import CoverageException, Hasher, isolate_module
123 m = Hasher()
169 m = Hasher()
/external/guava/guava/src/com/google/common/io/
DByteSource.java28 import com.google.common.hash.Hasher;
296 Hasher hasher = hashFunction.newHasher(); in hash()

12