/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 151 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/ |
D | MimeMessage.java | 201 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 …]
|
D | MimeBodyPart.java | 54 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/services/Telephony/src/com/android/phone/common/mail/internet/ |
D | MimeMessage.java | 200 setHeader("Date", DATE_FORMAT.format(sentDate)); in setSentDate() 280 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients() 288 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients() 296 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients() 315 setHeader("Subject", MimeUtility.foldAndEncode2(subject, HEADER_NAME_LENGTH)); in setSubject() 334 setHeader("From", MimeUtility.fold(from.toHeader(), FROM_LENGTH)); in setFrom() 358 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), REPLY_TO_LENGTH)); in setReplyTo() 370 setHeader("Message-ID", messageId); in setMessageId() 405 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody() 406 setHeader("MIME-Version", "1.0"); in setBody() [all …]
|
D | MimeBodyPart.java | 53 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart() 68 public void setHeader(String name, String value) throws MessagingException { in setHeader() method in MimeBodyPart 69 mHeader.setHeader(name, value); in setHeader() 94 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody() 102 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody() 103 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody() 176 mExtendedHeader.setHeader(name, END_OF_LINE.matcher(value).replaceAll("")); in setExtendedHeader()
|
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
D | MimeUtilityTest.java | 370 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 …]
|
D | MimeMessageTest.java | 142 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()
|
D | MimeHeaderUnitTests.java | 45 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()
|
D | MimeBodyPartTest.java | 47 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId() 51 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | MapStepsFolder.java | 40 hs.setHeader(HeaderSet.TYPE, MapObexLevelTest.TYPE_GET_FOLDER_LISTING); in addGoToMsgFolderSteps() 46 hs.setHeader(HeaderSet.NAME, "telecom"); in addGoToMsgFolderSteps() 54 hs.setHeader(HeaderSet.TYPE, MapObexLevelTest.TYPE_GET_FOLDER_LISTING); in addGoToMsgFolderSteps() 60 hs.setHeader(HeaderSet.NAME, "msg"); in addGoToMsgFolderSteps() 67 hs.setHeader(HeaderSet.TYPE, MapObexLevelTest.TYPE_GET_FOLDER_LISTING); in addGoToMsgFolderSteps()
|
D | TestSequencer.java | 136 reqHeaders.setHeader(STEP_INDEX_HEADER, stepIndex); in run() 147 reqHeaders.setHeader(STEP_INDEX_HEADER, stepIndex); in run() 160 reqHeaders.setHeader(STEP_INDEX_HEADER, stepIndex); in run() 171 reqHeaders.setHeader(STEP_INDEX_HEADER, stepIndex); in run() 189 reqHeaders.setHeader(STEP_INDEX_HEADER, stepIndex); in run()
|
D | SdpManagerTest.java | 185 reqHeaders.setHeader(TestSequencer.STEP_INDEX_HEADER, (long)0); in testSdpSearchClient() 196 reqHeaders.setHeader(TestSequencer.STEP_INDEX_HEADER, (long)iteration); in testSdpSearchClient() 197 reqHeaders.setHeader(HeaderSet.COUNT, (long)count); in testSdpSearchClient() 198 reqHeaders.setHeader(HeaderSet.NAME, uuids_str); in testSdpSearchClient() 211 reqHeaders.setHeader(TestSequencer.STEP_INDEX_HEADER, 0L); // signals end of test in testSdpSearchClient()
|
D | MapStepsConvo.java | 169 hs.setHeader(HeaderSet.TYPE, MapObexLevelTest.TYPE_GET_CONVO_LISTING); in addConvoListingStep() 171 hs.setHeader(HeaderSet.APPLICATION_PARAMETER, appParams.EncodeParams()); in addConvoListingStep()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 145 .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/pbapclient/ |
D | BluetoothPbapRequestPullVcardListingSize.java | 34 mHeaderSet.setHeader(HeaderSet.NAME, folder); in BluetoothPbapRequestPullVcardListingSize() 36 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullVcardListingSize()
|
D | BluetoothPbapRequestPullPhoneBookSize.java | 34 mHeaderSet.setHeader(HeaderSet.NAME, pbName); in BluetoothPbapRequestPullPhoneBookSize() 36 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullPhoneBookSize()
|
D | BluetoothPbapRequestPullVcardEntry.java | 47 mHeaderSet.setHeader(HeaderSet.NAME, handle); in BluetoothPbapRequestPullVcardEntry() 49 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullVcardEntry()
|
D | BluetoothPbapRequestPullVcardListing.java | 55 mHeaderSet.setHeader(HeaderSet.NAME, folder); in BluetoothPbapRequestPullVcardListing() 57 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullVcardListing()
|
D | BluetoothPbapRequestPullPhoneBook.java | 59 mHeaderSet.setHeader(HeaderSet.NAME, pbName); in BluetoothPbapRequestPullPhoneBook() 61 mHeaderSet.setHeader(HeaderSet.TYPE, TYPE); in BluetoothPbapRequestPullPhoneBook()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexClientSession.java | 245 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() 603 request.setHeader(HeaderSet.NAME, newFilename); in applyRemoteDeviceQuirks()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | MessageTestUtils.java | 80 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/service/ |
D | EmailServiceStub.java | 198 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/ |
D | LegacyConversions.java | 396 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/services/Telephony/src/com/android/phone/common/mail/store/ |
D | ImapFolder.java | 580 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure() 631 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in parseBodyStructure() 640 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, in parseBodyStructure() 648 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure() 660 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMnsObexClient.java | 346 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()
|