/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
D | HttpHeaderParserTest.java | 47 private Map<String, String> headers; field in HttpHeaderParserTest 50 headers = new HashMap<String, String>(); in setUp() 51 response = new NetworkResponse(0, null, headers, false); in setUp() 66 headers.put("MyCustomHeader", "42"); in parseCacheHeaders_headersSet() 77 headers.put("ETag", "Yow!"); in parseCacheHeaders_etag() 87 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_normalExpire() 88 headers.put("Last-Modified", rfc1123Date(now - ONE_DAY_MILLIS)); in parseCacheHeaders_normalExpire() 89 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire() 103 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_expiresInPast() 104 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); in parseCacheHeaders_expiresInPast() [all …]
|
D | JsonRequestCharsetTest.java | 84 Map<String, String> headers = new HashMap<String, String>(); in specifiedCharsetJsonObject() local 85 headers.put("Content-Type", "application/json; charset=iso-8859-1"); in specifiedCharsetJsonObject() 86 NetworkResponse network = new NetworkResponse(data, headers); in specifiedCharsetJsonObject() 98 Map<String, String> headers = new HashMap<String, String>(); in specifiedCharsetJsonArray() local 99 headers.put("Content-Type", "application/json; charset=iso-8859-2"); in specifiedCharsetJsonArray() 100 NetworkResponse network = new NetworkResponse(data, headers); in specifiedCharsetJsonArray()
|
/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() argument 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/volley/src/main/java/com/android/volley/ |
D | NetworkResponse.java | 36 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 40 this.headers = headers; in NetworkResponse() 45 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument 47 this(statusCode, data, headers, notModified, 0); in NetworkResponse() 54 public NetworkResponse(byte[] data, Map<String, String> headers) { in NetworkResponse() argument 55 this(HttpStatus.SC_OK, data, headers, false, 0); in NetworkResponse() 65 public final Map<String, String> headers; field in NetworkResponse
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | HttpHeaderParser.java | 42 Map<String, String> headers = response.headers; in parseCacheHeaders() local 57 headerValue = headers.get("Date"); in parseCacheHeaders() 62 headerValue = headers.get("Cache-Control"); in parseCacheHeaders() 86 headerValue = headers.get("Expires"); in parseCacheHeaders() 91 headerValue = headers.get("Last-Modified"); in parseCacheHeaders() 96 serverEtag = headers.get("ETag"); in parseCacheHeaders() 118 entry.responseHeaders = headers; in parseCacheHeaders() 144 public static String parseCharset(Map<String, String> headers, String defaultCharset) { in parseCharset() argument 145 String contentType = headers.get(HTTP.CONTENT_TYPE); in parseCharset() 165 public static String parseCharset(Map<String, String> headers) { in parseCharset() argument [all …]
|
D | BasicNetwork.java | 94 Map<String, String> headers = new HashMap<String, String>(); in performRequest() local 95 addCacheHeaders(headers, request.getCacheEntry()); in performRequest() 96 httpResponse = mHttpStack.performRequest(request, headers); in performRequest() 205 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { in addCacheHeaders() argument 212 headers.put("If-None-Match", entry.etag); in addCacheHeaders() 217 headers.put("If-Modified-Since", DateUtils.formatDate(refTime)); in addCacheHeaders() 259 protected static Map<String, String> convertHeaders(Header[] headers) { in convertHeaders() argument 261 for (int i = 0; i < headers.length; i++) { in convertHeaders() 262 result.put(headers[i].getName(), headers[i].getValue()); in convertHeaders()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduParser.java | 241 PduHeaders headers = new PduHeaders(); in parseHeaders() local 283 headers.setOctet(messageType, headerField); in parseHeaders() 330 headers.setOctet(value, headerField); in parseHeaders() 353 headers.setLongInteger(value, headerField); in parseHeaders() 372 headers.setLongInteger(value, headerField); in parseHeaders() 408 headers.setTextString(value, headerField); in parseHeaders() 437 headers.setEncodedStringValue(value, headerField); in parseHeaders() 476 headers.appendEncodedStringValue(value, headerField); in parseHeaders() 518 headers.setLongInteger(timeValue, headerField); in parseHeaders() 572 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 | PduPersister.java | 308 PduHeaders headers, int mapColumn) { in setEncodedStringValueToHeaders() argument 315 headers.setEncodedStringValue(value, mapColumn); in setEncodedStringValueToHeaders() 321 PduHeaders headers, int mapColumn) { in setTextStringToHeaders() argument 324 headers.setTextString(getBytes(s), mapColumn); in setTextStringToHeaders() 330 PduHeaders headers, int mapColumn) throws InvalidHeaderValueException { in setOctetToHeaders() argument 333 headers.setOctet(b, mapColumn); in setOctetToHeaders() 339 PduHeaders headers, int mapColumn) { in setLongToHeaders() argument 342 headers.setLongInteger(l, mapColumn); in setLongToHeaders() 485 private void loadAddress(long msgId, PduHeaders headers) { in loadAddress() argument 499 headers.setEncodedStringValue( in loadAddress() [all …]
|
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()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | SDPLoader.cpp | 51 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { in load() argument 57 if (headers != NULL) { in load() 60 new KeyedVector<String8, String8>(*headers)); in load() 90 KeyedVector<String8, String8> *headers = NULL; in onLoad() local 91 msg->findPointer("headers", (void **)&headers); in onLoad() 96 err = mHTTPDataSource->connect(url.c_str(), headers); in onLoad() 103 if (headers != NULL) { in onLoad() 104 delete headers; in onLoad() 105 headers = NULL; in onLoad()
|
D | AMPEG4ElementaryAssembler.cpp | 262 List<AUHeader> headers; in addPacket() local 274 size_t n = headers.empty() ? mIndexLength : mIndexDeltaLength; in addPacket() 280 if (headers.empty()) { in addPacket() 332 headers.push_back(header); in addPacket() 345 for (List<AUHeader>::iterator it = headers.begin(); in addPacket() 346 it != headers.end(); ++it) { in addPacket()
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 118 final String headers = new StringBuilder(512) in logBootEvents() local 132 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents() 155 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents() 158 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents() 160 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents() 162 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents() 164 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg", in logBootEvents() 166 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents() 167 addFsckErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_FSCK"); in logBootEvents() 169 if (db != null) db.addText("SYSTEM_RESTART", headers); in logBootEvents() [all …]
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 101 public final Map<String, String> headers; field in LocalRenderer.PlayerContent 103 public PlayerContent(String source, Map<String, String> headers) { in PlayerContent() argument 105 this.headers = headers; in PlayerContent() 151 Header[] headers = response.getAllHeaders(); in doInBackground() local 152 if (headers != null && headers.length > 0) { in doInBackground() 153 for (Header header : headers) { in doInBackground() 328 if (mContent.headers != null) { in onError() 329 for (String key : mContent.headers.keySet()) { in onError() 330 request.addHeader(key, mContent.headers.get(key)); in onError() 393 Map<String, String> headers = null; // request.mHeaders; in setContent() local [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ServerSession.java | 319 byte[] headers = new byte[length - 5]; in handleSetPathRequest() 320 bytesReceived = mInput.read(headers); in handleSetPathRequest() 322 while (bytesReceived != headers.length) { in handleSetPathRequest() 323 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleSetPathRequest() 327 ObexHelper.updateHeaderSet(request, headers); in handleSetPathRequest() 441 byte[] headers = new byte[length - 3]; in handleDisconnectRequest() 442 bytesReceived = mInput.read(headers); in handleDisconnectRequest() 444 while (bytesReceived != headers.length) { in handleDisconnectRequest() 445 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleDisconnectRequest() 449 ObexHelper.updateHeaderSet(request, headers); in handleDisconnectRequest() [all …]
|
/frameworks/av/media/libmedia/ |
D | IMediaMetadataRetriever.cpp | 94 const KeyedVector<String8, String8> *headers) in setDataSource() argument 104 if (headers == NULL) { in setDataSource() 108 data.writeInt64(headers->size()); in setDataSource() 109 for (size_t i = 0; i < headers->size(); ++i) { in setDataSource() 110 data.writeString8(headers->keyAt(i)); in setDataSource() 111 data.writeString8(headers->valueAt(i)); in setDataSource() 232 KeyedVector<String8, String8> headers; in onTransact() local 237 headers.add(key, value); in onTransact() 242 httpService, srcUrl, numHeaders > 0 ? &headers : NULL)); in onTransact()
|
D | IMediaHTTPConnection.cpp | 46 const char *uri, const KeyedVector<String8, String8> *headers) { in connect() 55 if (headers != NULL) { in connect() 56 for (size_t i = 0; i < headers->size(); ++i) { in connect() 57 String16 key(headers->keyAt(i).string()); in connect() 58 String16 val(headers->valueAt(i).string()); in connect()
|
/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()
|
/frameworks/base/docs/html/training/volley/ |
D | request-custom.jd | 63 HttpHeaderParser.parseCharset(response.headers)); 76 contains the response payload as a byte[], HTTP status code, and response headers.</li> 115 private final Map<String, String> headers; 123 * @param headers Map of request headers 125 public GsonRequest(String url, Class<T> clazz, Map<String, String> headers, 129 this.headers = headers; 135 return headers != null ? headers : super.getHeaders(); 148 HttpHeaderParser.parseCharset(response.headers));
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | URLFetcher.java | 159 private Long getExpirationTimeMillisFromHTTPHeader(Map<String, List<String>> headers) { in getExpirationTimeMillisFromHTTPHeader() argument 160 if (headers == null) { in getExpirationTimeMillisFromHTTPHeader() 163 Map<String, String> joinedHeaders = joinHttpHeaders(headers); in getExpirationTimeMillisFromHTTPHeader() 185 private Map<String, String> joinHttpHeaders(Map<String, List<String>> headers) { in joinHttpHeaders() argument 187 for (Map.Entry<String, List<String>> entry : headers.entrySet()) { in joinHttpHeaders()
|
/frameworks/base/media/java/android/media/ |
D | MediaExtractor.java | 97 @NonNull Context context, @NonNull Uri uri, @Nullable Map<String, String> headers) in setDataSource() argument 132 setDataSource(uri.toString(), headers); in setDataSource() local 143 public final void setDataSource(@NonNull String path, @Nullable Map<String, String> headers) in setDataSource() argument 148 if (headers != null) { in setDataSource() 149 keys = new String[headers.size()]; in setDataSource() 150 values = new String[headers.size()]; in setDataSource() 153 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource()
|
D | MediaMetadataRetriever.java | 86 public void setDataSource(String uri, Map<String, String> headers) in setDataSource() argument 89 String[] keys = new String[headers.size()]; in setDataSource() 90 String[] values = new String[headers.size()]; in setDataSource() 91 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource()
|
/frameworks/av/media/libstagefright/httplive/ |
D | HTTPDownloader.cpp | 40 const KeyedVector<String8, String8> &headers) : in HTTPDownloader() argument 42 mExtraHeaders(headers), in HTTPDownloader() 99 KeyedVector<String8, String8> headers = mExtraHeaders; in fetchBlock() local 101 headers.add( in fetchBlock() 112 status_t err = mHTTPDataSource->connect(url, &headers); in fetchBlock()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
D | MIMEContainer.java | 44 Map<String,List<String>> headers = parseHeader(in); in MIMEContainer() local 46 List<String> type = headers.get(Type); in MIMEContainer() 108 List<String> encoding = headers.get(Encoding); in MIMEContainer() 201 Map<String,List<String>> headers = new HashMap<>(); in parseHeader() local 231 headers.put(header, valueList); in parseHeader() 246 headers.put(header, valueList); in parseHeader() 250 return headers; in parseHeader()
|