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

12345

/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 DCacheLoader.java26 * and encoding is added to the HTTP response headers.
55 protected void buildHeaders(Headers headers) { argument
61 headers.setContentType(sb.toString());
64 headers.setLocation(mCacheResult.location);
68 headers.setExpires(mCacheResult.expiresString);
72 headers.setContentDisposition(mCacheResult.contentdisposition);
76 headers.setXPermittedCrossDomainPolicies(mCacheResult.crossDomain);
H A DStreamLoader.java40 * additional HTTP headers to the response.
49 private static final int MSG_HEADERS = 101; // Send headers to loader
84 * This method is called when the headers are about to be sent to the
86 * headers.
88 * @param headers Map of HTTP headers that will be sent to the loader.
90 abstract protected void buildHeaders(Headers headers); argument
158 * Construct the headers and pass them to the EventHandler.
161 Headers headers = new Headers();
163 headers
[all...]
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
H A DContentLoader.java91 protected void buildHeaders(Headers headers) { argument
93 headers.setContentType("text/html");
96 headers.setCacheControl("no-store, no-cache");
H A DWebResourceResponse.java41 protected void buildHeaders(Headers headers) { argument
42 headers.setContentType(mMimeType);
43 headers.setContentEncoding(mEncoding);
H A DCacheManager.java41 * received over the network. The component handles parsing of HTTP headers and
42 * utilizes the relevant cache headers to determine if the content should be
44 * this component and if they can not be resolved by the cache, the HTTP headers
358 * If a non-zero value is provided for the headers map, and the cache entry needs validation,
359 * HEADER_KEY_IFNONEMATCH or HEADER_KEY_IFMODIFIEDSINCE will be set in headers.
367 Map<String, String> headers) {
368 return getCacheFile(url, 0, headers);
372 Map<String, String> headers) {
423 // A null value for headers is used by CACHE_MODE_CACHE_ONLY to imply
426 if (headers !
366 getCacheFile(String url, Map<String, String> headers) argument
371 getCacheFile(String url, long postIdentifier, Map<String, String> headers) argument
463 createCacheFile(String url, int statusCode, Headers headers, String mimeType, boolean forceCache) argument
474 createCacheFile(String url, int statusCode, Headers headers, String mimeType, long postIdentifier, boolean forceCache) argument
802 parseHeaders(int statusCode, Headers headers, String mimeType) argument
[all...]
/frameworks/base/core/tests/utillib/src/coretestutils/http/
H A DRecordedRequest.java26 private final List<String> headers; field in class:RecordedRequest
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes, argument
35 this.headers = headers;
47 return headers;
/frameworks/base/services/java/com/android/server/
H A DBootReceiver.java87 final String headers = new StringBuilder(512)
98 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery);
104 if (db != null) db.addText("SYSTEM_BOOT", headers);
107 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg",
109 addFileToDropBox(db, prefs, headers, "/cache/recovery/log",
111 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console",
113 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads",
116 if (db != null) db.addText("SYSTEM_RESTART", headers);
122 addFileToDropBox(db, prefs, headers, tombstoneFiles[i].getPath(),
133 addFileToDropBox(db, prefs, headers, filenam
143 addFileToDropBox( DropBoxManager db, SharedPreferences prefs, String headers, String filename, int maxSize, String tag) argument
[all...]
/frameworks/base/core/java/android/net/http/
H A DEventHandler.java22 * 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 DLoggingEventHandler.java46 public void headers(Headers headers) { argument
48 HttpLog.v("LoggingEventHandler:headers()");
49 HttpLog.v(headers.toString());
/frameworks/base/core/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.java64 * Store pdu headers
110 /* parse headers */
113 // Parse headers failed.
122 log("check mandatory headers failed!");
199 * Parse pdu headers.
202 * @return headers in PduHeaders structure, null when parse fail
210 PduHeaders headers = new PduHeaders();
249 headers.setOctet(messageType, headerField);
292 headers.setOctet(value, headerField);
311 headers
1699 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);
/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/media/libmediaplayerservice/
H A DMidiMetadataRetriever.h35 const char *url, const KeyedVector<String8, String8> *headers);
/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...]
/frameworks/base/media/libmedia/
H A DIMediaMetadataRetriever.cpp87 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));
186 KeyedVector<String8, String8> headers; local
191 headers.add(key, value);
195 setDataSource(srcUrl, numHeaders > 0 ? &headers
86 setDataSource( const char *srcUrl, const KeyedVector<String8, String8> *headers) argument
[all...]

Completed in 3130 milliseconds

12345