Searched defs:url (Results 1 - 25 of 74) sorted by relevance

123

/packages/apps/Browser/src/com/android/browser/
H A DAddNewBookmark.java43 mUrlText = (TextView) findViewById(R.id.url);
47 * Set the new url for the bookmark item.
48 * @param url The new url for the bookmark item.
50 /* package */ void setUrl(String url) { argument
51 mUrlText.setText(url);
H A DBrowserBookmarksAdapterItem.java21 public String url; field in class:BrowserBookmarksAdapterItem
H A DLogTag.java26 * @param url the url of the new bookmark.
29 public static void logBookmarkAdded(String url, String where) { argument
30 EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url + "|"
41 * @param url the url of that page that finished loading.
44 public static void logPageFinishedLoading(String url, long duration) { argument
45 EventLog.writeEvent(EventLogTags.BROWSER_PAGE_LOADED, url + "|"
52 * @param url the url o
55 logTimeOnPage(String url, long duration) argument
[all...]
H A DCombinedBookmarksCallbacks.java19 void openUrl(String url); argument
H A DUrlUtils.java52 * Strips the provided url of preceding "http://" and any trailing "/". Does not
58 * @param url a url to strip, like "http://www.google.com/"
59 * @return a stripped url like "www.google.com", or the original string if it could
62 public static String stripUrl(String url) { argument
63 if (url == null) return null;
64 Matcher m = STRIP_URL_PATTERN.matcher(url);
68 return url;
89 public static String smartUrlFilter(String url) { argument
90 return smartUrlFilter(url, tru
105 smartUrlFilter(String url, boolean canBeSearch) argument
[all...]
H A DDownloadHandler.java51 * @param url The full url to the content that should be downloaded
55 * @param referer The referer associated with the downloaded url
58 public static void onDownloadStart(Activity activity, String url, argument
69 intent.setDataAndType(Uri.parse(url), mimetype);
75 // load the url only to try and download it again.
88 + " over " + Uri.parse(url).getScheme(),
97 onDownloadStartNoStream(activity, url, userAgent, contentDisposition,
135 * @param url The full url t
142 onDownloadStartNoStream(Activity activity, String url, String userAgent, String contentDisposition, String mimetype, String referer, boolean privateBrowsing) argument
[all...]
H A DPerformance.java58 static void tracePageStart(String url) { argument
62 WebAddress uri = new WebAddress(url);
94 static void onPageFinished(String url) { argument
113 Log.d(LOGTAG, performanceString + "\nWebpage: " + url);
115 if (url != null) {
116 // strip the url to maintain consistency
117 String newUrl = new String(url);
H A DWallpaperHandler.java54 public WallpaperHandler(Context context, String url) { argument
56 mUrl = url;
193 URL url = new URL(mUrl);
194 inputStream = url.openStream();
H A DBookmarks.java61 * @param url URL of the website to be bookmarked.
69 /* package */ static void addBookmark(Context context, boolean showToast, String url, argument
76 values.put(BrowserContract.Bookmarks.URL, url);
92 * Remove a bookmark from the database. If the url is a visited site, it
99 * @param url URL of the website to be removed.
102 ContentResolver cr, String url, String title) {
110 new String[] { url, title },
118 WebIconDatabase.getInstance().releaseIconForPageUrl(url);
143 /* package */ static boolean urlHasAcceptableScheme(String url) { argument
144 if (url
101 removeFromBookmarks(Context context, ContentResolver cr, String url, String title) argument
160 queryCombinedForUrl(ContentResolver cr, String originalUrl, String url) argument
180 removeQuery(String url) argument
200 updateFavicon(final ContentResolver cr, final String originalUrl, final String url, final Bitmap favicon) argument
[all...]
H A DDownloadTouchIcon.java73 * entry for the given url. Used when the user creates a bookmark from
78 public DownloadTouchIcon(Context ctx, ContentResolver cr, String url) { argument
83 mUrl = url;
110 String url = values[0];
118 HttpHost httpHost = Proxy.getPreferredHttpHost(mContext, url);
123 request = new HttpGet(url);
H A DPreloadedTabControl.java53 public void loadUrlIfChanged(String url, Map<String, String> headers) { argument
63 if (LOGD_ENABLED) Log.d(LOGTAG, "loadUrlIfChanged\nnew: " + url + "\nold: " +currentUrl);
64 if (!TextUtils.equals(url, currentUrl)) {
65 loadUrl(url, headers);
69 public void loadUrl(String url, Map<String, String> headers) { argument
70 if (LOGD_ENABLED) Log.d(LOGTAG, "Preloading " + url);
71 mTab.loadUrl(url, headers);
H A DBookmarkItem.java57 mUrlText = (TextView) findViewById(R.id.url);
122 * Set the new url for the bookmark item.
123 * @param url The new url for the bookmark item.
125 /* package */ void setUrl(String url) { argument
126 if (url == null) {
130 mUrl = url;
132 url = UrlUtils.stripUrl(url);
133 if (url
[all...]
H A DBookmarkUtils.java114 static Intent createAddToHomeIntent(Context context, String url, String title, argument
117 Intent shortcutIntent = createShortcutIntent(url);
128 static Intent createShortcutIntent(String url) { argument
129 Intent shortcutIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
130 long urlHash = url.hashCode();
H A DBrowserBackupAgent.java112 mark.url = in.readUTF();
133 new String[] { mark.url }, null);
136 if (DEBUG) Log.v(TAG, "Did not see url: " + mark.url);
140 if (DEBUG) Log.v(TAG, "Skipping extant url: " + mark.url);
168 values.put(Bookmarks.URL, mark.url);
176 public String url; field in class:BrowserBackupAgent.Bookmark
/packages/screensavers/WebView/src/com/android/dreams/web/
H A DScreensaver.java51 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument
52 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
69 final String url = prefs.getString("url", "file:///android_asset/default.html");
73 url, interactive ? "interactive" : "noninteractive"));
82 webview.loadUrl(url);
H A DSetURL.java37 String url = intent.getStringExtra(Intent.EXTRA_TEXT);
39 if (url == null) {
42 set(url);
47 protected void set(String url) { argument
50 editor.putString("url", url);
54 Toast.makeText(this, "WebView dream URL set to: " + url, Toast.LENGTH_SHORT).show();
H A DSetURLInteractive.java37 String url = intent.getStringExtra(Intent.EXTRA_TEXT);
39 if (url == null) {
42 set(url);
47 protected void set(String url) { argument
50 editor.putString("url", url);
54 Toast.makeText(this, "WebView dream URL set to: " + url, Toast.LENGTH_SHORT).show();
/packages/apps/Email/src/com/android/email/activity/
H A DActivityHelper.java50 * @param url URL to open
56 public static boolean openUrlInMessage(Activity activity, String url, long senderAccountId) { argument
59 //if (url != null && url.toLowerCase().startsWith("mailto:")) {
60 // return MessageCompose.actionCompose(activity, url, senderAccountId);
65 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java34 public static boolean requestDownload(JobContext jc, URL url, File file) { argument
38 return download(jc, url, fos);
66 public static boolean download(JobContext jc, URL url, OutputStream output) { argument
69 input = url.openStream();
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionUtils.java94 * Simple url normalization that adds http:// if no scheme exists, and
100 static String normalizeUrl(String url) { argument
102 if (url != null) {
104 int schemePos = url.indexOf(SCHEME_SEPARATOR);
107 normalized = DEFAULT_SCHEME + SCHEME_SEPARATOR + url;
110 normalized = url;
119 return url;
/packages/apps/Browser/tests/src/com/android/browser/
H A DIntentHandlerTests.java112 private void directlyLoadUrl(final Tab tab, final String url) throws Throwable { argument
117 web.loadUrl(url);
120 waitForLoadStart(tab, url);
123 void waitForLoadStart(final Tab tab, final String url) throws InterruptedException { argument
125 while (!TextUtils.equals(tab.getOriginalUrl(), url)) {
153 String url = intent.getDataString();
155 waitForLoadStart(tab, url);
H A DBrowserProviderTests.java112 private void assertInsertQuery(String url, String title, String query) { argument
113 addBookmark(url, title);
114 assertQueryReturns(url, title, query);
117 private void assertQueryReturns(String url, String title, String query) { argument
130 assertEquals("Bad URL", url, data);
140 Cursor c = getMockContentResolver().query(suggestUri, null, "url LIKE ?",
146 private void addBookmark(String url, String title) { argument
147 Uri uri = insertBookmark(url, title);
153 private Uri insertBookmark(String url, String title) { argument
156 values.put("url", ur
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DSettingsSafetyLegalActivity.java39 private static final String PROPERTY_LSAFETYLEGAL_URL = "ro.url.safetylegal";
70 public void onPageFinished(WebView view, String url) {
89 private void showErrorAndFinish(String url) { argument
103 .getString(R.string.settings_safetylegal_activity_unreachable, url));
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAbstractConversationWebViewClient.java67 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument
74 final Uri uri = Uri.parse(url);
/packages/apps/Browser/src/com/android/browser/homepages/
H A DHomeProvider.java90 String url) {
93 if (useMostVisited && url.startsWith("content://")) {
94 Uri uri = Uri.parse(url);
102 if (listFiles && interceptFile(url)) {
105 new RequestHandler(context, Uri.parse(url), outs).start();
112 private static boolean interceptFile(String url) { argument
113 if (!url.startsWith("file:///")) {
116 String fpath = url.substring(7);
89 shouldInterceptRequest(Context context, String url) argument

Completed in 455 milliseconds

123