/external/guava/guava-tests/test/com/google/common/hash/ |
D | AbstractByteHasherTest.java | 33 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 …]
|
D | HashingOutputStreamTest.java | 31 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 …]
|
D | HashingInputStreamTest.java | 35 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 …]
|
D | Murmur3Hash32Test.java | 62 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid() 63 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid() 64 return hasher.hash().asBytes(); in testParanoid()
|
D | Murmur3Hash128Test.java | 72 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/ |
D | AbstractCompositeHashFunction.java | 56 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 …]
|
D | HashingOutputStream.java | 33 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()
|
D | HashingInputStream.java | 33 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()
|
D | AbstractNonStreamingHashFunction.java | 50 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/ |
D | serial_number_generator.py | 42 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/ |
D | hash_set | 29 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 …]
|
D | hash_map | 29 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/ |
D | unordered_set | 31 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 …]
|
D | unordered_map | 31 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/ |
D | sync-and-gyp | 109 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/ |
D | CodecExports.cpp | 201 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/ |
D | generate.py | 21 hasher = hashlib.sha1() 24 hasher.update(f.read()) 25 return hasher.hexdigest()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/ |
D | pkcs1.py | 341 hasher = method() 346 hasher.update(block) 349 hasher.update(message) 351 return hasher.digest()
|
/external/lzma/CPP/7zip/UI/Common/ |
D | HashCalc.cpp | 91 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/ |
D | hash.c | 71 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/ |
D | download_utils.py | 205 hasher = hashlib.sha1() 211 hasher.update(data) 214 return hasher.hexdigest()
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | types.pass.cpp | 41 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/ |
D | types.pass.cpp | 41 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/ |
D | CreateCoder.cpp | 363 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/ |
D | types.pass.cpp | 42 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()
|