OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:hashFunction
(Results
1 - 25
of
235
) sorted by null
1
2
3
4
5
6
7
8
9
10
/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
;
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
...]
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
...]
HashingInputStreamTest.java
36
private
HashFunction
hashFunction
;
43
hashFunction
= EasyMock.createMock(
HashFunction
.class);
46
EasyMock.expect(
hashFunction
.newHasher()).andReturn(hasher).once();
47
EasyMock.replay(
hashFunction
);
53
HashingInputStream in = new HashingInputStream(
hashFunction
, buffer);
58
EasyMock.verify(
hashFunction
);
66
HashingInputStream in = new HashingInputStream(
hashFunction
, buffer);
75
EasyMock.verify(
hashFunction
);
[
all
...]
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
...]
/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];
ChecksumBenchmark.java
29
* Benchmarks for comparing {@link Checksum}s and {@link
HashFunction
}s that wrap {@link Checksum}s.
85
private byte runHashFunction(int reps,
HashFunction
hashFunction
) {
91
result ^=
hashFunction
.hashBytes(testBytes).asBytes()[0];
/external/caliper/caliper/src/main/java/com/google/caliper/model/
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/
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());
HashingInputStream.java
36
* Creates an input stream that hashes using the given {@link
HashFunction
} and delegates all data
41
public HashingInputStream(
HashFunction
hashFunction
, InputStream in) {
43
this.hasher = checkNotNull(
hashFunction
.newHasher());
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
TimedStatement.java
36
import com.google.common.hash.
HashFunction
;
71
HashFunction
hashFunction
= Hashing.sha512();
91
HashCode code1 =
hashFunction
.hashBytes(buffer);
93
HashCode code2 =
hashFunction
.hashBytes(buffer);
/external/guava/guava/src/com/google/common/io/
ByteSource.java
27
import com.google.common.hash.
HashFunction
;
295
public HashCode hash(
HashFunction
hashFunction
) throws IOException {
296
Hasher hasher =
hashFunction
.newHasher();
536
public HashCode hash(
HashFunction
hashFunction
) throws IOException {
537
return
hashFunction
.hashBytes(bytes);
Files.java
32
import com.google.common.hash.
HashFunction
;
584
* Computes the hash code of the {@code file} using {@code
hashFunction
}.
587
* @param
hashFunction
the hash function to use to hash the data
592
public static HashCode hash(File file,
HashFunction
hashFunction
)
594
return asByteSource(file).hash(
hashFunction
);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
BuildHelper.java
48
import com.google.common.hash.
HashFunction
;
[
all
...]
/prebuilts/devtools/tools/lib/
ant-tasks.jar
/prebuilts/gradle-plugin/com/android/tools/build/ant-tasks/24.4.0-beta3/
ant-tasks-24.4.0-beta3.jar
/prebuilts/gradle-plugin/com/android/tools/build/ant-tasks/24.4.0-beta6/
ant-tasks-24.4.0-beta6.jar
/prebuilts/tools/common/gradle-plugins/repository/com/android/tools/internal/internal-plugins/1.0/
internal-plugins-1.0.jar
/prebuilts/tools/common/gradle-plugins/repository/com/android/tools/internal/internal-plugins/1.1/
internal-plugins-1.1.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0/
common-25.0.0.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0-alpha1/
common-25.0.0-alpha1.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0-alpha3/
common-25.0.0-alpha3.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0-alpha5/
common-25.0.0-alpha5.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0-alpha7/
common-25.0.0-alpha7.jar
/prebuilts/gradle-plugin/com/android/tools/common/25.0.0-alpha9/
common-25.0.0-alpha9.jar
Completed in 365 milliseconds
1
2
3
4
5
6
7
8
9
10