Home
last modified time | relevance | path

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

123

/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java151 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/jpg"); in brokentestAttachmentDispositions()
152 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in brokentestAttachmentDispositions()
153 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in brokentestAttachmentDispositions()
155 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "100"); in brokentestAttachmentDispositions()
160 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/gif"); in brokentestAttachmentDispositions()
161 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in brokentestAttachmentDispositions()
162 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in brokentestAttachmentDispositions()
164 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "101"); in brokentestAttachmentDispositions()
169 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in brokentestAttachmentDispositions()
171 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "7bit"); in brokentestAttachmentDispositions()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java201 setHeader("Date", DATE_FORMAT.format(sentDate)); in setSentDate()
281 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
289 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
297 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
316 setHeader("Subject", MimeUtility.foldAndEncode2(subject, HEADER_NAME_LENGTH)); in setSubject()
335 setHeader("From", MimeUtility.fold(from.toHeader(), FROM_LENGTH)); in setFrom()
359 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), REPLY_TO_LENGTH)); in setReplyTo()
371 setHeader("Message-ID", messageId); in setMessageId()
406 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
407 setHeader("MIME-Version", "1.0"); in setBody()
[all …]
DMimeBodyPart.java54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart()
69 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeBodyPart
70 mHeader.setHeader(name, value); in setHeader()
95 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
103 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody()
104 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
177 mExtendedHeader.setHeader(name, END_OF_LINE.matcher(value).replaceAll("")); in setExtendedHeader()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java197 setHeader("Date", DATE_FORMAT.format(sentDate)); in setSentDate()
295 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), toLength)); in setRecipients()
303 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), ccLength)); in setRecipients()
311 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), bccLength)); in setRecipients()
328 setHeader("Subject", MimeUtility.foldAndEncode2(subject, headerNameLength)); in setSubject()
347 setHeader("From", MimeUtility.fold(from.toHeader(), fromLength)); in setFrom()
369 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), replyToLength)); in setReplyTo()
382 setHeader("Message-ID", messageId); in setMessageId()
418 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
419 setHeader("MIME-Version", "1.0"); in setBody()
[all …]
DMimeBodyPart.java50 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart()
65 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeBodyPart
66 mHeader.setHeader(name, value); in setHeader()
91 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
98 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody()
99 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
171 mExtendedHeader.setHeader(name, END_OF_LINE.matcher(value).replaceAll("")); in setExtendedHeader()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeUtilityTest.java370 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/plain"); in testGetTextFromPartContentTypeCase()
376 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/PLAIN"); in testGetTextFromPartContentTypeCase()
382 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/other"); in testGetTextFromPartContentTypeCase()
413 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=utf-8"); in testContentTypeCharset()
419 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=windows-1252"); in testContentTypeCharset()
426 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
433 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
444 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/HtmL ; CHARseT=utf-8"); in testContentTypeCharset()
450 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/HtmL ; CHARseT=windows-1252"); in testContentTypeCharset()
460 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()
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()
DMimeBodyPartTest.java47 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
51 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java145 .setHeader("Content-type", "text/plain") in testExtremelyLarge()
227 .setHeader("Content-length", isFirstResponse ? totalLength : (end - start)) in buildPartialResponse()
228 .setHeader("Etag", ETAG); in buildPartialResponse()
230 response.setHeader( in buildPartialResponse()
243 .setHeader("Content-length", contentLength) in buildContinuingResponse()
244 .setHeader("Etag", ETAG) in buildContinuingResponse()
424 .setHeader("Location", mServer.getUrl("/" + i).toString())); in testRunawayRedirect()
438 buildEmptyResponse(HTTP_UNAVAILABLE).setHeader("Retry-after", RETRY_DELAY)); in testRunawayUnavailable()
462 .setHeader("Content-length", A.length()) in testEtagChanged()
463 .setHeader("Etag", A)); in testEtagChanged()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessagesListing.java53 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetMessagesListing()
56 mHeaderSet.setHeader(HeaderSet.NAME, ""); in RequestGetMessagesListing()
58 mHeaderSet.setHeader(HeaderSet.NAME, folderName); in RequestGetMessagesListing()
DRequestPushMessage.java36 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestPushMessage()
40 mHeaderSet.setHeader(HeaderSet.NAME, folder); in RequestPushMessage()
DRequestGetMessage.java48 mHeaderSet.setHeader(HeaderSet.NAME, handle); in RequestGetMessage()
50 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in RequestGetMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java250 hs.setHeader(HeaderSet.COUNT, (long) numShares); in connect()
346 request.setHeader(HeaderSet.NAME, fileInfo.mFileName); in sendFile()
347 request.setHeader(HeaderSet.TYPE, fileInfo.mMimetype); in sendFile()
353 request.setHeader(HeaderSet.LENGTH, fileInfo.mLength); in sendFile()
611 request.setHeader(HeaderSet.NAME, newFilename); in applyRemoteDeviceQuirks()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java220 reply.setHeader(HeaderSet.WHO, uuid); in onConnect()
230 reply.setHeader(HeaderSet.TARGET, remote); in onConnect()
907 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
942 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
958 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
969 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
980 reply.setHeader(HeaderSet.APPLICATION_PARAMETER, ap.getAPPparam()); in handleAppParaForResponse()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java331 reply.setHeader(HeaderSet.WHO, uuid); in onConnect()
341 reply.setHeader(HeaderSet.TARGET, remote); in onConnect()
349 reply.setHeader(THREADED_MAIL_HEADER_ID, THREAD_MAIL_KEY); in onConnect()
632 replyHeaders.setHeader(HeaderSet.NAME, handleStr); in pushMessage()
1081 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.EncodeParams()); in sendMessageListingRsp()
1239 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.EncodeParams()); in sendConvoListingRsp()
1332 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.EncodeParams()); in sendFolderListingRsp()
1505 replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, in sendGetMessageRsp()
DBluetoothMnsObexClient.java346 hs.setHeader(HeaderSet.TARGET, mnsTarget); in connect()
410 request.setHeader(HeaderSet.TYPE, TYPE_EVENT); in sendEventHandler()
411 request.setHeader(HeaderSet.APPLICATION_PARAMETER, appParams.EncodeParams()); in sendEventHandler()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java574 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
629 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, contentDisposition.toString()); in parseBodyStructure()
637 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding.getString()); in parseBodyStructure()
644 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
656 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java198 storePart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, in loadAttachment()
200 storePart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in loadAttachment()
207 storePart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in loadAttachment()
213 storeMessage.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in loadAttachment()
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java396 message.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in makeMessage()
500 bp.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in addAttachmentPart()
501 bp.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, "attachment;\n " in addAttachmentPart()
505 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in addAttachmentPart()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequestPullPhoneBook.java59 mHeaderSet.setHeader(HeaderSet.NAME, pbName); in BluetoothPbapRequestPullPhoneBook()
61 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullPhoneBook()
/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/provider_src/com/android/email/mail/store/
DImapFolder.java944 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
995 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in parseBodyStructure()
1004 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, in parseBodyStructure()
1012 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
1024 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DManagePermissionsFragment.java116 fragment.setHeader(null, null, null, fragment.getString( in bindPermissionUi()
228 fragment.setHeader(null, null, null, in bindPermissionUi()
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DOAuthAuthenticator.java92 post.setHeader("Content-Type", "application/x-www-form-urlencoded"); in requestAccess()
121 post.setHeader("Content-Type", "application/x-www-form-urlencoded"); in requestRefresh()

123