Searched refs:headers (Results 1 - 25 of 107) sorted by relevance

12345

/frameworks/volley/src/main/java/com/android/volley/
H A DNetworkResponse.java25 * Data and headers returned from {@link Network#performRequest(Request)}.
32 * @param headers Headers returned with this response, or null for none
36 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, argument
40 this.headers = headers;
45 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, argument
47 this(statusCode, data, headers, notModified, 0);
54 public NetworkResponse(byte[] data, Map<String, String> headers) { argument
55 this(HttpStatus.SC_OK, data, headers, false, 0);
64 /** Response headers
65 public final Map<String, String> headers; field in class:NetworkResponse
[all...]
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java47 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...]
H A DJsonRequestCharsetTest.java84 Map<String, String> headers = new HashMap<String, String>();
85 headers.put("Content-Type", "application/json; charset=iso-8859-1");
86 NetworkResponse network = new NetworkResponse(data, headers);
98 Map<String, String> headers = new HashMap<String, String>();
99 headers.put("Content-Type", "application/json; charset=iso-8859-2");
100 NetworkResponse network = new NetworkResponse(data, headers);
/frameworks/base/core/java/android/webkit/
H A DUrlInterceptHandler.java37 * @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 DPluginData.java27 * 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 DUrlInterceptRegistry.java125 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 DSDPLoader.cpp51 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { argument
57 if (headers != NULL) {
59 "headers",
60 new KeyedVector<String8, String8>(*headers));
90 KeyedVector<String8, String8> *headers = NULL; local
91 msg->findPointer("headers", (void **)&headers);
96 err = mHTTPDataSource->connect(url.c_str(), headers);
103 if (headers != NULL) {
104 delete headers;
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DHttpHeaderParser.java29 * Utility methods for parsing HTTP headers.
36 * @param response The network response to parse headers from
42 Map<String, String> headers = response.headers;
57 headerValue = headers.get("Date");
62 headerValue = headers.get("Cache-Control");
86 headerValue = headers.get("Expires");
91 headerValue = headers.get("Last-Modified");
96 serverEtag = headers.get("ETag");
118 entry.responseHeaders = headers;
144 parseCharset(Map<String, String> headers, String defaultCharset) argument
165 parseCharset(Map<String, String> headers) argument
[all...]
H A DBasicNetwork.java93 // 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/base/media/java/android/media/
H A DIMediaHTTPConnection.aidl26 IBinder connect(in String uri, in String headers);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DAcknowledgeInd.java44 * Constructor with given headers.
46 * @param headers Headers for this PDU.
48 AcknowledgeInd(PduHeaders headers) { argument
49 super(headers);
H A DDeliveryInd.java40 * Constructor with given headers.
42 * @param headers Headers for this PDU.
44 DeliveryInd(PduHeaders headers) { argument
45 super(headers);
H A DGenericPdu.java24 * 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 DNotifyRespInd.java47 * Constructor with given headers.
49 * @param headers Headers for this PDU.
51 NotifyRespInd(PduHeaders headers) { argument
52 super(headers);
H A DSendConf.java37 * Constructor with given headers.
39 * @param headers Headers for this PDU.
41 SendConf(PduHeaders headers) { argument
42 super(headers);
H A DRetrieveConf.java40 * 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 DPduParser.java62 * 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...]
H A DSendReq.java39 // 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 DMultimediaMessagePdu.java50 * Constructor with given headers.
52 * @param headers Headers for this PDU.
54 MultimediaMessagePdu(PduHeaders headers) { argument
55 super(headers);
/frameworks/base/tests/CoreTests/android/core/
H A DRequestAPITest.java70 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 DTestEventHandler.java40 /* 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/tests/OneMedia/src/com/android/onemedia/playback/
H A DRequestUtils.java38 public static final String EXTRA_KEY_HEADERS = "headers";
64 public ContentBuilder setHeaders(HashMap<String, String> headers) { argument
65 mBundle.putSerializable(EXTRA_KEY_HEADERS, headers);
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java118 final String headers = new StringBuilder(512)
132 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery);
155 if (db != null) db.addText("SYSTEM_BOOT", headers);
158 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter,
160 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter,
162 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE,
164 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg",
166 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT");
167 addFsckErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_FSCK");
169 if (db != null) db.addText("SYSTEM_RESTART", headers);
205 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
211 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
232 addAuditErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
264 addFsckErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
[all...]
/frameworks/av/include/media/
H A DIMediaHTTPConnection.h35 const char *uri, const KeyedVector<String8, String8> *headers) = 0;
/frameworks/base/obex/javax/obex/
H A DOperation.java60 * 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...]

Completed in 549 milliseconds

12345