Home
last modified time | relevance | path

Searched refs:setHeader (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DMimeBodyPart.java54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart()
67 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeBodyPart
68 mHeader.setHeader(name, value); in setHeader()
89 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
97 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody()
98 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
164 mExtendedHeader.setHeader(name, END_OF_LINE.matcher(value).replaceAll("")); in setExtendedHeader()
DMimeMessage.java172 setHeader("Date", DATE_FORMAT.format(sentDate)); in setSentDate()
249 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
257 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
265 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
284 setHeader("Subject", MimeUtility.foldAndEncode2(subject, HEADER_NAME_LENGTH)); in setSubject()
303 setHeader("From", MimeUtility.fold(from.toHeader(), FROM_LENGTH)); in setFrom()
327 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), REPLY_TO_LENGTH)); in setReplyTo()
339 setHeader("Message-ID", messageId); in setMessageId()
374 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
375 setHeader("MIME-Version", "1.0"); in setBody()
[all …]
DMimeHeader.java74 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeHeader
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeHeaderUnitTests.java45 header.setHeader("Header1", "value1"); in testWriteToString()
50 header.setHeader("Header2", "value2"); in testWriteToString()
57 header.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "value3"); in testWriteToString()
DMimeUtilityTest.java410 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/plain"); in testGetTextFromPartContentTypeCase()
416 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/PLAIN"); in testGetTextFromPartContentTypeCase()
422 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/other"); in testGetTextFromPartContentTypeCase()
453 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=utf-8"); in testContentTypeCharset()
459 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=windows-1252"); in testContentTypeCharset()
466 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
473 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
484 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/HtmL ; CHARseT=utf-8"); in testContentTypeCharset()
490 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/HtmL ; CHARseT=windows-1252"); in testContentTypeCharset()
500 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
[all …]
DMimeMessageTest.java142 message.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
146 message.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
276 message.setHeader("From", "noname1@dom1.com"); in testParsingAddressField()
277 message.setHeader("To", "<noname2@dom2.com>"); in testParsingAddressField()
279 message.setHeader("Cc", in testParsingAddressField()
283 message.setHeader("Reply-to", in testParsingAddressField()
409 message.setHeader("Header1", "value1"); in testWriteToHeader()
410 message.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "value2"); in testWriteToHeader()
412 message.setHeader("Header4", "value4"); in testWriteToHeader()
DMimeBodyPartTest.java47 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
51 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java262 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/jpg"); in testAttachmentDispositions()
263 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in testAttachmentDispositions()
264 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in testAttachmentDispositions()
266 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "100"); in testAttachmentDispositions()
271 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/gif"); in testAttachmentDispositions()
272 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in testAttachmentDispositions()
273 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in testAttachmentDispositions()
275 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "101"); in testAttachmentDispositions()
280 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testAttachmentDispositions()
282 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "7bit"); in testAttachmentDispositions()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java196 .setHeader("Content-length", totalLength) in buildPartialResponse()
197 .setHeader("Etag", ETAG); in buildPartialResponse()
199 response.setHeader( in buildPartialResponse()
212 .setHeader("Content-length", contentLength) in buildContinuingResponse()
213 .setHeader("Etag", ETAG) in buildContinuingResponse()
395 .setHeader("Content-Type", "text/html; charset=ISO-8859-4")); in testSanitizeMediaType()
410 .setHeader("Content-Length", 1024L * 1024 * 1024 * 1024 * 1024)); in testInsufficientSpace()
562 buildEmptyResponse(HTTP_SERVICE_UNAVAILABLE).setHeader("Retry-after", delay)); in testRetryAfter()
649 .setHeader("Location", mServer.getUrl(REDIRECTED_PATH).toString())); in runRedirectionTest()
DAbstractDownloadProviderFunctionalTest.java222 .setHeader("Content-type", "text/plain") in buildResponse()
228 .setHeader("Content-type", "text/plain") in buildResponse()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java80 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in bodyPart()
96 textPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in textPart()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DPart.java27 public void setHeader(String name, String value) throws MessagingException; in setHeader() method
DMessage.java92 public abstract void setHeader(String name, String value) throws MessagingException; in setHeader() method in Message
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java342 request.setHeader(HeaderSet.NAME, fileInfo.mFileName); in sendFile()
343 request.setHeader(HeaderSet.TYPE, fileInfo.mMimetype); in sendFile()
349 request.setHeader(HeaderSet.LENGTH, fileInfo.mLength); in sendFile()
593 request.setHeader(HeaderSet.NAME, newFilename); in applyRemoteDeviceQuirks()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasSyncService.java645 post.setHeader("Authorization", mAuthString); in postAutodiscover()
727 post.setHeader("Content-Type", "text/xml"); in tryAutodiscover()
1198 method.setHeader("Authorization", mAuthString); in setHeaders()
1199 method.setHeader("MS-ASProtocolVersion", mProtocolVersion); in setHeaders()
1200 method.setHeader("User-Agent", USER_AGENT); in setHeaders()
1201 method.setHeader("Accept-Encoding", "gzip"); in setHeaders()
1213 method.setHeader("X-MS-PolicyKey", key); in setHeaders()
1323 method.setHeader("Content-Type", "message/rfc822"); in sendHttpClientPost()
1325 method.setHeader("Content-Type", "application/vnd.ms-sync.wbxml"); in sendHttpClientPost()
1333 method.setHeader("Connection", "close"); in sendHttpClientPost()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DHttpHelper.java90 public void setHeader(String name, String value) { in setHeader() method in HttpHelper.GetRequest
/packages/apps/Email/src/org/apache/james/mime4j/message/
DEntity.java74 public void setHeader(Header header) { in setHeader() method in Entity
DMessage.java157 ((Entity) stack.peek()).setHeader(h); in endHeader()
/packages/apps/Email/src/com/android/email/mail/store/
DImapFolder.java821 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
872 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in parseBodyStructure()
881 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, in parseBodyStructure()
889 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
901 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java201 reply.setHeader(HeaderSet.WHO, uuid); in onConnect()
211 reply.setHeader(HeaderSet.TARGET, remote); in onConnect()
718 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
739 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
/packages/apps/Email/src/com/android/email/
DMessagingController.java1956 storePart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, in loadAttachment()
1958 storePart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in loadAttachment()
1964 storePart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in loadAttachment()
1970 storeMessage.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in loadAttachment()
DLegacyConversions.java353 message.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in makeMessage()