Lines Matching refs:Browser
17 package com.android.browser;
32 import android.provider.Browser;
33 import android.provider.Browser.BookmarkColumns;
83 String orderBy = Browser.BookmarkColumns.VISITS + " DESC";
85 whereClause = Browser.BookmarkColumns.VISITS + " != 0";
87 whereClause = Browser.BookmarkColumns.BOOKMARK + " = 1";
89 mCursor = b.managedQuery(Browser.BOOKMARKS_URI,
90 Browser.HISTORY_PROJECTION, whereClause, null, orderBy);
113 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
114 map.putString(Browser.BookmarkColumns.TITLE,
115 mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX));
116 map.putString(Browser.BookmarkColumns.URL, url);
117 byte[] data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX);
119 map.putParcelable(Browser.BookmarkColumns.FAVICON,
122 map.putInt("id", mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX));
137 if (mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX) == id) {
148 String title = map.getString(Browser.BookmarkColumns.TITLE);
150 .getString(Browser.HISTORY_PROJECTION_TITLE_INDEX))) {
151 values.put(Browser.BookmarkColumns.TITLE, title);
153 String url = map.getString(Browser.BookmarkColumns.URL);
155 getString(Browser.HISTORY_PROJECTION_URL_INDEX))) {
156 values.put(Browser.BookmarkColumns.URL, url);
160 values.put(Browser.BookmarkColumns.THUMBNAIL, new byte[0]);
163 && mContentResolver.update(Browser.BOOKMARKS_URI, values,
179 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
180 String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);
195 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
197 int id = mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX);
198 int numVisits = mCursor.getInt(Browser.HISTORY_PROJECTION_VISITS_INDEX);
226 mContentResolver.delete(Browser.BOOKMARKS_URI, deleteIds.toString(),
231 values.put(Browser.BookmarkColumns.BOOKMARK, 0);
232 mContentResolver.update(Browser.BOOKMARKS_URI, values,
269 values.put(Browser.BookmarkColumns.FAVICON,
273 Browser.BOOKMARKS_URI, c.getInt(0)),
316 new String[] { Browser.BookmarkColumns._ID };
317 return cr.query(Browser.BOOKMARKS_URI, projection, where, selArgs,
378 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
380 b.setName(mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX));
381 byte[] data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX);
434 Browser.HISTORY_PROJECTION_TITLE_INDEX));
476 return getString(Browser.HISTORY_PROJECTION_TITLE_INDEX, position);
483 return getString(Browser.HISTORY_PROJECTION_URL_INDEX, position);
490 return getBitmap(Browser.HISTORY_PROJECTION_THUMBNAIL_INDEX, position);
497 return getBitmap(Browser.HISTORY_PROJECTION_FAVICON_INDEX, position);
501 return getBitmap(Browser.HISTORY_PROJECTION_TOUCH_ICON_INDEX, position);
524 return (1 == mCursor.getInt(Browser.HISTORY_PROJECTION_BOOKMARK_INDEX));
541 b.setName(mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX));
542 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
544 byte[] data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX);