Home
last modified time | relevance | path

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

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java218 private static String parseContentDisposition(String contentDisposition) { in parseContentDisposition() argument
220 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition()
235 String contentDisposition, String contentLocation, String mimeType, int destination) in generateSaveFile() argument
253 name = chooseFilename(url, hint, contentDisposition, contentLocation); in generateSaveFile()
303 private static String chooseFilename(String url, String hint, String contentDisposition,
321 if (filename == null && contentDisposition != null) {
322 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.java589 final StringBuilder contentDisposition = new StringBuilder(); in parseBodyStructure() local
595 contentDisposition.append(bodyDisposition0Str); in parseBodyStructure()
607 contentDisposition.append( in parseBodyStructure()
621 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") == null)) { in parseBodyStructure()
622 contentDisposition.append(String.format(Locale.US, ";\n size=%d", size)); in parseBodyStructure()
625 if (contentDisposition.length() > 0) { in parseBodyStructure()
630 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/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java846 public void onDownloadStart(String url, String userAgent, String contentDisposition, in onDownloadStart() argument
849 final String displayName = URLUtil.guessFileName(url, contentDisposition, in onDownloadStart()