Home | History | Annotate | Download | only in browser

Lines Matching defs:inUrl

597     private boolean handleWebSearchRequest(String inUrl, Bundle appData, String extraData) {
598 if (inUrl == null) return false;
602 String url = fixUrl(inUrl).trim();
712 /* package */ static String fixUrl(String inUrl) {
718 int colon = inUrl.indexOf(':');
721 char ch = inUrl.charAt(index);
727 inUrl = inUrl.substring(0, colon).toLowerCase()
728 + inUrl.substring(colon);
731 if (inUrl.startsWith("http://") || inUrl.startsWith("https://"))
732 return inUrl;
733 if (inUrl.startsWith("http:") ||
734 inUrl.startsWith("https:")) {
735 if (inUrl.startsWith("http:/") || inUrl.startsWith("https:/")) {
736 inUrl = inUrl.replaceFirst("/", "//");
737 } else inUrl = inUrl.replaceFirst(":", "://");
739 return inUrl;
3613 String inUrl = url.trim();
3614 boolean hasSpace = inUrl.indexOf(' ') != -1;
3616 Matcher matcher = ACCEPTED_URI_SCHEMA.matcher(inUrl);
3622 inUrl = lcScheme + matcher.group(2);
3625 inUrl = inUrl.replace(" ", "%20");
3627 return inUrl;
3632 int shortcut = parseUrlShortcut(inUrl);
3634 Browser.addSearchUrl(mResolver, inUrl);
3635 String query = inUrl.substring(2);
3649 if (Patterns.WEB_URL.matcher(inUrl).matches()) {
3650 return URLUtil.guessUrl(inUrl);
3654 Browser.addSearchUrl(mResolver, inUrl);
3655 return URLUtil.composeSearchUrl(inUrl, QuickSearch_G, QUERY_PLACE_HOLDER);