Home | History | Annotate | Download | only in settings

Lines Matching refs:hostname

98         mHostnameField = (EditText)findViewById(R.id.hostname);
116 String hostname = null;
120 hostname = Proxy.getDefaultHost();
124 hostname = Proxy.getHost(this);
128 if (hostname == null) {
129 hostname = "";
132 mHostnameField.setText(hostname);
151 * validate syntax of hostname and port entries
154 int validate(String hostname, String port) {
155 Matcher match = HOSTNAME_PATTERN.matcher(hostname);
159 if (hostname.length() > 0 && port.length() == 0) {
164 if (hostname.length() == 0) {
185 String hostname = mHostnameField.getText().toString().trim();
189 int result = validate(hostname, portStr);
214 if (hostname.equals(Proxy.getDefaultHost())
219 hostname = null;
222 if (!TextUtils.isEmpty(hostname)) {
223 hostname += ':' + portStr;
225 Settings.Secure.putString(res, Settings.Secure.HTTP_PROXY, hostname);