Lines Matching refs:Bookmarks
86 private final String LOGTAG = "Bookmarks";
152 BrowserContract.Bookmarks.CONTENT_URI_DEFAULT_FOLDER,
155 return BrowserContract.Bookmarks.buildFolderUri(folder);
175 * Show or hide the icon for bookmarks next to "Bookmarks" in the crumb view.
212 // it back to "Bookmarks", which is position 0 if we are
286 + " new bookmarks");
288 long id = mMap.getLong(BrowserContract.Bookmarks._ID);
348 values.put(BrowserContract.Bookmarks.TITLE,
350 values.put(BrowserContract.Bookmarks.IS_FOLDER, 1);
358 values.put(BrowserContract.Bookmarks.PARENT, currentFolder);
360 BrowserContract.Bookmarks.CONTENT_URI, values);
406 mMap.putLong(BrowserContract.Bookmarks._ID, info.id);
462 BrowserContract.Bookmarks._ID,
463 BrowserContract.Bookmarks.TITLE,
464 BrowserContract.Bookmarks.IS_FOLDER
466 String where = BrowserContract.Bookmarks.IS_FOLDER + " != 0";
469 where += " AND " + BrowserContract.Bookmarks._ID + " != ?";
471 BrowserContract.Bookmarks._ID)) };
485 BrowserContract.Bookmarks._ID + " ASC");
519 * @param cursor Cursor containing folders in the bookmarks database
578 BrowserContract.Bookmarks.TITLE)));
633 title = mMap.getString(BrowserContract.Bookmarks.TITLE);
634 url = mOriginalUrl = mMap.getString(BrowserContract.Bookmarks.URL);
636 mCurrentFolder = mMap.getLong(BrowserContract.Bookmarks.PARENT, DEFAULT_FOLDER_ID);
719 String name = getString(R.string.bookmarks);
736 // Initially the "Bookmarks" folder should be showing, rather than
738 // an option, so "Bookmarks" folder is already at the top.
760 String title = bundle.getString(BrowserContract.Bookmarks.TITLE);
761 String url = bundle.getString(BrowserContract.Bookmarks.URL);
764 : (Bitmap) bundle.getParcelable(BrowserContract.Bookmarks.THUMBNAIL);
767 // Save to the bookmarks DB.
770 Bookmarks.addBookmark(AddBookmarkPage.this, false, url,
824 b.getString(BrowserContract.Bookmarks.URL),
825 b.getString(BrowserContract.Bookmarks.TITLE),
826 Bookmarks.TOUCH_ICON),
827 (Bitmap) b.getParcelable(BrowserContract.Bookmarks.FAVICON)));
839 * Parse the data entered in the dialog and post a message to update the bookmarks database.
864 // We allow bookmarks with a javascript: scheme, but these will in most cases
870 if (!Bookmarks.urlHasAcceptableScheme(url)) {
903 Long id = mMap.getLong(BrowserContract.Bookmarks._ID);
905 values.put(BrowserContract.Bookmarks.TITLE, title);
906 values.put(BrowserContract.Bookmarks.PARENT, mCurrentFolder);
908 values.put(BrowserContract.Bookmarks.URL, url);
910 values.putNull(BrowserContract.Bookmarks.THUMBNAIL);
922 BrowserContract.Bookmarks.THUMBNAIL);
924 BrowserContract.Bookmarks.FAVICON);
931 bundle.putString(BrowserContract.Bookmarks.TITLE, title);
932 bundle.putString(BrowserContract.Bookmarks.URL, url);
933 bundle.putParcelable(BrowserContract.Bookmarks.FAVICON, favicon);
948 bundle.putParcelable(BrowserContract.Bookmarks.THUMBNAIL, thumbnail);
1085 String url = mMap.getString(BrowserContract.Bookmarks.URL);
1086 info.id = mMap.getLong(BrowserContract.Bookmarks._ID, -1);
1089 c = cr.query(BrowserContract.Bookmarks.CONTENT_URI,
1090 new String[] { BrowserContract.Bookmarks._ID},
1091 BrowserContract.Bookmarks.URL + "=?",
1100 BrowserContract.Bookmarks.CONTENT_URI, info.id),
1102 BrowserContract.Bookmarks.PARENT,
1103 BrowserContract.Bookmarks.ACCOUNT_NAME,
1104 BrowserContract.Bookmarks.ACCOUNT_TYPE,
1105 BrowserContract.Bookmarks.TITLE},
1115 BrowserContract.Bookmarks.CONTENT_URI, info.parentId),
1117 BrowserContract.Bookmarks.TITLE,},
1126 c = cr.query(BrowserContract.Bookmarks.CONTENT_URI,
1128 BrowserContract.Bookmarks.PARENT,
1130 BrowserContract.Bookmarks.DATE_MODIFIED + " DESC LIMIT 1");
1134 c = cr.query(BrowserContract.Bookmarks.CONTENT_URI,
1136 BrowserContract.Bookmarks.TITLE,
1137 BrowserContract.Bookmarks.ACCOUNT_NAME,
1138 BrowserContract.Bookmarks.ACCOUNT_TYPE},
1139 BrowserContract.Bookmarks._ID + "=?", new String[] {