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

1 2 3 4 5 6 7 8 910

  /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();
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-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-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...]
  /prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/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...]
  /external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
serial_number_generator.py 42 def hash_identifier(s, length, pad=True, hasher=md5, prefix='',
57 if not callable(hasher):
59 hasher = hasher.new
60 if length > 26 and hasher is md5:
70 h = hasher(s)
  /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/core/libmemunreachable/
Leak.h 45 std::hash<T> hasher; local
46 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_hash_set.h 59 typedef typename _Ht::hasher hasher; typedef in class:hash_set
74 hasher hash_funct() const { return _M_ht.hash_funct(); }
84 : _M_ht(0, hasher(), key_equal(), allocator_type()) {}
86 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {}
87 hash_set(size_type __n, const hasher& __hf)
90 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
93 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql)
95 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
108 : _M_ht(0, hasher(), key_equal(), allocator_type()
245 typedef typename _Ht::hasher hasher; typedef in class:hash_multiset
    [all...]
_hash_map.h 65 typedef typename _Ht::hasher hasher; typedef in class:hash_map
80 hasher hash_funct() const { return _M_ht.hash_funct(); }
88 hash_map() : _M_ht(0, hasher(), key_equal(), allocator_type()) {}
90 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {}
91 hash_map(size_type __n, const hasher& __hf)
93 hash_map(size_type __n, const hasher& __hf, const key_equal& __eql,
106 : _M_ht(0, hasher(), key_equal(), allocator_type())
110 : _M_ht(__n, hasher(), key_equal(), allocator_type())
114 const hasher& __hf
256 typedef typename _Ht::hasher hasher; typedef in class:hash_multimap
    [all...]
_unordered_map.h 57 typedef typename _Ht::hasher hasher; typedef in class:unordered_map
74 hasher hash_function() const { return _M_ht.hash_funct(); }
83 explicit unordered_map(size_type __n = 0, const hasher& __hf = hasher(),
96 size_type __n = 0, const hasher& __hf = hasher(),
103 size_type __n = 0, const hasher& __hf = hasher(),
110 size_type __n = 0, const hasher& __hf = hasher()
225 typedef typename _Ht::hasher hasher; typedef in class:unordered_multimap
    [all...]
_unordered_set.h 51 typedef typename _Ht::hasher hasher; typedef in class:unordered_set
68 hasher hash_function() const { return _M_ht.hash_funct(); }
77 explicit unordered_set(size_type __n = 0, const hasher& __hf = hasher(),
90 size_type __n = 0, const hasher& __hf = hasher(),
97 size_type __n = 0, const hasher& __hf = hasher(),
104 size_type __n = 0, const hasher& __hf = hasher()
201 typedef typename _Ht::hasher hasher; typedef in class:unordered_multiset
    [all...]
  /prebuilts/ndk/current/sources/cxx-stl/stlport/stlport/stl/
_hash_set.h 59 typedef typename _Ht::hasher hasher; typedef in class:hash_set
74 hasher hash_funct() const { return _M_ht.hash_funct(); }
84 : _M_ht(0, hasher(), key_equal(), allocator_type()) {}
86 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {}
87 hash_set(size_type __n, const hasher& __hf)
90 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
93 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql)
95 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
108 : _M_ht(0, hasher(), key_equal(), allocator_type()
245 typedef typename _Ht::hasher hasher; typedef in class:hash_multiset
    [all...]
_hash_map.h 65 typedef typename _Ht::hasher hasher; typedef in class:hash_map
80 hasher hash_funct() const { return _M_ht.hash_funct(); }
88 hash_map() : _M_ht(0, hasher(), key_equal(), allocator_type()) {}
90 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {}
91 hash_map(size_type __n, const hasher& __hf)
93 hash_map(size_type __n, const hasher& __hf, const key_equal& __eql,
106 : _M_ht(0, hasher(), key_equal(), allocator_type())
110 : _M_ht(__n, hasher(), key_equal(), allocator_type())
114 const hasher& __hf
256 typedef typename _Ht::hasher hasher; typedef in class:hash_multimap
    [all...]

Completed in 303 milliseconds

1 2 3 4 5 6 7 8 910