Home
last modified time | relevance | path

Searched refs:decodeHex (Results 1 – 25 of 29) sorted by relevance

12

/external/okhttp/okio/okio/src/test/java/okio/
DByteStringTest.java46 ByteString byteString = ByteString.decodeHex("ab12"); in getByte()
52 ByteString byteString = ByteString.decodeHex("ab12"); in getByteOutOfBounds()
61 ByteString byteString = ByteString.decodeHex("000102"); in equals()
63 assertTrue(byteString.equals(ByteString.decodeHex("000102"))); in equals()
67 assertFalse(byteString.equals(ByteString.decodeHex("000201"))); in equals()
98 ByteString byteString = ByteString.decodeHex("0102"); in testHashCode()
100 assertEquals(byteString.hashCode(), ByteString.decodeHex("0102").hashCode()); in testHashCode()
105 assertEquals(ByteString.decodeHex("6162"), ByteString.read(in, 2)); in read()
106 assertEquals(ByteString.decodeHex("63"), ByteString.read(in, 1)); in read()
174 ByteString.decodeHex("616263").write(out); in write()
[all …]
DUtf8Test.java120 buffer.write(ByteString.decodeHex("f888808080")); in readTooLargeCodepointReturnsReplacementCharacter()
132 buffer.write(ByteString.decodeHex("df20")); in readNonContinuationBytesReturnsReplacementCharacter()
141 buffer.write(ByteString.decodeHex("f4908080")); in readCodePointBeyondUnicodeMaximum()
148 buffer.write(ByteString.decodeHex("eda080")); in readSurrogateCodePoint()
151 buffer.write(ByteString.decodeHex("edbfbf")); in readSurrogateCodePoint()
159 buffer.write(ByteString.decodeHex("c080")); in readOverlongCodePoint()
200 assertEquals(buffer.readByteString(), ByteString.decodeHex(hex)); in assertCodePointEncoded()
204 Buffer buffer = new Buffer().write(ByteString.decodeHex(hex)); in assertCodePointDecoded()
212 ByteString expectedUtf8 = ByteString.decodeHex(hex); in assertStringEncoded()
DGzipSourceTest.java155 .write(ByteString.decodeHex("1f8b08000000000000004b4c4a0600c241243503000000")); // 'abc' in gunzipExhaustsSource()
170 .write(ByteString.decodeHex("1f8b08000000000000004b4c4a0600c241243503000000")); // 'abc' in gunzipThrowsIfSourceIsNotExhausted()
191 private final ByteString gzipHeader = ByteString.decodeHex("1f8b0800000000000000");
194 private final ByteString deflated = ByteString.decodeHex(
197 private final ByteString gzipTrailer = ByteString.decodeHex(""
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());
DBufferedSourceTest.java374 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259" in readSpecificCharsetPartial()
381 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259" in readSpecificCharset()
748 sink.write(ByteString.decodeHex("7f")); in codePoints()
751 sink.write(ByteString.decodeHex("dfbf")); in codePoints()
754 sink.write(ByteString.decodeHex("efbfbf")); in codePoints()
757 sink.write(ByteString.decodeHex("f48fbfbf")); in codePoints()
DBufferTest.java81 buffer.write(ByteString.decodeHex("a1b2c3d4e5f61a2b3c4d5e6f10203040")); in toStringOnSmallBufferIncludesContents()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketReaderTest.java50 data.write(ByteString.decodeHex("0a00")); // Empty ping. in controlFramesMustBeFinal()
60 data.write(ByteString.decodeHex("9a00")); // Empty ping, flag 1 set. in reservedFlagsAreUnsupported()
68 data.write(ByteString.decodeHex("aa00")); // Empty ping, flag 2 set. in reservedFlagsAreUnsupported()
76 data.write(ByteString.decodeHex("ca00")); // Empty ping, flag 3 set. in reservedFlagsAreUnsupported()
86 data.write(ByteString.decodeHex("8100")); in clientSentFramesMustBeMasked()
96 data.write(ByteString.decodeHex("8180")); in serverSentFramesMustNotBeMasked()
106 data.write(ByteString.decodeHex("8a7e007e")); in controlFramePayloadMax()
116 data.write(ByteString.decodeHex("810548656c6c6f")); // Hello in clientSimpleHello()
122 data.write(ByteString.decodeHex("818537fa213d7f9f4d5158")); // Hello in serverSimpleHello()
128 data.write(ByteString.decodeHex("817E000548656c6c6f")); // Hello in clientFramePayloadShort()
[all …]
DRealWebSocketTest.java273 server2client.write(ByteString.decodeHex("0a00")); // Invalid non-final ping frame. in protocolErrorBeforeCloseSendsClose()
285 server2client.write(ByteString.decodeHex("0a00")); // Invalid non-final ping frame. in protocolErrorAfterCloseDoesNotSendClose()
DWebSocketWriterTest.java311 ByteString expected = ByteString.decodeHex(hex); in assertData()
/external/apache-http/src/org/apache/commons/codec/binary/
DHex.java59 public static byte[] decodeHex(char[] data) throws DecoderException { in decodeHex() method in Hex
136 return decodeHex(new String(array).toCharArray()); in decode()
156 return decodeHex(charArray); in decode()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHpackTest.java27 import static okio.ByteString.decodeHex;
154 bytesIn.write(decodeHex("f1e3c2e5f23a6ba0ab90f4ff")); in huffmanDecodingSupported()
297 bytesIn.write(decodeHex("8080808008")); // idx = -2147483521 in readIndexedHeaderFieldInsidiousIndex()
339 bytesIn.write(decodeHex("e1ffffff07")); // count = -2147483648 in readHeaderTableStateChangeInsidiousMaxHeaderByteCount()
522 bytesIn.write(decodeHex("f1e3c2e5f23a6ba0ab90f4ff")); in firstRequestWithHuffman()
556 bytesIn.write(decodeHex("a8eb10649cbf")); in secondRequestWithHuffman()
594 bytesIn.write(decodeHex("25a849e95ba97d7f")); in thirdRequestWithHuffman()
597 bytesIn.write(decodeHex("25a849e95bb8e8b4bf")); in thirdRequestWithHuffman()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DHex.java50 public static byte[] decodeHex(String hexString) { in decodeHex() method in Hex
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/hpackjson/
DCase.java47 return ByteString.decodeHex(wire); in getWire()
/external/okhttp/okio/okio/src/main/java/okio/
DByteString.java155 public static ByteString decodeHex(String hex) { in decodeHex() method in ByteString
/external/okhttp/okio/
DREADME.md78 private static final ByteString PNG_HEADER = ByteString.decodeHex("89504e470d0a1a0a");
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.apache.commons.codec_1.3.0.v20100518-1140.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/owasp/sanitizer/lib/commons-codec-1.4/
Dcommons-codec-1.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/robolectric/v1/lib/main/
Dcommons-codec-1.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/caliper/lib/
Djersey-core-1.11.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/jersey-module- ...
/external/guice/extensions/struts2/lib/
Dant-1.6.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/jarjar/lib/
Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/robolectric/v3/runtime/
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12