Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeBodyPart.java32 protected Body body; field in MimeBodyPart
44 public MimeBodyPart(Body body) throws MessagingException { in MimeBodyPart() argument
45 this(body, null); in MimeBodyPart()
48 public MimeBodyPart(Body body, String mimeType) throws MessagingException { in MimeBodyPart() argument
52 setBody(body); in MimeBodyPart()
81 return body; in getBody()
85 public void setBody(Body body) throws MessagingException { in setBody() argument
86 this.body = body; in setBody()
87 if (body instanceof Multipart) { in setBody()
89 ((Multipart) body); in setBody()
[all …]
DTextBody.java28 String body; field in TextBody
30 public TextBody(String body) { in TextBody() argument
31 this.body = body; in TextBody()
36 byte[] bytes = body.getBytes("UTF-8"); in writeTo()
46 return body; in getText()
53 byte[] b = body.getBytes("UTF-8"); in getInputStream()
DMimeMessage.java68 private Body body; field in MimeMessage
135 body = null; in init()
409 return body; in getBody()
413 public void setBody(Body body) throws MessagingException { in setBody() argument
414 this.body = body; in setBody()
415 if (body instanceof Multipart) { in setBody()
416 final Multipart multipart = ((Multipart) body); in setBody()
420 } else if (body instanceof TextBody) { in setBody()
539 if (body != null) { in writeTo()
540 body.writeTo(out); in writeTo()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java121 String body = cbData.second; in createSmsCbMessage() local
147 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage()
314 String body = null; in unpackBody() local
319 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7); in unpackBody()
321 if (dcs.hasLanguageIndicator && body != null && body.length() > 2) { in unpackBody()
324 language = body.substring(0, 2); in unpackBody()
325 body = body.substring(3); in unpackBody()
339 body = new String(pdu, offset, (length & 0xfffe), "utf-16"); in unpackBody()
350 if (body != null) { in unpackBody()
352 for (int i = body.length() - 1; i >= 0; i--) { in unpackBody()
[all …]
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmSmsCbMessage.java122 String body = cbData.second; in createSmsCbMessage() local
148 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage()
361 String body = null; in unpackBody() local
366 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7); in unpackBody()
368 if (dcs.hasLanguageIndicator && body != null && body.length() > 2) { in unpackBody()
371 language = body.substring(0, 2); in unpackBody()
372 body = body.substring(3); in unpackBody()
386 body = new String(pdu, offset, (length & 0xfffe), "utf-16"); in unpackBody()
397 if (body != null) { in unpackBody()
399 for (int i = body.length() - 1; i >= 0; i--) { in unpackBody()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java653 String body; in parseMimePart() local
661 body = partStr; in parseMimePart()
711 body = parts[1]; in parseMimePart()
712 if (body.length() > 2) { in parseMimePart()
713 if (body.charAt(body.length() - 2) == '\r' in parseMimePart()
714 && body.charAt(body.length() - 2) == '\n') { in parseMimePart()
715 body = body.substring(0, body.length() - 2); in parseMimePart()
720 newPart.mData = decodeBody(body, partEncoding, newPart.mCharsetName); in parseMimePart()
723 private void parseMimeBody(String body) { in parseMimeBody() argument
726 newPart.mData = decodeBody(body, mMyEncoding, mCharset); in parseMimeBody()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java233 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument
238 if (body != null) { in createCmasSmsMessage()
240 encodeBody(encoding, body, true, cmasBos); in createCmasSmsMessage()
282 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument
287 encodeBody(encoding, body, false, bos); in createBroadcastSmsMessage()
303 private static void encodeBody(int encoding, String body, boolean isCmasRecord, in encodeBody() argument
306 int charCount = body.length(); in encodeBody()
323 bos.write(7, body.charAt(i)); in encodeBody()
330 byte[] encodedBody = GsmAlphabet.stringToGsm7BitPacked(body); in encodeBody()
359 int charCount = body.length(); in encodeBody()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java695 final MmsBody body = getMmsBody(mmsId);
696 if (body != null && body.equals(mms.body)) {
848 final MmsBody body = getMmsBody(mmsId);
850 if (body == null || body.text == null) {
890 jsonWriter.name(MMS_BODY_KEY).value(body.text);
892 jsonWriter.name(MMS_BODY_CHARSET_KEY).value(body.charSet);
968 mms.body = new MmsBody(bodyText, bodyCharset);
1008 String body = null;
1018 body = (body == null ? text : body.concat(text));
1024 return (body == null ? null : new MmsBody(body, charSet));
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DQuickResponseActivity.java86 String body = null; in onItemClick() local
88 body = mResponses[position]; in onItemClick()
92 new QueryThread(mEventId, body).start(); in onItemClick()
99 QueryThread(long eventId, String body) { in QueryThread() argument
101 mBody = body; in QueryThread()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiListItemAdapter.java174 mBody = findViewByRefId(itemView, R.id.body); in ListItemViewHolder()
193 CharSequence body = item.getBody(); in bind() local
203 if (!TextUtils.isEmpty(body)) { in bind()
204 mBody.setText(body); in bind()
363 mBody = findViewByRefId(itemView, R.id.body); in HeaderViewHolder()
369 CharSequence body = item.getBody(); in bind() local
370 if (!TextUtils.isEmpty(body)) { in bind()
371 mBody.setText(body); in bind()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DMultimediaMessagePdu.java42 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument
44 mMessageBody = body; in MultimediaMessagePdu()
70 public void setBody(PduBody body) { in setBody() argument
71 mMessageBody = body; in setBody()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java551 final PduBody body = loadBody(msgId, msgType); in load() local
552 return createPdu(msgType, headers, body); in load()
619 final PduBody body = loadBody(msgId, msgType); in load() local
620 pdu = createPdu(msgType, headers, body); in load()
660 private GenericPdu createPdu(final int msgType, final PduHeaders headers, final PduBody body) in createPdu() argument
670 return new RetrieveConf(headers, body); in createPdu()
672 return new SendReq(headers, body); in createPdu()
705 final PduBody body = new PduBody(); in loadBody() local
715 body.addPart(parts[i]); in loadBody()
720 return body; in loadBody()
[all …]
DMultimediaMessagePdu.java44 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument
46 mMessageBody = body; in MultimediaMessagePdu()
72 public void setBody(PduBody body) { in setBody() argument
73 mMessageBody = body; in setBody()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DThreadingTest.java55 final String body = "DOWNLOAD " + i + " CONTENTS"; in testFilenameRace() local
56 enqueueResponse(new MockResponse().setResponseCode(HTTP_OK).setBody(body) in testFilenameRace()
61 downloads.add(Pair.create(d, body)); in testFilenameRace()
62 expectedBodies.add(body); in testFilenameRace()
DAbstractDownloadProviderFunctionalTest.java274 MockResponse buildResponse(int status, String body) { in buildResponse() argument
275 return new MockResponse().setResponseCode(status).setBody(body) in buildResponse()
280 MockResponse buildResponse(int status, byte[] body) { in buildResponse() argument
281 return new MockResponse().setResponseCode(status).setBody(body) in buildResponse()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css1 body code {
17 body, table, div, p, dl { selector
27 body { selector
89 body h1 {
98 body h2 {
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DCarUiListItemTest.java72 return getListItemViewHolderAtPosition(position).itemView.findViewById(R.id.body); in getListItemBodyAtPosition()
107 return getHeaderViewHolderAtPosition(position).itemView.findViewById(R.id.body); in getHeaderViewHolderBodyAtPosition()
284 CharSequence body = "With body text"; in testHeader_titleAndBody() local
286 CarUiHeaderListItem header = new CarUiHeaderListItem(title, body); in testHeader_titleAndBody()
297 assertThat(bodyView.getText()).isEqualTo(body); in testHeader_titleAndBody()
/packages/apps/Car/Cluster/src/android/car/cluster/
DPhoneFragment.java57 TextView body = mUserProfileContainerView.findViewById(R.id.body); in onCreateView() local
66 mViewModel.getBody().observe(getViewLifecycleOwner(), body::setText); in onCreateView()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPrivateVolumeUnmount.java62 final TextView body = (TextView) view.findViewById(R.id.body); in onCreateView() local
65 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_unmount_details), in onCreateView()
DPrivateVolumeFormat.java59 final TextView body = (TextView) view.findViewById(R.id.body); in onCreateView() local
62 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_format_details), in onCreateView()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequest.java119 protected void executePut(ClientSession session, byte[] body) throws IOException { in executePut() argument
122 mHeaderSet.setHeader(HeaderSet.LENGTH, Long.valueOf(body.length)); in executePut()
128 out.write(body); in executePut()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPrivateVolumeUnmount.java62 final TextView body = (TextView) view.findViewById(R.id.body); in onCreateView() local
65 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_unmount_details), in onCreateView()
DPrivateVolumeFormat.java59 final TextView body = (TextView) view.findViewById(R.id.body); in onCreateView() local
62 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_format_details), in onCreateView()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipRequest.java97 protected void executePut(ClientSession session, byte[] body) throws IOException { in executePut() argument
100 mHeaderSet.setHeader(HeaderSet.LENGTH, Long.valueOf(body.length)); in executePut()
105 outputStream.write(body); in executePut()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java529 MockResponse(String body, String mimetype, Map<String, String> headers) { in MockResponse() argument
530 this.mBody = body; in MockResponse()
563 private void setResponseBody(String query, String body) { in setResponseBody() argument
564 setResponse(query, body, NanoHTTPD.MIME_HTML, Collections.emptyMap()); in setResponseBody()
567 private void setResponse(String query, String body, String mimetype, in setResponse() argument
569 mResponses.put(query, new MockResponse(body, mimetype, headers)); in setResponse()

1234