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

12

/packages/apps/Browser/src/com/android/browser/
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 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 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 DDownloadTouchIcon.java57 public DownloadTouchIcon(ContentResolver cr, String url) { argument
61 mUrl = url;
70 String url = values[0];
74 HttpGet request = new HttpGet(url);
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 DBrowserBackupAgent.java143 mark.url = in.readUTF();
162 urlCol, BookmarkColumns.URL + " == '" + mark.url + "' AND " +
166 if (DEBUG) Log.v(TAG, "Did not see url: " + mark.url);
170 mark.url, mark.title, null, false);
173 if (DEBUG) Log.v(TAG, "Skipping extant url: " + mark.url);
199 public String url; field in class:BrowserBackupAgent.Bookmark
233 String url = cursor.getString(0);
241 bout.writeUTF(url);
[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 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 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 DWebStorageSizeManager.java208 * @param url the URL that exceeded the quota
219 public void onExceededDatabaseQuota(String url, argument
225 + url
/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/Settings/src/com/android/settings/
H A DSettingsSafetyLegalActivity.java39 private static final String PROPERTY_LSAFETYLEGAL_URL = "ro.url.safetylegal";
68 public void onPageFinished(WebView view, String url) {
87 private void showErrorAndFinish(String url) { argument
90 .getString(R.string.settings_safetylegal_activity_unreachable, url))
/packages/apps/Browser/tests/src/com/android/browser/
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 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 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...]
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...]
/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/apps/Mms/src/com/android/mms/transaction/
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...]
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...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogProvider.java162 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) { argument
165 final int matchedUriId = sURIMatcher.match(url);
173 + url.getPathSegments().get(1));
177 throw new UnsupportedOperationException("Cannot update URL: " + url);
/packages/apps/Browser/src/com/android/browser/search/
H A DOpenSearchSearchEngine.java170 * @param url Request URI.
174 public String readUrl(String url) { argument
176 HttpGet method = new HttpGet(url);
/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/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DDefaultSuggestionView.java157 private CharSequence formatUrl(CharSequence url) { argument
158 SpannableString text = new SpannableString(url);
161 0, url.length(),
/packages/providers/DrmProvider/src/com/android/providers/drm/
H A DDrmProvider.java186 public String getType(Uri url) argument
188 switch (URI_MATCHER.match(url)) {
191 Cursor c = query(url, MIME_TYPE_PROJECTION, null, null, null);
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
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...]

Completed in 235 milliseconds

12