Searched refs:url (Results 1 - 25 of 66) sorted by relevance

123

/packages/apps/Browser/src/com/android/browser/
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 DBookmarkItem.java49 mUrlText = (TextView) findViewById(R.id.url);
117 * Set the new url for the bookmark item.
118 * @param url The new url for the bookmark item.
120 /* package */ void setUrl(String url) { argument
121 if (url == null) {
125 mUrl = url;
127 if (url.length() > BrowserSettings.MAX_TEXTVIEW_LEN) {
128 url = url
[all...]
H A DAddNewBookmark.java47 mUrlText = (TextView) findViewById(R.id.url);
52 * Set the new url for the bookmark item.
53 * @param url The new url for the bookmark item.
55 /* package */ void setUrl(String url) { argument
56 mUrlText.setText(url);
H A DAddBookmarkPage.java82 String url = null;
92 url = mOriginalUrl = mMap.getString("url");
100 mAddress.setText(url);
126 String url = bundle.getString("url");
136 Bookmarks.addBookmark(null, cr, url, title, thumbnail, true);
138 new DownloadTouchIcon(cr, url).execute(mTouchIconUrl);
190 String url = unfilteredUrl.trim();
195 if (!url
[all...]
H A DBrowserHomepagePreference.java73 String url = getEditText().getText().toString();
74 if (url.length() > 0
75 && !BrowserActivity.ACCEPTED_URI_SCHEMA.matcher(url)
77 int colon = url.indexOf(':');
78 int space = url.indexOf(' ');
80 // if no colon, no space, add "http://" to make it a url
81 getEditText().setText("http://" + url);
84 // false so that the bad url will not override the old url
108 // match_parent so there is more room to type in a url
[all...]
H A DBrowserHistoryPage.java61 public void onReceivedIcon(String url, Bitmap icon) { argument
70 * @param url Site to load.
73 private void loadUrl(String url, boolean newWindow) { argument
74 Intent intent = new Intent().setAction(url);
242 String url = historyItem.getUrl();
246 loadUrl(url, false);
249 loadUrl(url, true);
254 url, title);
256 Browser.saveBookmark(this, title, url);
260 Browser.sendString(this, url,
[all...]
H A DBookmarks.java57 * @param url URL of the website to be bookmarked.
65 ContentResolver cr, String url, String name,
72 cursor = Browser.getVisitedLike(cr, url);
108 map.put(Browser.BookmarkColumns.URL, url);
118 // a new bookmark with the same url but a different
136 WebIconDatabase.getInstance().retainIconForPageUrl(url);
145 * Remove a bookmark from the database. If the url is a visited site, it
152 * @param url URL of the website to be removed.
155 ContentResolver cr, String url, String title) {
161 "url
64 addBookmark(Context context, ContentResolver cr, String url, String name, Bitmap thumbnail, boolean retainIcon) argument
154 removeFromBookmarks(Context context, ContentResolver cr, String url, String title) argument
210 urlHasAcceptableScheme(String url) argument
[all...]
H A DBrowserBookmarksAdapter.java103 * @return Bundle Stores title, url of row position, favicon, and id
104 * for the url. Return a blank map if position is out of
113 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
116 map.putString(Browser.BookmarkColumns.URL, url);
129 * @param map Bundle storing id, title and url of new information
153 String url = map.getString(Browser.BookmarkColumns.URL);
154 if (!url.equals(mCursor.
156 values.put(Browser.BookmarkColumns.URL, url);
179 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
181 Bookmarks.removeFromBookmarks(null, mContentResolver, url, titl
255 updateBookmarkFavicon(final ContentResolver cr, final String originalUrl, final String url, final Bitmap favicon) argument
283 queryBookmarksForUrl(ContentResolver cr, String originalUrl, String url, boolean onlyBookmarks) argument
322 removeQuery(String url) argument
[all...]
H A DTab.java121 // Keep the original url around to avoid killing the old WebView if the url
349 * the same base url
353 * The last url provided by voice search. Used for comparison to see if
461 public void onPageStarted(WebView view, String url, Bitmap favicon) {
465 && !url.equals(mVoiceSearchData.mLastVoiceSearchUrl)) {
483 // create a new one when the touch icon url is known.
500 .getContentResolver(), null, url, favicon);
512 mActivity.onPageStarted(view, url, favicon);
517 public void onPageFinished(WebView view, String url) {
1248 onPageStarted(WebView view, String url, Bitmap favicon) argument
1255 doUpdateVisitedHistory(WebView view, String url, boolean isReload) argument
1260 shouldOverrideUrlLoading(WebView view, String url) argument
1327 Tab(BrowserActivity activity, WebView w, boolean closeOnExit, String appId, String url) argument
1734 setOriginalUrl(String url) argument
1813 resetLockIcon(String url) argument
[all...]
H A DCombinedBookmarkHistoryActivity.java67 public void onReceivedIcon(String url, Bitmap icon) { argument
68 mUrlsToIcons.put(url, icon);
70 listener.onReceivedIcon(url, icon);
79 public Bitmap getFavicon(String url) { argument
80 return (Bitmap) mUrlsToIcons.get(url);
H A DBrowserActivity.java491 // If the WebView has the same original url and is on that
512 // with a matching url.
520 // if FLAG_ACTIVITY_BROUGHT_TO_FRONT flag is on, the url
522 // MAX_TABS. Then the url will be opened in the current
572 String url = null;
580 if (data != null) url = data.toString();
584 url = intent.getStringExtra(SearchManager.QUERY);
586 return handleWebSearchRequest(url, intent.getBundleExtra(SearchManager.APP_DATA),
591 * Launches the default web search activity with the query parameters if the given url string
600 String url
1785 openTabAndShow(String url, boolean closeOnExit, String appId) argument
1820 openTab(String url) argument
1865 SetAsWallpaper(String url) argument
1990 setUrlTitle(String url, String title) argument
2008 buildTitleUrl(String url) argument
2373 sharePage(Context c, String title, String url, Bitmap favicon, Bitmap screenshot) argument
2525 onPageStarted(WebView view, String url, Bitmap favicon) argument
2571 onPageFinished(WebView view, String url) argument
2638 shouldOverrideUrlLoading(WebView view, String url) argument
2845 onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) argument
2925 onDownloadStartNoStream(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) argument
3006 resetLockIcon(String url) argument
3608 loadUrlFromContext(WebView view, String url) argument
3625 loadUrl(WebView view, String url) argument
3650 updateTitleBarForNewLoad(WebView view, String url) argument
3683 smartUrlFilter(String url) argument
3988 UrlData(String url) argument
3994 UrlData(String url, Map<String, String> headers, Intent intent) argument
[all...]
H A DTabControl.java157 Tab createNewTab(boolean closeOnExit, String appId, String url) { argument
166 Tab t = new Tab(mActivity, w, closeOnExit, appId, url);
175 * appId(null), and url(null).
306 // Need to maintain the app id and original url so we
449 // matches the given url.
450 private boolean tabMatchesUrl(Tab t, String url) { argument
457 } else if (url.equals(webview.getUrl())
458 || url.equals(webview.getOriginalUrl())) {
465 * Return the tab that has no app id associated with it and the url of the
466 * tab matches the given url
469 findUnusedTabWithUrl(String url) argument
[all...]
H A DBrowserSettings.java244 // disable content url access
437 public void setHomePage(Context context, String url) { argument
440 ed.putString(PREF_HOMEPAGE, url);
442 homeUrl = url;
631 String url = context.getResources().getString(R.string.homepage_base);
632 if (url.indexOf("{CID}") != -1) {
633 url = url.replace("{CID}",
636 return url;
714 "url LIK
743 updateRlzParameter(String url) argument
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DListSuggestionCursorNoDuplicates.java74 /** Simple url normalization that strips http:// and empty paths, i.e.,
78 private static String normalizeUrl(String url) { argument
79 if (url != null && url.startsWith("http://")) {
81 int end = url.length();
82 if (url.indexOf('/', start) == end - 1) {
85 return url.substring(start, end);
87 return url;
/packages/apps/Browser/tests/src/com/android/browser/
H A DTestWebViewClient.java45 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument
46 return mWrappedClient.shouldOverrideUrlLoading(view, url);
51 public void onPageStarted(WebView view, String url, Bitmap favicon) { argument
52 mWrappedClient.onPageStarted(view, url, favicon);
57 public void onPageFinished(WebView view, String url) { argument
58 mWrappedClient.onPageFinished(view, url);
63 public void onLoadResource(WebView view, String url) { argument
64 mWrappedClient.onLoadResource(view, url);
91 public void doUpdateVisitedHistory(WebView view, String url, argument
93 mWrappedClient.doUpdateVisitedHistory(view, url, isReloa
[all...]
H A DTestWebChromeClient.java66 public void onReceivedTouchIconUrl(WebView view, String url, argument
68 mWrappedClient.onReceivedTouchIconUrl(view, url, precomposed);
104 public boolean onJsAlert(WebView view, String url, String message, argument
106 return mWrappedClient.onJsAlert(view, url, message, result);
111 public boolean onJsConfirm(WebView view, String url, String message, argument
113 return mWrappedClient.onJsConfirm(view, url, message, result);
118 public boolean onJsPrompt(WebView view, String url, String message, argument
120 return mWrappedClient.onJsPrompt(view, url, message, defaultValue, result);
125 public boolean onJsBeforeUnload(WebView view, String url, String message, argument
127 return mWrappedClient.onJsBeforeUnload(view, url, messag
132 onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) argument
[all...]
H A DBrowserProviderTests.java103 private void assertInsertQuery(String url, String title, String query) { argument
104 addBookmark(url, title);
105 assertQueryReturns(url, title, query);
108 private void assertQueryReturns(String url, String title, String query) { argument
121 assertEquals("Bad URL", url, data);
131 Cursor c = getContext().getContentResolver().query(suggestUri, null, "url LIKE ?",
137 private void addBookmark(String url, String title) { argument
138 Uri uri = insertBookmark(url, title);
144 private Uri insertBookmark(String url, String title) { argument
147 values.put("url", ur
[all...]
H A DPopularUrlsTest.java148 public boolean onJsAlert(WebView view, String url, String message,
150 String logMsg = String.format("JS Alert '%s' received from %s", message, url);
161 public boolean onJsConfirm(WebView view, String url, String message,
164 message, url);
175 public boolean onJsPrompt(WebView view, String url, String message,
178 "Giving default value '%s'", message, url, defaultValue);
190 WebView view, String url, String message, JsResult result) {
204 String message = String.format("Error '%s' (%d) loading url: %s",
232 public void onPageFinished(WebView view, String url) {
243 public boolean shouldOverrideUrlLoading(WebView view, String url) {
298 private String url; field in class:PopularUrlsTest.RunStatus
393 setUrl(String url) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmProvider.java95 public Cursor query(Uri url, String[] projectionIn, String selection, argument
100 int match = sURLMatcher.match(url);
108 qb.appendWhere(url.getPathSegments().get(1));
111 throw new IllegalArgumentException("Unknown URL " + url);
121 ret.setNotificationUri(getContext().getContentResolver(), url);
128 public String getType(Uri url) { argument
129 int match = sURLMatcher.match(url);
141 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
144 int match = sURLMatcher.match(url);
148 String segment = url
164 insert(Uri url, ContentValues initialValues) argument
183 delete(Uri url, String where, String[] whereArgs) argument
[all...]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DSmsProvider.java91 public Cursor query(Uri url, String[] projectionIn, String selection, argument
96 int match = sURLMatcher.match(url);
132 qb.appendWhere("(_id = " + url.getPathSegments().get(0) + ")");
141 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")");
148 threadID = Integer.parseInt(url.getPathSegments().get(1));
156 + url.getPathSegments().get(1));
187 "(sms_id = " + url.getPathSegments().get(1) + ")");
199 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")");
206 String messageIndexString = url.getPathSegments().get(1);
211 Log.e(TAG, "Invalid request: " + url);
316 getType(Uri url) argument
339 insert(Uri url, ContentValues initialValues) argument
522 delete(Uri url, String where, String[] whereArgs) argument
607 update(Uri url, ContentValues values, String where, String[] whereArgs) argument
[all...]
H A DTelephonyProvider.java347 public Cursor query(Uri url, String[] projectionIn, String selection, argument
352 int match = s_urlMatcher.match(url);
368 qb.appendWhere("_id = " + url.getPathSegments().get(1));
384 ret.setNotificationUri(getContext().getContentResolver(), url);
389 public String getType(Uri url) argument
391 switch (s_urlMatcher.match(url)) {
402 throw new IllegalArgumentException("Unknown URL " + url);
407 public Uri insert(Uri url, ContentValues initialValues) argument
414 int match = s_urlMatcher.match(url);
519 public int delete(Uri url, Strin argument
574 update(Uri url, ContentValues values, String where, String[] whereArgs) argument
[all...]
/packages/apps/Mms/src/com/android/mms/transaction/
H A DTransaction.java178 * @param url The URL of the message which we are going to retrieve.
184 protected byte[] getPdu(String url) throws IOException { argument
185 ensureRouteToHost(url, mTransactionSettings);
188 url, null, HttpUtils.HTTP_GET_METHOD,
197 * @param url The URL of the MMSC to which we need a route
201 private void ensureRouteToHost(String url, TransactionSettings settings) throws IOException { argument
210 throw new IOException("Cannot establish route for " + url + ": Unknown host");
218 Uri uri = Uri.parse(url);
221 throw new IOException("Cannot establish route for " + url + ": Unknown host");
225 throw new IOException("Cannot establish route to " + inetAddr + " for " + url);
[all...]
H A DHttpUtils.java83 * @param url The URL used in a GET request. Null when the method is
93 String url, byte[] pdu, int method, boolean isProxySet,
95 if (url == null) {
102 Log.v(TAG, "\turl\t\t= " + url);
117 URI hostUrl = new URI(url);
131 HttpPost post = new HttpPost(url);
136 req = new HttpGet(url);
231 handleHttpConnectionException(e, url);
233 handleHttpConnectionException(e, url);
235 handleHttpConnectionException(e, url);
92 httpConnection(Context context, long token, String url, byte[] pdu, int method, boolean isProxySet, String proxyHost, int proxyPort) argument
249 handleHttpConnectionException(Exception exception, String url) argument
[all...]
/packages/apps/Browser/src/com/android/browser/widget/
H A DBookmarkWidgetService.java116 // Map of urls to ids for when a url is complete.
249 // Set the title of the bookmark. Use the url as a backup.
287 RenderResult(int id, String title, String url) { argument
290 mUrl = url;
309 String url = c.getString(2);
314 // Map the url to its db id for lookup when complete.
315 mUrlsToIds.put(url, id);
324 RenderResult res = new RenderResult(id, title, url);
327 // Add the url to our list to render.
328 urls.add(url);
349 complete(String url, ParcelFileDescriptor result) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DTetherSettings.java131 String url = HELP_URL.replace("%y", locale.getLanguage().toLowerCase());
132 url = url.replace("%z", (useCountry ? "_"+locale.getCountry().toLowerCase() : ""));
134 url = url.replace("%x", USB_HELP_MODIFIER);
136 url = url.replace("%x", WIFI_HELP_MODIFIER);
140 url = url.replace("%x", "");
143 mView.loadUrl(url);
[all...]

Completed in 3566 milliseconds

123