/frameworks/base/core/java/android/net/http/ |
LoggingEventHandler.java | 23 import android.net.http.Headers; 46 public void headers(Headers headers) { method in class:LoggingEventHandler 48 HttpLog.v("LoggingEventHandler:headers()"); 49 HttpLog.v(headers.toString());
|
/frameworks/base/core/java/android/webkit/ |
ContentLoader.java | 20 import android.net.http.Headers; 91 protected void buildHeaders(Headers headers) { 93 headers.setContentType("text/html"); 96 headers.setCacheControl("no-store, no-cache");
|
CacheManager.java | 21 import android.net.http.Headers; 41 * 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 306 * If headers are provided and a cache needs validation, 308 * cached headers. 313 Map<String, String> headers) { 314 return getCacheFile(url, 0, headers); 318 Map<String, String> headers) { 350 // null headers request coming from CACHE_MODE_CACHE_ONL [all...] |
/frameworks/base/services/java/com/android/server/ |
BootReceiver.java | 100 final String headers = new StringBuilder(512) local 111 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); 117 if (db != null) db.addText("SYSTEM_BOOT", headers); 120 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg", 122 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", 124 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", 126 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", 129 if (db != null) db.addText("SYSTEM_RESTART", headers); 135 addFileToDropBox(db, prefs, headers, tombstoneFiles[i].getPath(), 146 addFileToDropBox(db, prefs, headers, filename, LOG_SIZE, "SYSTEM_TOMBSTONE") [all...] |
/packages/providers/DownloadProvider/tests/src/tests/http/ |
MockResponse.java | 36 private Map<String, String> headers = new HashMap<String, String>(); field in class:MockResponse 57 * Returns the HTTP headers, such as "Content-Length: 0". 61 for (String header : headers.keySet()) { 62 headerStrings.add(header + ": " + headers.get(header)); 68 headers.put(header.toLowerCase(), value); 77 headers.remove(header.toLowerCase());
|
/external/chromium/net/flip/ |
flip_session.cc | 32 // Diagnostics function to dump the headers of a request. 34 void DumpFlipHeaders(const flip::FlipHeaderBlock& headers) { 40 flip::FlipHeaderBlock::const_iterator it = headers.begin(); 41 while (it != headers.end()) { 66 // |headers| input parameter with the FlipHeaderBlock. 70 bool FlipHeadersToHttpResponse(const flip::FlipHeaderBlock& headers, 75 // The "status" and "version" headers are required. 77 it = headers.find("status"); 78 if (it == headers.end()) { 85 it = headers.find("version") 347 flip::FlipHeaderBlock headers; local 994 flip::FlipHeaderBlock headers; local 1008 &headers); local 1014 &headers); local [all...] |
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 104 // in the set of headers, they are combined into a single line like so: 107 // DANGER: For some headers (e.g., "Set-Cookie"), the normalized form can be 109 // Set-Cookie headers that contain unquoted commas (usually as part of the 111 // not expect to be able to re-parse Set-Cookie headers from this output. 119 output->assign(info.headers->GetStatusLine()); 122 // Enumerate the headers 125 while (info.headers->EnumerateHeaderLines(&iter, &name, &value)) { 132 // Mark the end of headers 141 std::string headers; 144 if (index == 0) { // Stream 0 is the headers [all...] |
/external/chromium/net/url_request/ |
url_request_test_job.cc | 46 // static getter for simple response headers 48 const char headers[] = local 52 return std::string(headers, arraysize(headers)); 55 // static getter for redirect response headers 57 const char headers[] = local 61 return std::string(headers, arraysize(headers)); 64 // static getter for error response headers 66 const char headers[] local [all...] |
url_request.cc | 124 void URLRequest::SetExtraRequestHeaders(const string& headers) { 126 if (headers.empty()) { 130 size_t crlf = headers.rfind("\r\n", headers.size() - 1); 131 DCHECK(crlf != headers.size() - 2) << "headers must not end with CRLF"; 133 extra_request_headers_ = headers + "\r\n"; 137 // for request headers are implemented. 165 if (response_info_.headers) { 166 response_info_.headers->GetNormalizedHeader(name, value) [all...] |
/external/chromium/third_party/icu/source/test/perf/perldriver/ |
Output.pm | 18 my @headers; 94 if($#headers >= 0) { 101 print HTML "<th colspan=".((4*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 103 print HTML "<th colspan=".((2*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 104 print HTML "<th colspan=".((5*($#headers+1))-2)." class=\"sourceType\">Per Event</th>\n"; 108 foreach $header (@headers) { 113 for $i (1 .. $#headers) { 115 printLeg("<a name=\"mean_op_$i\">ratio $i /op</a> - ratio and error of per $operationIs time, calculated as: (($headers[0] - $headers[$i])/$headers[$i])*100%, mean value") [all...] |
/external/icu4c/test/perf/perldriver/ |
Output.pm | 18 my @headers; 94 if($#headers >= 0) { 101 print HTML "<th colspan=".((4*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 103 print HTML "<th colspan=".((2*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 104 print HTML "<th colspan=".((5*($#headers+1))-2)." class=\"sourceType\">Per Event</th>\n"; 108 foreach $header (@headers) { 113 for $i (1 .. $#headers) { 115 printLeg("<a name=\"mean_op_$i\">ratio $i /op</a> - ratio and error of per $operationIs time, calculated as: (($headers[0] - $headers[$i])/$headers[$i])*100%, mean value") [all...] |
/external/chromium/net/http/ |
http_cache_transaction.cc | 46 // If the request includes one of these request headers, then avoid caching 65 // If the request includes one of these request headers, then avoid reusing 73 // If the request includes one of these request headers, then force our 148 cancel_request &= (response_.headers->response_code() == 200); 277 DCHECK(auth_response_.headers); 317 if (auth_response_.headers && mode_ != NONE) { 355 // Null headers means we encountered an error or haven't a response yet 356 if (auth_response_.headers) 358 return (response_.headers || response_.ssl_info.cert || 521 // We have to read the headers from the cached entry [all...] |
http_basic_stream.h | 34 const std::string& headers,
|
http_cache_unittest.cc | 628 response.headers->GetNormalizedHeaders(response_headers); 723 // We want to make sure we don't delete extra headers. 804 // Returns true if the response headers (|response|) match a partial content 809 scoped_refptr<net::HttpResponseHeaders> headers = 812 if (206 != headers->response_code()) 816 if (!headers->GetContentRange(&range_start, &range_end, &object_size)) 818 int64 content_length = headers->GetContentLength(); 838 trans->response_headers = headers; 843 return std::string(status) + "\n" + std::string(headers); 847 const char* headers; [all...] |
/bionic/libc/kernel/tools/ |
find_headers.py | 3 # this program is used to find source code that includes linux kernel headers directly 23 -d <include-dir> specify alternate kernel headers 36 this program is used to find all the kernel headers that are used 133 #destdir = "/tmp/bionic-kernel-headers/" 149 headers = fparser.getHeaders() variable 152 # now recursively scan the kernel headers for additionnal sub-included headers 153 hparser = kernel.KernelHeaderFinder(headers,archs,kernel_root,kernel_config) 154 headers = hparser.scanForAllArchs() variable 159 print "the following %d headers:" % len(headers [all...] |
kernel.py | 5 # the kernel headers 23 """a class used to non-recursively detect which Linux kernel headers are 32 # # get the set of Linux headers included by your files 33 # headers = scanner.getHeaders() 35 # # get the set of of input files that do include Linux headers 70 self.files = set() # set of files being parsed for headers 71 self.headers = {} # maps headers to set of users 95 if not header in self.headers: 96 self.headers[header] = set( [all...] |
/external/chromium/third_party/icu/source/tools/ctestfw/ |
tstdtmod.cpp | 102 UResourceBundle *headers = ures_getByKey(fInfoRB, "Headers", NULL, &intStatus); local 105 result = new RBTestData(DataFillIn, headers, status); 114 ures_close(headers); 130 UResourceBundle *headers = ures_getByKey(fInfoRB, "Headers", NULL, &intStatus); local 133 result = new RBTestData(DataFillIn, headers, status); 141 ures_close(headers);
|
/external/webkit/WebCore/platform/network/mac/ |
ResourceResponseMac.mm | 85 NSDictionary *headers = [httpResponse allHeaderFields]; 86 NSEnumerator *e = [headers keyEnumerator]; 88 m_httpHeaderFields.set(name, [headers objectForKey:name]);
|
/external/webkit/WebCore/platform/network/cf/ |
ResourceResponseCFNet.cpp | 100 RetainPtr<CFDictionaryRef> headers(AdoptCF, CFHTTPMessageCopyAllHeaderFields(httpResponse)); 101 CFIndex headerCount = CFDictionaryGetCount(headers.get()); 104 CFDictionaryGetKeysAndValues(headers.get(), keys.data(), values.data());
|
/external/apache-http/src/org/apache/http/impl/entity/ |
LaxContentLengthStrategy.java | 54 * about unsupported transfer codecs and malformed content-length headers. 234 Header[] headers = message.getHeaders(HTTP.CONTENT_LEN); local 235 if (strict && headers.length > 1) { 236 throw new ProtocolException("Multiple content length headers"); 238 for (int i = headers.length - 1; i >= 0; i--) { 239 Header header = headers[i];
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
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) { 78 super(headers); 82 * Constructor with given headers and body 84 * @param headers Headers for this PDU. 87 SendReq(PduHeaders headers, PduBody body) [all...] |
/frameworks/base/obex/javax/obex/ |
Operation.java | 58 * <STRONG>How Headers are Handled</STRONG> 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 to send in the next messag [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
TestEventHandler.java | 41 /* List of headers received */ 218 * Implements the EventHandler headers method called when a server 221 public void headers(Headers headers) { method in class:TestEventHandler 223 Log.v(LOGTAG, "TestEventHandler:headers()"); 232 /* Check through headers received for matches with expected 233 * headers */ 244 s = Long.toString(headers.getContentLength()); 247 s = headers.getContentType() [all...] |
/external/apache-http/src/org/apache/http/client/params/ |
ClientParamBean.java | 84 public void setDefaultHeaders (final Collection <Header> headers) { 85 params.setParameter(ClientPNames.DEFAULT_HEADERS, headers);
|
/external/libxml2/include/libxml/ |
nanohttp.h | 36 const char *headers, 44 const char *headers,
|