/external/apache-http/src/org/apache/http/message/ |
D | HeaderGroup.java | 59 private List headers; field in HeaderGroup 65 this.headers = new ArrayList(16); in HeaderGroup() 72 headers.clear(); in clear() 85 headers.add(header); in addHeader() 97 headers.remove(header); in removeHeader() 111 for (int i = 0; i < this.headers.size(); i++) { in updateHeader() 112 Header current = (Header) this.headers.get(i); in updateHeader() 114 this.headers.set(i, header); in updateHeader() 118 this.headers.add(header); in updateHeader() 128 public void setHeaders(Header[] headers) { in setHeaders() argument [all …]
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | HttpHeaderParserTest.java | 48 private Map<String, String> headers; field in HttpHeaderParserTest 51 headers = new HashMap<String, String>(); in setUp() 52 response = new NetworkResponse(0, null, headers, false); in setUp() 67 headers.put("MyCustomHeader", "42"); in parseCacheHeaders_headersSet() 78 headers.put("ETag", "Yow!"); in parseCacheHeaders_etag() 88 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_normalExpire() 89 headers.put("Last-Modified", rfc1123Date(now - ONE_DAY_MILLIS)); in parseCacheHeaders_normalExpire() 90 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire() 104 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_expiresInPast() 105 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); in parseCacheHeaders_expiresInPast() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HeadersTest.java | 45 Headers headers = response.headers(); in parseNameValueBlock() local 46 assertEquals(3, headers.size()); in parseNameValueBlock() 50 assertEquals("no-cache, no-store", headers.get("cache-control")); in parseNameValueBlock() 51 assertEquals("Cookie2", headers.get("set-cookie")); in parseNameValueBlock() 52 assertEquals("cache-control", headers.name(0)); in parseNameValueBlock() 53 assertEquals("no-cache, no-store", headers.value(0)); in parseNameValueBlock() 54 assertEquals("set-cookie", headers.name(1)); in parseNameValueBlock() 55 assertEquals("Cookie1", headers.value(1)); in parseNameValueBlock() 56 assertEquals("set-cookie", headers.name(2)); in parseNameValueBlock() 57 assertEquals("Cookie2", headers.value(2)); in parseNameValueBlock() [all …]
|
/external/volley/src/main/java/com/android/volley/ |
D | NetworkResponse.java | 43 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 45 this(statusCode, data, headers, toAllHeaderList(headers), notModified, networkTimeMs); in NetworkResponse() 72 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 74 this(statusCode, data, headers, notModified, 0); in NetworkResponse() 94 public NetworkResponse(byte[] data, Map<String, String> headers) { in NetworkResponse() argument 95 this(HttpURLConnection.HTTP_OK, data, headers, false, 0); in NetworkResponse() 98 private NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 102 this.headers = headers; in NetworkResponse() 127 public final Map<String, String> headers; field in NetworkResponse 145 Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); in toHeaderMap() local [all …]
|
/external/syslinux/gpxe/src/util/ |
D | efirom.c | 116 } *headers; in make_efi_rom() local 134 rom_size = ( ( pe_size + sizeof ( *headers ) + 511 ) & ~511 ); in make_efi_rom() 139 headers = buf; in make_efi_rom() 140 payload = ( buf + sizeof ( *headers ) ); in make_efi_rom() 148 headers->rom.Signature = PCI_EXPANSION_ROM_HEADER_SIGNATURE; in make_efi_rom() 149 headers->rom.InitializationSize = ( rom_size / 512 ); in make_efi_rom() 150 headers->rom.EfiSignature = EFI_PCI_EXPANSION_ROM_HEADER_EFISIGNATURE; in make_efi_rom() 151 read_pe_info ( payload, &headers->rom.EfiMachineType, in make_efi_rom() 152 &headers->rom.EfiSubsystem ); in make_efi_rom() 153 headers->rom.EfiImageHeaderOffset = sizeof ( *headers ); in make_efi_rom() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
D | TestHttpResponse.java | 29 private Header[] headers = new Header[0]; field in TestHttpResponse 42 public TestHttpResponse(int statusCode, String responseBody, Header... headers) { in TestHttpResponse() argument 43 this(statusCode, responseBody.getBytes(), headers); in TestHttpResponse() 46 public TestHttpResponse(int statusCode, byte[] responseBody, Header... headers) { in TestHttpResponse() argument 49 this.headers = headers; in TestHttpResponse() 65 return headers; in getAllHeaders() 69 for (Header h : headers) { in getFirstHeader() 78 for (int i = headers.length -1; i >= 0; i--) { in getLastHeader() 79 if (headers[i].getName().equalsIgnoreCase(s)) { in getLastHeader() 80 return headers[i]; in getLastHeader() [all …]
|
/external/webrtc/webrtc/examples/peerconnection/server/ |
D | data_socket.cc | 178 const char* headers = request_headers_.data() + i + 2; in ParseHeaders() local 180 if (!ParseContentLengthAndType(headers, len)) in ParseHeaders() 224 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { in ParseContentLengthAndType() argument 228 const char* end = headers + length; in ParseContentLengthAndType() 229 while (headers && headers < end) { in ParseContentLengthAndType() 230 if (!isspace(headers[0])) { in ParseContentLengthAndType() 233 if ((headers + ARRAYSIZE(kContentLength)) < end && in ParseContentLengthAndType() 234 strncmp(headers, kContentLength, in ParseContentLengthAndType() 236 headers += ARRAYSIZE(kContentLength) - 1; in ParseContentLengthAndType() 237 while (headers[0] == ' ') in ParseContentLengthAndType() [all …]
|
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/ |
D | TestHttpResponse.java | 29 private Header[] headers = new Header[0]; field in TestHttpResponse 42 public TestHttpResponse(int statusCode, String responseBody, Header... headers) { in TestHttpResponse() argument 43 this(statusCode, responseBody.getBytes(UTF_8), headers); in TestHttpResponse() 46 public TestHttpResponse(int statusCode, byte[] responseBody, Header... headers) { in TestHttpResponse() argument 49 this.headers = headers; in TestHttpResponse() 65 return headers; in getAllHeaders() 69 for (Header h : headers) { in getFirstHeader() 78 for (int i = headers.length -1; i >= 0; i--) { in getLastHeader() 79 if (headers[i].getName().equalsIgnoreCase(s)) { in getLastHeader() 80 return headers[i]; in getLastHeader() [all …]
|
/external/libbrillo/brillo/http/ |
D | http_utils.cc | 25 const HeaderList& headers, in GetAndBlock() argument 29 request_type::kGet, url, headers, transport, error); in GetAndBlock() 33 const HeaderList& headers, in Get() argument 39 headers, in Get() 67 const HeaderList& headers, in PostTextAndBlock() argument 71 url, data.data(), data.size(), mime_type, headers, transport, error); in PostTextAndBlock() 77 const HeaderList& headers, in PostText() argument 85 headers, in PostText() 97 const HeaderList& headers, in SendRequestAndBlock() argument 101 request.AddHeaders(headers); in SendRequestAndBlock() [all …]
|
D | http_utils.h | 62 const HeaderList& headers, 71 const HeaderList& headers, 85 const HeaderList& headers, 101 const HeaderList& headers, 112 const HeaderList& headers, 122 const HeaderList& headers, 131 const HeaderList& headers, 161 const HeaderList& headers, 172 const HeaderList& headers, 187 const HeaderList& headers, [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Request.java | 31 private final Headers headers; field in Request 42 this.headers = builder.headers.build(); in Request() 73 public Headers headers() { in headers() method in Request 74 return headers; in headers() 78 return headers.get(name); in header() 81 public List<String> headers(String name) { in headers() method in Request 82 return headers.values(name); in headers() 103 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl() 123 private Headers.Builder headers; field in Request.Builder 129 this.headers = new Headers.Builder(); in Builder() [all …]
|
D | Response.java | 42 private final Headers headers; field in Response 56 this.headers = builder.headers.build(); in Response() 112 public List<String> headers(String name) { in headers() method in Response 113 return headers.values(name); in headers() 121 String result = headers.get(name); in header() 125 public Headers headers() { in headers() method in Response 126 return headers; in headers() 197 return OkHeaders.parseChallenges(headers(), responseField); in challenges() 206 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl() 227 private Headers.Builder headers; field in Response.Builder [all …]
|
/external/python/cpython2/Lib/distutils/command/ |
D | config.py | 112 def _gen_temp_sourcefile(self, body, headers, lang): argument 115 if headers: 116 for header in headers: 125 def _preprocess(self, body, headers, include_dirs, lang): argument 126 src = self._gen_temp_sourcefile(body, headers, lang) 132 def _compile(self, body, headers, include_dirs, lang): argument 133 src = self._gen_temp_sourcefile(body, headers, lang) 141 def _link(self, body, headers, include_dirs, libraries, library_dirs, argument 143 (src, obj) = self._compile(body, headers, include_dirs, lang) 178 def try_cpp(self, body=None, headers=None, include_dirs=None, lang="c"): argument [all …]
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | HttpHeaderParser.java | 54 Map<String, String> headers = response.headers; in parseCacheHeaders() local 69 headerValue = headers.get("Date"); in parseCacheHeaders() 74 headerValue = headers.get("Cache-Control"); in parseCacheHeaders() 98 headerValue = headers.get("Expires"); in parseCacheHeaders() 103 headerValue = headers.get("Last-Modified"); in parseCacheHeaders() 108 serverEtag = headers.get("ETag"); in parseCacheHeaders() 130 entry.responseHeaders = headers; in parseCacheHeaders() 170 public static String parseCharset(Map<String, String> headers, String defaultCharset) { in parseCharset() argument 171 String contentType = headers.get(HEADER_CONTENT_TYPE); in parseCharset() 191 public static String parseCharset(Map<String, String> headers) { in parseCharset() argument [all …]
|
/external/python/cpython3/Lib/distutils/command/ |
D | config.py | 107 def _gen_temp_sourcefile(self, body, headers, lang): argument 110 if headers: 111 for header in headers: 120 def _preprocess(self, body, headers, include_dirs, lang): argument 121 src = self._gen_temp_sourcefile(body, headers, lang) 127 def _compile(self, body, headers, include_dirs, lang): argument 128 src = self._gen_temp_sourcefile(body, headers, lang) 136 def _link(self, body, headers, include_dirs, libraries, library_dirs, argument 138 (src, obj) = self._compile(body, headers, include_dirs, lang) 173 def try_cpp(self, body=None, headers=None, include_dirs=None, lang="c"): argument [all …]
|
/external/libcxx/include/ |
D | CMakeLists.txt | 24 COMPONENT cxx-headers 50 COMPONENT cxx-headers) 55 add_custom_target(cxx-headers) 56 add_custom_target(install-cxx-headers 57 DEPENDS cxx-headers ${generated_config_deps} 59 -DCMAKE_INSTALL_COMPONENT=cxx-headers 61 # Stripping is a no-op for headers 62 add_custom_target(install-cxx-headers-stripped DEPENDS install-cxx-headers) 64 add_custom_target(libcxx-headers) 65 add_custom_target(install-libcxx-headers DEPENDS install-cxx-headers) [all …]
|
/external/llvm/test/CodeGen/ARM/ |
D | MachO-subtypes.ll | 4 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V4T 7 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V5 9 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V5 11 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V5 13 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V5 15 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V5 18 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V6 20 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V6 22 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V6 24 ; RUN: | llvm-readobj -file-headers | FileCheck %s --check-prefix=CHECK-V6 [all …]
|
/external/icu/icu4c/source/test/perf/perldriver/ |
D | Output.pm | 22 my @headers; 98 if($#headers >= 0) { 105 print HTML "<th colspan=".((4*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 107 print HTML "<th colspan=".((2*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 108 print HTML "<th colspan=".((5*($#headers+1))-2)." class=\"sourceType\">Per Event</th>\n"; 112 foreach $header (@headers) { 117 for $i (1 .. $#headers) { 119 …atio and error of per $operationIs time, calculated as: (($headers[0] - $headers[$i])/$headers[$i]… 122 foreach $header (@headers) { 126 foreach $header (@headers) { [all …]
|
/external/icu/icu4j/perf-tests/perldriver/ |
D | Output.pm | 20 my @headers; 96 if($#headers >= 0) { 103 print HTML "<th colspan=".((4*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 105 print HTML "<th colspan=".((2*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 106 print HTML "<th colspan=".((5*($#headers+1))-2)." class=\"sourceType\">Per Event</th>\n"; 110 foreach $header (@headers) { 115 for $i (1 .. $#headers) { 117 …atio and error of per $operationIs time, calculated as: (($headers[0] - $headers[$i])/$headers[$i]… 120 foreach $header (@headers) { 124 foreach $header (@headers) { [all …]
|
/external/kernel-headers/ |
D | README.md | 1 Android kernel headers 4 This project contains the original kernel headers that are used to generate 5 Bionic's "cleaned-up" user-land headers. 8 distributed as part of the platform itself. The cleaned up headers do not 11 Importing modified kernel headers files is done using scripts found in bionic. 13 Note that if you're actually just trying to expose device-specific headers 18 Regenerating the bionic headers 20 The uapi directory contains the original kernel UAPI (userspace API) headers 21 that are used to generate Bionic's "cleaned-up" user-land headers. The script 23 headers from an android kernel repository. [all …]
|
/external/python/cpython3/Lib/urllib/ |
D | request.py | 249 headers = fp.info() 254 return os.path.normpath(path), headers 265 result = filename, headers 270 if "content-length" in headers: 271 size = int(headers["Content-Length"]) 326 def __init__(self, url, data=None, headers={}, argument 330 self.headers = {} 335 for key, value in headers.items(): 410 self.headers[key.capitalize()] = val 417 return (header_name in self.headers or [all …]
|
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/ |
D | WebSocketResponseHandlerTest.java | 65 private Map<String, String> headers; field in WebSocketResponseHandlerTest 108 this.headers = new HashMap<String, String>(); in setUp() 109 this.headers.put("upgrade", "websocket"); in setUp() 110 this.headers.put("connection", "Upgrade"); in setUp() 111 this.headers.put("sec-websocket-key", "x3JJHMbDL1EzLkh9GBhXDw=="); in setUp() 112 this.headers.put("sec-websocket-protocol", "chat, superchat"); in setUp() 113 this.headers.put("sec-websocket-version", "13"); in setUp() 115 when(this.session.getHeaders()).thenReturn(this.headers); in setUp() 120 this.headers.put("connection", "keep-alive, Upgrade"); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue() 138 this.headers.remove("sec-websocket-key"); in testMissingKeyReturnsErrorResponse() [all …]
|
/external/volley/src/test/java/com/android/volley/ |
D | NetworkResponseTest.java | 23 Map<String, String> headers = new HashMap<>(); in mapToList() local 24 headers.put("key1", "value1"); in mapToList() 25 headers.put("key2", "value2"); in mapToList() 27 NetworkResponse resp = new NetworkResponse(200, null, headers, false); in mapToList() 39 List<Header> headers = new ArrayList<>(); in listToMap() local 40 headers.add(new Header("key1", "value1")); in listToMap() 42 headers.add(new Header("key2", "ignoredvalue")); in listToMap() 43 headers.add(new Header("key2", "value2")); in listToMap() 45 NetworkResponse resp = new NetworkResponse(200, null, false, 0L, headers); in listToMap() 51 assertEquals(expectedHeaders, resp.headers); in listToMap()
|
/external/mesa3d/include/HaikuGL/ |
D | README | 1 These headers make up the Haiku Op*nGL kit. 11 * headers/os/OpenGLKit.h 12 * headers/os/opengl/GLView.h 13 * headers/os/opengl/GLRenderer.h 14 * headers/os/opengl/GL/gl.h 15 * headers/os/opengl/GL/gl_mangle.h 16 * headers/os/opengl/GL/glext.h 17 * headers/os/opengl/GL/osmesa.h (needed?) 21 * headers/os/opengl/GL/glu.h 22 * headers/os/opengl/GL/glut.h
|
/external/curl/tests/libtest/ |
D | lib540.c | 50 struct curl_slist *headers) in init() argument 82 res_easy_setopt(eh[num], CURLOPT_HTTPHEADER, headers); /* custom Host: */ in init() 101 struct curl_slist *headers) in loop() argument 110 res = init(num, cm, url, userpwd, headers); in loop() 188 struct curl_slist *headers = NULL; in test() local 204 headers = curl_slist_append(headers, buffer); in test() 205 if(!headers) { in test() 212 curl_slist_free_all(headers); in test() 219 curl_slist_free_all(headers); in test() 223 res = loop(0, cm, URL, PROXYUSERPWD, headers); in test() [all …]
|