/frameworks/volley/src/com/android/volley/ |
H A D | NetworkResponse.java | 25 * Data and headers returned from {@link Network#performRequest(Request)}. 32 * @param headers Headers returned with this response, or null for none 35 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, argument 39 this.headers = headers; 47 public NetworkResponse(byte[] data, Map<String, String> headers) { argument 48 this(HttpStatus.SC_OK, data, headers, false); 57 /** Response headers. */ 58 public final Map<String, String> headers; field in class:NetworkResponse
|
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
H A D | HttpHeaderParserTest.java | 39 private Map<String, String> headers; field in class:HttpHeaderParserTest 44 headers = new HashMap<String, String>(); 45 response = new NetworkResponse(0, null, headers, false); 59 headers.put("MyCustomHeader", "42"); 70 headers.put("ETag", "Yow!"); 80 headers.put("Date", rfc1123Date(now)); 81 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); 94 headers.put("Date", rfc1123Date(now)); 95 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); 110 headers [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | UrlInterceptHandler.java | 37 * @param headers The headers associated with the request. May be null. 44 public CacheResult service(String url, Map<String, String> headers); argument 52 * @param headers The headers associated with the request. May be null. 59 public PluginData getPluginData(String url, Map<String, String> headers); argument
|
H A D | PluginData.java | 27 * the length of the body, the response headers, and the response 46 * The associated HTTP response headers stored as a map of 63 * @param headers The response headers. Map of 75 Map<String, String[]> headers, 79 mHeaders = headers; 112 * Returns the HTTP response headers associated with the plugin 115 * @return A Map<String, String[]> containing all headers. The 72 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
|
H A D | UrlInterceptRegistry.java | 125 String url, Map<String, String> headers) { 132 CacheResult result = handler.service(url, headers); 153 String url, Map<String, String> headers) { 160 PluginData data = handler.getPluginData(url, headers); 124 getSurrogate( String url, Map<String, String> headers) argument 152 getPluginData( String url, Map<String, String> headers) argument
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | SDPLoader.cpp | 55 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { argument 61 if (headers != NULL) { 63 "headers", 64 new KeyedVector<String8, String8>(*headers)); 94 KeyedVector<String8, String8> *headers = NULL; local 95 msg->findPointer("headers", (void **)&headers); 104 err = mHTTPDataSource->connect(url.c_str(), headers); 111 if (headers != NULL) { 112 delete headers; [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | HttpHeaderParser.java | 29 * Utility methods for parsing HTTP headers. 36 * @param response The network response to parse headers from 42 Map<String, String> headers = response.headers; 53 headerValue = headers.get("Date"); 58 headerValue = headers.get("Cache-Control"); 77 headerValue = headers.get("Expires"); 82 serverEtag = headers.get("ETag"); 99 entry.responseHeaders = headers; 121 public static String parseCharset(Map<String, String> headers) { argument [all...] |
H A D | BasicNetwork.java | 90 // Gather headers. 91 Map<String, String> headers = new HashMap<String, String>(); 92 addCacheHeaders(headers, request.getCacheEntry()); 93 httpResponse = mHttpStack.performRequest(request, headers); 179 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { argument 186 headers.put("If-None-Match", entry.etag); 191 headers.put("If-Modified-Since", DateUtils.formatDate(refTime)); 233 private static Map<String, String> convertHeaders(Header[] headers) { argument 235 for (int i = 0; i < headers.length; i++) { 236 result.put(headers[ [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | EventHandler.java | 22 * processed. The normal order of callbacks is status(), headers(), 86 * Called after all headers are successfully processed. 88 public void headers(Headers headers); argument
|
H A D | LoggingEventHandler.java | 46 public void headers(Headers headers) { argument 48 HttpLog.v("LoggingEventHandler:headers()"); 49 HttpLog.v(headers.toString());
|
/frameworks/base/services/java/com/android/server/ |
H A D | BootReceiver.java | 99 final String headers = new StringBuilder(512) 112 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); 118 if (db != null) db.addText("SYSTEM_BOOT", headers); 121 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg", 123 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", 125 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", 127 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", 129 addAuditErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_AUDIT"); 130 addFsckErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_FSCK"); 132 if (db != null) db.addText("SYSTEM_RESTART", headers); 159 addFileToDropBox( DropBoxManager db, SharedPreferences prefs, String headers, String filename, int maxSize, String tag) argument 180 addAuditErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, String headers, int maxSize, String tag) argument 208 addFsckErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, String headers, int maxSize, String tag) argument [all...] |
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/ |
H A D | AcknowledgeInd.java | 44 * Constructor with given headers. 46 * @param headers Headers for this PDU. 48 AcknowledgeInd(PduHeaders headers) { argument 49 super(headers);
|
H A D | DeliveryInd.java | 40 * Constructor with given headers. 42 * @param headers Headers for this PDU. 44 DeliveryInd(PduHeaders headers) { argument 45 super(headers);
|
H A D | GenericPdu.java | 24 * The headers of pdu. 38 * @param headers Headers for this PDU. 40 GenericPdu(PduHeaders headers) { argument 41 mPduHeaders = headers; 45 * Get the headers of this PDU.
|
H A D | NotifyRespInd.java | 47 * Constructor with given headers. 49 * @param headers Headers for this PDU. 51 NotifyRespInd(PduHeaders headers) { argument 52 super(headers);
|
H A D | SendConf.java | 37 * Constructor with given headers. 39 * @param headers Headers for this PDU. 41 SendConf(PduHeaders headers) { argument 42 super(headers);
|
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 | PduParser.java | 65 * Store pdu headers 111 /* parse headers */ 114 // Parse headers failed. 123 log("check mandatory headers failed!"); 227 * Parse pdu headers. 230 * @return headers in PduHeaders structure, null when parse fail 237 PduHeaders headers = new PduHeaders(); 279 headers.setOctet(messageType, headerField); 326 headers.setOctet(value, headerField); 349 headers 1797 checkMandatoryHeader(PduHeaders headers) argument [all...] |
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);
|
/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 | TestEventHandler.java | 40 /* List of headers received */ 217 * Implements the EventHandler headers method called when a server 220 public void headers(Headers headers) { argument 222 Log.v(LOGTAG, "TestEventHandler:headers()"); 231 /* Check through headers received for matches with expected 232 * headers */ 243 s = Long.toString(headers.getContentLength()); 246 s = headers.getContentType(); 249 s = headers [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaExtractor.java | 77 * @param headers the headers to be sent together with the request for the data 80 Context context, Uri uri, Map<String, String> headers) 115 setDataSource(uri.toString(), headers); 122 * @param headers the headers associated with the http request for the stream you want to play 124 public final void setDataSource(String path, Map<String, String> headers) argument 129 if (headers != null) { 130 keys = new String[headers.size()]; 131 values = new String[headers 79 setDataSource( Context context, Uri uri, Map<String, String> headers) argument [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | MidiMetadataRetriever.h | 35 const char *url, const KeyedVector<String8, String8> *headers);
|
/frameworks/base/obex/javax/obex/ |
H A D | Operation.java | 60 * As headers are received, they may be retrieved through the 61 * <code>getReceivedHeaders()</code> method. If new headers are set during the 62 * operation, the new headers will be sent during the next packet exchange. 123 * object. No headers are sent in the abort request. This will end the 131 * Returns the headers that have been received during the operation. 132 * Modifying the object returned has no effect on the headers that are sent 134 * @return the headers received during this <code>Operation</code> 140 * Specifies the headers that should be sent in the next OBEX message that 142 * @param headers the headers t 150 sendHeaders(HeaderSet headers) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaMetadataRetriever.cpp | 87 const char *srcUrl, const KeyedVector<String8, String8> *headers) 93 if (headers == NULL) { 96 // serialize the headers 97 data.writeInt32(headers->size()); 98 for (size_t i = 0; i < headers->size(); ++i) { 99 data.writeString8(headers->keyAt(i)); 100 data.writeString8(headers->valueAt(i)); 200 KeyedVector<String8, String8> headers; local 205 headers.add(key, value); 209 setDataSource(srcUrl, numHeaders > 0 ? &headers 86 setDataSource( const char *srcUrl, const KeyedVector<String8, String8> *headers) argument [all...] |