HomeSort by relevance Sort by last modified time
    Searched refs:hasher (Results 1 - 25 of 321) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/hash/
AbstractByteHasherTest.java 33 TestHasher hasher = new TestHasher(); // byte order insignificant here local
35 hasher.putByte((byte) 1);
36 hasher.putBytes(new byte[]{2, 3, 4, 5, 6});
37 hasher.putByte((byte) 7);
38 hasher.putBytes(new byte[]{});
39 hasher.putBytes(new byte[]{8});
40 hasher.assertBytes(expected);
44 TestHasher hasher = new TestHasher(); local
45 hasher.putShort((short) 0x0201);
46 hasher.assertBytes(new byte[]{1, 2})
50 TestHasher hasher = new TestHasher(); local
56 TestHasher hasher = new TestHasher(); local
62 TestHasher hasher = new TestHasher(); local
83 TestHasher hasher = new TestHasher(); local
89 TestHasher hasher = new TestHasher(); local
95 TestHasher hasher = new TestHasher(); local
    [all...]
HashingOutputStreamTest.java 31 private Hasher hasher; field in class:HashingOutputStreamTest
37 hasher = EasyMock.createMock(Hasher.class);
40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
46 EasyMock.expect(hasher.putByte((byte) b)).andReturn(hasher).once();
47 EasyMock.replay(hasher);
53 EasyMock.verify(hasher);
58 EasyMock.expect(hasher.putBytes(buf, 0, buf.length)).andReturn(hasher).once()
    [all...]
HashingInputStreamTest.java 35 private Hasher hasher; field in class:HashingInputStreamTest
42 hasher = EasyMock.createMock(Hasher.class);
46 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
51 EasyMock.expect(hasher.putByte((byte) 'y')).andReturn(hasher).once();
52 EasyMock.replay(hasher);
59 EasyMock.verify(hasher);
63 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length))
    [all...]
Murmur3Hash32Test.java 62 Hasher hasher = murmur3_32(seed).newHasher();
63 Funnels.byteArrayFunnel().funnel(input, hasher);
64 return hasher.hash().asBytes();
Murmur3Hash128Test.java 72 Hasher hasher = murmur3_128(seed).newHasher();
73 Funnels.byteArrayFunnel().funnel(input, hasher);
74 return hasher.hash().asBytes();
  /external/guava/guava/src/com/google/common/hash/
AbstractCompositeHashFunction.java 25 * {@code Hasher} objects of the delegate hash functions, and in the end, they are used by
26 * {@linkplain #makeHash(Hasher[])} that constructs the final {@code HashCode}.
41 * Constructs a {@code HashCode} from the {@code Hasher} objects of the functions. Each of them
46 /* protected */ abstract HashCode makeHash(Hasher[] hashers);
49 public Hasher newHasher() {
50 final Hasher[] hashers = new Hasher[functions.length];
54 return new Hasher() {
55 @Override public Hasher putByte(byte b) {
56 for (Hasher hasher : hashers)
    [all...]
HashingOutputStream.java 33 private final Hasher hasher; field in class:HashingOutputStream
47 this.hasher = checkNotNull(hashFunction.newHasher());
51 hasher.putByte((byte) b);
56 hasher.putBytes(bytes, off, len);
65 return hasher.hash();
HashingInputStream.java 33 private final Hasher hasher; field in class:HashingInputStream
43 this.hasher = checkNotNull(hashFunction.newHasher());
47 * Reads the next byte of data from the underlying input stream and updates the hasher with
54 hasher.putByte((byte) b);
60 * Reads the specified bytes of data from the underlying input stream and updates the hasher with
67 hasher.putBytes(bytes, off, numOfBytesRead);
101 return hasher.hash();
  /external/tensorflow/tensorflow/core/lib/core/
stringpiece_test.cc 69 StringPieceHasher hasher; local
76 EXPECT_TRUE(hasher(s1) != hasher(s2));
77 EXPECT_TRUE(hasher(s1) != hasher(s3));
78 EXPECT_TRUE(hasher(s1) != hasher(s4));
79 EXPECT_TRUE(hasher(s2) != hasher(s3));
80 EXPECT_TRUE(hasher(s2) != hasher(s4))
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/tr1/
unordered_set.h 61 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_set
67 const hasher& __hf = hasher(),
78 const hasher& __hf = hasher(),
110 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_multiset
116 const hasher& __hf = hasher(),
181 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_set
230 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_multiset
    [all...]
unordered_map.h 61 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_map
67 const hasher& __hf = hasher(),
78 const hasher& __hf = hasher(),
112 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_multimap
118 const hasher& __hf = hasher(),
188 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_map
240 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_multimap
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/tr1/
unordered_set.h 61 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_set
67 const hasher& __hf = hasher(),
78 const hasher& __hf = hasher(),
110 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_multiset
116 const hasher& __hf = hasher(),
181 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_set
230 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_multiset
    [all...]
unordered_map.h 61 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_map
67 const hasher& __hf = hasher(),
78 const hasher& __hf = hasher(),
112 typedef typename _Base::hasher hasher; typedef in class:tr1::__unordered_multimap
118 const hasher& __hf = hasher(),
188 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_map
240 typedef typename _Base::hasher hasher; typedef in class:tr1::unordered_multimap
    [all...]
  /frameworks/compile/mclinker/include/mcld/ADT/
HashBase.h 70 typedef HashFunctionTy hasher; typedef in class:mcld::HashTableImpl
88 hasher& hash() { return m_Hasher; }
90 const hasher& hash() const { return m_Hasher; }
124 hasher m_Hasher;
  /system/update_engine/scripts/update_payload/
payload.py 23 def _ReadInt(file_obj, size, is_unsigned, hasher=None):
34 hasher: an optional hasher to pass the value through
43 common.Read(file_obj, size, hasher=hasher))[0]
67 def ReadFromPayload(self, payload_file, hasher=None):
70 Reads the payload header from the |payload_file| and updates the |hasher|
76 hasher: an optional hasher to pass the value through
85 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher
    [all...]
  /device/generic/goldfish/dhcp/server/
lease.h 45 std::hash<T> hasher; local
46 seed ^= hasher(value) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
  /external/brotli/c/enc/
backward_references_inc.h 14 const BrotliEncoderParams* params, HasherHandle hasher, int* dist_cache,
35 FN(PrepareDistanceCache)(hasher, dist_cache);
45 FN(FindLongestMatch)(hasher, dictionary, dictionary_hash, ringbuffer,
61 FN(FindLongestMatch)(hasher, dictionary, dictionary_hash, ringbuffer,
90 FN(PrepareDistanceCache)(hasher, dist_cache);
98 Depending on the hasher implementation, it can push all positions
108 FN(StoreRange)(hasher, ringbuffer, ringbuffer_mask, range_start,
134 FN(Store)(hasher, ringbuffer, ringbuffer_mask, position);
143 FN(Store)(hasher, ringbuffer, ringbuffer_mask, position);
backward_references.h 31 const BrotliEncoderParams* params, HasherHandle hasher, int* dist_cache,
backward_references_hq.h 28 const BrotliEncoderParams* params, HasherHandle hasher, int* dist_cache,
35 const BrotliEncoderParams* params, HasherHandle hasher, int* dist_cache,
84 const int* dist_cache, HasherHandle hasher, ZopfliNode* nodes);
backward_references.c 50 #define FN(X) EXPAND_CAT(X, HASHER())
51 #define EXPORT_FN(X) EXPAND_CAT(X, EXPAND_CAT(PREFIX(), HASHER()))
54 #define HASHER() H2
57 #undef HASHER
59 #define HASHER() H3
62 #undef HASHER
64 #define HASHER() H4
67 #undef HASHER
69 #define HASHER() H5
72 #undef HASHER
    [all...]
  /system/core/libmemunreachable/
Leak.h 45 std::hash<T> hasher; local
46 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/bits/
unordered_set.h 104 typedef typename _Hashtable::hasher hasher; typedef in class:unordered_set
133 const hasher& __hf = hasher(),
155 const hasher& __hf = hasher(),
180 const hasher& __hf = hasher(),
491 hasher
709 typedef typename _Hashtable::hasher hasher typedef in class:unordered_multiset
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/bits/
unordered_set.h 104 typedef typename _Hashtable::hasher hasher; typedef in class:unordered_set
133 const hasher& __hf = hasher(),
155 const hasher& __hf = hasher(),
180 const hasher& __hf = hasher(),
491 hasher
709 typedef typename _Hashtable::hasher hasher typedef in class:unordered_multiset
    [all...]
  /external/lzma/CPP/7zip/Compress/
CodecExports.cpp 263 static HRESULT CreateHasher2(UInt32 index, IHasher **hasher)
266 *hasher = g_Hashers[index]->CreateHasher(); local
267 if (*hasher)
268 (*hasher)->AddRef();
318 STDMETHOD(CreateHasher)(UInt32 index, IHasher **hasher);
341 STDMETHODIMP CHashers::CreateHasher(UInt32 index, IHasher **hasher)
343 return ::CreateHasher2(index, hasher);
  /tools/dexter/slicer/export/slicer/
hash_table.h 65 Partition(Index size, const Hash& hasher);
79 explicit HashTable(const Hash& hasher = Hash()) : hasher_(hasher) {
108 HashTable<Key, T, Hash>::Partition::Partition(Index size, const Hash& hasher)
109 : hash_buckets_(size), hasher_(hasher) {

Completed in 1602 milliseconds

1 2 3 4 5 6 7 8 91011>>