Lines Matching full:favorites
21 import com.android.launcher3.LauncherSettings.Favorites;
94 Favorites._ID, // 0
95 Favorites.MODIFIED, // 1
96 Favorites.INTENT, // 2
97 Favorites.APPWIDGET_PROVIDER, // 3
98 Favorites.APPWIDGET_ID, // 4
99 Favorites.CELLX, // 5
100 Favorites.CELLY, // 6
101 Favorites.CONTAINER, // 7
102 Favorites.ICON, // 8
103 Favorites.ICON_PACKAGE, // 9
104 Favorites.ICON_RESOURCE, // 10
105 Favorites.ICON_TYPE, // 11
106 Favorites.ITEM_TYPE, // 12
107 Favorites.SCREEN, // 13
108 Favorites.SPANX, // 14
109 Favorites.SPANY, // 15
110 Favorites.TITLE, // 16
282 * Write all modified favorites to the data stream.
300 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION,
352 cr.insert(Favorites.CONTENT_URI, values);
464 String where = Favorites.ITEM_TYPE + "=" + Favorites.ITEM_TYPE_APPLICATION;
465 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION,
598 String where = Favorites.ITEM_TYPE + "=" + Favorites.ITEM_TYPE_APPWIDGET;
599 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION,
781 if (favorite.iconType == Favorites.ICON_TYPE_RESOURCE) {
791 if (favorite.iconType == Favorites.ICON_TYPE_BITMAP) {
806 if (favorite.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
825 values.put(Favorites._ID, favorite.id);
826 values.put(Favorites.SCREEN, favorite.screen);
827 values.put(Favorites.CONTAINER, favorite.container);
828 values.put(Favorites.CELLX, favorite.cellX);
829 values.put(Favorites.CELLY, favorite.cellY);
830 values.put(Favorites.SPANX, favorite.spanX);
831 values.put(Favorites.SPANY, favorite.spanY);
832 values.put(Favorites.ICON_TYPE, favorite.iconType);
833 if (favorite.iconType == Favorites.ICON_TYPE_RESOURCE) {
834 values.put(Favorites.ICON_PACKAGE, favorite.iconPackage);
835 values.put(Favorites.ICON_RESOURCE, favorite.iconResource);
837 if (favorite.iconType == Favorites.ICON_TYPE_BITMAP) {
838 values.put(Favorites.ICON, favorite.icon);
841 values.put(Favorites.TITLE, favorite.title);
843 values.put(Favorites.TITLE, "");
846 values.put(Favorites.INTENT, favorite.intent);
848 values.put(Favorites.ITEM_TYPE, favorite.itemType);
849 if (favorite.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
851 values.put(Favorites.APPWIDGET_PROVIDER, favorite.appWidgetProvider);
853 values.put(Favorites.APPWIDGET_ID, favorite.appWidgetId);
857 values.put(LauncherSettings.Favorites.RESTORED, 1);
1138 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION, null, null, null);