HomeSort by relevance Sort by last modified time
    Searched refs:asBytes (Results 1 - 25 of 110) sorted by null

1 2 3 4 5

  /external/guava/guava-tests/benchmark/com/google/common/hash/
ChecksumBenchmark.java 88 result ^= Hashing.crc32().hashInt(reps).asBytes()[0];
89 result ^= Hashing.adler32().hashInt(reps).asBytes()[0];
91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
HashFunctionBenchmark.java 58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
MessageDigestAlgorithmBenchmark.java 57 return algorithm.getHashFunction().hashBytes(input).asBytes();
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
IsValidUtf8Test.java 114 assertTrue(asBytes("").isValidUtf8());
117 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8());
120 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8());
123 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8());
126 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8());
129 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8());
174 private static ByteString asBytes(String s) {
  /external/guava/guava/src/com/google/common/hash/
HashCode.java 48 * Returns the first four bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to
56 * Returns the first eight bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to
65 * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
78 public abstract byte[] asBytes();
100 * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
104 return asBytes();
136 public byte[] asBytes() {
196 public byte[] asBytes() {
270 public byte[] asBytes() {
375 byte[] bytes = asBytes();
    [all...]
Hashing.java 369 byte[] nextBytes = hashCode.asBytes();
394 byte[] nextBytes = hashCode.asBytes();
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
Asn1DecoderTest.java 62 new byte[] {(byte) 0x98, 0x10, 0x21, 0, 0, 0, 0, 0, 0, 0}, node.asBytes());
104 new byte[] {(byte) 0x98, 0x10, 0x21, 0, 0, 0, 0, 0, 0, 0}, childOfFirst.asBytes());
117 new byte[] {(byte) 0x98, 0x10, 0x21, 0, 0, 0, 0, 0, 0, 1}, childOfSecond.asBytes());
141 new byte[] {(byte) 0x98, 0x10, 0x21, 0, 0, 0, 0, 0, 0, 0}, childOfFirst.asBytes());
169 assertArrayEquals(new byte[] {}, childOfFirst.asBytes());
181 assertArrayEquals(new byte[] {}, childOfSecond.asBytes());
202 assertArrayEquals(new byte[] {1, 2, 3}, node.asBytes());
Asn1NodeTest.java 148 assertArrayEquals(new byte[] {-1, 0, -1}, node.getChild(0x31).getChild(0x14).asBytes());
152 assertArrayEquals(new byte[] {-1, 0, -1}, node.getChild(0x14).asBytes());
271 node.asBytes();
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
EuiccSpecVersion.java 61 versionType = node.getChild(TAG_VERSION).asBytes();
64 node.getChild(TAG_ISD_R_APP_TEMPLATE, TAG_VERSION).asBytes();
EuiccCard.java 226 stripTrailingFs(profileNode.getChild(Tags.TAG_ICCID).asBytes());
265 stripTrailingFs(profileNode.getChild(Tags.TAG_ICCID).asBytes());
378 .getChild(Tags.TAG_EID).asBytes());
578 (byte[] response) -> parseResponse(response).getChild(Tags.TAG_CTX_0).asBytes(),
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/
Tables1kGCMExponentiator.java 40 GCMUtil.asBytes(y, output);
GCMUtil.java 53 public static byte[] asBytes(int[] x)
60 public static void asBytes(int[] x, byte[] z)
65 public static byte[] asBytes(long[] x)
72 public static void asBytes(long[] x, byte[] z)
106 GCMUtil.asBytes(t1, x);
  /external/guava/guava-tests/test/com/google/common/hash/
Murmur3Hash32Test.java 64 return hasher.hash().asBytes();
HashCodeTest.java 265 HashCode.fromInt(42).asBytes(),
273 HashCode.fromLong(42).asBytes(),
347 assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes()));
366 byte[] original = hash.asBytes();
367 byte[] mutated = hash.asBytes();
369 assertTrue(Arrays.equals(original, hash.asBytes()));
374 byte[] hashBytes = hashCode.asBytes();
Murmur3Hash128Test.java 74 return hasher.hash().asBytes();
AbstractStreamingHasherTest.java 173 byte[] expected = controlSink.hash().asBytes();
HashingTest.java 344 byte[] md5Hash = Hashing.md5().hashLong(42L).asBytes();
345 byte[] murmur3Hash = Hashing.murmur3_32().hashLong(42L).asBytes();
HashTestUtils.java 423 Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8);
  /frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
TimedStatement.java 97 hashStream.write(code1.asBytes());
98 hashStream.write(code2.asBytes());
  /tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
JarSigningTest.java 115 byte[] manifestSha1Bytes = Hashing.sha1().hashBytes(manifestTextBytes).asBytes();
173 byte[] manifestSha256Bytes = Hashing.sha256().hashBytes(manifestTextBytes).asBytes();
220 byte[] file1Sha = Hashing.sha256().hashBytes(file1Contents).asBytes();
252 file1Sha = Hashing.sha256().hashBytes(file1Contents).asBytes();
277 file1Sha = Hashing.sha256().hashBytes(file1Contents).asBytes();
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
EuiccCardTest.java     [all...]
  /prebuilts/go/darwin-x86/src/database/sql/
convert.go 319 if b, ok := asBytes(nil, sv); ok {
325 if b, ok := asBytes([]byte(*d)[:0], sv); ok {
467 func asBytes(buf []byte, rv reflect.Value) (b []byte, ok bool) {
  /prebuilts/go/linux-x86/src/database/sql/
convert.go 319 if b, ok := asBytes(nil, sv); ok {
325 if b, ok := asBytes([]byte(*d)[:0], sv); ok {
467 func asBytes(buf []byte, rv reflect.Value) (b []byte, ok bool) {
  /frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
Asn1Node.java 449 public byte[] asBytes() throws InvalidAsn1DataException {
  /external/protobuf/java/core/src/main/java/com/google/protobuf/
GeneratedMessageLite.java     [all...]

Completed in 1533 milliseconds

1 2 3 4 5