/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/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
D | HttpTransportSE.java | 92 public HttpTransportSE(String url, int timeout, int contentLength) { in HttpTransportSE() argument 96 public HttpTransportSE(Proxy proxy, String url, int timeout, int contentLength) { in HttpTransportSE() argument 191 int contentLength = 8192; // To determine the size of the response and adjust buffer size in call() local 210 contentLength = Integer.parseInt(hp.getValue()); in call() 212 contentLength = 8192; in call() 241 if (contentLength > 0) { in call() 244 new BufferedInputStream(connection.openInputStream(), contentLength)); in call() 246 is = new BufferedInputStream(connection.openInputStream(), contentLength); in call() 250 if (contentLength > 0) { in call() 253 new BufferedInputStream(connection.getErrorStream(), contentLength)); in call() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | ResponseBody.java | 40 public abstract long contentLength() throws IOException; in contentLength() method in ResponseBody 49 long contentLength = contentLength(); in bytes() local 50 if (contentLength > Integer.MAX_VALUE) { in bytes() 51 throw new IOException("Cannot buffer entire body for content length: " + contentLength); in bytes() 61 if (contentLength != -1 && contentLength != bytes.length) { in bytes() 120 final MediaType contentType, final long contentLength, final BufferedSource content) { in create() argument 127 @Override public long contentLength() { in create() method in ResponseBody 128 return contentLength; in create()
|
D | MultipartBuilder.java | 201 private long contentLength = -1L; field in MultipartBuilder.MultipartRequestBody 217 @Override public long contentLength() throws IOException { in contentLength() method in MultipartBuilder.MultipartRequestBody 218 long result = contentLength; in contentLength() 220 return contentLength = writeOrCountBytes(null, true); in contentLength() 261 long contentLength = body.contentLength(); in writeOrCountBytes() local 262 if (contentLength != -1) { in writeOrCountBytes() 264 .writeDecimalLong(contentLength) in writeOrCountBytes() 275 byteCount += contentLength; in writeOrCountBytes()
|
D | RequestBody.java | 35 public long contentLength() throws IOException { in contentLength() method in RequestBody 66 @Override public long contentLength() throws IOException { in create() method in RequestBody 91 @Override public long contentLength() { 110 @Override public long contentLength() {
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | ResponseBody.java | 44 public abstract long contentLength() throws IOException; in contentLength() method in ResponseBody 53 long contentLength = contentLength(); in bytes() local 54 if (contentLength > Integer.MAX_VALUE) { in bytes() 55 throw new IOException("Cannot buffer entire body for content length: " + contentLength); in bytes() 65 if (contentLength != -1 && contentLength != bytes.length) { in bytes() 124 final MediaType contentType, final long contentLength, final BufferedSource content) { in create() argument 131 @Override public long contentLength() { in create() method in ResponseBody 132 return contentLength; in create()
|
D | MultipartBuilder.java | 203 private long contentLength = -1L; field in MultipartBuilder.MultipartRequestBody 219 @Override public long contentLength() throws IOException { in contentLength() method in MultipartBuilder.MultipartRequestBody 220 long result = contentLength; in contentLength() 222 return contentLength = writeOrCountBytes(null, true); in contentLength() 263 long contentLength = body.contentLength(); in writeOrCountBytes() local 264 if (contentLength != -1) { in writeOrCountBytes() 266 .writeDecimalLong(contentLength) in writeOrCountBytes() 277 byteCount += contentLength; in writeOrCountBytes()
|
D | RequestBody.java | 39 public long contentLength() throws IOException { in contentLength() method in RequestBody 70 @Override public long contentLength() throws IOException { in create() method in RequestBody 95 @Override public long contentLength() { 114 @Override public long contentLength() {
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/ |
D | UrlDownloaderTask.java | 114 int contentLength = progress[1]; in onProgressUpdate() local 115 if (contentLength == -1) { in onProgressUpdate() 118 mDialog.setMax(contentLength); in onProgressUpdate() 153 int contentLength = connection.getContentLength(); in download() local 155 if (mFile.exists() && contentLength == mFile.length()) { in download() 166 publishProgress(0, contentLength); in download() 169 if (bytesCopied != contentLength && contentLength != -1) { in download() 170 throw new IOException("Download incomplete: " + bytesCopied + " != " + contentLength); in download()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/ |
D | SegmentDownloader.java | 126 long contentLength = 0; in download() local 142 if (contentLength != C.LENGTH_UNSET) { in download() 143 contentLength += segmentLength; in download() 146 contentLength = C.LENGTH_UNSET; in download() 156 contentLength, in download() 280 private final long contentLength; field in SegmentDownloader.ProgressNotifier 288 long contentLength, in ProgressNotifier() argument 293 this.contentLength = contentLength; in ProgressNotifier() 302 progressListener.onProgress(contentLength, bytesDownloaded, getPercentDownloaded()); in onProgress() 307 progressListener.onProgress(contentLength, bytesDownloaded, getPercentDownloaded()); in onSegmentDownloaded() [all …]
|
D | Download.java | 93 public final long contentLength; field in Download 109 long contentLength, in Download() argument 117 contentLength, in Download() 128 long contentLength, in Download() argument 141 this.contentLength = contentLength; in Download()
|
D | ProgressiveDownloader.java | 116 public void onProgress(long contentLength, long bytesCached, long newBytesCached) { in onProgress() argument 118 contentLength == C.LENGTH_UNSET || contentLength == 0 in onProgress() 120 : ((bytesCached * 100f) / contentLength); in onProgress() 121 progessListener.onProgress(contentLength, bytesCached, percentDownloaded); in onProgress()
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
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()
|
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 | 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()
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | Progress.java | 41 @Override public void update(long bytesRead, long contentLength, boolean done) { in run() 43 System.out.println(contentLength); in run() 45 System.out.format("%d%% done\n", (100 * bytesRead) / contentLength); in run() 83 @Override public long contentLength() throws IOException { in contentLength() method in Progress.ProgressResponseBody 84 return responseBody.contentLength(); in contentLength() 101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); in source() 109 void update(long bytesRead, long contentLength, boolean done); in update() argument
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
D | HttpPostRequestTest.java | 80 …int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.lengt… in preparePostWithMultipartForm() local 81 …String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 5) + "\r\n\r\n" + co… in preparePostWithMultipartForm() 125 …int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.lengt… in testPostWithMultipleMultipartFormFields() local 126 …String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + co… in testPostWithMultipleMultipartFormFields() 144 …int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.lengt… in testPostWithMultipleMultipartFormFieldsWhereContentTypeWasSeparatedByComma() local 145 …String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + co… in testPostWithMultipleMultipartFormFieldsWhereContentTypeWasSeparatedByComma() 162 …int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.lengt… in testSimplePostWithSingleMultipartFormField() local 163 …String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + co… in testSimplePostWithSingleMultipartFormField() 176 …int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.lengt… in testSimpleRawPostData() local 177 …String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + co… in testSimpleRawPostData()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheUtilTest.java | 60 private long contentLength; field in CacheUtilTest.AbstractFakeCache 64 contentLength = C.LENGTH_UNSET; in init() 84 ContentMetadataMutations.setContentLength(mutations, contentLength); in getContentMetadata() 162 mockCache.contentLength = 1000; in getCachedNoDataKnownLength() 173 mockCache.contentLength = 1000; in getCached() 185 mockCache.contentLength = 1000; in getCachedFromNonZeroPosition() 353 private long contentLength = C.LENGTH_UNSET; field in CacheUtilTest.CachingCounters 359 public void onProgress(long contentLength, long bytesCached, long newBytesCached) { in onProgress() argument 360 this.contentLength = contentLength; in onProgress() 368 public void assertValues(int bytesAlreadyCached, int bytesNewlyCached, int contentLength) { in assertValues() argument [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MultipartBuilderTest.java | 49 assertEquals(53, requestBody.contentLength()); in singlePart() 50 assertEquals(buffer.size(), requestBody.contentLength()); in singlePart() 80 assertEquals(112, requestBody.contentLength()); in threeParts() 81 assertEquals(buffer.size(), requestBody.contentLength()); in threeParts() 137 assertEquals(568, requestBody.contentLength()); in fieldAndTwoFiles() 138 assertEquals(buffer.size(), requestBody.contentLength()); in fieldAndTwoFiles() 223 assertEquals(-1, requestBody.contentLength()); in streamingPartHasNoLength()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | DownloadBuilder.java | 50 private long contentLength; field in DownloadBuilder 99 this.contentLength = C.LENGTH_UNSET; in DownloadBuilder() 147 public DownloadBuilder setContentLength(long contentLength) { in setContentLength() argument 148 this.contentLength = contentLength; in setContentLength() 196 contentLength, in build()
|
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/ |
D | Representation.java | 187 public final long contentLength; field in Representation.SingleSegmentRepresentation 215 long contentLength) { in newInstance() argument 221 revisionId, format, uri, segmentBase, inbandEventStreams, cacheKey, contentLength); in newInstance() 240 long contentLength) { in SingleSegmentRepresentation() argument 245 this.contentLength = contentLength; in SingleSegmentRepresentation() 249 : new SingleSegmentIndex(new RangedUri(null, 0, contentLength)); in SingleSegmentRepresentation()
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | AdaptedHttpStack.java | 67 long contentLength = apacheResp.getEntity().getContentLength(); in executeRequest() local 68 if ((int) contentLength != contentLength) { in executeRequest() 69 throw new IOException("Response too large: " + contentLength); in executeRequest()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | Http1xStream.java | 87 @Override public Sink createRequestBody(Request request, long contentLength) throws IOException { in createRequestBody() argument 93 if (contentLength != -1) { in createRequestBody() 95 return newFixedLengthSink(contentLength); in createRequestBody() 144 long contentLength = OkHeaders.contentLength(response); in getTransferStream() local 145 if (contentLength != -1) { in getTransferStream() 146 return newFixedLengthSource(contentLength); in getTransferStream() 223 public Sink newFixedLengthSink(long contentLength) { in newFixedLengthSink() argument 226 return new FixedLengthSink(contentLength); in newFixedLengthSink()
|