Home
last modified time | relevance | path

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

12

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8Test.java102 assertTrue(asBytes("").isValidUtf8()); in testSomeSequences()
105 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8()); in testSomeSequences()
108 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8()); in testSomeSequences()
111 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8()); in testSomeSequences()
114 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8()); in testSomeSequences()
117 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8()); in testSomeSequences()
163 private static ByteString asBytes(String s) { in asBytes() method in IsValidUtf8Test
/external/guava/android/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java59 result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; in hasher()
69 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in hashFunction()
79 result ^= hashFunction.hashBytes(testBytes, 1, testBytes.length - 1).asBytes()[0]; in hashFunctionWithOffset()
DChecksumBenchmark.java95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction()
96 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
98 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in runHashFunction()
DMessageDigestAlgorithmBenchmark.java59 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_DIRECT()
65 return algorithm.getHashFunction().newHasher().putBytes(input).hash().asBytes(); in HASH_FUNCTION_VIA_HASHER()
/external/guava/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java59 result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; in hasher()
69 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in hashFunction()
79 result ^= hashFunction.hashBytes(testBytes, 1, testBytes.length - 1).asBytes()[0]; in hashFunctionWithOffset()
DChecksumBenchmark.java95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction()
96 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
98 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in runHashFunction()
DMessageDigestAlgorithmBenchmark.java59 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_DIRECT()
65 return algorithm.getHashFunction().newHasher().putBytes(input).hash().asBytes(); in HASH_FUNCTION_VIA_HASHER()
/external/guava/android/guava-tests/test/com/google/common/hash/
DHashCodeTest.java273 assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest)); in testIntWriteBytesTo()
279 assertTrue(Arrays.equals(HashCode.fromLong(42).asBytes(), dest)); in testLongWriteBytesTo()
349 assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes())); in assertExpectedHashCode()
369 byte[] original = hash.asBytes(); in assertSideEffectFree()
370 byte[] mutated = hash.asBytes(); in assertSideEffectFree()
372 assertTrue(Arrays.equals(original, hash.asBytes())); in assertSideEffectFree()
377 byte[] hashBytes = hashCode.asBytes(); in assertReadableBytes()
DMurmur3Hash32Test.java106 return murmur3_32(seed).hashBytes(input).asBytes(); in testParanoidHashBytes()
121 return hasher.hash().asBytes(); in testParanoid()
DMurmur3Hash128Test.java70 return hasher.hash().asBytes(); in testParanoid()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java273 assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest)); in testIntWriteBytesTo()
279 assertTrue(Arrays.equals(HashCode.fromLong(42).asBytes(), dest)); in testLongWriteBytesTo()
349 assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes())); in assertExpectedHashCode()
369 byte[] original = hash.asBytes(); in assertSideEffectFree()
370 byte[] mutated = hash.asBytes(); in assertSideEffectFree()
372 assertTrue(Arrays.equals(original, hash.asBytes())); in assertSideEffectFree()
377 byte[] hashBytes = hashCode.asBytes(); in assertReadableBytes()
DMurmur3Hash32Test.java106 return murmur3_32(seed).hashBytes(input).asBytes(); in testParanoidHashBytes()
121 return hasher.hash().asBytes(); in testParanoid()
DMurmur3Hash128Test.java70 return hasher.hash().asBytes(); in testParanoid()
/external/guava/guava/src/com/google/common/hash/
DHashCode.java74 public abstract byte[] asBytes(); in asBytes() method in HashCode
101 return asBytes(); in getBytesInternal()
133 public byte[] asBytes() { in asBytes() method in HashCode.IntHashCode
190 public byte[] asBytes() { in asBytes() method in HashCode.LongHashCode
265 public byte[] asBytes() { in asBytes() method in HashCode.BytesHashCode
/external/guava/android/guava/src/com/google/common/hash/
DHashCode.java74 public abstract byte[] asBytes(); in asBytes() method in HashCode
101 return asBytes(); in getBytesInternal()
133 public byte[] asBytes() { in asBytes() method in HashCode.IntHashCode
190 public byte[] asBytes() { in asBytes() method in HashCode.LongHashCode
265 public byte[] asBytes() { in asBytes() method in HashCode.BytesHashCode
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java33 public static byte[] asBytes(int[] x) in asBytes() method in GCMUtil
40 public static void asBytes(int[] x, byte[] z) in asBytes() method in GCMUtil
45 public static byte[] asBytes(long[] x) in asBytes() method in GCMUtil
52 public static void asBytes(long[] x, byte[] z) in asBytes() method in GCMUtil
109 GCMUtil.asBytes(t1, x); in multiply()
DBasicGCMExponentiator.java35 GCMUtil.asBytes(y, output); in exponentiateX()
DTables1kGCMExponentiator.java41 GCMUtil.asBytes(y, output); in exponentiateX()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java37 public static byte[] asBytes(int[] x) in asBytes() method in GCMUtil
44 public static void asBytes(int[] x, byte[] z) in asBytes() method in GCMUtil
49 public static byte[] asBytes(long[] x) in asBytes() method in GCMUtil
56 public static void asBytes(long[] x, byte[] z) in asBytes() method in GCMUtil
113 GCMUtil.asBytes(t1, x); in multiply()
DBasicGCMExponentiator.java39 GCMUtil.asBytes(y, output); in exponentiateX()
DTables1kGCMExponentiator.java45 GCMUtil.asBytes(y, output); in exponentiateX()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java37 public static byte[] asBytes(int[] x) in asBytes() method in GCMUtil
44 public static void asBytes(int[] x, byte[] z) in asBytes() method in GCMUtil
49 public static byte[] asBytes(long[] x) in asBytes() method in GCMUtil
56 public static void asBytes(long[] x, byte[] z) in asBytes() method in GCMUtil
113 GCMUtil.asBytes(t1, x); in multiply()
DBasicGCMExponentiator.java39 GCMUtil.asBytes(y, output); in exponentiateX()
DTables1kGCMExponentiator.java45 GCMUtil.asBytes(y, output); in exponentiateX()
/external/angle/src/libANGLE/
DBinaryStream.h273 const char *asBytes = reinterpret_cast<const char *>(v); in write() local
274 mData.insert(mData.end(), asBytes, asBytes + num * sizeof(T)); in write()

12