/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/apache-http/src/org/apache/http/impl/io/ |
ContentLengthInputStream.java | 78 private long contentLength; 95 * @param contentLength The maximum number of bytes that can be read from 98 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { 103 if (contentLength < 0) { 107 this.contentLength = contentLength; 143 if (pos >= contentLength) { 167 if (pos >= contentLength) { 171 if (pos + len > contentLength) { 172 len = (int) (contentLength - pos) [all...] |
ContentLengthOutputStream.java | 59 private final long contentLength; 71 * @param contentLength The maximum number of bytes that can be written to 76 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) { 81 if (contentLength < 0) { 85 this.contentLength = contentLength; 108 if (this.total < this.contentLength) { 109 long max = this.contentLength - this.total; 126 if (this.total < this.contentLength) {
|
/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;
|
MaxForwardsParser.java | 43 public MaxForwardsParser(String contentLength) { 44 super(contentLength); 55 MaxForwards contentLength = new MaxForwards(); 58 contentLength.setMaxForwards(Integer.parseInt(number)); 61 return contentLength;
|
PipelinedMsgParser.java | 292 ContentLength cl = (ContentLength) sipMessage 294 int contentLength = 0; 296 contentLength = cl.getContentLength(); 298 contentLength = 0; 302 Debug.println("contentLength " + contentLength); 305 if (contentLength == 0) { 308 || contentLength < this.sizeCounter) { 309 byte[] message_body = new byte[contentLength]; [all...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
RetryableOutputStream.java | 63 public synchronized int contentLength() throws IOException {
|
HttpURLConnectionImpl.java | 555 String contentLength = responseHeader.get("Content-Length"); 556 if (contentLength != null) { 558 int length = Integer.parseInt(contentLength); 599 int contentLength = -1; 602 contentLength = Integer.parseInt(contentLengthString); 608 contentLength = -1; 631 } else if (contentLength != -1) { 632 requestBodyOut = new RetryableOutputStream(contentLength); 713 String contentLength = responseHeader.get("Content-Length"); 714 if (contentLength != null && Integer.parseInt(contentLength) > 0) [all...] |
/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));
|
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/ |
HttpMethodResponse.java | 109 long contentLength = r.getEntity().getContentLength(); 110 if (contentLength >= 0) { 111 request.append("Content-Length: ").append(contentLength).append(EOL);
|
/frameworks/base/media/libdrm/mobile1/include/objmng/ |
drm_inner.h | 73 int32_t contentLength;
|
/packages/providers/DownloadProvider/tests/src/tests/http/ |
MockWebServer.java | 198 int contentLength = -1; 204 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) { 205 contentLength = Integer.parseInt(header.substring(15).trim()); 216 if (contentLength != -1) { 218 transfer(contentLength, in, requestBody);
|
/frameworks/base/core/tests/utillib/src/coretestutils/http/ |
MockWebServer.java | 216 int contentLength = -1; 222 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) { 223 contentLength = Integer.parseInt(header.substring(15).trim()); 234 if (contentLength != -1) { 236 transfer(contentLength, in, requestBody);
|
/frameworks/base/media/libstagefright/rtsp/ |
ARTSPConnection.cpp | 580 unsigned long contentLength = 0; 586 if (!ParseSingleUnsignedLong(value.c_str(), &contentLength)) { 591 if (contentLength > 0) { 592 response->mContent = new ABuffer(contentLength); 595 while (numBytesRead < contentLength) { 598 contentLength - numBytesRead, 0);
|
/libcore/support/src/test/java/tests/http/ |
MockWebServer.java | 296 int contentLength = -1; 302 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) { 303 contentLength = Integer.parseInt(header.substring(15).trim()); 314 if (contentLength != -1) { 316 transfer(contentLength, in, requestBody);
|
/external/webkit/WebCore/platform/network/curl/ |
ResourceHandleManager.cpp | 244 double contentLength = 0; 245 err = curl_easy_getinfo(h, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLength); 246 d->m_response.setExpectedContentLength(static_cast<long long int>(contentLength));
|
/external/webkit/WebCore/plugins/ |
PluginView.cpp | [all...] |
/frameworks/base/core/java/android/net/http/ |
Headers.java | 124 private long contentLength; // Content length of the incoming data 157 contentLength = NO_CONTENT_LENGTH; 202 contentLength = Long.parseLong(val); 310 return contentLength; 378 this.contentLength = value;
|
/frameworks/base/core/java/android/webkit/ |
CacheManager.java | 92 long contentLength; 114 return contentLength; 327 if (result.contentLength == 0) { 472 cacheRet.contentLength = 0; 475 if ((redirect || cacheRet.contentLength == 0) 479 if (cacheRet.contentLength == 0) { 625 if (oldResult != null && oldResult.contentLength > 0) { 696 // if the contentLength is already larger than CACHE_MAX_SIZE, skip it
|
LoadListener.java | 345 long contentLength = headers.getContentLength(); 346 if (contentLength != Headers.NO_CONTENT_LENGTH) { 347 mContentLength = contentLength; [all...] |
CallbackProxy.java | 385 Long contentLength = msg.getData().getLong("contentLength"); 388 contentDisposition, mimetype, contentLength); [all...] |
/external/nist-sip/java/gov/nist/javax/sip/message/ |
SIPMessage.java | 40 import gov.nist.javax.sip.header.ContentLength; 158 protected ContentLength contentLengthHeader; 243 if (!(siphdr instanceof ContentLength)) 291 if (hisHeader instanceof ContentLength) 366 if (!(siphdr instanceof ContentLength)) 427 if (!(siphdr instanceof ContentLength)) 547 this.attachHeader(new ContentLength(0), false); 659 if (h instanceof ContentLength) { 661 ContentLength cl = (ContentLength) h [all...] |
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebViewTest.java | [all...] |
/prebuilt/sdk/4/ |
android.jar | |
/prebuilt/sdk/7/ |
android.jar | |