Home
last modified time | relevance | path

Searched refs:contentDisposition (Results 1 – 11 of 11) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java214 private static String parseContentDisposition(String contentDisposition) { in parseContentDisposition() argument
216 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition()
231 String contentDisposition, String contentLocation, String mimeType, int destination) in generateSaveFile() argument
249 name = chooseFilename(url, hint, contentDisposition, contentLocation); in generateSaveFile()
299 private static String chooseFilename(String url, String hint, String contentDisposition,
317 if (filename == null && contentDisposition != null) {
318 filename = parseContentDisposition(contentDisposition);
DDownloadThread.java782 final String contentDisposition = conn.getHeaderField("Content-Disposition"); in parseOkHeaders() local
787 mInfo.mHint, contentDisposition, contentLocation, mInfoDelta.mMimeType, in parseOkHeaders()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java588 final StringBuilder contentDisposition = new StringBuilder(); in parseBodyStructure() local
594 contentDisposition.append(bodyDisposition0Str); in parseBodyStructure()
606 contentDisposition.append( in parseBodyStructure()
620 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") == null)) { in parseBodyStructure()
621 contentDisposition.append(String.format(Locale.US, ";\n size=%d", size)); in parseBodyStructure()
624 if (contentDisposition.length() > 0) { in parseBodyStructure()
629 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, contentDisposition.toString()); in parseBodyStructure()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPart.java259 public void setContentDisposition(final byte[] contentDisposition) { in setContentDisposition() argument
260 if (contentDisposition == null) { in setContentDisposition()
264 mPartHeader.put(P_CONTENT_DISPOSITION, contentDisposition); in setContentDisposition()
DPduPersister.java398 final byte[] contentDisposition = getByteArrayFromPartColumn( in loadParts()
400 if (contentDisposition != null) { in loadParts()
401 part.setContentDisposition(contentDisposition); in loadParts()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduPart.java284 public void setContentDisposition(byte[] contentDisposition) { in setContentDisposition() argument
285 if(contentDisposition == null) { in setContentDisposition()
289 mPartHeader.put(P_CONTENT_DISPOSITION, contentDisposition); in setContentDisposition()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeBodyPart.java115 String contentDisposition = getFirstHeader(MimeHeader.HEADER_CONTENT_DISPOSITION); in getDisposition() local
116 if (contentDisposition == null) { in getDisposition()
119 return contentDisposition; in getDisposition()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeBodyPart.java120 String contentDisposition = getFirstHeader(MimeHeader.HEADER_CONTENT_DISPOSITION); in getDisposition() local
121 if (contentDisposition == null) { in getDisposition()
124 return contentDisposition; in getDisposition()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java958 final StringBuilder contentDisposition = new StringBuilder(); in parseBodyStructure() local
964 contentDisposition.append(bodyDisposition0Str); in parseBodyStructure()
976 contentDisposition.append(String.format(Locale.US, ";\n %s=\"%s\"", in parseBodyStructure()
985 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") in parseBodyStructure()
987 contentDisposition.append(String.format(Locale.US, ";\n size=%d", size)); in parseBodyStructure()
990 if (contentDisposition.length() > 0) { in parseBodyStructure()
996 contentDisposition.toString()); in parseBodyStructure()
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java201 final String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition()); in mimePartToAttachment() local
202 name = MimeUtility.getHeaderParameter(contentDisposition, "filename"); in mimePartToAttachment()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java254 final String contentDisposition = in Attachment() local
256 name = MimeUtility.getHeaderParameter(contentDisposition, "filename"); in Attachment()