Home
last modified time | relevance | path

Searched refs:hasher (Results 1 – 25 of 41) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractByteHasherTest.java33 TestHasher hasher = new TestHasher(); // byte order insignificant here in testBytes() local
35 hasher.putByte((byte) 1); in testBytes()
36 hasher.putBytes(new byte[]{2, 3, 4, 5, 6}); in testBytes()
37 hasher.putByte((byte) 7); in testBytes()
38 hasher.putBytes(new byte[]{}); in testBytes()
39 hasher.putBytes(new byte[]{8}); in testBytes()
40 hasher.assertBytes(expected); in testBytes()
44 TestHasher hasher = new TestHasher(); in testShort() local
45 hasher.putShort((short) 0x0201); in testShort()
46 hasher.assertBytes(new byte[]{1, 2}); in testShort()
[all …]
DHashingOutputStreamTest.java31 private Hasher hasher; field in HashingOutputStreamTest
37 hasher = EasyMock.createMock(Hasher.class); in setUp()
40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
46 EasyMock.expect(hasher.putByte((byte) b)).andReturn(hasher).once(); in testWrite_putSingleByte()
47 EasyMock.replay(hasher); in testWrite_putSingleByte()
53 EasyMock.verify(hasher); in testWrite_putSingleByte()
58 EasyMock.expect(hasher.putBytes(buf, 0, buf.length)).andReturn(hasher).once(); in testWrite_putByteArray()
59 EasyMock.replay(hasher); in testWrite_putByteArray()
65 EasyMock.verify(hasher); in testWrite_putByteArray()
70 EasyMock.expect(hasher.putBytes(buf, 0, 3)).andReturn(hasher).once(); in testWrite_putByteArrayAtPos()
[all …]
DHashingInputStreamTest.java35 private Hasher hasher; field in HashingInputStreamTest
42 hasher = EasyMock.createMock(Hasher.class); in setUp()
46 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
51 EasyMock.expect(hasher.putByte((byte) 'y')).andReturn(hasher).once(); in testRead_putSingleByte()
52 EasyMock.replay(hasher); in testRead_putSingleByte()
59 EasyMock.verify(hasher); in testRead_putSingleByte()
63 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length))) in testRead_putByteArray()
64 .andReturn(hasher).once(); in testRead_putByteArray()
65 EasyMock.replay(hasher); in testRead_putByteArray()
76 EasyMock.verify(hasher); in testRead_putByteArray()
[all …]
DMurmur3Hash32Test.java62 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid()
63 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid()
64 return hasher.hash().asBytes(); in testParanoid()
DMurmur3Hash128Test.java72 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid()
73 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid()
74 return hasher.hash().asBytes(); in testParanoid()
/external/guava/guava/src/com/google/common/hash/
DAbstractCompositeHashFunction.java56 for (Hasher hasher : hashers) { in newHasher()
57 hasher.putByte(b); in newHasher()
63 for (Hasher hasher : hashers) { in newHasher()
64 hasher.putBytes(bytes); in newHasher()
70 for (Hasher hasher : hashers) { in newHasher()
71 hasher.putBytes(bytes, off, len); in newHasher()
77 for (Hasher hasher : hashers) { in newHasher()
78 hasher.putShort(s); in newHasher()
84 for (Hasher hasher : hashers) { in newHasher()
85 hasher.putInt(i); in newHasher()
[all …]
DHashingOutputStream.java33 private final Hasher hasher; field in HashingOutputStream
47 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingOutputStream()
51 hasher.putByte((byte) b); in write()
56 hasher.putBytes(bytes, off, len); in write()
65 return hasher.hash(); in hash()
DHashingInputStream.java33 private final Hasher hasher; field in HashingInputStream
43 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingInputStream()
54 hasher.putByte((byte) b); in read()
67 hasher.putBytes(bytes, off, numOfBytesRead); in read()
101 return hasher.hash(); in hash()
DAbstractNonStreamingHashFunction.java50 Hasher hasher = newHasher(len * 2); in hashUnencodedChars() local
52 hasher.putChar(input.charAt(i)); in hashUnencodedChars()
54 return hasher.hash(); in hashUnencodedChars()
/external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
Dserial_number_generator.py42 def hash_identifier(s, length, pad=True, hasher=md5, prefix='', argument
57 if not callable(hasher):
59 hasher = hasher.new
60 if length > 26 and hasher is md5:
70 h = hasher(s)
/external/libcxx/include/ext/
Dhash_set29 typedef Hash hasher;
42 explicit hash_set(size_type n = 193, const hasher& hf = hasher(),
47 size_type n = 193, const hasher& hf = hasher(),
76 hasher hash_funct() const;
115 typedef Hash hasher;
128 explicit hash_multiset(size_type n = 193, const hasher& hf = hasher(),
133 size_type n = 193, const hasher& hf = hasher(),
162 hasher hash_funct() const;
221 typedef _Hash hasher;
228 typedef __hash_table<value_type, hasher, key_equal, allocator_type> __table;
[all …]
Dhash_map29 typedef Hash hasher;
43 explicit hash_map(size_type n = 193, const hasher& hf = hasher(),
48 size_type n = 193, const hasher& hf = hasher(),
77 hasher hash_funct() const;
118 typedef Hash hasher;
132 explicit hash_multimap(size_type n = 193, const hasher& hf = hasher(),
137 size_type n = 193, const hasher& hf = hasher(),
167 hasher hash_funct() const;
484 typedef _Hash hasher;
493 typedef __hash_map_hasher<__value_type, hasher> __hasher;
[all …]
/external/libcxx/include/
Dunordered_set31 typedef Hash hasher;
48 is_nothrow_default_constructible<hasher>::value &&
51 explicit unordered_set(size_type n, const hasher& hf = hasher(),
56 size_type n = 0, const hasher& hf = hasher(),
64 is_nothrow_move_constructible<hasher>::value &&
69 const hasher& hf = hasher(), const key_equal& eql = key_equal(),
72 unordered_set(size_type n, const hasher& hf, const allocator_type& a); // C++14
77 const hasher& hf, const allocator_type& a); // C++14
80 const hasher& hf, const allocator_type& a); // C++14
87 is_nothrow_move_assignable<hasher>::value &&
[all …]
Dunordered_map31 typedef Hash hasher;
49 is_nothrow_default_constructible<hasher>::value &&
52 explicit unordered_map(size_type n, const hasher& hf = hasher(),
57 size_type n = 0, const hasher& hf = hasher(),
65 is_nothrow_move_constructible<hasher>::value &&
70 const hasher& hf = hasher(), const key_equal& eql = key_equal(),
73 : unordered_map(n, hasher(), key_equal(), a) {} // C++14
74 unordered_map(size_type n, const hasher& hf, const allocator_type& a)
78 : unordered_map(f, l, n, hasher(), key_equal(), a) {} // C++14
80 unordered_map(InputIterator f, InputIterator l, size_type n, const hasher& hf,
[all …]
/external/skia/bin/
Dsync-and-gyp109 hasher = hashlib.sha1() variable
119 hasher.update(os.environ.get(var, '') + '\n')
129 hasher.update(f.read())
133 hasher.update(filename + '\n')
135 gyp_hash = hasher.hexdigest()
/external/lzma/CPP/7zip/Compress/
DCodecExports.cpp201 static HRESULT CreateHasher2(UInt32 index, IHasher **hasher) in CreateHasher2() argument
204 *hasher = g_Hashers[index]->CreateHasher(); in CreateHasher2() local
205 if (*hasher) in CreateHasher2()
206 (*hasher)->AddRef(); in CreateHasher2()
257 STDMETHOD(CreateHasher)(UInt32 index, IHasher **hasher);
280 STDMETHODIMP CHashers::CreateHasher(UInt32 index, IHasher **hasher) in CreateHasher() argument
282 return ::CreateHasher2(index, hasher); in CreateHasher()
/external/skia/experimental/mojo/
Dgenerate.py21 hasher = hashlib.sha1()
24 hasher.update(f.read())
25 return hasher.hexdigest()
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dpkcs1.py341 hasher = method()
346 hasher.update(block)
349 hasher.update(message)
351 return hasher.digest()
/external/lzma/CPP/7zip/UI/Common/
DHashCalc.cpp91 CMyComPtr<IHasher> hasher; in SetMethods() local
93 RINOK(CreateHasher(EXTERNAL_CODECS_LOC_VARS ids[i], name, hasher)); in SetMethods()
94 if (!hasher) in SetMethods()
99 hasher.QueryInterface(IID_ICompressSetCoderProperties, &scp); in SetMethods()
105 UInt32 digestSize = hasher->GetDigestSize(); in SetMethods()
109 h.Hasher = hasher; in SetMethods()
/external/bison/lib/
Dhash.c71 Hash_hasher hasher; member
251 size_t n = table->hasher (key, table->n_buckets); in safe_hasher()
595 Hash_hasher hasher, Hash_comparator comparator, in hash_initialize() argument
600 if (hasher == NULL) in hash_initialize()
601 hasher = raw_hasher; in hash_initialize()
633 table->hasher = hasher; in hash_initialize()
962 new_table->hasher = table->hasher; in hash_rehash()
/external/skia/platform_tools/android/bin/
Ddownload_utils.py205 hasher = hashlib.sha1()
211 hasher.update(data)
214 return hasher.hexdigest()
/external/libcxx/test/std/containers/unord/unord.set/
Dtypes.pass.cpp41 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()
57 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()
/external/libcxx/test/std/containers/unord/unord.multiset/
Dtypes.pass.cpp41 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()
57 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()
/external/lzma/CPP/7zip/Common/
DCreateCoder.cpp363 CMyComPtr<IHasher> &hasher) in CreateHasher() argument
371 hasher = (IHasher *)codec.CreateHasher(); in CreateHasher()
378 if (!hasher && __externalCodecs) in CreateHasher()
385 return __externalCodecs->GetHashers->CreateHasher(i, &hasher); in CreateHasher()
/external/libcxx/test/std/containers/unord/unord.map/
Dtypes.pass.cpp42 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()
59 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), ""); in main()

12