Home
last modified time | relevance | path

Searched refs:contentId (Results 1 – 4 of 4) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduPart.java196 public void setContentId(byte[] contentId) { in setContentId() argument
197 if((contentId == null) || (contentId.length == 0)) { in setContentId()
202 if ((contentId.length > 1) in setContentId()
203 && ((char) contentId[0] == '<') in setContentId()
204 && ((char) contentId[contentId.length - 1] == '>')) { in setContentId()
205 mPartHeader.put(P_CONTENT_ID, contentId); in setContentId()
210 byte[] buffer = new byte[contentId.length + 2]; in setContentId()
213 System.arraycopy(contentId, 0, buffer, 1, contentId.length); in setContentId()
407 byte[] contentId = (byte[]) mPartHeader.get(P_CONTENT_ID); in generateLocation()
408 return "cid:" + new String(contentId); in generateLocation()
DPduBody.java46 byte[] contentId = part.getContentId(); in putPartToMaps()
47 if(null != contentId) { in putPartToMaps()
48 mPartMapByContentId.put(new String(contentId), part); in putPartToMaps()
DPduComposer.java960 byte[] contentId = part.getContentId(); in makeMessageBody()
962 if (null != contentId) { in makeMessageBody()
964 if (('<' == contentId[0]) && ('>' == contentId[contentId.length - 1])) { in makeMessageBody()
965 appendQuotedString(contentId); in makeMessageBody()
967 appendQuotedString("<" + new String(contentId) + ">"); in makeMessageBody()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMmsMessagingDemo.java386 String contentId = (index == -1) ? TEXT_PART_FILENAME in addTextPart() local
388 part.setContentId(contentId.getBytes()); in addTextPart()