/external/caliper/caliper/src/main/java/com/google/caliper/model/ |
PersistentHashing.java | 19 import com.google.common.hash.HashFunction; 28 static HashFunction getPersistentHashFunction() {
|
Host.java | 27 import com.google.common.hash.HashFunction; 54 initHash(builder.hashFunction); 72 private void initHash(HashFunction hashFunction) { 74 this.hash = hashFunction.hashObject(this, HostFunnel.INSTANCE).asInt(); 103 private HashFunction hashFunction = getPersistentHashFunction(); 119 @VisibleForTesting public Builder hashFunctionForTesting(HashFunction hashFunction) { 121 this.hashFunction = checkNotNull(hashFunction) [all...] |
/external/guava/guava/src/com/google/common/hash/ |
Hashing.java | 32 * Static methods to obtain {@link HashFunction} instances, and other static hashing-related 54 * for {@code minimumBits}, will return identically-behaving {@link HashFunction} instances. 60 public static HashFunction goodFastHash(int minimumBits) { 72 HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded]; 96 public static HashFunction murmur3_32(int seed) { 108 public static HashFunction murmur3_32() { 113 static final HashFunction MURMUR3_32 = new Murmur3_32HashFunction(0); 116 static final HashFunction GOOD_FAST_HASH_FUNCTION_32 = murmur3_32(GOOD_FAST_HASH_SEED); 127 public static HashFunction murmur3_128(int seed) [all...] |
AbstractCompositeHashFunction.java | 31 final HashFunction[] functions; 33 AbstractCompositeHashFunction(HashFunction... functions) { 34 for (HashFunction function : functions) {
|
HashFunction.java | 43 * the order they appear. Input data is never modified. {@link HashFunction} instances 98 * are convenient shortcut methods defined directly on {@link HashFunction} to make this 132 public interface HashFunction { 137 * HashFunction hf = Hashing.md5();
|
HashingOutputStream.java | 36 * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all 45 public HashingOutputStream(HashFunction hashFunction, OutputStream out) { 47 this.hasher = checkNotNull(hashFunction.newHasher());
|
/external/guava/guava-tests/test/com/google/common/hash/ |
HashFunctionEnum.java | 43 private final HashFunction hashFunction; 45 private HashFunctionEnum(HashFunction hashFunction) { 46 this.hashFunction = hashFunction; 49 HashFunction getHashFunction() { 50 return hashFunction;
|
HashingTest.java | 120 HashFunction hasher = Hashing.goodFastHash(i); 379 private static final ImmutableTable<HashFunction, String, String> KNOWN_HASHES = 380 ImmutableTable.<HashFunction, String, String>builder() 424 if (method.getReturnType().equals(HashFunction.class) // must return HashFunction 427 HashFunction hashFunction = (HashFunction) method.invoke(Hashing.class); 428 assertTrue("There should be at least 3 entries in KNOWN_HASHES for " + hashFunction, 429 KNOWN_HASHES.row(hashFunction).size() >= 3) [all...] |
ChecksumHashFunctionTest.java | 75 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); 83 HashFunction func = new ChecksumHashFunction(supplier, 32, toString);
|
HashTestUtils.java | 35 * Various utilities for testing {@link HashFunction}s. 58 static void verifyHashFunction(HashFn hashFunction, int hashbits, int expected) { 68 byte[] hash = hashFunction.hash(Arrays.copyOf(key, i), seed); 73 byte[] result = hashFunction.hash(hashes, 0); 245 static void checkNoFunnels(HashFunction function) { 288 static void checkAvalanche(HashFunction function, int trials, double epsilon) { 328 static void checkNo2BitCharacteristics(HashFunction function) { 375 static void check2BitAvalanche(HashFunction function, int trials, double epsilon) { 414 static void assertInvariants(HashFunction hashFunction) { [all...] |
HashingOutputStreamTest.java | 32 private HashFunction hashFunction; 38 hashFunction = EasyMock.createMock(HashFunction.class); 40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); 41 EasyMock.replay(hashFunction); 48 HashingOutputStream out = new HashingOutputStream(hashFunction, buffer); 52 EasyMock.verify(hashFunction); 60 HashingOutputStream out = new HashingOutputStream(hashFunction, buffer); 64 EasyMock.verify(hashFunction); [all...] |
MessageDigestHashFunctionTest.java | 42 private static final ImmutableMap<String, HashFunction> ALGORITHMS = 43 new ImmutableMap.Builder<String, HashFunction>()
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
HashFunctionBenchmark.java | 22 import com.google.common.hash.HashFunction; 27 * Benchmarks for comparing the various {@link HashFunction functions} that we provide. 32 * <li>hashFunctionEnum: The {@link HashFunction} to use for hashing. 54 @Benchmark int hashFunction(int reps) { 55 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); 58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
|
MessageDigestAlgorithmBenchmark.java | 22 import com.google.common.hash.HashFunction; 30 * Benchmarks for comparing {@link MessageDigest}s and {@link HashFunction}s that wrap 70 private final HashFunction hashFn; 71 Algorithm(String algorithmName, HashFunction hashFn) { 82 public HashFunction getHashFunction() {
|
/external/flatbuffers/include/flatbuffers/ |
hash.h | 69 typedef T (*HashFunction)(const char*); 70 HashFunction function; 83 inline NamedHashFunction<uint32_t>::HashFunction FindHashFunction32( 94 inline NamedHashFunction<uint64_t>::HashFunction FindHashFunction64(
|
/external/llvm/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 25 uint16_t HashFunction;
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/prebuilts/clang/host/linux-x86/clang-4479392/include/llvm/DebugInfo/DWARF/ |
DWARFAcceleratorTable.h | 28 uint16_t HashFunction;
|
/external/flatbuffers/src/ |
flathash.cpp | 55 flatbuffers::NamedHashFunction<uint32_t>::HashFunction hash_function32 = 57 flatbuffers::NamedHashFunction<uint64_t>::HashFunction hash_function64 =
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
LazyDelegateByteSource.java | 21 import com.google.common.hash.HashFunction; 138 public HashCode hash(HashFunction hashFunction) throws IOException { 139 return get().hash(hashFunction);
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
CloseableDelegateByteSource.java | 20 import com.google.common.hash.HashFunction; 144 public HashCode hash(HashFunction hashFunction) throws IOException { 145 return get().hash(hashFunction);
|