HomeSort by relevance Sort by last modified time
    Searched refs:Bookmarks (Results 1 - 25 of 46) sorted by null

1 2

  /packages/apps/Browser/src/com/android/browser/
BookmarksLoader.java 22 import android.provider.BrowserContract.Bookmarks;
39 Bookmarks._ID, // 0
40 Bookmarks.URL, // 1
41 Bookmarks.TITLE, // 2
42 Bookmarks.FAVICON, // 3
43 Bookmarks.THUMBNAIL, // 4
44 Bookmarks.TOUCH_ICON, // 5
45 Bookmarks.IS_FOLDER, // 6
46 Bookmarks.POSITION, // 7
47 Bookmarks.PARENT, //
    [all...]
AddBookmarkPage.java 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)
    [all...]
Bookmarks.java 40 * This class is purely to have a common place for adding/deleting bookmarks.
42 public class Bookmarks {
55 private final static String LOGTAG = "Bookmarks";
65 * This will usually be <code>true</code> except when bookmarks are
75 values.put(BrowserContract.Bookmarks.TITLE, name);
76 values.put(BrowserContract.Bookmarks.URL, url);
77 values.put(BrowserContract.Bookmarks.IS_FOLDER, 0);
78 values.put(BrowserContract.Bookmarks.THUMBNAIL,
80 values.put(BrowserContract.Bookmarks.PARENT, parent);
81 context.getContentResolver().insert(BrowserContract.Bookmarks.CONTENT_URI, values)
    [all...]
BrowserBackupAgent.java 26 import android.provider.BrowserContract.Bookmarks;
41 * stored is the set of bookmarks. It's okay if I/O exceptions are thrown
87 * the backup service, parses that out, and rebuilds the bookmarks table in the
106 ArrayList<Bookmark> bookmarks = new ArrayList<Bookmark>(count); local
108 // Read all the bookmarks, then process later -- if we can't read
109 // all the data successfully, we don't touch the bookmarks table
117 bookmarks.add(mark);
120 // Okay, we have all the bookmarks -- now see if we need to add
122 int N = bookmarks.size();
124 if (DEBUG) Log.v(TAG, "Restoring " + N + " bookmarks");
    [all...]
AccountsChangedReceiver.java 28 import android.provider.BrowserContract.Bookmarks;
71 // it for deletion. Without this, the bookmarks will be marked to
74 Uri uri = Bookmarks.CONTENT_URI.buildUpon()
HistoryItem.java 86 Bookmarks.removeFromBookmarks(getContext(),
BrowserBookmarksAdapter.java 23 import android.provider.BrowserContract.Bookmarks;
72 case Bookmarks.BOOKMARK_TYPE_OTHER_FOLDER:
BrowserBookmarksPage.java 69 * View showing the user's bookmarks in the browser.
140 // Currently, a reload is triggered whenever bookmarks change
223 // bookmarks.
224 Bookmarks.removeFromBookmarks(activity, activity.getContentResolver(), url, name);
303 return type == BrowserContract.Bookmarks.BOOKMARK_TYPE_BOOKMARK
304 || type == BrowserContract.Bookmarks.BOOKMARK_TYPE_FOLDER;
390 mRoot = inflater.inflate(R.layout.bookmarks, container, false);
441 BrowserContract.Bookmarks.CONTENT_URI_DEFAULT_FOLDER, id);
491 BookmarksLoader.PROJECTION, BrowserContract.Bookmarks.PARENT + "=?",
513 item.putString(BrowserContract.Bookmarks.TITLE
    [all...]
  /packages/providers/PartnerBookmarksProvider/tests/src/com/android/providers/partnerbookmarks/
PartnerBookmarksProviderTest.java 30 PartnerBookmarksContract.Bookmarks.BOOKMARK_PARENT_ROOT_ID + 1;
36 PartnerBookmarksContract.Bookmarks.CONTENT_URI);
38 "Failed to acquire " + PartnerBookmarksContract.Bookmarks.CONTENT_URI,
42 cursor = providerClient.query(PartnerBookmarksContract.Bookmarks.CONTENT_URI,
44 assertNotNull("Failed to query for bookmarks", cursor);
48 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.ID));
50 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.PARENT));
52 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.TYPE))
53 == PartnerBookmarksContract.Bookmarks.BOOKMARK_TYPE_FOLDER;
55 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.URL))
    [all...]
  /packages/apps/Browser/tests/src/com/android/browser/tests/
BP2ProviderTests.java 37 BrowserContract.Bookmarks.PARENT,
38 BrowserContract.Bookmarks.ACCOUNT_NAME,
39 BrowserContract.Bookmarks.ACCOUNT_TYPE,
54 // Use updateBookmarks because the bookmarks URI observer should
55 // be triggered, even though we aren't giving it a bookmarks URI
70 values.put(BrowserContract.Bookmarks.TITLE, "New Folder");
71 values.put(BrowserContract.Bookmarks.IS_FOLDER, 1);
72 values.put(BrowserContract.Bookmarks.ACCOUNT_NAME, accountName);
73 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType);
79 values.put(BrowserContract.Bookmarks.TITLE, "google")
    [all...]
BookmarksTests.java 19 import com.android.browser.Bookmarks;
34 // First, add some bookmarks
47 c = Bookmarks.queryCombinedForUrl(cr, null, url);
55 c = Bookmarks.queryCombinedForUrl(cr, null, url);
BP1to2UpgradeTests.java 31 import android.provider.BrowserContract.Bookmarks;
74 c = getMockContentResolver().query(Bookmarks.CONTENT_URI,
75 new String[] { Bookmarks.URL }, null, null,
76 Bookmarks.URL + " DESC");
113 // First, nuke 'er (deletes stock bookmarks)
121 Cursor c = getMockContentResolver().query(Bookmarks.CONTENT_URI,
122 new String[] { Bookmarks.URL, Bookmarks.DATE_CREATED },
142 Cursor c = getMockContentResolver().query(Bookmarks.CONTENT_URI,
BP2UriObserverTests.java 25 import android.provider.BrowserContract.Bookmarks;
61 values.put(Bookmarks.FAVICON, rawFavicon);
62 values.put(Bookmarks.TITLE, "Stub1");
  /packages/apps/Browser/src/com/android/browser/provider/
BrowserProvider2.java 44 import android.provider.BrowserContract.Bookmarks;
96 static final String TABLE_BOOKMARKS = "bookmarks";
105 static final String TABLE_BOOKMARKS_JOIN_IMAGES = "bookmarks LEFT OUTER JOIN images " +
106 "ON bookmarks.url = images." + Images.URL;
115 "history LEFT OUTER JOIN (%s) bookmarks " +
116 "ON history.url = bookmarks.url LEFT OUTER JOIN images " +
125 "history LEFT OUTER JOIN bookmarks ON history.url = bookmarks.url";
138 + " OR history.title LIKE ? OR bookmarks.title LIKE ?";
144 "url_key NOT IN (SELECT url FROM bookmarks "
660 final CharSequence[] bookmarks = res.getTextArray( local
1247 Object[] bookmarks = appendBookmarksIfFolder( local
    [all...]
  /packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
PartnerBookmarksProvider.java 50 * Default partner bookmarks provider implementation of {@link PartnerBookmarksContract} API.
51 * It reads the flat list of bookmarks and the name of the root partner
52 * bookmarks folder using getResources() API.
59 * string-array name="bookmarks"
86 // Default sort order for unsync'd bookmarks
88 PartnerBookmarksContract.Bookmarks.ID + " DESC, "
89 + PartnerBookmarksContract.Bookmarks.ID + " ASC";
94 PartnerBookmarksContract.Bookmarks.BOOKMARK_PARENT_ROOT_ID + 1;
97 private static final String TABLE_BOOKMARKS = "bookmarks";
102 matcher.addURI(authority, "bookmarks", URI_MATCH_BOOKMARKS)
215 final CharSequence[] bookmarks = res.getTextArray(R.array.bookmarks); local
255 final CharSequence[] bookmarks = res.getTextArray(R.array.bookmarks); local
    [all...]
PartnerBookmarksContract.java 24 * The contract between the partner bookmarks provider and applications.
31 * Partner bookmarks URI: content://com.android.partnerbookmarks/bookmarks
34 * If the provider is found, and the set of bookmarks is non-empty, exactly one
41 /** The authority for the partner bookmarks provider */
44 /** A content:// style uri to the authority for the partner bookmarks provider */
60 * The bookmarks table, which holds the partner bookmarks.
62 public static final class Bookmarks {
66 private Bookmarks() {}
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
ShortcutManager.java 43 Settings.Bookmarks.SHORTCUT, Settings.Bookmarks.INTENT
61 Settings.Bookmarks.CONTENT_URI, sProjection, null, null, null);
  /packages/apps/Settings/src/com/android/settings/quicklaunch/
QuickLaunchSettings.java 33 import android.provider.Settings.Bookmarks;
68 Bookmarks.SHORTCUT, Bookmarks.TITLE, Bookmarks.INTENT
70 private static final String sShortcutSelection = Bookmarks.SHORTCUT + "=?";
75 /** Cursor for Bookmarks provider. */
77 /** Listens for changes to Bookmarks provider. */
79 /** Used to keep track of which shortcuts have bookmarks. */
104 mBookmarksCursor = getActivity().getContentResolver().query(Bookmarks.CONTENT_URI,
111 mBookmarksCursor = getActivity().getContentResolver().query(Bookmarks.CONTENT_URI
    [all...]
  /packages/apps/Browser/tests/src/com/android/browser/tests/utils/
BP2TestCaseHelper.java 29 import android.provider.BrowserContract.Bookmarks;
53 mBookmarksObserver = new TriggeredObserver(Bookmarks.CONTENT_URI);
148 values.put(BrowserContract.Bookmarks.TITLE, title);
149 values.put(BrowserContract.Bookmarks.URL, url);
150 values.put(BrowserContract.Bookmarks.IS_FOLDER, 0);
156 Uri ret = mockInsert(Bookmarks.CONTENT_URI, values);
164 values.put(BrowserContract.Bookmarks.TITLE, title);
165 values.put(BrowserContract.Bookmarks.URL, url);
  /packages/apps/Browser/src/com/android/browser/widget/
BookmarkThumbnailWidgetService.java 33 import android.provider.BrowserContract.Bookmarks;
59 BrowserContract.Bookmarks._ID,
60 BrowserContract.Bookmarks.TITLE,
61 BrowserContract.Bookmarks.URL,
62 BrowserContract.Bookmarks.FAVICON,
63 BrowserContract.Bookmarks.IS_FOLDER,
64 BrowserContract.Bookmarks.POSITION, /* needed for order by */
65 BrowserContract.Bookmarks.THUMBNAIL,
66 BrowserContract.Bookmarks.PARENT};
103 long fid = intent.getLongExtra(Bookmarks._ID, -1)
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/bookmarks/
bookmark_apitest.cc 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
9 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h"
13 #include "components/bookmarks/browser/bookmark_model.h"
14 #include "components/bookmarks/browser/bookmark_node.h"
15 #include "components/bookmarks/common/bookmark_pref_names.h"
16 #include "components/bookmarks/test/bookmark_test_helpers.h"
22 #define MAYBE_Bookmarks Bookmarks
25 // Add test managed bookmarks to verify that the bookmarks API can read the
    [all...]
  /external/smack/src/org/jivesoftware/smackx/bookmark/
BookmarkManager.java 29 * Provides methods to manage bookmarks in accordance with JEP-0048. Methods for managing URLs and
41 PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks",
42 new Bookmarks.Provider());
65 private Bookmarks bookmarks; field in class:BookmarkManager
70 * storage:bookmarks namespace.
72 * @param connection the connection for persisting and retrieving bookmarks.
86 * @throws XMPPException thrown when there was an error retrieving the current bookmarks from
92 return Collections.unmodifiableCollection(bookmarks.getBookmarkedConferences());
96 * Adds or updates a conference in the bookmarks
    [all...]
Bookmarks.java 32 * Bookmarks is used for storing and retrieving URLS and Conference rooms.
33 * Bookmark Storage (JEP-0048) defined a protocol for the storage of bookmarks to conference rooms and other entities
35 * See the following code sample for saving Bookmarks:
40 * Bookmarks bookmarks = new Bookmarks();
46 * bookmarks.addURL(url);
52 * bookmarks.addConference(conference);
53 * // Save Bookmarks using PrivateDataManager.
55 * manager.setPrivateData(bookmarks);
    [all...]
  /frameworks/base/core/java/android/provider/
Browser.java 29 import android.provider.BrowserContract.Bookmarks;
40 * A table containing both bookmarks and history items. The columns of the table are defined in
45 public static final Uri BOOKMARKS_URI = Uri.parse("content://browser/bookmarks");
147 entries -- if the user wants more bookmarks than the cap, they
230 * Return a cursor pointing to a list of all the bookmarks. The cursor will have a single
239 return cr.query(Bookmarks.CONTENT_URI,
240 new String[] { Bookmarks.URL },
241 Bookmarks.IS_FOLDER + " = 0", null, null);
277 whereClause = new StringBuilder(Bookmarks.URL + " = ");
284 whereClause = new StringBuilder(Bookmarks.URL + " = ")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 174 // The bookmarks table (and everything else) uses standard row number content URIs.
175 Uri uri = Settings.Bookmarks.add(r, new Intent("TEST"),
180 assertEquals("TEST", Settings.Bookmarks.getIntentForShortcut(r, '*').getAction());
183 v.put(Settings.Bookmarks.INTENT, "#Intent;action=TOAST;end");
186 assertEquals("TOAST", Settings.Bookmarks.getIntentForShortcut(r, '*').getAction());
190 assertEquals(null, Settings.Bookmarks.getIntentForShortcut(r, '*'));

Completed in 2317 milliseconds

1 2