/external/nist-sip/java/javax/sip/header/ |
ContentLengthHeader.java | 9 void setContentLength(int contentLength) throws InvalidArgumentException;
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
ContentLength.java | 35 * ContentLength SIPHeader (of which there can be only one in a SIPMessage). 76 public class ContentLength 85 * contentLength field. 87 protected Integer contentLength; 92 public ContentLength() { 99 public ContentLength(int length) { 101 this.contentLength = Integer.valueOf(length); 105 * get the ContentLength field. 109 return contentLength.intValue(); 113 * Set the contentLength membe [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
ResponseBody.java | 40 public abstract long contentLength() throws IOException; 49 long contentLength = contentLength(); 50 if (contentLength > Integer.MAX_VALUE) { 51 throw new IOException("Cannot buffer entire body for content length: " + contentLength); 61 if (contentLength != -1 && contentLength != bytes.length) { 120 final MediaType contentType, final long contentLength, final BufferedSource content) { 127 @Override public long contentLength() { 128 return contentLength; [all...] |
RequestBody.java | 35 public long contentLength() throws IOException { 66 @Override public long contentLength() throws IOException { 91 @Override public long contentLength() { 110 @Override public long contentLength() {
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/ |
UrlDownloaderTask.java | 114 int contentLength = progress[1]; 115 if (contentLength == -1) { 118 mDialog.setMax(contentLength); 153 int contentLength = connection.getContentLength(); 155 if (mFile.exists() && contentLength == mFile.length()) { 166 publishProgress(0, contentLength); 169 if (bytesCopied != contentLength && contentLength != -1) { 170 throw new IOException("Download incomplete: " + bytesCopied + " != " + contentLength);
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
Progress.java | 41 @Override public void update(long bytesRead, long contentLength, boolean done) { 43 System.out.println(contentLength); 45 System.out.format("%d%% done\n", (100 * bytesRead) / contentLength); 83 @Override public long contentLength() throws IOException { 84 return responseBody.contentLength(); 101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); 109 void update(long bytesRead, long contentLength, boolean done);
|
/prebuilts/go/darwin-x86/src/net/http/ |
responsewrite_test.go | 30 ContentLength: 6, 46 ContentLength: -1, 61 ContentLength: -1, 78 ContentLength: -1, 96 ContentLength: -1, 113 ContentLength: 0, 129 ContentLength: 0, 145 ContentLength: 0, 161 ContentLength: 6, 184 ContentLength: 0 [all...] |
transfer.go | 75 ContentLength int64 // -1 means unknown, 0 means exactly none 94 if rr.ContentLength != 0 && rr.Body == nil { 95 return nil, fmt.Errorf("http: Request.ContentLength=%d with nil Body", rr.ContentLength) 104 t.ContentLength = rr.outgoingLength() 105 if t.ContentLength < 0 && len(t.TransferEncoding) == 0 && t.shouldSendChunkedRequestBody() { 116 t.ContentLength = rr.ContentLength 125 // Sanitize Body,ContentLength,TransferEncoding 129 t.ContentLength = - [all...] |
response_test.go | 57 ContentLength: -1, 79 ContentLength: -1, 100 ContentLength: 0, 126 ContentLength: 10, 153 ContentLength: -1, 180 ContentLength: -1, 203 ContentLength: -1, 225 ContentLength: 256, 247 ContentLength: 256, 268 ContentLength: -1 [all...] |
filetransport_test.go | 45 if res.ContentLength != -1 { 46 t.Errorf("for %s, ContentLength = %d, want -1", urlstr, res.ContentLength)
|
readrequest_test.go | 67 ContentLength: 7, 93 ContentLength: 0, 119 ContentLength: 0, 169 ContentLength: -1, 201 ContentLength: -1, 225 ContentLength: 0, 249 ContentLength: 0, 273 ContentLength: 0, 298 ContentLength: 0, 322 ContentLength: 0 [all...] |
/prebuilts/go/linux-x86/src/net/http/ |
responsewrite_test.go | 30 ContentLength: 6, 46 ContentLength: -1, 61 ContentLength: -1, 78 ContentLength: -1, 96 ContentLength: -1, 113 ContentLength: 0, 129 ContentLength: 0, 145 ContentLength: 0, 161 ContentLength: 6, 184 ContentLength: 0 [all...] |
transfer.go | 75 ContentLength int64 // -1 means unknown, 0 means exactly none 94 if rr.ContentLength != 0 && rr.Body == nil { 95 return nil, fmt.Errorf("http: Request.ContentLength=%d with nil Body", rr.ContentLength) 104 t.ContentLength = rr.outgoingLength() 105 if t.ContentLength < 0 && len(t.TransferEncoding) == 0 && t.shouldSendChunkedRequestBody() { 116 t.ContentLength = rr.ContentLength 125 // Sanitize Body,ContentLength,TransferEncoding 129 t.ContentLength = - [all...] |
response_test.go | 57 ContentLength: -1, 79 ContentLength: -1, 100 ContentLength: 0, 126 ContentLength: 10, 153 ContentLength: -1, 180 ContentLength: -1, 203 ContentLength: -1, 225 ContentLength: 256, 247 ContentLength: 256, 268 ContentLength: -1 [all...] |
filetransport_test.go | 45 if res.ContentLength != -1 { 46 t.Errorf("for %s, ContentLength = %d, want -1", urlstr, res.ContentLength)
|
/external/apache-http/src/org/apache/http/impl/io/ |
ContentLengthOutputStream.java | 64 private final long contentLength; 76 * @param contentLength The maximum number of bytes that can be written to 81 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) { 86 if (contentLength < 0) { 90 this.contentLength = contentLength; 113 if (this.total < this.contentLength) { 114 long max = this.contentLength - this.total; 131 if (this.total < this.contentLength) {
|
ContentLengthInputStream.java | 83 private long contentLength; 100 * @param contentLength The maximum number of bytes that can be read from 103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { 108 if (contentLength < 0) { 112 this.contentLength = contentLength; 148 if (pos >= contentLength) { 172 if (pos >= contentLength) { 176 if (pos + len > contentLength) { 177 len = (int) (contentLength - pos) [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
AdaptedHttpStack.java | 70 long contentLength = apacheResp.getEntity().getContentLength(); 71 if ((int) contentLength != contentLength) { 72 throw new IOException("Response too large: " + contentLength);
|
HttpResponse.java | 39 this(statusCode, headers, -1 /* contentLength */, null /* content */); 47 * @param contentLength the length of the response content. Ignored if there is no content. 52 int statusCode, List<Header> headers, int contentLength, InputStream content) { 55 mContentLength = contentLength;
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
RealResponseBody.java | 37 @Override public long contentLength() { 38 return OkHeaders.contentLength(headers);
|
/frameworks/base/core/java/android/webkit/ |
DownloadListener.java | 28 * @param contentLength The file size reported by the server 31 String contentDisposition, String mimetype, long contentLength);
|
/prebuilts/go/darwin-x86/src/net/http/httptest/ |
httptest.go | 33 // *strings.Reader, or *bytes.Buffer, the Request.ContentLength is 58 req.ContentLength = int64(v.Len()) 60 req.ContentLength = int64(v.Len()) 62 req.ContentLength = int64(v.Len()) 64 req.ContentLength = -1
|
/prebuilts/go/linux-x86/src/net/http/httptest/ |
httptest.go | 33 // *strings.Reader, or *bytes.Buffer, the Request.ContentLength is 58 req.ContentLength = int64(v.Len()) 60 req.ContentLength = int64(v.Len()) 62 req.ContentLength = int64(v.Len()) 64 req.ContentLength = -1
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
ContentLengthParser.java | 44 public ContentLengthParser(String contentLength) { 45 super(contentLength); 56 ContentLength contentLength = new ContentLength(); 59 contentLength.setContentLength(Integer.parseInt(number)); 62 return contentLength;
|
/external/oauth/core/src/main/java/net/oauth/client/ |
URLConnectionClient.java | 73 String contentLength = null; 78 contentLength = header.getValue(); 88 if (contentLength != null) { 90 .setFixedLengthStreamingMode(Integer.parseInt(contentLength));
|