/frameworks/volley/src/main/java/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 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/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...] |
H A D | HttpClientStack.java | 59 private static void addHeaders(HttpUriRequest httpRequest, Map<String, String> headers) { argument 60 for (String key : headers.keySet()) { 61 httpRequest.setHeader(key, headers.get(key));
|
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; 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...] |
/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/opt/telephony/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 | MultimediaMessagePdu.java | 50 * Constructor with given headers. 52 * @param headers Headers for this PDU. 54 MultimediaMessagePdu(PduHeaders headers) { argument 55 super(headers);
|
H A D | NotificationInd.java | 41 * Constructor with given headers. 43 * @param headers Headers for this PDU. 45 NotificationInd(PduHeaders headers) { argument 46 super(headers);
|
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 | 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...] |
H A D | PduPersister.java | 308 PduHeaders headers, int mapColumn) { 315 headers.setEncodedStringValue(value, mapColumn); 321 PduHeaders headers, int mapColumn) { 324 headers.setTextString(getBytes(s), mapColumn); 330 PduHeaders headers, int mapColumn) throws InvalidHeaderValueException { 333 headers.setOctet(b, mapColumn); 339 PduHeaders headers, int mapColumn) { 342 headers.setLongInteger(l, mapColumn); 485 private void loadAddress(long msgId, PduHeaders headers) { argument 499 headers 306 setEncodedStringValueToHeaders( Cursor c, int columnIndex, PduHeaders headers, int mapColumn) argument 319 setTextStringToHeaders( Cursor c, int columnIndex, PduHeaders headers, int mapColumn) argument 328 setOctetToHeaders( Cursor c, int columnIndex, PduHeaders headers, int mapColumn) argument 337 setLongToHeaders( Cursor c, int columnIndex, PduHeaders headers, int mapColumn) argument [all...] |
H A D | ReadOrigInd.java | 37 * Constructor with given headers. 39 * @param headers Headers for this PDU. 41 ReadOrigInd(PduHeaders headers) { argument 42 super(headers);
|
H A D | ReadRecInd.java | 49 * Constructor with given headers. 51 * @param headers Headers for this PDU. 53 ReadRecInd(PduHeaders headers) { argument 54 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 | 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 | 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...] |
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/base/tests/OneMedia/src/com/android/onemedia/playback/ |
H A D | LocalRenderer.java | 101 public final Map<String, String> headers; field in class:LocalRenderer.PlayerContent 103 public PlayerContent(String source, Map<String, String> headers) { argument 105 this.headers = headers; 151 Header[] headers = response.getAllHeaders(); 152 if (headers != null && headers.length > 0) { 153 for (Header header : headers) { 328 if (mContent.headers != null) { 329 for (String key : mContent.headers [all...] |
H A D | RequestUtils.java | 38 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/packages/Osu/src/com/android/hotspot2/utils/ |
H A D | HTTPResponse.java | 70 private static int parseHeader(byte[] input, int body, Map<String, String> headers) argument 100 headers.put(key, value); 105 private static int calculateLength(int body, Map<String, String> headers) throws IOException { argument 106 String contentLength = headers.get(LengthHeader);
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | URLFetcher.java | 154 * Parses the HTTP headers to compute the ttl. 156 * @param headers a map that map the header key to the header values. Can be null. 159 private Long getExpirationTimeMillisFromHTTPHeader(Map<String, List<String>> headers) { argument 160 if (headers == null) { 163 Map<String, String> joinedHeaders = joinHttpHeaders(headers); 185 private Map<String, String> joinHttpHeaders(Map<String, List<String>> headers) { argument 187 for (Map.Entry<String, List<String>> entry : headers.entrySet()) {
|