/external/guava/guava-tests/benchmark/com/google/common/hash/ |
H A D | ChecksumBenchmark.java | 43 private byte[] testBytes; field in class:ChecksumBenchmark 47 testBytes = new byte[size]; 48 new Random(RANDOM_SEED).nextBytes(testBytes); 61 checksum.update(testBytes); 77 checksum.update(testBytes); 91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
|
H A D | HashFunctionBenchmark.java | 47 private byte[] testBytes; field in class:HashFunctionBenchmark 50 testBytes = new byte[size]; 51 random.nextBytes(testBytes); 58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
|
H A D | MessageDigestAlgorithmBenchmark.java | 90 private byte[] testBytes; field in class:MessageDigestAlgorithmBenchmark 93 testBytes = new byte[size]; 94 new Random(RANDOM_SEED).nextBytes(testBytes); 102 result ^= hashMethod.hash(algorithm, testBytes)[0];
|
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | HashingInputStreamTest.java | 37 private static final byte[] testBytes = new byte[] {'y', 'a', 'm', 's'}; field in class:HashingInputStreamTest 44 buffer = new ByteArrayInputStream(testBytes); 63 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length))) 71 for (int i = 0; i < testBytes.length; i++) { 72 assertEquals(testBytes[i], buf[i]); 80 EasyMock.expect(hasher.putBytes(aryEq(Arrays.copyOfRange(testBytes, 0, 3)), eq(0), eq(3))) 89 assertEquals(testBytes[i], buf[i]); 99 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes [all...] |
H A D | AbstractByteHasherTest.java | 32 public void testBytes() { method in class:AbstractByteHasherTest
|
H A D | AbstractStreamingHasherTest.java | 43 public void testBytes() { method in class:AbstractStreamingHasherTest
|
/external/guava/guava-tests/test/com/google/common/base/ |
H A D | Utf8Test.java | 166 testBytes(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); 172 testBytes(2, EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT); 178 testBytes(3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT); 281 private static void testBytes(int numBytes, long expectedCount) { method in class:Utf8Test 282 testBytes(numBytes, expectedCount, 0, -1); 297 private static void testBytes(int numBytes, long expectedCount, long start, method in class:Utf8Test
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
H A D | IsValidUtf8TestUtil.java | 189 static void testBytes(int numBytes, long expectedCount) method in class:IsValidUtf8TestUtil 191 testBytes(numBytes, expectedCount, 0, -1); 205 static void testBytes(int numBytes, long expectedCount, long start, long lim) method in class:IsValidUtf8TestUtil 301 * Variation of {@link #testBytes} that does less allocation using the
|
/external/lzma/C/ |
H A D | 7zArcIn.c | 171 static int TestSignatureCandidate(Byte *testBytes)
argument 175 if (testBytes[i] != k7zSignature[i])
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | nucnvtst.c | 5318 static const uint8_t testBytes[] = { 0x95, 0xcf, 0x8a, 0xb7, 0x0d, 0x0a, 0x00 }; local 5319 const char *testBuffer = (const char *)testBytes; 5320 const char *testEnd = (const char *)testBytes + sizeof(testBytes);
|