Home
last modified time | relevance | path

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

12

/external/okhttp/okio/okio/src/test/java/okio/
DByteStringTest.java73 ByteString byteString = ByteString.encodeUtf8(bronzeHorseman); in utf8()
81 ByteString.encodeUtf8("Hello, world!").md5().hex()); in md5()
83 ByteString.encodeUtf8("One Two Three").md5().hex()); in md5()
85 ByteString.encodeUtf8(bronzeHorseman).md5().hex()); in md5()
90 ByteString.encodeUtf8("Hello, world!").sha256().hex()); in sha256()
92 ByteString.encodeUtf8("One Two Three").sha256().hex()); in sha256()
94 ByteString.encodeUtf8(bronzeHorseman).sha256().hex()); in sha256()
112 assertEquals(ByteString.encodeUtf8("ab"), ByteString.read(in, 2).toAsciiLowercase()); in readAndToLowercase()
113 assertEquals(ByteString.encodeUtf8("c"), ByteString.read(in, 1).toAsciiLowercase()); in readAndToLowercase()
118 ByteString s = ByteString.encodeUtf8("a1_+"); in toAsciiLowerCaseNoUppercase()
[all …]
DBufferedSourceTest.java475 assertEquals(-1, source.indexOf(ByteString.encodeUtf8("flop"))); in indexOfByteString()
478 assertEquals(5, source.indexOf(ByteString.encodeUtf8("flop"))); in indexOfByteString()
483 assertEquals(3, source.indexOf(ByteString.encodeUtf8("hi hi hey"))); in indexOfByteString()
487 assertEquals(-1, source.indexOf(ByteString.encodeUtf8("flop"), 1)); in indexOfByteStringWithOffset()
490 assertEquals(10, source.indexOf(ByteString.encodeUtf8("flop"), 1)); in indexOfByteStringWithOffset()
495 assertEquals(6, source.indexOf(ByteString.encodeUtf8("hi hi hey"), 1)); in indexOfByteStringWithOffset()
506 source.indexOf(ByteString.encodeUtf8("hi"), -1); in indexOfByteStringInvalidArgumentsThrows()
515 assertEquals(0, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"))); in indexOfElement()
516 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"))); in indexOfElement()
517 assertEquals(Segment.SIZE + 1, source.indexOfElement(ByteString.encodeUtf8("cDEFGHIJK"))); in indexOfElement()
[all …]
DTestUtil.java83 ByteString b3 = ByteString.encodeUtf8("a"); in assertEquivalent()
DSegmentSharingTest.java42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs)); in snapshotsAreEquivalent()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DHeader.java10 public static final ByteString RESPONSE_STATUS = ByteString.encodeUtf8(":status");
11 public static final ByteString TARGET_METHOD = ByteString.encodeUtf8(":method");
12 public static final ByteString TARGET_PATH = ByteString.encodeUtf8(":path");
13 public static final ByteString TARGET_SCHEME = ByteString.encodeUtf8(":scheme");
14 public static final ByteString TARGET_AUTHORITY = ByteString.encodeUtf8(":authority"); // HTTP/2
15 public static final ByteString TARGET_HOST = ByteString.encodeUtf8(":host"); // spdy/3
16 public static final ByteString VERSION = ByteString.encodeUtf8(":version"); // spdy/3
26 this(ByteString.encodeUtf8(name), ByteString.encodeUtf8(value)); in Header()
30 this(name, ByteString.encodeUtf8(value)); in Header()
DHttp2.java52 = ByteString.encodeUtf8("PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n");
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHeader.java8 public static final ByteString RESPONSE_STATUS = ByteString.encodeUtf8(":status");
9 public static final ByteString TARGET_METHOD = ByteString.encodeUtf8(":method");
10 public static final ByteString TARGET_PATH = ByteString.encodeUtf8(":path");
11 public static final ByteString TARGET_SCHEME = ByteString.encodeUtf8(":scheme");
12 public static final ByteString TARGET_AUTHORITY = ByteString.encodeUtf8(":authority"); // HTTP/2
13 public static final ByteString TARGET_HOST = ByteString.encodeUtf8(":host"); // spdy/3
14 public static final ByteString VERSION = ByteString.encodeUtf8(":version"); // spdy/3
24 this(ByteString.encodeUtf8(name), ByteString.encodeUtf8(value)); in Header()
28 this(name, ByteString.encodeUtf8(value)); in Header()
DHttp2.java50 = ByteString.encodeUtf8("PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n");
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DHeader.java12 public static final ByteString RESPONSE_STATUS = ByteString.encodeUtf8(":status");
13 public static final ByteString TARGET_METHOD = ByteString.encodeUtf8(":method");
14 public static final ByteString TARGET_PATH = ByteString.encodeUtf8(":path");
15 public static final ByteString TARGET_SCHEME = ByteString.encodeUtf8(":scheme");
16 public static final ByteString TARGET_AUTHORITY = ByteString.encodeUtf8(":authority"); // HTTP/2
17 public static final ByteString TARGET_HOST = ByteString.encodeUtf8(":host"); // spdy/3
18 public static final ByteString VERSION = ByteString.encodeUtf8(":version"); // spdy/3
28 this(ByteString.encodeUtf8(name), ByteString.encodeUtf8(value)); in Header()
32 this(name, ByteString.encodeUtf8(value)); in Header()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttp2xStream.java53 private static final ByteString CONNECTION = ByteString.encodeUtf8("connection");
54 private static final ByteString HOST = ByteString.encodeUtf8("host");
55 private static final ByteString KEEP_ALIVE = ByteString.encodeUtf8("keep-alive");
56 private static final ByteString PROXY_CONNECTION = ByteString.encodeUtf8("proxy-connection");
57 private static final ByteString TRANSFER_ENCODING = ByteString.encodeUtf8("transfer-encoding");
58 private static final ByteString TE = ByteString.encodeUtf8("te");
59 private static final ByteString ENCODING = ByteString.encodeUtf8("encoding");
60 private static final ByteString UPGRADE = ByteString.encodeUtf8("upgrade");
171 ByteString name = ByteString.encodeUtf8(headers.name(i).toLowerCase(Locale.US)); in spdy3HeadersList()
209 ByteString name = ByteString.encodeUtf8(headers.name(i).toLowerCase(Locale.US)); in http2HeadersList()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttp2xStream.java55 private static final ByteString CONNECTION = ByteString.encodeUtf8("connection");
56 private static final ByteString HOST = ByteString.encodeUtf8("host");
57 private static final ByteString KEEP_ALIVE = ByteString.encodeUtf8("keep-alive");
58 private static final ByteString PROXY_CONNECTION = ByteString.encodeUtf8("proxy-connection");
59 private static final ByteString TRANSFER_ENCODING = ByteString.encodeUtf8("transfer-encoding");
60 private static final ByteString TE = ByteString.encodeUtf8("te");
61 private static final ByteString ENCODING = ByteString.encodeUtf8("encoding");
62 private static final ByteString UPGRADE = ByteString.encodeUtf8("upgrade");
173 ByteString name = ByteString.encodeUtf8(headers.name(i).toLowerCase(Locale.US)); in spdy3HeadersList()
211 ByteString name = ByteString.encodeUtf8(headers.name(i).toLowerCase(Locale.US)); in http2HeadersList()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java307 return processor.encodeUtf8(in, out, offset, length); in encode()
347 static void encodeUtf8(CharSequence in, ByteBuffer out) { in encodeUtf8() method in Utf8
348 processor.encodeUtf8(in, out); in encodeUtf8()
645 abstract int encodeUtf8(CharSequence in, byte[] out, int offset, int length); in encodeUtf8() method in Utf8.Processor
665 final void encodeUtf8(CharSequence in, ByteBuffer out) { in encodeUtf8() method in Utf8.Processor
858 int encodeUtf8(CharSequence in, byte[] out, int offset, int length) { in encodeUtf8() method in Utf8.SafeProcessor
1204 int encodeUtf8(final CharSequence in, final byte[] out, final int offset, final int length) { in encodeUtf8() method in Utf8.UnsafeProcessor
/external/flatbuffers/java/com/google/flatbuffers/
DUtf8.java46 public abstract void encodeUtf8(CharSequence in, ByteBuffer out); in encodeUtf8() method in Utf8
DUtf8Old.java74 public void encodeUtf8(CharSequence in, ByteBuffer out) { in encodeUtf8() method in Utf8Old
DUtf8Safe.java432 public void encodeUtf8(CharSequence in, ByteBuffer out) { in encodeUtf8() method in Utf8Safe
DFlatBufferBuilder.java530 utf8.encodeUtf8(s, bb); in createString()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DJSON.cpp402 static void encodeUtf8(uint32_t Rune, std::string &Out) { in encodeUtf8() function
458 encodeUtf8(First, Out); in parseUnicode()
485 encodeUtf8(0x10000 | ((First - 0xD800) << 10) | (Second - 0xDC00), Out); in parseUnicode()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DMultipartBuilder.java92 this.boundary = ByteString.encodeUtf8(boundary); in MultipartBuilder()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DMultipartBuilder.java94 this.boundary = ByteString.encodeUtf8(boundary); in MultipartBuilder()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DByteString.java86 public static ByteString encodeUtf8(String s) { in encodeUtf8() method in ByteString
/external/okhttp/okio/okio/src/main/java/okio/
DByteString.java84 public static ByteString encodeUtf8(String s) { in encodeUtf8() method in ByteString
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHpackTest.java690 hpackWriter.writeByteString(ByteString.encodeUtf8("")); in emptyHeaderName()
/external/grpc-grpc-java/okhttp/third_party/okhttp/test/java/io/grpc/okhttp/internal/framed/
DHpackTest.java718 hpackWriter.writeByteString(ByteString.encodeUtf8("")); in emptyHeaderName()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DUrlComponentEncodingTester.java314 ByteString utf8 = ByteString.encodeUtf8(IDENTITY.encode(codePoint)); in encode()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpClientTransportTest.java1685 frameHandler().goAway(0, ErrorCode.ENHANCE_YOUR_CALM, ByteString.encodeUtf8("not_many_pings")); in goAway_notTooManyPings()
1701 frameHandler().goAway(0, ErrorCode.ENHANCE_YOUR_CALM, ByteString.encodeUtf8("too_many_pings")); in goAway_tooManyPings()
1730 .goAway(DEFAULT_START_STREAM_ID, ErrorCode.CANCEL, ByteString.encodeUtf8("blablabla")); in goAway_streamListenerRpcProgress()

12