Lines Matching refs:host
40 * 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.length() == 0);
60 return host.substring(0, i);
73 String host = Settings.Secure.getString(
76 if (host != null) {
77 int i = host.indexOf(':');
80 Assert.assertTrue(host.length() == 0);
85 Assert.assertTrue(i < host.length());
87 return Integer.parseInt(host.substring(i+1));
93 * Return the default proxy host specified by the carrier.
94 * @return String containing the host name or null if there is no proxy for
98 String host = SystemProperties.get("net.gprs.http-proxy");
99 if (host != null) {
100 Uri u = Uri.parse(host);
101 host = u.getHost();
102 return host;
110 * @return The port number to be used with the proxy host or -1 if there is
114 String host = SystemProperties.get("net.gprs.http-proxy");
115 if (host != null) {
116 Uri u = Uri.parse(host);