Searched defs:body (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/sax/java/android/sax/
H A DEndTextElementListener.java25 * Invoked at the end of a text element with the body of the element.
27 * @param body of the element
29 void end(String body); argument
/frameworks/base/core/tests/utillib/src/coretestutils/http/
H A DRecordedRequest.java29 private final byte[] body; field in class:RecordedRequest
33 int bodySize, byte[] body, int sequenceNumber) {
38 this.body = body;
51 * Returns the sizes of the chunks of this request's body, or an empty list
52 * if the request's body was empty or unchunked.
59 * Returns the total size of the body of this POST request (before
67 * Returns the body of this POST request. This may be truncated.
70 return body;
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes, int bodySize, byte[] body, int sequenceNumber) argument
H A DMockResponse.java45 private byte[] body = EMPTY_BODY; field in class:MockResponse
94 * Returns true if the body should come from an external file, false otherwise.
111 return new ByteArrayInputStream(this.body);
114 public MockResponse setBody(File body) { argument
115 addHeader("Content-Length", body.length());
116 this.bodyExternalFile = body;
120 public MockResponse setBody(byte[] body) { argument
121 addHeader("Content-Length", body.length);
122 this.body = body;
126 setBody(String body) argument
139 setChunkedBody(byte[] body, int maxChunkSize) argument
157 setChunkedBody(String body, int maxChunkSize) argument
[all...]
/frameworks/base/obex/javax/obex/
H A DPrivateInputStream.java142 * Allows the <code>OperationImpl</code> thread to add body data to the
144 * @param body the data to add to the stream
145 * @param start the start of the body to array to copy
147 public synchronized void writeBytes(byte[] body, int start) { argument
149 int length = (body.length - start) + (mData.length - mIndex);
153 System.arraycopy(body, start, temp, mData.length - mIndex, body.length - start);
/frameworks/base/core/java/com/google/android/mms/pdu/
H A DMultimediaMessagePdu.java27 * The body.
42 * @param body the body of this PDU
44 public MultimediaMessagePdu(PduHeaders header, PduBody body) { argument
46 mMessageBody = body;
59 * Get body of the PDU.
61 * @return the body
68 * Set body of the PDU.
70 * @param body the body
72 setBody(PduBody body) argument
[all...]
H A DRetrieveConf.java49 * Constructor with given headers and body
52 * @param body Body of this PDu.
54 RetrieveConf(PduHeaders headers, PduBody body) { argument
55 super(headers, body);
H A DSendReq.java82 * Constructor with given headers and body
85 * @param body Body of this PDu.
87 SendReq(PduHeaders headers, PduBody body) { argument
88 super(headers, body);
H A DPduPersister.java572 PduBody body = new PduBody();
575 // load multiparts and put them into the body of the PDU.
582 body.addPart(parts[i]);
599 pdu = new RetrieveConf(headers, body);
602 pdu = new SendReq(headers, body);
967 * @param body New message body of the PDU.
970 public void updateParts(Uri uri, PduBody body) argument
974 ((MultimediaMessagePdu) cacheEntry.getPdu()).setBody(body);
980 int partsNum = body
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java77 public MailMessage(String subject, String body) { argument
78 this(subject, body, false);
82 public MailMessage(String subject, String body, boolean focusable) { argument
84 mBody = body;
100 public void setBody(String body) { argument
101 this.mBody = body;
138 WebView body = (WebView) messageUi.findViewById(R.id.body);
139 body.loadData(message.getBody(), mimeType, null);
140 // body
[all...]
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java75 public void end(String body) { argument
76 this.bodies += body;
133 public void end(String body) {
219 public void end(String body) {
220 video.videoId = body;
226 public void end(String body) {
229 video.dateAdded.parse3339(body);
236 public void end(String body) {
237 video.authorName = body;
275 public void end(String body) {
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DSmsCbMessage.java143 * Get the body of this message, or null if no body available
228 * Parse and unpack the body text according to the encoding in the DCS.
229 * After completing successfully this method will have assigned the body
342 * Unpack body text from the pdu using the given encoding, position and
349 * @param hasLanguageIndicator true if the body text is preceded by a
356 String body = null;
360 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7);
362 if (hasLanguageIndicator && body != null && body
450 appendToBody(String body) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java245 * Helper to enqueue a response from the MockWebServer with no body.
259 * @param body The body to return in this response
262 protected MockResponse enqueueResponse(int status, byte[] body) { argument
263 return doEnqueueResponse(status).setBody(body);
271 * @param bodyFile The body to return in this response
923 * @param body The body to return in the response from the server
925 protected long doStandardEnqueue(byte[] body) throws Exception { argument
926 return enqueueDownloadRequest(body, DOWNLOAD_TO_DOWNLOAD_CACHE_DI
929 enqueueDownloadRequest(byte[] body, int location) argument
940 doStandardEnqueue(File body) argument
944 enqueueDownloadRequest(File body, int location) argument
[all...]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
H A DDownloadManagerBaseTest.java253 * @param body The body to return in this response
256 private MockResponse enqueueResponse(int status, byte[] body) { argument
257 return doEnqueueResponse(status).setBody(body);
265 * @param bodyFile The body to return in this response
744 * @param body The body to return in the response from the server
746 private long doStandardEnqueue(byte[] body) throws Exception { argument
748 enqueueResponse(HTTP_OK, body);
755 * @param body Th
757 doStandardEnqueue(File body) argument
[all...]
/frameworks/base/tools/localize/
H A DXLIFFFile.cpp83 // <body>
84 XMLNode* body = get_unique_node(file, XLIFF_XMLNS, "body", true); local
85 if (body == NULL) continue;
88 vector<XMLNode*> transUnits = body->GetElementsByName(XLIFF_XMLNS, "trans-unit");
493 // <body>
494 XMLNode* bodyNode = XMLNode::NewElement(GENERATED_POS, XLIFF_XMLNS, "body",
/frameworks/base/core/java/android/provider/
H A DTelephony.java133 * The body of the message
136 public static final String BODY = "body";
212 * @param body the body of the message
220 Uri uri, String address, String body, String subject,
222 return addMessageToUri(resolver, uri, address, body, subject,
232 * @param body the body of the message
241 Uri uri, String address, String body, String subject,
251 values.put(BODY, body);
219 addMessageToUri(ContentResolver resolver, Uri uri, String address, String body, String subject, Long date, boolean read, boolean deliveryReport) argument
240 addMessageToUri(ContentResolver resolver, Uri uri, String address, String body, String subject, Long date, boolean read, boolean deliveryReport, long threadId) argument
344 addMessage(ContentResolver resolver, String address, String body, String subject, Long date, boolean read) argument
377 addMessage(ContentResolver resolver, String address, String body, String subject, Long date) argument
409 addMessage(ContentResolver resolver, String address, String body, String subject, Long date) argument
423 saveMessage(ContentResolver resolver, Uri uri, String body) argument
458 addMessage(ContentResolver resolver, String address, String body, String subject, Long date, boolean deliveryReport, long threadId) argument
[all...]

Completed in 435 milliseconds