Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPart.java171 public void setContentId(final byte[] contentId) { in setContentId() argument
172 if ((contentId == null) || (contentId.length == 0)) { in setContentId()
177 if ((contentId.length > 1) in setContentId()
178 && ((char) contentId[0] == '<') in setContentId()
179 && ((char) contentId[contentId.length - 1] == '>')) { in setContentId()
180 mPartHeader.put(P_CONTENT_ID, contentId); in setContentId()
185 final byte[] buffer = new byte[contentId.length + 2]; in setContentId()
188 System.arraycopy(contentId, 0, buffer, 1, contentId.length); in setContentId()
382 final byte[] contentId = (byte[]) mPartHeader.get(P_CONTENT_ID); in generateLocation()
383 return "cid:" + new String(contentId); in generateLocation()
DPduComposer.java1027 final byte[] contentId = part.getContentId(); in makeMessageBody()
1029 if (null != contentId) { in makeMessageBody()
1031 if (('<' == contentId[0]) && ('>' == contentId[contentId.length - 1])) { in makeMessageBody()
1032 appendQuotedString(contentId); in makeMessageBody()
1034 appendQuotedString("<" + new String(contentId) + ">"); in makeMessageBody()
DPduParser.java1679 byte[] contentId = parseWapString(pduDataStream, TYPE_QUOTED_STRING); in parsePartHeaders()
1680 if (null != contentId) { in parsePartHeaders()
1681 part.setContentId(contentId); in parsePartHeaders()
1804 byte[] contentId = part.getContentId(); in checkPartPosition()
1805 if (null != contentId) { in checkPartPosition()
1806 if (true == Arrays.equals(mStartParam, contentId)) { in checkPartPosition()
DPduPersister.java404 final byte[] contentId = getByteArrayFromPartColumn( in loadParts()
406 if (contentId != null) { in loadParts()
407 part.setContentId(contentId); in loadParts()
/packages/apps/Messaging/src/android/support/v7/mms/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()
DPduParser.java1642 byte[] contentId = parseWapString(pduDataStream, TYPE_QUOTED_STRING); in parsePartHeaders()
1643 if (null != contentId) { in parsePartHeaders()
1644 part.setContentId(contentId); in parsePartHeaders()
1768 byte[] contentId = part.getContentId(); in checkPartPosition()
1769 if (null != contentId) { in checkPartPosition()
1770 if (true == Arrays.equals(mStartParam, contentId)) { in checkPartPosition()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlGeneratorFromXml.java98 ContentIdAndFileNames(String contentId) { in ContentIdAndFileNames() argument
99 mContentId = contentId; in ContentIdAndFileNames()
199 String contentId = parser.getAttributeValue("", ATTR_CONTENT_ID); in parse() local
200 if (!TextUtils.isEmpty(contentId)) { in parse()
203 fileNameToContentIdMap.put(fileName, contentId); in parse()
207 String contentId = parser.getAttributeValue("", ATTR_CONTENT_ID); in parse() local
208 if (!TextUtils.isEmpty(contentId) in parse()
209 && !outContentIdToFileContentMap.containsKey(contentId) in parse()
210 && !contentIdToFileContentMap.containsKey(contentId)) { in parse()
213 contentIdToFileContentMap.put(contentId, fileContent); in parse()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageProcessorProxyListener.java153 listeners = filteredListeners(job.contentId); in onStart()
165 listeners = filteredListeners(job.contentId); in onResultCompressed()
177 listeners = filteredListeners(job.contentId); in onResultUncompressed()
188 listeners = filteredListeners(job.contentId); in onResultUri()
DTaskImageContainer.java122 public final long contentId; field in TaskImageContainer.TaskInfo
130 contentId = aContentId; in TaskInfo()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemData.java49 long contentId, in FilmstripItemData() argument
60 mContentId = contentId; in FilmstripItemData()
231 public Builder withContentId(long contentId) { in withContentId() argument
232 mContentId = contentId; in withContentId()
DVideoItemData.java31 public VideoItemData(long contentId, String title, String mimeType, Date creationDate, in VideoItemData() argument
35 super(contentId, title, mimeType, creationDate, lastModifiedDate, filePath, uri, dimensions, in VideoItemData()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeBodyPart.java125 String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId() local
126 if (contentId == null) { in getContentId()
130 return REMOVE_OPTIONAL_BRACKETS.matcher(contentId).replaceAll("$1"); in getContentId()
DMimeMessage.java240 final String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId() local
241 if (contentId == null) { in getContentId()
245 return REMOVE_OPTIONAL_BRACKETS.matcher(contentId).replaceAll("$1"); in getContentId()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java430 final String contentId = (index == -1) ? srcName : srcName.substring(0, index); in setPartContentLocationAndId() local
431 part.setContentId(contentId.getBytes()); in setPartContentLocationAndId()