/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()
|
/external/tensorflow/tensorflow/core/lib/hash/ |
D | hash_test.cc | 87 StringPieceHasher hasher; in TEST() local 94 EXPECT_TRUE(hasher(s1) != hasher(s2)); in TEST() 95 EXPECT_TRUE(hasher(s1) != hasher(s3)); in TEST() 96 EXPECT_TRUE(hasher(s1) != hasher(s4)); in TEST() 97 EXPECT_TRUE(hasher(s2) != hasher(s3)); in TEST() 98 EXPECT_TRUE(hasher(s2) != hasher(s4)); in TEST() 99 EXPECT_TRUE(hasher(s3) != hasher(s4)); in TEST() 101 EXPECT_TRUE(hasher(s1) == hasher(s1)); in TEST() 102 EXPECT_TRUE(hasher(s2) == hasher(s2)); in TEST() 103 EXPECT_TRUE(hasher(s3) == hasher(s3)); in TEST() [all …]
|
/external/v8/src/ |
D | string-hasher-inl.h | 119 StringHasher hasher(length, seed); in HashSequentialString() 120 if (!hasher.has_trivial_hash()) hasher.AddCharacters(chars, length); in HashSequentialString() 121 return hasher.GetHashField(); in HashSequentialString() 128 IteratingStringHasher hasher(string->length(), seed); in Hash() 130 if (hasher.has_trivial_hash()) return hasher.GetHashField(); in Hash() 131 ConsString* cons_string = String::VisitFlat(&hasher, string); in Hash() 132 if (cons_string == nullptr) return hasher.GetHashField(); in Hash() 133 hasher.VisitConsString(cons_string); in Hash() 134 return hasher.GetHashField(); in Hash()
|
/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; 472 typedef _Hash hasher; 481 typedef __hash_map_hasher<__value_type, hasher> __hasher; [all …]
|
/external/libcxx/include/ |
D | unordered_set | 31 typedef Hash hasher; 51 is_nothrow_default_constructible<hasher>::value && 54 explicit unordered_set(size_type n, const hasher& hf = hasher(), 59 size_type n = 0, const hasher& hf = hasher(), 67 is_nothrow_move_constructible<hasher>::value && 72 const hasher& hf = hasher(), const key_equal& eql = key_equal(), 75 unordered_set(size_type n, const hasher& hf, const allocator_type& a); // C++14 80 const hasher& hf, const allocator_type& a); // C++14 83 const hasher& hf, const allocator_type& a); // C++14 90 is_nothrow_move_assignable<hasher>::value && [all …]
|
D | unordered_map | 31 typedef Hash hasher; 52 is_nothrow_default_constructible<hasher>::value && 55 explicit unordered_map(size_type n, const hasher& hf = hasher(), 60 size_type n = 0, const hasher& hf = hasher(), 68 is_nothrow_move_constructible<hasher>::value && 73 const hasher& hf = hasher(), const key_equal& eql = key_equal(), 76 : unordered_map(n, hasher(), key_equal(), a) {} // C++14 77 unordered_map(size_type n, const hasher& hf, const allocator_type& a) 81 : unordered_map(f, l, n, hasher(), key_equal(), a) {} // C++14 83 unordered_map(InputIterator f, InputIterator l, size_type n, const hasher& hf, [all …]
|
/external/python/rsa/rsa/ |
D | pkcs1_v2.py | 31 def mgf1(seed, length, hasher='SHA-1'): argument 54 hash_length = pkcs1.HASH_METHODS[hasher]().digest_size 68 hasher=hasher, 78 method_name=hasher,
|
/external/brotli/c/enc/ |
D | backward_references_inc.h | 14 HasherHandle hasher, int* dist_cache, size_t* last_insert_len, in EXPORT_FN() 34 FN(PrepareDistanceCache)(hasher, dist_cache); in EXPORT_FN() 44 FN(FindLongestMatch)(hasher, ¶ms->dictionary, in EXPORT_FN() 60 FN(FindLongestMatch)(hasher, in EXPORT_FN() 90 FN(PrepareDistanceCache)(hasher, dist_cache); in EXPORT_FN() 108 FN(StoreRange)(hasher, ringbuffer, ringbuffer_mask, range_start, in EXPORT_FN() 134 FN(Store)(hasher, ringbuffer, ringbuffer_mask, position); in EXPORT_FN() 143 FN(Store)(hasher, ringbuffer, ringbuffer_mask, position); in EXPORT_FN()
|
D | backward_references_hq.h | 28 HasherHandle hasher, int* dist_cache, size_t* last_insert_len, 34 HasherHandle hasher, int* dist_cache, size_t* last_insert_len, 81 const int* dist_cache, HasherHandle hasher, ZopfliNode* nodes);
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/docker/scripts/llvm_checksum/ |
D | llvm_checksum.py | 111 hasher = hash_algo() 112 hasher.update(content) 113 file_digest = hasher.hexdigest() 122 hasher = hash_algo() 125 hasher.update(file_path) 126 hasher.update(file_digest) 127 project_checksums[proj.name] = hasher.hexdigest()
|
/external/google-fruit/include/fruit/impl/util/ |
D | hash_helpers.defn.h | 43 …HashSetWithArenaAllocatorAndCustomFunctors(size_t capacity, MemoryPool& memory_pool, Hasher hasher, in createHashSetWithArenaAllocatorAndCustomFunctors() argument 45 …return HashSetWithArenaAllocator<T, Hasher, EqualityComparator>(capacity, hasher, equality_compara… in createHashSetWithArenaAllocatorAndCustomFunctors() 68 …HashMapWithArenaAllocatorAndCustomFunctors(size_t capacity, MemoryPool& memory_pool, Hasher hasher, in createHashMapWithArenaAllocatorAndCustomFunctors() argument 71 … capacity, hasher, equality_comparator, ArenaAllocator<std::pair<const Key, Value>>(memory_pool)); in createHashMapWithArenaAllocatorAndCustomFunctors()
|
/external/lzma/CPP/7zip/Compress/ |
D | CodecExports.cpp | 263 static HRESULT CreateHasher2(UInt32 index, IHasher **hasher) in CreateHasher2() argument 266 *hasher = g_Hashers[index]->CreateHasher(); in CreateHasher2() local 267 if (*hasher) in CreateHasher2() 268 (*hasher)->AddRef(); in CreateHasher2() 318 STDMETHOD(CreateHasher)(UInt32 index, IHasher **hasher); 341 STDMETHODIMP CHashers::CreateHasher(UInt32 index, IHasher **hasher) in CreateHasher() argument 343 return ::CreateHasher2(index, hasher); in CreateHasher()
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | merge.pass.cpp | 96 struct hasher in main() struct 98 hasher() = default; in main() 106 typedef std::unordered_multimap<Counter<int>, int, hasher, equal> second_map_type; in main() 107 typedef std::unordered_map<Counter<int>, int, hasher, equal> third_map_type; in main()
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/ |
D | merge.pass.cpp | 96 struct hasher in main() struct 98 hasher() = default; in main() 106 typedef std::unordered_map<Counter<int>, int, hasher, equal> second_map_type; in main() 107 typedef std::unordered_multimap<Counter<int>, int, hasher, equal> third_map_type; in main()
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | merge.pass.cpp | 96 struct hasher in main() struct 98 hasher() = default; in main() 103 typedef std::unordered_set<Counter<int>, hasher, equal> second_set_type; in main() 104 typedef std::unordered_multiset<Counter<int>, hasher, equal> third_set_type; in main()
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | merge.pass.cpp | 96 struct hasher in main() struct 98 hasher() = default; in main() 103 typedef std::unordered_multiset<Counter<int>, hasher, equal> second_set_type; in main() 104 typedef std::unordered_set<Counter<int>, hasher, equal> third_set_type; in main()
|
/external/lzma/CPP/7zip/UI/Common/ |
D | HashCalc.cpp | 81 CMyComPtr<IHasher> hasher; in SetMethods() local 83 RINOK(CreateHasher(EXTERNAL_CODECS_LOC_VARS ids[i], name, hasher)); in SetMethods() 84 if (!hasher) in SetMethods() 89 hasher.QueryInterface(IID_ICompressSetCoderProperties, &scp); in SetMethods() 93 UInt32 digestSize = hasher->GetDigestSize(); in SetMethods() 97 h.Hasher = hasher; in SetMethods()
|