/frameworks/av/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 108 const KeyedVector<String8, String8> *headers) 129 status_t ret = p->setDataSource(httpService, url, headers); 105 setDataSource( const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers) argument
|
H A D | StagefrightPlayer.cpp | 59 const KeyedVector<String8, String8> *headers) { 60 return mPlayer->setDataSource(httpService, url, headers); 56 setDataSource( const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers) argument
|
/frameworks/av/media/libstagefright/http/ |
H A D | MediaHTTP.cpp | 46 const KeyedVector<String8, String8> *headers, 53 if (headers != NULL) { 54 extHeaders = *headers; 44 connect( const char *uri, const KeyedVector<String8, String8> *headers, off64_t ) argument
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | HTTPDownloader.cpp | 39 const KeyedVector<String8, String8> &headers) : 41 mExtraHeaders(headers), 98 KeyedVector<String8, String8> headers = mExtraHeaders; local 100 headers.add( 111 status_t err = mHTTPDataSource->connect(url, &headers); 37 HTTPDownloader( const sp<IMediaHTTPService> &httpService, const KeyedVector<String8, String8> &headers) argument
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebResourceResponse.java | 68 * @param responseHeaders the resource response's headers represented as a mapping of header 169 * Sets the headers for the resource response. 171 * @param headers Mapping of header name -> header value. 173 public void setResponseHeaders(Map<String, String> headers) { argument 175 mResponseHeaders = headers; 179 * Gets the headers for the resource response. 181 * @return The headers for the resource response.
|
H A D | CacheManager.java | 32 // received over the network. The component handles parsing of HTTP headers and 33 // utilizes the relevant cache headers to determine if the content should be 35 // this component and if they can not be resolved by the cache, the HTTP headers 278 * If a non-null value is provided for the HTTP headers map, and the cache 279 * entry needs validation, appropriate headers will be added to the map. 284 * @param headers a map from HTTP header name to value, to be populated 291 Map<String, String> headers) { 290 getCacheFile(String url, Map<String, String> headers) argument
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | RequestAPITest.java | 70 public void verifyFailure(Map<String, String> headers) { argument 74 "http://localhost:8080/test1", "GET", headers, null, 90 Map<String, String> headers = Maps.newHashMap(); 91 headers.put(null, null); 92 verifyFailure(headers); 102 Map<String, String> headers = Maps.newHashMap(); 103 headers.put("TestHeader", null); 104 verifyFailure(headers); 114 Map<String, String> headers = Maps.newHashMap(); 115 headers 120 verifySuccess(Map<String, String> headers) argument [all...] |
H A D | TestWebServer.java | 351 /* Request headers are stored here */ 352 private Hashtable<String, String> headers = new Hashtable<String, String>(); field in class:TestWebServer.Worker 596 headers.put(headerName, headerValue); 601 * Read all headers from the input stream 607 log("Read headers"); 629 String lengthString = headers.get(requestHeaders[REQ_CONTENT_LENGTH]); 656 // If status line found, read any headers 661 if (headers.get(requestHeaders[REQ_CONTENT_LENGTH]) != null) { 675 headers.clear(); 691 // Write line between headers an [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | RetrieveConf.java | 40 * Constructor with given headers. 42 * @param headers Headers for this PDU. 44 RetrieveConf(PduHeaders headers) { argument 45 super(headers); 49 * Constructor with given headers and body 51 * @param headers Headers for this PDU. 54 RetrieveConf(PduHeaders headers, PduBody body) { argument 55 super(headers, body);
|
H A D | SendReq.java | 39 // Impossible to reach here since all headers we set above are valid. 73 * Constructor with given headers. 75 * @param headers Headers for this PDU. 77 SendReq(PduHeaders headers) { argument 78 super(headers); 82 * Constructor with given headers and body 84 * @param headers Headers for this PDU. 87 SendReq(PduHeaders headers, PduBody body) { argument 88 super(headers, body);
|
H A D | PduParser.java | 62 * Store pdu headers 115 /* parse headers */ 118 // Parse headers failed. 127 log("check mandatory headers failed!"); 231 * Parse pdu headers. 234 * @return headers in PduHeaders structure, null when parse fail 241 PduHeaders headers = new PduHeaders(); 283 headers.setOctet(messageType, headerField); 330 headers.setOctet(value, headerField); 353 headers 1801 checkMandatoryHeader(PduHeaders headers) argument [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | BasicNetwork.java | 93 // Gather headers. 94 Map<String, String> headers = new HashMap<String, String>(); 95 addCacheHeaders(headers, request.getCacheEntry()); 96 httpResponse = mHttpStack.performRequest(request, headers); 205 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { argument 212 headers.put("If-None-Match", entry.etag); 217 headers.put("If-Modified-Since", DateUtils.formatDate(refTime)); 259 protected static Map<String, String> convertHeaders(Header[] headers) { argument 261 for (int i = 0; i < headers.length; i++) { 262 result.put(headers[ [all...] |
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
H A D | HttpHeaderParserTest.java | 47 private Map<String, String> headers; field in class:HttpHeaderParserTest 50 headers = new HashMap<String, String>(); 51 response = new NetworkResponse(0, null, headers, false); 66 headers.put("MyCustomHeader", "42"); 77 headers.put("ETag", "Yow!"); 87 headers.put("Date", rfc1123Date(now)); 88 headers.put("Last-Modified", rfc1123Date(now - ONE_DAY_MILLIS)); 89 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); 103 headers.put("Date", rfc1123Date(now)); 104 headers [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaMetadataRetriever.cpp | 94 const KeyedVector<String8, String8> *headers) 104 if (headers == NULL) { 107 // serialize the headers 108 data.writeInt64(headers->size()); 109 for (size_t i = 0; i < headers->size(); ++i) { 110 data.writeString8(headers->keyAt(i)); 111 data.writeString8(headers->valueAt(i)); 227 KeyedVector<String8, String8> headers; local 232 headers.add(key, value); 237 httpService, srcUrl, numHeaders > 0 ? &headers 91 setDataSource( const sp<IMediaHTTPService> &httpService, const char *srcUrl, const KeyedVector<String8, String8> *headers) argument [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 40 const KeyedVector<String8, String8> *headers) 51 if (headers) { 52 mExtraHeaders = *headers; 36 HTTPLiveSource( const sp<AMessage> ¬ify, const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers) argument
|
H A D | RTSPSource.cpp | 39 const KeyedVector<String8, String8> *headers, 57 if (headers) { 58 mExtraHeaders = *headers; 35 RTSPSource( const sp<AMessage> ¬ify, const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers, bool uidValid, uid_t uid, bool isSDP) argument
|
/frameworks/av/media/libstagefright/ |
H A D | DataSource.cpp | 191 const KeyedVector<String8, String8> *headers, 231 if (headers != NULL) { 232 nonCacheSpecificHeaders = *headers; 188 CreateFromURI( const sp<IMediaHTTPService> &httpService, const char *uri, const KeyedVector<String8, String8> *headers, String8 *contentType, HTTPBase *httpSource) argument
|
H A D | NuMediaExtractor.cpp | 63 const KeyedVector<String8, String8> *headers) { 71 DataSource::CreateFromURI(httpService, path, headers); 60 setDataSource( const sp<IMediaHTTPService> &httpService, const char *path, const KeyedVector<String8, String8> *headers) argument
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 262 List<AUHeader> headers; local 274 size_t n = headers.empty() ? mIndexLength : mIndexDeltaLength; 280 if (headers.empty()) { 332 headers.push_back(header); 345 for (List<AUHeader>::iterator it = headers.begin(); 346 it != headers.end(); ++it) {
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
H A D | AbstractProxyTest.java | 274 private void assertContains(List<String> headers, String header) { argument 275 assertTrue(headers.toString(), headers.contains(header));
|
/frameworks/base/media/java/android/media/ |
H A D | MediaExtractor.java | 88 * @param headers the headers to be sent together with the request for the data. 89 * This can be {@code null} if no specific headers are to be sent with the 93 @NonNull Context context, @NonNull Uri uri, @Nullable Map<String, String> headers) 128 setDataSource(uri.toString(), headers); 135 * @param headers the headers associated with the http request for the stream you want to play. 136 * This can be {@code null} if no specific headers are to be sent with the 139 public final void setDataSource(@NonNull String path, @Nullable Map<String, String> headers) argument 144 if (headers ! 92 setDataSource( @onNull Context context, @NonNull Uri uri, @Nullable Map<String, String> headers) argument [all...] |
H A D | MediaHTTPConnection.java | 72 public IBinder connect(String uri, String headers) { argument 74 Log.d(TAG, "connect: uri=" + uri + ", headers=" + headers); 81 mHeaders = convertHeaderStringToMap(headers); 110 private Map<String, String> convertHeaderStringToMap(String headers) { argument 113 String[] pairs = headers.split("\r\n");
|
H A D | MediaMetadataRetriever.java | 91 * @param headers the headers to be sent together with the request for the data 94 public void setDataSource(String uri, Map<String, String> headers) argument 97 String[] keys = new String[headers.size()]; 98 String[] values = new String[headers.size()]; 99 for (Map.Entry<String, String> entry: headers.entrySet()) {
|
/frameworks/base/obex/javax/obex/ |
H A D | ClientOperation.java | 184 * Since we are not sending any headers or returning any headers then 313 // there are 3 bytes operation headers and 3 bytes body headers // 353 * Returns the headers that have been received during the operation. 354 * Modifying the object returned has no effect on the headers that are sent 356 * @return the headers received during this <code>Operation</code> 366 * Specifies the headers that should be sent in the next OBEX message that 368 * @param headers the headers t 375 sendHeaders(HeaderSet headers) argument [all...] |
H A D | ServerOperation.java | 192 * Determine if any headers were sent in the initial request 222 * Parse headers and update member variables 269 * Update the request header set, and sniff on SRM headers to update local state. 323 * operation even if no headers will be sent; if <code>false</code> 325 * headers to send 390 byte[] headerArray = ObexHelper.createHeader(replyHeader, true); // This clears the headers 565 * Determine if any headers were sent in the initial request 595 * whether or not it contains SRM/SRMP headers... 607 // ignore SRM/SRMP headers without ignoring the complete signal 640 * Returns the headers tha 660 sendHeaders(HeaderSet headers) argument [all...] |