/external/guava/guava/src/com/google/common/hash/ |
H A D | Hasher.java | 30 public interface Hasher extends Sink { interface in inherits:Sink 31 @Override Hasher putByte(byte b); 32 @Override Hasher putBytes(byte[] bytes); 33 @Override Hasher putBytes(byte[] bytes, int off, int len); 34 @Override Hasher putShort(short s); 35 @Override Hasher putInt(int i); 36 @Override Hasher putLong(long l); 40 @Override Hasher putFloat(float f); 44 @Override Hasher putDouble(double d); 48 @Override Hasher putBoolea [all...] |
H A D | AbstractCompositeHashFunction.java | 9 * {@code Hasher} objects of the delegate hash functions, and in the end, they are used by 10 * {@linkplain #makeHash(Hasher[])} that constructs the final {@code HashCode}. 22 * Constructs a {@code HashCode} from the {@code Hasher} objects of the functions. Each of them 27 /* protected */ abstract HashCode makeHash(Hasher[] hashers); 30 public Hasher newHasher() { 31 final Hasher[] hashers = new Hasher[functions.length]; 35 return new Hasher() { 36 @Override public Hasher putByte(byte b) { 37 for (Hasher hashe [all...] |
H A D | AbstractHasher.java | 24 * {@link #putString(CharSequence, Charset)} as prescribed by {@link Hasher}. 28 abstract class AbstractHasher implements Hasher { 29 @Override public final Hasher putBoolean(boolean b) { 33 @Override public final Hasher putDouble(double d) { 37 @Override public final Hasher putFloat(float f) { 41 @Override public Hasher putString(CharSequence charSequence) { 46 @Override public Hasher putString(CharSequence charSequence, Charset charset) {
|
H A D | AbstractNonStreamingHashFunction.java | 20 public Hasher newHasher() { 25 public Hasher newHasher(int expectedInputSize) { 31 * In-memory stream-based implementation of Hasher. 42 public Hasher putByte(byte b) { 48 public Hasher putBytes(byte[] bytes) { 58 public Hasher putBytes(byte[] bytes, int off, int len) { 64 public Hasher putShort(short s) { 71 public Hasher putInt(int i) { 80 public Hasher putLong(long l) { 88 public Hasher putCha [all...] |
H A D | MessageDigestHashFunction.java | 58 @Override public Hasher newHasher() { 62 private static class MessageDigestHasher implements Hasher { 72 @Override public Hasher putByte(byte b) { 78 @Override public Hasher putBytes(byte[] bytes) { 84 @Override public Hasher putBytes(byte[] bytes, int off, int len) { 91 @Override public Hasher putShort(short s) { 99 @Override public Hasher putInt(int i) { 107 @Override public Hasher putLong(long l) { 115 @Override public Hasher putFloat(float f) { 123 @Override public Hasher putDoubl [all...] |
H A D | HashFunction.java | 33 * multibyte values (via {@link Hasher}), but this is merely a convenience; these are 91 * {@link Hasher}. Obtain a new hasher from the hash function using {@link #newHasher}, 92 * "push" the relevant data into it using methods like {@link Hasher#putBytes(byte[])}, 93 * and finally ask for the {@code HashCode} when finished using {@link Hasher#hash}. (See 100 * <p>Hasher accepts primitive data types, but can also accept any Object of type {@code 102 * from that object into the function. (See {@linkplain Hasher#putObject an example} of 134 * Hasher} instance that is ready to receive data. Example: <pre> {@code 142 Hasher newHasher(); 150 Hasher newHasher(int expectedInputSize);
|
H A D | AbstractStreamingHashFunction.java | 28 * {@link Hasher#hash}. 56 @Override public Hasher newHasher(int expectedInputSize) { 62 * A convenience base class for implementors of {@code Hasher}; handles accumulating data 136 public final Hasher putBytes(byte[] bytes) { 141 public final Hasher putBytes(byte[] bytes, int off, int len) { 145 private final Hasher putBytes(ByteBuffer readBuffer) { 171 public final Hasher putString(CharSequence charSequence) { 179 public final Hasher putByte(byte b) { 186 public final Hasher putShort(short s) { 193 public final Hasher putCha [all...] |
H A D | Murmur3_32HashFunction.java | 40 @Override public Hasher newHasher() {
|
H A D | Hashing.java | 283 HashCode makeHash(Hasher[] hashers) { 286 for (Hasher hasher : hashers) {
|
H A D | Murmur3_128HashFunction.java | 42 @Override public Hasher newHasher() {
|
/external/chromium_org/chrome/browser/profile_resetter/ |
H A D | jtl_foundation.cc | 13 Hasher::Hasher(const std::string& seed) : hmac_(crypto::HMAC::SHA256) { function in class:jtl_foundation::Hasher 18 Hasher::~Hasher() {} 20 std::string Hasher::GetHash(const std::string& input) const { 37 bool Hasher::IsHash(const std::string& maybe_hash) {
|
H A D | jtl_foundation.h | 176 class Hasher { class in namespace:jtl_foundation 178 explicit Hasher(const std::string& seed); 179 ~Hasher(); 188 DISALLOW_COPY_AND_ASSIGN(Hasher);
|
H A D | jtl_interpreter.cc | 38 ExecutionContext(const jtl_foundation::Hasher* hasher, 95 const jtl_foundation::Hasher* hasher_; 670 DCHECK(jtl_foundation::Hasher::IsHash(*out)); 710 jtl_foundation::Hasher hasher(hasher_seed_); 731 jtl_foundation::Hasher(hasher_seed_).GetHash(unhashed_key); 738 jtl_foundation::Hasher(hasher_seed_).GetHash(unhashed_key);
|
H A D | jtl_interpreter_unittest.cc | 32 return jtl_foundation::Hasher(seed).GetHash(input);
|
H A D | automatic_profile_resetter_unittest.cc | 212 return jtl_foundation::Hasher(kTestHashSeed).GetHash(input);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | Murmur3Hash32Test.java | 33 Hasher hasher = murmur3_32(seed).newHasher();
|
H A D | AbstractNonStreamingHashFunctionTest.java | 26 List<Hasher> hashers = ImmutableList.of( 51 public Hasher newHasher() {
|
H A D | Murmur3Hash128Test.java | 62 Hasher hasher = murmur3_128(seed).newHasher();
|
H A D | AbstractStreamingHasherTest.java | 131 Hasher controlSink = control.newHasher(1024); 133 Iterable<Hasher> sinksAndControl = Iterables.concat(
|
/external/chromium_org/chrome/tools/profile_reset/ |
H A D | jtl_compiler.cc | 34 CHECK(jtl::Hasher::IsHash(hash)); 98 const jtl::Hasher& hasher, 139 !jtl::Hasher::IsHash(hash_value)) 208 jtl::Hasher hasher(hash_seed);
|
H A D | jtl_compiler_unittest.cc | 22 return jtl_foundation::Hasher(kTestHashSeed).GetHash(input);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
H A D | html.py | 7 from coverage.misc import CoverageException, Hasher namespace 75 m = Hasher() 107 m = Hasher()
|
H A D | misc.py | 86 class Hasher(object): class in inherits:object
|
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
H A D | backward_references.cc | 26 template<typename Hasher> 33 Hasher* hasher,
|
/external/owasp/sanitizer/distrib/lib/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |