Searched defs:host (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
H A DRequestFeeder.java31 Request getRequest(HttpHost host); argument
34 * @return true if a request for this host is available
36 boolean haveRequest(HttpHost host); argument
H A DHttpConnection.java37 HttpConnection(Context context, HttpHost host, argument
39 super(context, host, requestFeeder);
H A DHttpsConnection.java140 HttpsConnection(Context context, HttpHost host, HttpHost proxy, argument
142 super(context, host, requestFeeder);
286 // if we do not have a proxy, we simply connect to the host
H A DIdleCache.java67 HttpHost host, Connection connection) {
72 HttpLog.v("IdleCache size " + mCount + " host " + host);
80 entry.mHost = host;
97 synchronized Connection getConnection(HttpHost host) { argument
104 if (eHost != null && eHost.equals(host)) {
66 cacheConnection( HttpHost host, Connection connection) argument
H A DConnection.java70 * The host this connection is connected to. If using proxy,
105 protected Connection(Context context, HttpHost host, argument
108 mHost = host;
124 Context context, HttpHost host, HttpHost proxy,
127 if (host.getSchemeName().equals("http")) {
128 return new HttpConnection(context, host, requestFeeder);
132 return new HttpsConnection(context, host, proxy, requestFeeder);
123 getConnection( Context context, HttpHost host, HttpHost proxy, RequestFeeder requestFeeder) argument
H A DRequest.java47 * Represents an HTTP request for a given host.
103 * @param host The server that will handle this request
111 Request(String method, HttpHost host, HttpHost proxyHost, String path, argument
116 mHost = host;
H A DRequestQueue.java54 * Requests, indexed by HttpHost (scheme, host, port)
160 ConnectionThread getThread(HttpHost host) { argument
165 if (connection != null && connection.mHost.equals(host)) {
173 public Connection getConnection(Context context, HttpHost host) { argument
174 host = RequestQueue.this.determineHost(host);
175 Connection con = mIdleCache.getConnection(host);
178 con = Connection.getConnection(mContext, host, mProxyHost,
267 String host = Proxy.getHost(mContext);
268 if (HttpLog.LOGV) HttpLog.v("RequestQueue.setProxyConfig " + host);
359 getRequest(HttpHost host) argument
362 haveRequest(HttpHost host) argument
397 determineHost(HttpHost host) argument
463 getRequest(HttpHost host) argument
480 haveRequest(HttpHost host) argument
543 getConnection(Context context, HttpHost host) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DURITest.java33 private static void construct(String str, String host, String path, boolean absolute) argument
36 assertEquals(host, uri.getHost());
H A DDatabaseSessionCache.java44 * Key is host:port - port is not optional.
225 public byte[] getSessionData(String host, int port) { argument
273 String key = host + ":" + port;
H A DSSLPerformanceTest.java272 cache.putSessionData(new FakeSession("host" + i), SESSION_DATA);
343 final String host; field in class:FakeSession
345 FakeSession(String host) { argument
346 this.host = host;
362 return host.getBytes();
390 return host;
H A DSSLSocketTest.java64 * Does a number of HTTPS requests on some host and consumes the response.
69 * @param host The host name the request is being sent to.
78 private void fetch(SSLSocketFactory socketFactory, String host, int port, argument
81 InetSocketAddress address = new InetSocketAddress(host, port);
84 // Connect to the remote host
102 "GET https://" + host + path + " HTTP/1.1");
105 writer.println("GET https://" + host + path + " HTTP/1.1\r");
106 writer.println("Host: " + host + "\r");
180 private void fetch(String host, in argument
985 getSessionData(String host, int port) argument
1073 getSessionData(String host, int port) argument
[all...]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
H A DAdbUtils.java40 * @param host IP address in integer format
43 public static String convert(int host) { argument
44 return ((host >> 24) & 0xFF) + "."
45 + ((host >> 16) & 0xFF) + "."
46 + ((host >> 8) & 0xFF) + "."
47 + (host & 0xFF);
54 * @param host DNS name
58 public static int resolve(String host) throws IOException { argument
66 String cmd = "dns:" + host;
109 * @param remoteAddress IP address of the host t
[all...]
/frameworks/base/core/java/android/net/
H A DSntpClient.java68 * Sends an SNTP request to the given host and processes the response.
70 * @param host host name of the server.
74 public boolean requestTime(String host, int timeout) { argument
78 InetAddress address = InetAddress.getByName(host);
H A DSSLCertificateSocketFactory.java254 public Socket createSocket(Socket k, String host, int port, boolean close) throws IOException { argument
255 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close);
258 verifyHostname(s, host);
264 * Creates a new socket which is not connected to any remote host.
315 public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) argument
318 host, port, localAddr, localPort);
321 verifyHostname(s, host);
333 public Socket createSocket(String host, int port) throws IOException { argument
334 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(host, port);
337 verifyHostname(s, host);
[all...]
H A DUri.java196 * {@code [ userinfo '@' ] host [ ':' port ]}
207 * {@code [ userinfo '@' ] host [ ':' port ]}
234 * Gets the encoded host from the authority for this URI. For example,
238 * @return the host for this URI or null if not present
1021 private volatile String host = NOT_CACHED; field in class:Uri.AbstractHierarchicalUri
1025 boolean cached = (host != NOT_CACHED);
1026 return cached ? host
1027 : (host = parseHost());
/frameworks/base/core/java/android/webkit/
H A DHttpAuthHandler.java263 mNetwork.getProxyHostname() : loader.host();
276 String host, String realm, String username, String password) {
278 proxy.onReceivedHttpAuthCredentials(host, realm, username, password);
275 onReceivedCredentials(LoadListener loader, String host, String realm, String username, String password) argument
H A DWebViewClient.java27 * Give the host application a chance to take over the control when a new
31 * means the host application handles the url, while return false means the
36 * @return True if the host application wants to leave the current WebView
44 * Notify the host application that a page has started loading. This method
59 * Notify the host application that a page has finished loading. This method
71 * Notify the host application that the WebView will load the resource
81 * Notify the host application that there have been an excessive number of
82 * HTTP redirects. As the host application if it would like to continue
87 * @param cancelMsg The message to send if the host wants to cancel
88 * @param continueMsg The message to send if the host want
194 onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) argument
[all...]
H A DCookieManager.java277 * Set cookie for a given url. The old cookie with same host/path/name will
295 * Set cookie for a given uri. The old cookie with same host/path/name will
688 * Extract the host and path out of a uri
690 * @return The host and path in the format of String[], String[0] is host
698 * The domain (i.e. host) portion of the cookie is supposed to be
718 // cookie host must have at least two periods
747 * Get the base domain for a give host. E.g. mail.google.com will return
749 * @param host The give host
752 getBaseDomain(String host) argument
781 parseCookie(String host, String path, String cookieString) argument
[all...]
H A DWebViewDatabase.java52 // 8 -> 9 Store both scheme and host when storing passwords
133 private static final String PASSWORD_HOST_COL = "host";
150 private static final String HTTPAUTH_HOST_COL = "host";
827 * @param schemePlusHost The scheme and host for the password
849 * Retrieve the username and password for a given host
851 * @param schemePlusHost The scheme and host which passwords applies to
919 * @param host The host for the password
925 void setHttpAuthUsernamePassword(String host, String realm, String username, argument
927 if (host
951 getHttpAuthUsernamePassword(String host, String realm) argument
[all...]
/frameworks/base/media/libstagefright/
H A DHTTPDataSource.cpp33 string host = mStartingHost.string(); local
37 LOGV("Connecting to host '%s', port %d, path '%s'",
38 host.c_str(), port, path.c_str());
49 status_t err = mHttp->connect(host.c_str(), port);
61 request.append(host.c_str());
111 host = string(location, 0, slashPos);
113 string::size_type colonPos = host.find(':');
115 const char *start = host.c_str() + colonPos + 1;
122 host.erase(colonPos, host
157 string host; local
[all...]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DReliabilityTestActivity.java215 public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, argument
/frameworks/base/services/java/com/android/server/
H A DAppWidgetService.java106 Host host; field in class:AppWidgetService.AppWidgetId
192 pw.print(id.host.hostId); pw.print(' ');
193 pw.print(id.host.packageName); pw.print('/');
194 pw.println(id.host.uid);
199 if (id.host != null) {
200 pw.print(" host.callbacks="); pw.println(id.host.callbacks);
211 Host host = mHosts.get(i);
213 pw.print(host.hostId); pw.print(' ');
214 pw.print(host
282 deleteHostLocked(Host host) argument
565 pruneHostLocked(Host host) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/webkit/
H A DWebView.java82 public void savePassword(String host, String username, String password) { argument
85 public void setHttpAuthUsernamePassword(String host, String realm, argument
89 public String[] getHttpAuthUsernamePassword(String host, String realm) { argument
/frameworks/base/core/java/android/content/
H A DIntentFilter.java108 * formal RFC host names!</em> You should thus always use lower case letters
129 private static final String HOST_STR = "host";
192 * authority host.
197 * authority host and port.
633 public AuthorityEntry(String host, String port) { argument
634 mOrigHost = host;
635 mWild = host.length() > 0 && host.charAt(0) == '*';
636 mHost = mWild ? host.substring(1).intern() : host;
719 addDataAuthority(String host, String port) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp169 NinePatchPeeker(SkImageDecoder* host) { argument
170 // the host lives longer than we do, so a raw ptr is safe
171 fHost = host;
204 // now update our host to force index or 32bit config

Completed in 3041 milliseconds

12