Lines Matching refs:cr

186      *  @param cr   The ContentResolver used to access the database.
188 public static final Cursor getAllBookmarks(ContentResolver cr) throws
190 return cr.query(BOOKMARKS_URI,
198 * @param cr The ContentResolver used to access the database.
200 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws
202 return cr.query(BOOKMARKS_URI,
214 * @param cr The ContentResolver used to access the database.
218 public static final Cursor getVisitedLike(ContentResolver cr, String url) {
253 return cr.query(BOOKMARKS_URI, HISTORY_PROJECTION,
262 * @param cr The ContentResolver used to access the database.
267 public static final void updateVisitedHistory(ContentResolver cr,
272 c = getVisitedLike(cr, url);
285 cr.update(BOOKMARKS_URI, map, "_id = ?", projection);
287 truncateHistory(cr);
305 cr.insert(BOOKMARKS_URI, map);
317 * @param cr The ContentResolver used to access the database.
320 public static final String[] getVisitedHistory(ContentResolver cr) {
327 c = cr.query(BOOKMARKS_URI, projection, "visits > 0", null,
353 * @param cr The ContentResolver used to access the database.
355 public static final void truncateHistory(ContentResolver cr) {
359 c = cr.query(
371 cr.delete(BOOKMARKS_URI, "_id = " +
387 * @param cr The ContentResolver used to access the database.
390 public static final boolean canClearHistory(ContentResolver cr) {
394 c = cr.query(
416 * @param cr The ContentResolver used to access the database.
418 public static final void clearHistory(ContentResolver cr) {
419 deleteHistoryWhere(cr, null);
427 * @param cr The ContentResolver used to access the database.
431 private static final void deleteHistoryWhere(ContentResolver cr,
435 c = cr.query(BOOKMARKS_URI,
470 cr.update(BOOKMARKS_URI, map, sb.toString(), null);
477 cr.delete(BOOKMARKS_URI, deleteWhereClause, null);
490 * @param cr The ContentResolver used to access the database.
496 public static final void deleteHistoryTimeFrame(ContentResolver cr,
502 clearHistory(cr);
512 deleteHistoryWhere(cr, whereClause);
518 * @param cr The ContentResolver used to access the database.
521 public static final void deleteFromHistory(ContentResolver cr,
526 deleteHistoryWhere(cr, matchesUrl);
533 * @param cr The ContentResolver used to access the database.
536 public static final void addSearchUrl(ContentResolver cr, String search) {
540 c = cr.query(
551 cr.update(SEARCHES_URI, map, "_id = " + c.getInt(0), null);
553 cr.insert(SEARCHES_URI, map);
564 * @param cr The ContentResolver used to access the database.
566 public static final void clearSearches(ContentResolver cr) {
570 cr.delete(SEARCHES_URI, null, null);
581 * @param cr The ContentResolver used to access the database.
587 public static final void requestAllIcons(ContentResolver cr, String where,
590 .bulkRequestIconForPageUrl(cr, where, listener);