/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | ContentLength.java | 86 protected Integer contentLength; field in ContentLength 100 this.contentLength = Integer.valueOf(length); in ContentLength() 108 return contentLength.intValue(); in getContentLength() 115 public void setContentLength(int contentLength) in setContentLength() argument 117 if (contentLength < 0) in setContentLength() 121 this.contentLength = Integer.valueOf(contentLength); in setContentLength() 133 if (contentLength == null) in encodeBody() 136 buffer.append(contentLength.toString()); in encodeBody()
|
/external/apache-http/src/org/apache/http/impl/io/ |
D | ContentLengthInputStream.java | 83 private long contentLength; field in ContentLengthInputStream 103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { in ContentLengthInputStream() argument 108 if (contentLength < 0) { in ContentLengthInputStream() 112 this.contentLength = contentLength; in ContentLengthInputStream() 148 if (pos >= contentLength) { in read() 172 if (pos >= contentLength) { in read() 176 if (pos + len > contentLength) { in read() 177 len = (int) (contentLength - pos); in read() 211 long remaining = Math.min(n, this.contentLength - this.pos); in skip()
|
D | ContentLengthOutputStream.java | 64 private final long contentLength; field in ContentLengthOutputStream 81 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) { in ContentLengthOutputStream() argument 86 if (contentLength < 0) { in ContentLengthOutputStream() 90 this.contentLength = contentLength; in ContentLengthOutputStream() 113 if (this.total < this.contentLength) { in write() 114 long max = this.contentLength - this.total; in write() 131 if (this.total < this.contentLength) { in write()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | HttpTransport.java | 36 long contentLength = OkHeaders.contentLength(request); in createRequestBody() local 39 if (contentLength > Integer.MAX_VALUE) { in createRequestBody() 44 if (contentLength != -1) { in createRequestBody() 47 return new RetryableSink((int) contentLength); in createRequestBody() 62 if (contentLength != -1) { in createRequestBody() 65 return httpConnection.newFixedLengthSink(contentLength); in createRequestBody() 143 long contentLength = OkHeaders.contentLength(httpEngine.getResponse()); in getTransferStream() local 144 if (contentLength != -1) { in getTransferStream() 145 return httpConnection.newFixedLengthSource(cacheRequest, contentLength); in getTransferStream()
|
D | OkHeaders.java | 58 public static long contentLength(Request request) { in contentLength() method in OkHeaders 59 return contentLength(request.headers()); in contentLength() 62 public static long contentLength(Response response) { in contentLength() method in OkHeaders 63 return contentLength(response.headers()); in contentLength() 66 public static long contentLength(Headers headers) { in contentLength() method in OkHeaders
|
D | HttpsURLConnectionImpl.java | 66 @Override public void setFixedLengthStreamingMode(long contentLength) { in setFixedLengthStreamingMode() argument 67 delegate.setFixedLengthStreamingMode(contentLength); in setFixedLengthStreamingMode()
|
D | HttpURLConnectionImpl.java | 591 @Override public void setFixedLengthStreamingMode(int contentLength) { in setFixedLengthStreamingMode() argument 592 setFixedLengthStreamingMode((long) contentLength); in setFixedLengthStreamingMode() 596 public void setFixedLengthStreamingMode(long contentLength) { in setFixedLengthStreamingMode() argument 599 if (contentLength < 0) throw new IllegalArgumentException("contentLength < 0"); in setFixedLengthStreamingMode() 600 this.fixedContentLength = contentLength; in setFixedLengthStreamingMode() 601 super.fixedContentLength = (int) Math.min(contentLength, Integer.MAX_VALUE); in setFixedLengthStreamingMode()
|
D | JavaApiConverter.java | 354 public long contentLength() { 355 return OkHeaders.contentLength(okHeaders); 429 public void setFixedLengthStreamingMode(int contentLength) { 434 public void setFixedLengthStreamingMode(long contentLength) { 658 @Override public void setFixedLengthStreamingMode(long contentLength) { 659 delegate.setFixedLengthStreamingMode(contentLength);
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | MaxForwardsParser.java | 43 public MaxForwardsParser(String contentLength) { in MaxForwardsParser() argument 44 super(contentLength); in MaxForwardsParser() 55 MaxForwards contentLength = new MaxForwards(); in parse() local 58 contentLength.setMaxForwards(Integer.parseInt(number)); in parse() 61 return contentLength; in parse()
|
D | ContentLengthParser.java | 44 public ContentLengthParser(String contentLength) { in ContentLengthParser() argument 45 super(contentLength); in ContentLengthParser() 56 ContentLength contentLength = new ContentLength(); in parse() local 59 contentLength.setContentLength(Integer.parseInt(number)); in parse() 62 return contentLength; in parse()
|
D | PipelinedMsgParser.java | 294 int contentLength = 0; in run() local 296 contentLength = cl.getContentLength(); in run() 298 contentLength = 0; in run() 302 Debug.println("contentLength " + contentLength); in run() 305 if (contentLength == 0) { in run() 308 || contentLength < this.sizeCounter) { in run() 309 byte[] message_body = new byte[contentLength]; in run() 311 while (nread < contentLength) { in run() 322 nread, contentLength - nread); in run()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
D | HttpPostRequestTest.java | 30 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length(); in testSimpleRawPostData() local 31 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content; in testSimpleRawPostData() 50 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length(); in testSimplePostWithSingleMultipartFormField() local 51 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content; in testSimplePostWithSingleMultipartFormField() 73 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length(); in testPostWithMultipleMultipartFormFields() local 74 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content; in testPostWithMultipleMultipartFormFields() 97 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length(); in testPostWithMultipleMultipartFormFieldsWhereContentTypeWasSeparatedByComma() local 98 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content; in testPostWithMultipleMultipartFormFieldsWhereContentTypeWasSeparatedByComma() 151 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length(); in preparePostWithMultipartForm() local 152 String input = header + CONTENT_LENGTH + (contentLength+5) + "\r\n\r\n" + content; in preparePostWithMultipartForm()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | DownloadController.java | 68 String filename, long contentLength) { in newHttpGetDownload() argument 81 .setContentLength(contentLength) in newHttpGetDownload() 110 String filename, String path, long contentLength, boolean successful, int downloadId) { in onDownloadCompleted() argument 117 .setContentLength(contentLength) in onDownloadCompleted() 133 String filename, String path, long contentLength, boolean successful, int downloadId, in onDownloadUpdated() argument 141 .setContentLength(contentLength) in onDownloadUpdated()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | RequestTest.java | 32 assertEquals(3, body.contentLength()); in string() 41 assertEquals(3, body.contentLength()); in stringWithDefaultCharsetAdded() 49 assertEquals(2, body.contentLength()); in stringWithNonDefaultCharsetSpecified() 57 assertEquals(3, body.contentLength()); in byteArray() 71 assertEquals(3, body.contentLength()); in file()
|
/external/oauth/core/src/main/java/net/oauth/client/ |
D | URLConnectionClient.java | 73 String contentLength = null; in execute() local 78 contentLength = header.getValue(); in execute() 88 if (contentLength != null) { in execute() 90 .setFixedLengthStreamingMode(Integer.parseInt(contentLength)); in execute()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Job.java | 107 long contentLength = body.contentLength(); in getResponse() local 108 if (contentLength != -1) { in getResponse() 109 requestBuilder.header("Content-Length", Long.toString(contentLength)); in getResponse() 255 @Override public long contentLength() { in contentLength() method in Job.RealResponseBody 256 return OkHeaders.contentLength(response); in contentLength()
|
D | Response.java | 240 public abstract long contentLength(); in contentLength() method in Response.Body 251 long contentLength = contentLength(); in bytes() local 252 if (contentLength > Integer.MAX_VALUE) { in bytes() 253 throw new IOException("Cannot buffer entire body for content length: " + contentLength); in bytes() 256 if (contentLength != -1) { in bytes() 257 byte[] content = new byte[(int) contentLength]; in bytes()
|
D | HttpResponseCache.java | 558 String contentLength = responseHeaders.get("Content-Length"); in response() local 563 .body(new CacheResponseBody(snapshot, contentType, contentLength)) in response() 582 private final String contentLength; field in HttpResponseCache.CacheResponseBody 585 String contentType, String contentLength) { in CacheResponseBody() argument 588 this.contentLength = contentLength; in CacheResponseBody() 607 @Override public long contentLength() { in contentLength() method in HttpResponseCache.CacheResponseBody 609 return contentLength != null ? Long.parseLong(contentLength) : -1; in contentLength()
|
D | Request.java | 156 public long contentLength() { in contentLength() method in Request.Body 189 @Override public long contentLength() { in create() method in Request.Body 209 @Override public long contentLength() { in create() method 214 long length = contentLength(); in create()
|
D | Connection.java | 362 long contentLength = OkHeaders.contentLength(response); in makeTunnel() local 363 if (contentLength != -1) { in makeTunnel() 364 Source body = tunnelConnection.newFixedLengthSource(null, contentLength); in makeTunnel()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
D | PutStreamIntegrationTest.java | 50 int contentLength = Integer.parseInt(headers.get("content-length")); in serve() local 55 body = new byte[contentLength]; in serve() 56 dataInputStream.readFully(body, 0, contentLength); in serve()
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
D | AwContentsClientCallbackHelper.java | 40 long contentLength) { in DownloadInfo() argument 45 mContentLength = contentLength; in DownloadInfo() 166 String mimeType, long contentLength) { in postOnDownloadStart() argument 168 contentLength); in postOnDownloadStart()
|
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/ |
D | HttpMethodResponse.java | 109 long contentLength = r.getEntity().getContentLength(); in dump() local 110 if (contentLength >= 0) { in dump() 111 request.append("Content-Length: ").append(contentLength).append(EOL); in dump()
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
D | TestAwContentsClient.java | 199 String mimeType, long contentLength) { in notifyCalled() argument 204 mContentLength = contentLength; in notifyCalled() 214 long contentLength) { in onDownloadStart() argument 216 contentLength); in onDownloadStart()
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
D | HttpsServiceConnectionSE.java | 100 public void setFixedLengthStreamingMode(int contentLength) { in setFixedLengthStreamingMode() argument 101 connection.setFixedLengthStreamingMode(contentLength); in setFixedLengthStreamingMode()
|