/frameworks/volley/tests/src/com/android/volley/toolbox/ |
D | HttpHeaderParserTest.java | 39 private Map<String, String> headers; field in HttpHeaderParserTest 44 headers = new HashMap<String, String>(); in setUp() 45 response = new NetworkResponse(0, null, headers, false); in setUp() 59 headers.put("MyCustomHeader", "42"); in testParseCacheHeaders_headersSet() 70 headers.put("ETag", "Yow!"); in testParseCacheHeaders_etag() 80 headers.put("Date", rfc1123Date(now)); in testParseCacheHeaders_normalExpire() 81 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); in testParseCacheHeaders_normalExpire() 94 headers.put("Date", rfc1123Date(now)); in testParseCacheHeaders_expiresInPast() 95 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); in testParseCacheHeaders_expiresInPast() 110 headers.put("Date", rfc1123Date(now + ONE_HOUR_MILLIS)); in testParseCacheHeaders_serverRelative() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | RequestAPITest.java | 70 public void verifyFailure(Map<String, String> headers) { in verifyFailure() argument 74 "http://localhost:8080/test1", "GET", headers, null, in verifyFailure() 90 Map<String, String> headers = Maps.newHashMap(); in testRequestAddNullHeader() local 91 headers.put(null, null); in testRequestAddNullHeader() 92 verifyFailure(headers); in testRequestAddNullHeader() 102 Map<String, String> headers = Maps.newHashMap(); in testRequestAddNullValue() local 103 headers.put("TestHeader", null); in testRequestAddNullValue() 104 verifyFailure(headers); in testRequestAddNullValue() 114 Map<String, String> headers = Maps.newHashMap(); in testRequestAddEmptyValue() local 115 headers.put("TestHeader", ""); in testRequestAddEmptyValue() [all …]
|
D | TestEventHandler.java | 220 public void headers(Headers headers) { in headers() method in TestEventHandler 243 s = Long.toString(headers.getContentLength()); in headers() 246 s = headers.getContentType(); in headers() 249 s = headers.getContentEncoding(); in headers() 252 s = headers.getLocation(); in headers() 255 s = headers.getWwwAuthenticate(); in headers() 258 s = headers.getProxyAuthenticate(); in headers() 261 s = headers.getContentDisposition(); in headers() 264 s = headers.getAcceptRanges(); in headers() 267 s = headers.getExpires(); in headers() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | BootReceiver.java | 99 final String headers = new StringBuilder(512) in logBootEvents() local 112 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents() 118 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents() 121 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg", in logBootEvents() 123 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", in logBootEvents() 125 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", in logBootEvents() 127 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", in logBootEvents() 129 addAuditErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents() 131 if (db != null) db.addText("SYSTEM_RESTART", headers); in logBootEvents() 137 addFileToDropBox(db, prefs, headers, tombstoneFiles[i].getPath(), in logBootEvents() [all …]
|
/frameworks/volley/src/com/android/volley/ |
D | NetworkResponse.java | 35 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 39 this.headers = headers; in NetworkResponse() 47 public NetworkResponse(byte[] data, Map<String, String> headers) { in NetworkResponse() argument 48 this(HttpStatus.SC_OK, data, headers, false); in NetworkResponse() 58 public final Map<String, String> headers; field in NetworkResponse
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | HttpHeaderParser.java | 42 Map<String, String> headers = response.headers; in parseCacheHeaders() local 53 headerValue = headers.get("Date"); in parseCacheHeaders() 58 headerValue = headers.get("Cache-Control"); in parseCacheHeaders() 77 headerValue = headers.get("Expires"); in parseCacheHeaders() 82 serverEtag = headers.get("ETag"); in parseCacheHeaders() 99 entry.responseHeaders = headers; in parseCacheHeaders() 121 public static String parseCharset(Map<String, String> headers) { in parseCharset() argument 122 String contentType = headers.get(HTTP.CONTENT_TYPE); in parseCharset()
|
D | BasicNetwork.java | 91 Map<String, String> headers = new HashMap<String, String>(); in performRequest() local 92 addCacheHeaders(headers, request.getCacheEntry()); in performRequest() 93 httpResponse = mHttpStack.performRequest(request, headers); in performRequest() 179 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { in addCacheHeaders() argument 186 headers.put("If-None-Match", entry.etag); in addCacheHeaders() 191 headers.put("If-Modified-Since", DateUtils.formatDate(refTime)); in addCacheHeaders() 233 private static Map<String, String> convertHeaders(Header[] headers) { in convertHeaders() argument 235 for (int i = 0; i < headers.length; i++) { in convertHeaders() 236 result.put(headers[i].getName(), headers[i].getValue()); in convertHeaders()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | SDPLoader.cpp | 55 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { in load() argument 61 if (headers != NULL) { in load() 64 new KeyedVector<String8, String8>(*headers)); in load() 94 KeyedVector<String8, String8> *headers = NULL; in onLoad() local 95 msg->findPointer("headers", (void **)&headers); in onLoad() 104 err = mHTTPDataSource->connect(url.c_str(), headers); in onLoad() 111 if (headers != NULL) { in onLoad() 112 delete headers; in onLoad() 113 headers = NULL; in onLoad()
|
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/ |
D | PduParser.java | 237 PduHeaders headers = new PduHeaders(); in parseHeaders() local 279 headers.setOctet(messageType, headerField); in parseHeaders() 326 headers.setOctet(value, headerField); in parseHeaders() 349 headers.setLongInteger(value, headerField); in parseHeaders() 368 headers.setLongInteger(value, headerField); in parseHeaders() 404 headers.setTextString(value, headerField); in parseHeaders() 433 headers.setEncodedStringValue(value, headerField); in parseHeaders() 472 headers.appendEncodedStringValue(value, headerField); in parseHeaders() 514 headers.setLongInteger(timeValue, headerField); in parseHeaders() 568 headers.setEncodedStringValue(from, PduHeaders.FROM); in parseHeaders() [all …]
|
D | RetrieveConf.java | 44 RetrieveConf(PduHeaders headers) { in RetrieveConf() argument 45 super(headers); in RetrieveConf() 54 RetrieveConf(PduHeaders headers, PduBody body) { in RetrieveConf() argument 55 super(headers, body); in RetrieveConf()
|
D | SendReq.java | 77 SendReq(PduHeaders headers) { in SendReq() argument 78 super(headers); in SendReq() 87 SendReq(PduHeaders headers, PduBody body) { in SendReq() argument 88 super(headers, body); in SendReq()
|
D | PduPersister.java | 304 PduHeaders headers, int mapColumn) { in setEncodedStringValueToHeaders() argument 311 headers.setEncodedStringValue(value, mapColumn); in setEncodedStringValueToHeaders() 317 PduHeaders headers, int mapColumn) { in setTextStringToHeaders() argument 320 headers.setTextString(getBytes(s), mapColumn); in setTextStringToHeaders() 326 PduHeaders headers, int mapColumn) throws InvalidHeaderValueException { in setOctetToHeaders() argument 329 headers.setOctet(b, mapColumn); in setOctetToHeaders() 335 PduHeaders headers, int mapColumn) { in setLongToHeaders() argument 338 headers.setLongInteger(l, mapColumn); in setLongToHeaders() 481 private void loadAddress(long msgId, PduHeaders headers) { in loadAddress() argument 495 headers.setEncodedStringValue( in loadAddress() [all …]
|
D | AcknowledgeInd.java | 48 AcknowledgeInd(PduHeaders headers) { in AcknowledgeInd() argument 49 super(headers); in AcknowledgeInd()
|
/frameworks/base/obex/javax/obex/ |
D | ServerSession.java | 308 byte[] headers = new byte[length - 5]; in handleSetPathRequest() 309 bytesReceived = mInput.read(headers); in handleSetPathRequest() 311 while (bytesReceived != headers.length) { in handleSetPathRequest() 312 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleSetPathRequest() 316 ObexHelper.updateHeaderSet(request, headers); in handleSetPathRequest() 429 byte[] headers = new byte[length - 3]; in handleDisconnectRequest() 430 bytesReceived = mInput.read(headers); in handleDisconnectRequest() 432 while (bytesReceived != headers.length) { in handleDisconnectRequest() 433 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleDisconnectRequest() 437 ObexHelper.updateHeaderSet(request, headers); in handleDisconnectRequest() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaExtractor.java | 80 Context context, Uri uri, Map<String, String> headers) in setDataSource() argument 115 setDataSource(uri.toString(), headers); in setDataSource() local 124 public final void setDataSource(String path, Map<String, String> headers) in setDataSource() argument 129 if (headers != null) { in setDataSource() 130 keys = new String[headers.size()]; in setDataSource() 131 values = new String[headers.size()]; in setDataSource() 134 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource()
|
D | MediaMetadataRetriever.java | 89 public void setDataSource(String uri, Map<String, String> headers) in setDataSource() argument 92 String[] keys = new String[headers.size()]; in setDataSource() 93 String[] values = new String[headers.size()]; in setDataSource() 94 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource()
|
/frameworks/av/media/libmedia/ |
D | IMediaMetadataRetriever.cpp | 87 const char *srcUrl, const KeyedVector<String8, String8> *headers) in setDataSource() argument 93 if (headers == NULL) { in setDataSource() 97 data.writeInt32(headers->size()); in setDataSource() 98 for (size_t i = 0; i < headers->size(); ++i) { in setDataSource() 99 data.writeString8(headers->keyAt(i)); in setDataSource() 100 data.writeString8(headers->valueAt(i)); in setDataSource() 200 KeyedVector<String8, String8> headers; in onTransact() local 205 headers.add(key, value); in onTransact() 209 setDataSource(srcUrl, numHeaders > 0 ? &headers : NULL)); in onTransact()
|
/frameworks/base/core/java/android/webkit/ |
D | UrlInterceptRegistry.java | 125 String url, Map<String, String> headers) { in getSurrogate() argument 132 CacheResult result = handler.service(url, headers); in getSurrogate() 153 String url, Map<String, String> headers) { in getPluginData() argument 160 PluginData data = handler.getPluginData(url, headers); in getPluginData()
|
D | UrlInterceptHandler.java | 44 public CacheResult service(String url, Map<String, String> headers); in service() argument 59 public PluginData getPluginData(String url, Map<String, String> headers); in getPluginData() argument
|
D | PluginData.java | 75 Map<String, String[]> headers, in PluginData() argument 79 mHeaders = headers; in PluginData()
|
/frameworks/base/core/java/android/net/http/ |
D | AndroidHttpClientConnection.java | 302 public StatusLine parseResponseHeader(Headers headers) in parseResponseHeader() argument 359 headers.parseHeader(previous); in parseResponseHeader() 371 headers.parseHeader(previous); in parseResponseHeader() 385 public HttpEntity receiveResponseEntity(final Headers headers) { in receiveResponseEntity() argument 389 long len = determineLength(headers); in receiveResponseEntity() 404 String contentTypeHeader = headers.getContentType(); in receiveResponseEntity() 408 String contentEncodingHeader = headers.getContentEncoding(); in receiveResponseEntity() 416 private long determineLength(final Headers headers) { in determineLength() argument 417 long transferEncoding = headers.getTransferEncoding(); in determineLength() 423 long contentlen = headers.getContentLength(); in determineLength()
|
D | LoggingEventHandler.java | 46 public void headers(Headers headers) { in headers() argument 49 HttpLog.v(headers.toString()); in headers()
|
D | EventHandler.java | 88 public void headers(Headers headers); in headers() method
|
/frameworks/av/media/libstagefright/chromium_http/ |
D | support.cpp | 344 std::string headers; in OnResponseStarted() local 345 request->GetAllResponseHeaders(&headers); in OnResponseStarted() 347 MY_LOGV(StringPrintf("response headers: %s", headers.c_str()).c_str()); in OnResponseStarted() 437 const KeyedVector<String8, String8> *headers, in initiateConnection() argument 448 headers, in initiateConnection() 456 const KeyedVector<String8, String8> *headers, in OnInitiateConnectionWrapper() argument 458 me->onInitiateConnection(url, headers, offset); in OnInitiateConnectionWrapper() 473 net::HttpRequestHeaders headers = in onInitiateConnection() local 477 headers.AddHeaderFromString( in onInitiateConnection() 490 headers.AddHeaderFromString(s.c_str()); in onInitiateConnection() [all …]
|
/frameworks/av/media/libstagefright/ |
D | DataSource.cpp | 172 const char *uri, const KeyedVector<String8, String8> *headers) { in CreateFromURI() argument 191 if (httpSource->connect(uri, headers) != OK) { in CreateFromURI() 198 if (headers != NULL) { in CreateFromURI() 199 KeyedVector<String8, String8> copy = *headers; in CreateFromURI()
|