/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferedSourceTest.java | 148 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); in readShortSplitAcrossMultipleSegments() 176 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); in readIntSplitAcrossMultipleSegments() 208 sink.writeUtf8(repeat('a', Segment.SIZE - 7)); in readLongSplitAcrossMultipleSegments() 219 source.buffer().writeUtf8("abc"); in readAll() 220 sink.writeUtf8("def"); in readAll() 237 sink.writeUtf8(repeat('a', 10)); in readExhaustedSource() 245 sink.writeUtf8(repeat('a', 10)); in readZeroBytesFromSource() 255 sink.writeUtf8(repeat('a', 10000)); in readFully() 263 sink.writeUtf8("Hi"); in readFullyTooShortThrows() 277 data.writeUtf8("Hello").writeUtf8(repeat('e', Segment.SIZE)); in readFullyByteArray() [all …]
|
D | BufferTest.java | 42 buffer.writeUtf8("ab"); in readAndWriteUtf8() 44 buffer.writeUtf8("cdef"); in readAndWriteUtf8() 64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); in completeSegmentByteCountOnBufferWithFullSegments() 70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 93 buffer.writeUtf8(repeat('a', 6144)); in toStringOnMultipleSegmentBuffer() 99 buffer.writeUtf8(repeat('a', 1000)); in multipleSegmentBuffers() 100 buffer.writeUtf8(repeat('b', 2500)); in multipleSegmentBuffers() 101 buffer.writeUtf8(repeat('c', 5000)); in multipleSegmentBuffers() 102 buffer.writeUtf8(repeat('d', 10000)); in multipleSegmentBuffers() 103 buffer.writeUtf8(repeat('e', 25000)); in multipleSegmentBuffers() [all …]
|
D | RealBufferedSourceTest.java | 35 source.writeUtf8("a"); in inputStreamTracksSegments() 36 source.writeUtf8(repeat('b', Segment.SIZE)); in inputStreamTracksSegments() 37 source.writeUtf8("c"); in inputStreamTracksSegments() 83 source.writeUtf8("bb"); in requireTracksBufferFirst() 86 bufferedSource.buffer().writeUtf8("aa"); in requireTracksBufferFirst() 95 source.writeUtf8("b"); in requireIncludesBufferBytes() 98 bufferedSource.buffer().writeUtf8("a"); in requireIncludesBufferBytes() 106 source.writeUtf8("a"); in requireInsufficientData() 119 source.writeUtf8(repeat('a', Segment.SIZE)); in requireReadsOneSegmentAtATime() 120 source.writeUtf8(repeat('b', Segment.SIZE)); in requireReadsOneSegmentAtATime() [all …]
|
D | SegmentSharingTest.java | 124 bufferA.writeUtf8("abc"); in mutateAfterClone() 126 bufferA.writeUtf8("def"); in mutateAfterClone() 127 bufferB.writeUtf8("DEF"); in mutateAfterClone() 133 Buffer bufferA = new Buffer().writeUtf8(ys).writeUtf8(us); in concatenateSegmentsCanCombine() 135 Buffer bufferB = new Buffer().writeUtf8(vs).writeUtf8(ws); in concatenateSegmentsCanCombine() 138 bufferC.writeUtf8(xs); in concatenateSegmentsCanCombine() 146 Buffer bufferA = new Buffer().writeUtf8("xxxx"); in shareAndSplit() 150 bufferB.writeUtf8("yy"); // Append to the first half of the shared segment. in shareAndSplit() 165 Buffer bufferB = new Buffer().writeUtf8(us); in appendSnapshotToNonEmptyBuffer() 167 assertEquivalent(bufferB, new Buffer().writeUtf8(us + xs + ys)); in appendSnapshotToNonEmptyBuffer() [all …]
|
D | RealBufferedSinkTest.java | 36 sink.writeUtf8("Hi!"); in inputStreamCloses() 46 bufferedSink.writeUtf8(repeat('a', Segment.SIZE - 1)); in bufferedSinkEmitsTailWhenItIsComplete() 56 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 4 - 1)); in bufferedSinkEmitMultipleSegments() 74 bufferedSink.writeUtf8("abc"); in bytesEmittedToSinkWithFlush() 82 bufferedSink.writeUtf8("abc"); in bytesNotEmittedToSinkWithoutFlush() 89 bufferedSink.writeUtf8("abc"); in bytesEmittedToSinkWithEmit() 97 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3)); in completeSegmentsEmitted() 104 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3 - 1)); in incompleteSegmentsNotEmitted() 208 bufferedSink.buffer().writeUtf8("abc"); in writeAll() 209 assertEquals(3, bufferedSink.writeAll(new Buffer().writeUtf8("def"))); in writeAll() [all …]
|
D | BufferedSinkTest.java | 87 sink.writeUtf8(""); 100 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); 131 sink.writeUtf8(repeat('a', Segment.SIZE - 4)); 141 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); 172 sink.writeUtf8("təˈranəˌsôr"); 178 sink.writeUtf8("təˈranəˌsôr", 3, 7); 197 Buffer source = new Buffer().writeUtf8("abcdef"); 206 Buffer source = new Buffer().writeUtf8("abcdef"); 218 sink.writeUtf8("abcd"); 229 Source source = new Buffer().writeUtf8("abcd"); [all …]
|
D | ReadUtf8LineTest.java | 94 data.writeUtf8("abc\ndef\n"); 106 data.writeUtf8("aaaaaaaabbbbbbbbccccccccdddddddde"); 117 data.writeUtf8("\n\n\n"); 125 data.writeUtf8("abc\r\ndef\r\nghi\rjkl\r\n"); 132 data.writeUtf8("abc\ndef"); 139 data.writeUtf8("abc\ndef\n");
|
D | OkioTest.java | 39 sink.writeUtf8("Hello, java.io file!"); in readWriteFile() 53 sink.writeUtf8("Hello, "); in appendFile() 59 sink.writeUtf8("java.io file!"); in appendFile() 86 data.writeUtf8("a"); in sinkFromOutputStream() 87 data.writeUtf8(repeat('b', 9998)); in sinkFromOutputStream() 88 data.writeUtf8("c"); in sinkFromOutputStream()
|
D | DeflaterSinkTest.java | 34 data.writeUtf8(original); in deflateWithClose() 46 data.writeUtf8(original); in deflateWithSyncFlush() 58 data.writeUtf8(original); in deflateWellCompressed() 85 deflaterSink.write(new Buffer().writeUtf8(repeat('a', byteCount)), byteCount); in multipleSegmentsWithoutCompression() 95 Buffer data = new Buffer().writeUtf8(original); in deflateIntoNonemptySink() 96 Buffer sink = new Buffer().writeUtf8(repeat('a', i)); in deflateIntoNonemptySink() 120 deflaterSink.write(new Buffer().writeUtf8(repeat('a', Segment.SIZE)), Segment.SIZE); in closeWithExceptionWhenWritingAndClosing()
|
D | Utf8Test.java | 74 Buffer encoded = new Buffer().writeUtf8(a); in multipleSegmentString() 84 buffer.writeUtf8(a); in stringSpansSegments() 85 buffer.writeUtf8(b); in stringSpansSegments() 86 buffer.writeUtf8(c); in stringSpansSegments() 219 ByteString actualUtf8 = new Buffer().writeUtf8(string).readByteString(); in assertStringEncoded()
|
D | GzipSinkTest.java | 29 data.writeUtf8(original); in gzipGunzip() 43 gzipSink.write(new Buffer().writeUtf8(repeat('a', Segment.SIZE)), Segment.SIZE); in closeWithExceptionWhenWritingAndClosing()
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/ |
D | RealWebSocketTest.java | 83 client.sendMessage(TEXT, new Buffer().writeUtf8("Hello!")); in textMessage() 89 client.sendMessage(BINARY, new Buffer().writeUtf8("Hello!")); in binaryMessage() 96 sink.writeUtf8("Hel").flush(); in streamingMessage() 97 sink.writeUtf8("lo!").flush(); in streamingMessage() 105 sink.writeUtf8("Hel").flush(); in streamingMessageCanInterleavePing() 106 client.sendPing(new Buffer().writeUtf8("Pong?")); in streamingMessageCanInterleavePing() 107 sink.writeUtf8("lo!").flush(); in streamingMessageCanInterleavePing() 113 clientListener.assertPong(new Buffer().writeUtf8("Pong?")); in streamingMessageCanInterleavePing() 117 client.sendPing(new Buffer().writeUtf8("Hello!")); in pingWritesPong() 121 clientListener.assertPong(new Buffer().writeUtf8("Hello!")); in pingWritesPong() [all …]
|
D | WebSocketWriterTest.java | 47 Buffer payload = new Buffer().writeUtf8("Hello"); in serverSendSimpleHello() 53 Buffer payload = new Buffer().writeUtf8("Hello"); in clientSendSimpleHello() 61 sink.writeUtf8("Hel").flush(); in serverStreamSimpleHello() 64 sink.writeUtf8("lo").flush(); in serverStreamSimpleHello() 74 sink.writeUtf8("Hel").flush(); in serverStreamCloseFlushes() 77 sink.writeUtf8("lo").close(); in serverStreamCloseFlushes() 85 sink.writeUtf8("Hel").flush(); in clientStreamSimpleHello() 88 sink.writeUtf8("lo").flush(); in clientStreamSimpleHello() 233 serverWriter.writePing(new Buffer().writeUtf8("Hello")); in serverPingWithPayload() 238 clientWriter.writePing(new Buffer().writeUtf8("Hello")); in clientPingWithPayload() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HpackTest.java | 70 bytesIn.writeUtf8("custom-key"); in tooLargeToHPackIsStillEmitted() 73 bytesIn.writeUtf8("custom-header"); in tooLargeToHPackIsStillEmitted() 87 bytesIn.writeUtf8("custom-foo"); in testEviction() 90 bytesIn.writeUtf8("custom-header"); in testEviction() 94 bytesIn.writeUtf8("custom-bar"); in testEviction() 97 bytesIn.writeUtf8("custom-header"); in testEviction() 101 bytesIn.writeUtf8("custom-baz"); in testEviction() 104 bytesIn.writeUtf8("custom-header"); in testEviction() 137 bytesIn.writeUtf8("custom-foo"); in dynamicallyGrowsBeyond64Entries() 140 bytesIn.writeUtf8("custom-header"); in dynamicallyGrowsBeyond64Entries() [all …]
|
D | Spdy3ConnectionTest.java | 72 peer.sendFrame().data(true, 1, new Buffer().writeUtf8("robot"), 5); in clientCreatesStreamAndServerReplies() 82 out.writeUtf8("c3po"); in clientCreatesStreamAndServerReplies() 336 peer.sendFrame().data(true, 41, new Buffer().writeUtf8("bogus"), 5); 388 out.writeUtf8("square"); 393 out.writeUtf8("round"); 433 out.writeUtf8("square"); 481 out.writeUtf8("a"); 524 out.writeUtf8("square"); 551 peer.sendFrame().data(true, 1, new Buffer().writeUtf8("square"), 6); 641 peer.sendFrame().data(true, 1, new Buffer().writeUtf8("robot"), 5); [all …]
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
D | WebSocketCallTest.java | 58 webSocket.sendPing(new Buffer().writeUtf8("Hello, WebSockets!")); in clientPingPong() 59 listener.assertPong(new Buffer().writeUtf8("Hello, WebSockets!")); in clientPingPong() 67 webSocket.sendMessage(TEXT, new Buffer().writeUtf8("Hello, WebSockets!")); in clientMessage() 77 webSocket.sendMessage(TEXT, new Buffer().writeUtf8("Hello, WebSockets!")); in serverMessage() 97 sink.writeUtf8("Hello, ").flush(); in clientStreamingMessage() 98 sink.writeUtf8("WebSockets!").flush(); in clientStreamingMessage() 111 sink.writeUtf8("Hello, ").flush(); in serverStreamingMessage() 112 sink.writeUtf8("WebSockets!").flush(); in serverStreamingMessage() 236 webSocket.sendMessage(TEXT, new Buffer().writeUtf8("abc")); in websocketScheme()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | HttpConnection.java | 172 sink.writeUtf8(requestLine).writeUtf8("\r\n"); in writeRequest() 174 sink.writeUtf8(headers.name(i)) in writeRequest() 175 .writeUtf8(": ") in writeRequest() 176 .writeUtf8(headers.value(i)) in writeRequest() 177 .writeUtf8("\r\n"); in writeRequest() 179 sink.writeUtf8("\r\n"); in writeRequest() 338 sink.writeUtf8("\r\n"); in write() 340 sink.writeUtf8("\r\n"); in write() 351 sink.writeUtf8("0\r\n\r\n"); in close()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | DiskLruCache.java | 384 writer.writeUtf8(MAGIC).writeByte('\n'); in rebuildJournal() 385 writer.writeUtf8(VERSION_1).writeByte('\n'); in rebuildJournal() 392 writer.writeUtf8(DIRTY).writeByte(' '); in rebuildJournal() 393 writer.writeUtf8(entry.key); in rebuildJournal() 396 writer.writeUtf8(CLEAN).writeByte(' '); in rebuildJournal() 397 writer.writeUtf8(entry.key); in rebuildJournal() 433 journalWriter.writeUtf8(READ).writeByte(' ').writeUtf8(key).writeByte('\n'); in get() 464 journalWriter.writeUtf8(DIRTY).writeByte(' ').writeUtf8(key).writeByte('\n'); in edit() 554 journalWriter.writeUtf8(CLEAN).writeByte(' '); in completeEdit() 555 journalWriter.writeUtf8(entry.key); in completeEdit() [all …]
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | MockResponse.java | 153 return setBody(new Buffer().writeUtf8(body)); in setBody() 168 bytesOut.writeUtf8("\r\n"); in setChunkedBody() 170 bytesOut.writeUtf8("\r\n"); in setChunkedBody() 172 bytesOut.writeUtf8("0\r\n\r\n"); // Last chunk + empty trailer + CRLF. in setChunkedBody() 183 return setChunkedBody(new Buffer().writeUtf8(body), maxChunkSize); in setChunkedBody()
|
D | MockWebServer.java | 620 sink.writeUtf8("HTTP/1.1 100 Continue\r\n"); 621 sink.writeUtf8("Content-Length: 0\r\n"); 622 sink.writeUtf8("\r\n"); 713 sink.writeUtf8(response.getStatus()); 714 sink.writeUtf8("\r\n"); 718 sink.writeUtf8(headers.name(i)); 719 sink.writeUtf8(": "); 720 sink.writeUtf8(headers.value(i)); 721 sink.writeUtf8("\r\n"); 723 sink.writeUtf8("\r\n");
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Cache.java | 580 sink.writeUtf8(url); in writeTo() 582 sink.writeUtf8(requestMethod); in writeTo() 587 sink.writeUtf8(varyHeaders.name(i)); in writeTo() 588 sink.writeUtf8(": "); in writeTo() 589 sink.writeUtf8(varyHeaders.value(i)); in writeTo() 593 sink.writeUtf8(new StatusLine(protocol, code, message).toString()); in writeTo() 598 sink.writeUtf8(responseHeaders.name(i)); in writeTo() 599 sink.writeUtf8(": "); in writeTo() 600 sink.writeUtf8(responseHeaders.value(i)); in writeTo() 606 sink.writeUtf8(handshake.cipherSuite()); in writeTo() [all …]
|
D | MultipartBuilder.java | 247 sink.writeUtf8(headers.name(h)) in writeOrCountBytes() 249 .writeUtf8(headers.value(h)) in writeOrCountBytes() 256 sink.writeUtf8("Content-Type: ") in writeOrCountBytes() 257 .writeUtf8(contentType.toString()) in writeOrCountBytes() 263 sink.writeUtf8("Content-Length: ") in writeOrCountBytes()
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | PostStreaming.java | 39 sink.writeUtf8("Numbers\n"); in run() 40 sink.writeUtf8("-------\n"); in run() 42 sink.writeUtf8(String.format(" * %s = %s\n", i, factor(i))); in run()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | RealBufferedSink.java | 55 @Override public BufferedSink writeUtf8(String string) throws IOException { in writeUtf8() method in RealBufferedSink 57 buffer.writeUtf8(string); in writeUtf8() 61 @Override public BufferedSink writeUtf8(String string, int beginIndex, int endIndex) in writeUtf8() method in RealBufferedSink 64 buffer.writeUtf8(string, beginIndex, endIndex); in writeUtf8()
|
D | BufferedSink.java | 54 BufferedSink writeUtf8(String string) throws IOException; in writeUtf8() method 60 BufferedSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException; in writeUtf8() method
|