Searched refs:decodeHex (Results 1 - 25 of 31) sorted by relevance

12

/external/okhttp/okio/okio/src/test/java/okio/
H A DByteStringTest.java46 ByteString byteString = ByteString.decodeHex("ab12");
52 ByteString byteString = ByteString.decodeHex("ab12");
61 ByteString byteString = ByteString.decodeHex("000102");
63 assertTrue(byteString.equals(ByteString.decodeHex("000102")));
67 assertFalse(byteString.equals(ByteString.decodeHex("000201")));
98 ByteString byteString = ByteString.decodeHex("0102");
100 assertEquals(byteString.hashCode(), ByteString.decodeHex("0102").hashCode());
105 assertEquals(ByteString.decodeHex("6162"), ByteString.read(in, 2));
106 assertEquals(ByteString.decodeHex("63"), ByteString.read(in, 1));
174 ByteString.decodeHex("61626
233 @Test public void decodeHex() throws Exception { method in class:ByteStringTest
[all...]
H A DUtf8Test.java120 buffer.write(ByteString.decodeHex("f888808080"));
132 buffer.write(ByteString.decodeHex("df20"));
141 buffer.write(ByteString.decodeHex("f4908080"));
148 buffer.write(ByteString.decodeHex("eda080"));
151 buffer.write(ByteString.decodeHex("edbfbf"));
159 buffer.write(ByteString.decodeHex("c080"));
200 assertEquals(buffer.readByteString(), ByteString.decodeHex(hex));
204 Buffer buffer = new Buffer().write(ByteString.decodeHex(hex));
212 ByteString expectedUtf8 = ByteString.decodeHex(hex);
H A DGzipSourceTest.java155 .write(ByteString.decodeHex("1f8b08000000000000004b4c4a0600c241243503000000")); // 'abc'
170 .write(ByteString.decodeHex("1f8b08000000000000004b4c4a0600c241243503000000")); // 'abc'
191 private final ByteString gzipHeader = ByteString.decodeHex("1f8b0800000000000000");
194 private final ByteString deflated = ByteString.decodeHex(
197 private final ByteString gzipTrailer = ByteString.decodeHex(""
H A DBufferedSinkTest.java174 assertEquals(ByteString.decodeHex("74c999cb8872616ec999cb8c73c3b472"), data.readByteString());
180 assertEquals(ByteString.decodeHex("72616ec999"), data.readByteString());
186 assertEquals(ByteString.decodeHex("0000007400000259000002c800000072000000610000006e00000259"
193 assertEquals(ByteString.decodeHex("00000072000000610000006e00000259"), data.readByteString());
H A DBufferedSourceTest.java374 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259"
381 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259"
748 sink.write(ByteString.decodeHex("7f"));
751 sink.write(ByteString.decodeHex("dfbf"));
754 sink.write(ByteString.decodeHex("efbfbf"));
757 sink.write(ByteString.decodeHex("f48fbfbf"));
H A DBufferTest.java81 buffer.write(ByteString.decodeHex("a1b2c3d4e5f61a2b3c4d5e6f10203040"));
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
H A DWebSocketReaderTest.java52 data.write(ByteString.decodeHex("0a00")); // Empty ping.
62 data.write(ByteString.decodeHex("9a00")); // Empty ping, flag 1 set.
70 data.write(ByteString.decodeHex("aa00")); // Empty ping, flag 2 set.
78 data.write(ByteString.decodeHex("ca00")); // Empty ping, flag 3 set.
88 data.write(ByteString.decodeHex("8100"));
98 data.write(ByteString.decodeHex("8180"));
108 data.write(ByteString.decodeHex("8a7e007e"));
118 data.write(ByteString.decodeHex("810548656c6c6f")); // Hello
124 data.write(ByteString.decodeHex("818537fa213d7f9f4d5158")); // Hello
130 data.write(ByteString.decodeHex("81
[all...]
H A DRealWebSocketTest.java387 server2client.raw().write(ByteString.decodeHex("0a00")); // Invalid non-final ping frame.
400 server2client.raw().write(ByteString.decodeHex("0a00")); // Invalid non-final ping frame.
H A DWebSocketWriterTest.java318 ByteString expected = ByteString.decodeHex(hex);
/external/apache-http/src/org/apache/commons/codec/binary/
H A DHex.java59 public static byte[] decodeHex(char[] data) throws DecoderException { method in class:Hex
133 * @see #decodeHex(char[])
136 return decodeHex(new String(array).toCharArray());
151 * @see #decodeHex(char[])
156 return decodeHex(charArray);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
H A DHex.java50 public static byte[] decodeHex(String hexString) { method in class:Hex
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/hpackjson/
H A DCase.java47 return ByteString.decodeHex(wire);
/external/conscrypt/testing/src/main/java/org/conscrypt/
H A DTestUtils.java475 public static byte[] decodeHex(String encoded) throws IllegalArgumentException { method in class:TestUtils
476 return decodeHex(encoded.toCharArray());
486 public static byte[] decodeHex(String encoded, boolean allowSingleChar) throws IllegalArgumentException { method in class:TestUtils
487 return decodeHex(encoded.toCharArray(), allowSingleChar);
496 public static byte[] decodeHex(char[] encoded) throws IllegalArgumentException { method in class:TestUtils
497 return decodeHex(encoded, false);
507 public static byte[] decodeHex(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException { method in class:TestUtils
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
H A DHpackTest.java27 import static okio.ByteString.decodeHex;
154 bytesIn.write(decodeHex("f1e3c2e5f23a6ba0ab90f4ff"));
297 bytesIn.write(decodeHex("8080808008")); // idx = -2147483521
339 bytesIn.write(decodeHex("e1ffffff07")); // count = -2147483648
522 bytesIn.write(decodeHex("f1e3c2e5f23a6ba0ab90f4ff"));
556 bytesIn.write(decodeHex("a8eb10649cbf"));
594 bytesIn.write(decodeHex("25a849e95ba97d7f"));
597 bytesIn.write(decodeHex("25a849e95bb8e8b4bf"));
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
H A DECDHKeyAgreementTest.java83 private static final byte[] KAT_PUBLIC_KEY1_X509 = TestUtils.decodeHex(
87 private static final byte[] KAT_PRIVATE_KEY1_PKCS8 = TestUtils.decodeHex(
93 private static final byte[] KAT_PUBLIC_KEY2_X509 = TestUtils.decodeHex(
97 private static final byte[] KAT_PRIVATE_KEY2_PKCS8 = TestUtils.decodeHex(
104 TestUtils.decodeHex("4faa0594c0e773eb26c8df2163af2443e88aab9578b9e1f324bc61e42d222783");
H A DCipherBasicsTest.java252 return TestUtils.decodeHex(hex, /* allowSingleChar= */ true);
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
H A DWebSocketEcho.java41 webSocket.sendMessage(RequestBody.create(BINARY, ByteString.decodeHex("deadbeef")));
/external/okhttp/okio/okio/src/main/java/okio/
H A DByteString.java155 public static ByteString decodeHex(String hex) { method in class:ByteString
/external/owasp/sanitizer/lib/commons-codec-1.4/
H A Dcommons-codec-1.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/commons/ org/apache/commons/codec/ ...
/external/robolectric/v1/lib/main/
H A Dcommons-codec-1.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/commons/ org/apache/commons/codec/ ...
/external/caliper/lib/
H A Djersey-core-1.11.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/jersey-module-version META- ...
/external/guice/extensions/struts2/lib/
H A Dant-1.6.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/tools/ org/apache/tools/ant/ ...
/external/jarjar/lib/
H A Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/tools/ org/apache/tools/ant/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
H A Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/tools/ org/apache/tools/ant/ ...
/external/conscrypt/benchmark-android/
H A Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties.java package vogar ...

Completed in 594 milliseconds

12