Searched refs:host (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DProxy.java40 * Return the proxy host set by the user.
41 * @param ctx A Context used to get the settings for the proxy host.
42 * @return String containing the host name. If the user did not set a host
43 * name it returns the default host. A null value means that no
44 * host is to be used.
49 String host = Settings.Secure.getString(
52 if (host != null) {
53 int i = host.indexOf(':');
56 Assert.assertTrue(host
[all...]
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 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);
/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 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...]
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 DHttpConnection.java37 HttpConnection(Context context, HttpHost host, argument
39 super(context, host, requestFeeder);
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
/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...]
H A DForwardService.java86 String host = null;
92 host = hostReader.readLine();
93 Log.v(LOGTAG, "read forward host from file: " + host);
95 Log.v(LOGTAG, "cannot read forward host from file", ioe);
106 if (host == null || host.length() == 0)
107 host = DEFAULT_TEST_HOST;
109 addr = AdbUtils.resolve(host);
/frameworks/base/core/java/android/webkit/
H A DSslErrorHandler.java156 final String host = loader.host();
160 Assert.assertTrue(host != null && primary != 0);
163 if (mSslPrefTable.containsKey(host)) {
164 if (primary <= mSslPrefTable.getInt(host)) {
259 String host = loader.host();
262 Assert.assertTrue(host != null && primary != 0);
264 boolean hasKey = mSslPrefTable.containsKey(host);
266 primary > mSslPrefTable.getInt(host)) {
[all...]
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...]
/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/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/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 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...]
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;
/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/com/android/internal/appwidget/
H A DIAppWidgetService.aidl30 int[] startListening(IAppWidgetHost host, String packageName, int hostId,
/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/tools/aapt/
H A DAndroid.mk30 LOCAL_C_INCLUDES += build/libs/host/include
/frameworks/base/tools/localize/
H A DAndroid.mk26 build/libs/host/include
/frameworks/base/core/java/android/view/
H A DViewRoot.java669 final View host = mView;
674 host.debug();
677 if (host == null || !mAdded)
726 mLastConfiguration.setTo(host.getResources().getConfiguration());
727 host.dispatchAttachedToWindow(attachInfo, 0);
735 "View " + host + " resized to: " + frame);
744 host.dispatchWindowVisibilityChanged(viewVisibility);
765 host.fitSystemWindows(mAttachInfo.mContentInsets);
773 host.fitSystemWindows(mAttachInfo.mContentInsets);
797 // Ask host ho
[all...]
/frameworks/base/include/media/stagefright/
H A DHTTPDataSource.h32 const char *host, int port, const char *path,

Completed in 378 milliseconds

12