Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/util/
DEmail.java75 private void addHeader(List<String> headers, String name, String value) { in addHeader() argument
77 headers.add(String.format("%s: %s", name, value)); in addHeader()
84 private void addHeaders(List<String> headers, String name, Collection<String> values) { in addHeaders() argument
89 headers.add(String.format("%s: %s", name, strValues)); in addHeaders()
107 final ArrayList<String> headers = new ArrayList<String>(); in send() local
110 addHeader(headers, "From", msg.getSender()); in send()
120 addHeaders(headers, "To", msg.getTo()); in send()
121 addHeaders(headers, "Cc", msg.getCc()); in send()
122 addHeaders(headers, "Bcc", msg.getBcc()); in send()
123 addHeader(headers, "Content-type", msg.getContentType()); in send()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DEmailTest.java150 final Map<String, String> headers = new HashMap<String, String>(); in testSend_simple() local
151 final String body = extractBody(mEmail.getMailerData(), headers); in testSend_simple()
154 assertEquals("or@igin.com", headers.get("From")); in testSend_simple()
155 assertEquals("dest@ination.com", headers.get("To")); in testSend_simple()
156 assertEquals("subject", headers.get("Subject")); in testSend_simple()
157 assertEquals(Message.PLAIN, headers.get("Content-type")); in testSend_simple()
158 assertEquals(4, headers.size()); in testSend_simple()
170 final Map<String, String> headers = new HashMap<String, String>(); in testSend_htmlEmail() local
171 final String body = extractBody(mEmail.getMailerData(), headers); in testSend_htmlEmail()
174 assertEquals(Message.HTML, headers.get("Content-type")); in testSend_htmlEmail()
[all …]
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt125 defined IPv6 extension headers and options. It also discusses packet
231 extension headers [section 4] present are
290 headers that may be placed between the IPv6 header and the upper-
292 headers, each identified by a distinct Next Header value. As
294 more extension headers, each identified by the Next Header field of
320 With one exception, extension headers are not examined or processed
328 not to proceed to the next header. Therefore, extension headers must
362 order to retain 8-octet alignment for subsequent headers. Multi-
369 following extension headers:
384 recommended that those headers appear in the following order:
[all …]