Lines Matching refs:URL
61 * @param url URL of the website to be bookmarked.
69 /* package */ static void addBookmark(Context context, boolean showToast, String url,
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) {
108 BrowserContract.Bookmarks.URL + " = ? AND " +
110 new String[] { url, title },
118 WebIconDatabase.getInstance().releaseIconForPageUrl(url);
143 /* package */ static boolean urlHasAcceptableScheme(String url) {
144 if (url == null) {
149 if (url.startsWith(acceptableBookmarkSchemes[i])) {
157 Combined.URL + " == ? OR " +
158 Combined.URL + " == ?";
161 String originalUrl, String url) {
162 if (cr == null || url == null) {
166 // If originalUrl is null, just set it to url.
168 originalUrl = url;
171 // Look for both the original url and the actual url. This takes in to
174 final String[] selArgs = new String[] { originalUrl, url };
175 final String[] projection = new String[] { Combined.URL };
179 // Strip the query from the given url.
180 static String removeQuery(String url) {
181 if (url == null) {
184 int query = url.indexOf('?');
185 String noQuery = url;
187 noQuery = url.substring(0, query);
194 * a bookmark favicon for the originalUrl and url of the passed in WebView.
196 * @param originalUrl The original url before any redirects.
197 * @param url The current url.
201 final String originalUrl, final String url, final Bitmap favicon) {
212 updateImages(cr, url, values);
217 final String url, ContentValues values) {
218 String iurl = removeQuery(url);
220 values.put(Images.URL, iurl);