HomeSort by relevance Sort by last modified time
    Searched defs:TransferKind (Results 1 - 2 of 2) sorted by null

  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java 384 doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE);
388 doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS);
392 doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS);
396 doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE);
400 doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS);
404 doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS);
407 private void doUpload(TransferKind uploadKind, WriteKind writeKind) throws Exception {
416 if (uploadKind == TransferKind.CHUNKED) {
437 if (uploadKind == TransferKind.CHUNKED) {
    [all...]
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
URLConnectionTest.java 295 testRequestBodySurvivesRetries(TransferKind.FIXED_LENGTH);
299 testRequestBodySurvivesRetries(TransferKind.CHUNKED);
303 testRequestBodySurvivesRetries(TransferKind.END_OF_STREAM);
306 private void testRequestBodySurvivesRetries(TransferKind transferKind) throws Exception {
319 transferKind.setForRequest(connection, 4);
433 doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE);
437 doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS);
441 doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS);
445 doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE)
    [all...]

Completed in 43 milliseconds