Home
last modified time | relevance | path

Searched refs:asBytes (Results 1 – 15 of 15) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8Test.java114 assertTrue(asBytes("").isValidUtf8()); in testSomeSequences()
117 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8()); in testSomeSequences()
120 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8()); in testSomeSequences()
123 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8()); in testSomeSequences()
126 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8()); in testSomeSequences()
129 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8()); in testSomeSequences()
174 private static ByteString asBytes(String s) { in asBytes() method in IsValidUtf8Test
/external/guava/guava/src/com/google/common/hash/
DHashCode.java78 public abstract byte[] asBytes(); in asBytes() method in HashCode
104 return asBytes(); in getBytesInternal()
136 public byte[] asBytes() { in asBytes() method in HashCode.IntHashCode
196 public byte[] asBytes() { in asBytes() method in HashCode.LongHashCode
270 public byte[] asBytes() { in asBytes() method in HashCode.BytesHashCode
375 byte[] bytes = asBytes(); in hashCode()
396 byte[] bytes = asBytes(); in toString()
DHashing.java369 byte[] nextBytes = hashCode.asBytes(); in combineOrdered()
394 byte[] nextBytes = hashCode.asBytes(); in combineUnordered()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java265 HashCode.fromInt(42).asBytes(), in testIntWriteBytesTo()
273 HashCode.fromLong(42).asBytes(), in testLongWriteBytesTo()
347 assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes())); in assertExpectedHashCode()
366 byte[] original = hash.asBytes(); in assertSideEffectFree()
367 byte[] mutated = hash.asBytes(); in assertSideEffectFree()
369 assertTrue(Arrays.equals(original, hash.asBytes())); in assertSideEffectFree()
374 byte[] hashBytes = hashCode.asBytes(); in assertReadableBytes()
DMurmur3Hash32Test.java64 return hasher.hash().asBytes(); in testParanoid()
DMurmur3Hash128Test.java74 return hasher.hash().asBytes(); in testParanoid()
DAbstractStreamingHasherTest.java173 byte[] expected = controlSink.hash().asBytes(); in testExhaustive()
DHashingTest.java344 byte[] md5Hash = Hashing.md5().hashLong(42L).asBytes(); in testConcatenatedHashFunction_makeHash()
345 byte[] murmur3Hash = Hashing.murmur3_32().hashLong(42L).asBytes(); in testConcatenatedHashFunction_makeHash()
DHashTestUtils.java423 Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8); in assertInvariants()
/external/guava/guava-tests/benchmark/com/google/common/hash/
DChecksumBenchmark.java88 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction()
89 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in runHashFunction()
DHashFunctionBenchmark.java58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in hashFunction()
DMessageDigestAlgorithmBenchmark.java57 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_API()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java53 public static byte[] asBytes(int[] x) in asBytes() method in GCMUtil
60 public static void asBytes(int[] x, byte[] z) in asBytes() method in GCMUtil
65 public static byte[] asBytes(long[] x) in asBytes() method in GCMUtil
72 public static void asBytes(long[] x, byte[] z) in asBytes() method in GCMUtil
106 GCMUtil.asBytes(t1, x); in multiply()
DTables1kGCMExponentiator.java40 GCMUtil.asBytes(y, output); in exponentiateX()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessageLite.java1164 private final byte[] asBytes; field in GeneratedMessageLite.SerializedForm
1172 asBytes = regularForm.toByteArray(); in SerializedForm()
1189 .mergeFrom(asBytes) in readResolve()