OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:contentLength
(Results
1 - 25
of
57
) sorted by null
1
2
3
/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/src/main/java/com/squareup/okhttp/internal/http/
RetryableOutputStream.java
67
public synchronized int
contentLength
() throws IOException {
Dispatcher.java
75
@Override public long
contentLength
() {
Job.java
61
long
contentLength
= body.
contentLength
();
62
if (
contentLength
== -1 ||
contentLength
> Integer.MAX_VALUE) {
66
connection.setFixedLengthStreamingMode((int)
contentLength
);
RequestHeaders.java
51
private long
contentLength
= -1;
99
contentLength
= Integer.parseInt(value);
161
return
contentLength
;
208
public void setContentLength(long
contentLength
) {
209
if (this.
contentLength
!= -1) {
212
headers.add("Content-Length", Long.toString(
contentLength
));
213
this.
contentLength
=
contentLength
;
HttpTransport.java
88
long
contentLength
= httpEngine.requestHeaders.getContentLength();
89
if (
contentLength
> Integer.MAX_VALUE) {
95
if (
contentLength
!= -1) {
97
return new RetryableOutputStream((int)
contentLength
);
ResponseHeaders.java
117
private int
contentLength
= -1;
175
contentLength
= Integer.parseInt(value);
198
contentLength
= -1;
267
return
contentLength
;
HttpEngine.java
629
int
contentLength
= ((RetryableOutputStream) requestBodyOut).
contentLength
();
630
requestHeaders.setContentLength(
contentLength
);
/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
...]
/external/okhttp/src/main/java/com/squareup/okhttp/
Request.java
107
public long
contentLength
() {
140
@Override public long
contentLength
() {
160
@Override public long
contentLength
() {
165
long length =
contentLength
();
Response.java
119
public long
contentLength
() {
126
long
contentLength
=
contentLength
();
127
if (
contentLength
> Integer.MAX_VALUE) {
128
throw new IOException("Cannot buffer entire body for content length: " +
contentLength
);
131
if (
contentLength
!= -1) {
132
byte[] content = new byte[(int)
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
));
/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/av/media/libstagefright/foundation/
ParsedMessage.cpp
164
int32_t
contentLength
;
165
if (!findInt32("content-length", &
contentLength
) ||
contentLength
< 0) {
166
contentLength
= 0;
169
size_t totalLength = offset +
contentLength
;
175
mContent.setTo(&data[offset],
contentLength
);
/frameworks/base/core/java/android/webkit/
CacheManager.java
59
long
contentLength
;
91
return
contentLength
;
228
public void setContentLength(long
contentLength
) {
229
this.
contentLength
=
contentLength
;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
Uploader.java
119
final int
contentLength
= (int) file.length();
127
connection.setFixedLengthStreamingMode(
contentLength
);
/libcore/support/src/test/java/tests/http/
MockWebServer.java
344
int
contentLength
= -1;
350
if (
contentLength
== -1 && lowercaseHeader.startsWith("content-length:")) {
351
contentLength
= Integer.parseInt(header.substring(15).trim());
362
if (
contentLength
!= -1) {
364
transfer(
contentLength
, in, requestBody);
/external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java
403
int
contentLength
= -1;
409
if (
contentLength
== -1 && lowercaseHeader.startsWith("content-length:")) {
410
contentLength
= Integer.parseInt(header.substring(15).trim());
421
if (
contentLength
!= -1) {
423
transfer(
contentLength
, in, requestBody);
/frameworks/av/media/libstagefright/rtsp/
ARTSPConnection.cpp
718
unsigned long
contentLength
= 0;
724
if (!ParseSingleUnsignedLong(value.c_str(), &
contentLength
)) {
729
if (
contentLength
> 0) {
730
response->mContent = new ABuffer(
contentLength
);
732
if (receive(response->mContent->data(),
contentLength
) != OK) {
/frameworks/base/core/java/android/net/http/
Headers.java
123
private long
contentLength
; // Content length of the incoming data
156
contentLength
= NO_CONTENT_LENGTH;
201
contentLength
= Long.parseLong(val);
316
return
contentLength
;
384
this.
contentLength
= value;
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
PublicApiFunctionalTest.java
240
int
contentLength
= STRING_1K.length() * numPackets;
242
.setHeader("Content-length",
contentLength
)
[
all
...]
Completed in 712 milliseconds
1
2
3