/packages/apps/Launcher3/src/com/android/launcher3/ |
ItemInfo.java | 47 * One of {@link LauncherSettings.Favorites#ITEM_TYPE_APPLICATION}, 48 * {@link LauncherSettings.Favorites#ITEM_TYPE_SHORTCUT}, 49 * {@link LauncherSettings.Favorites#ITEM_TYPE_FOLDER}, or 50 * {@link LauncherSettings.Favorites#ITEM_TYPE_APPWIDGET}. 56 * {@link LauncherSettings.Favorites#CONTAINER_DESKTOP}. For the all applications folder it 161 values.put(LauncherSettings.Favorites.CONTAINER, container); 162 values.put(LauncherSettings.Favorites.SCREEN, screenId); 163 values.put(LauncherSettings.Favorites.CELLX, cellX); 164 values.put(LauncherSettings.Favorites.CELLY, cellY); 165 values.put(LauncherSettings.Favorites.SPANX, spanX) [all...] |
LauncherAppWidgetInfo.java | 91 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; 93 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; 115 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); 116 values.put(LauncherSettings.Favorites.APPWIDGET_PROVIDER, providerName.flattenToString()); 117 values.put(LauncherSettings.Favorites.RESTORED, restoreStatus);
|
LauncherProvider.java | 53 import com.android.launcher3.LauncherSettings.Favorites; 74 static final String TABLE_FAVORITES = LauncherSettings.Favorites.TABLE_NAME; 308 String selection = LauncherSettings.Favorites.ITEM_TYPE + " = " 309 + LauncherSettings.Favorites.ITEM_TYPE_FOLDER + " AND " 310 + LauncherSettings.Favorites._ID + " NOT IN (SELECT " + 311 LauncherSettings.Favorites.CONTAINER + " FROM " 314 new String[] {LauncherSettings.Favorites._ID}, 322 LauncherSettings.Favorites._ID, folderIds), null); 407 // Populate favorites table with initial favorites [all...] |
AppWidgetsRestoredReceiver.java | 15 import com.android.launcher3.LauncherSettings.Favorites; 58 values.put(LauncherSettings.Favorites.APPWIDGET_ID, newWidgetIds[i]); 59 values.put(LauncherSettings.Favorites.RESTORED, state); 63 int result = cr.update(Favorites.CONTENT_URI, values, 66 Cursor cursor = cr.query(Favorites.CONTENT_URI, 67 new String[] {Favorites.APPWIDGET_ID},
|
CommonAppTypeParser.java | 27 import com.android.launcher3.LauncherSettings.Favorites; 71 values.put(Favorites.ICON_TYPE, (Integer) null); 72 values.put(Favorites.ICON_PACKAGE, (String) null); 73 values.put(Favorites.ICON_RESOURCE, (String) null); 74 values.put(Favorites.ICON, (byte[]) null); 101 if (type == Favorites.ITEM_TYPE_APPLICATION) {
|
LauncherBackupHelper.java | 42 import com.android.launcher3.LauncherSettings.Favorites; 95 Favorites._ID, // 0 96 Favorites.MODIFIED, // 1 97 Favorites.INTENT, // 2 98 Favorites.APPWIDGET_PROVIDER, // 3 99 Favorites.APPWIDGET_ID, // 4 100 Favorites.CELLX, // 5 101 Favorites.CELLY, // 6 102 Favorites.CONTAINER, // 7 103 Favorites.ICON, // [all...] |
AutoInstallsLayout.java | 39 import com.android.launcher3.LauncherSettings.Favorites; 147 Favorites.containerToString(Favorites.CONTAINER_HOTSEAT); 231 out[0] = Favorites.CONTAINER_HOTSEAT; 236 out[0] = Favorites.CONTAINER_DESKTOP; 253 // recursively load some more favorites, why not? 265 mValues.put(Favorites.CONTAINER, container); 266 mValues.put(Favorites.SCREEN, screenId); 268 mValues.put(Favorites.CELLX, 270 mValues.put(Favorites.CELLY [all...] |
LauncherModel.java | 439 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { 540 LauncherSettings.Favorites.CONTAINER_DESKTOP, 690 final Uri uri = LauncherSettings.Favorites.getContentUri(itemId); 716 final Uri uri = LauncherSettings.Favorites.getContentUri(itemId); 738 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP && 739 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) [all...] |
FolderInfo.java | 64 itemType = LauncherSettings.Favorites.ITEM_TYPE_FOLDER; 104 values.put(LauncherSettings.Favorites.TITLE, title.toString()); 105 values.put(LauncherSettings.Favorites.OPTIONS, options);
|
ShortcutInfo.java | 26 import com.android.launcher3.LauncherSettings.Favorites; 206 if (itemType == Favorites.ITEM_TYPE_APPLICATION) { 226 values.put(LauncherSettings.Favorites.RESTORED, status); 298 shortcut.itemType = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
|
LauncherSettings.java | 127 * Favorites. 129 public static final class Favorites implements BaseLauncherColumns { 131 public static final String TABLE_NAME = "favorites";
|
DefaultLayoutParser.java | 15 import com.android.launcher3.LauncherSettings.Favorites; 33 private static final String TAG_FAVORITES = "favorites"; 81 out[0] = LauncherSettings.Favorites.CONTAINER_DESKTOP; 138 Favorites.ITEM_TYPE_APPLICATION); 223 Log.e(TAG, "Fallback groups can contain only favorites, found "
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 56 import com.android.launcher2.LauncherSettings.Favorites; 77 static final String TABLE_FAVORITES = "favorites"; 135 if (!values.containsKey(LauncherSettings.Favorites._ID)) { 142 Uri uri = LauncherSettings.Favorites.getContentUri(id, false); 247 // Populate favorites table with initial favorites 314 private static final String TAG_FAVORITES = "favorites"; 361 db.execSQL("CREATE TABLE favorites (" + 418 // We already have a favorites database in the old provider 441 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID) [all...] |
ItemInfo.java | 48 * One of {@link LauncherSettings.Favorites#ITEM_TYPE_APPLICATION}, 49 * {@link LauncherSettings.Favorites#ITEM_TYPE_SHORTCUT}, 50 * {@link LauncherSettings.Favorites#ITEM_TYPE_FOLDER}, or 51 * {@link LauncherSettings.Favorites#ITEM_TYPE_APPWIDGET}. 57 * {@link LauncherSettings.Favorites#CONTAINER_DESKTOP}. For the all applications folder it 169 values.put(LauncherSettings.Favorites.CONTAINER, container); 170 values.put(LauncherSettings.Favorites.SCREEN, screen); 171 values.put(LauncherSettings.Favorites.CELLX, cellX); 172 values.put(LauncherSettings.Favorites.CELLY, cellY); 173 values.put(LauncherSettings.Favorites.SPANX, spanX) [all...] |
UninstallShortcutReceiver.java | 103 Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, 104 new String[] { LauncherSettings.Favorites._ID, LauncherSettings.Favorites.INTENT }, 105 LauncherSettings.Favorites.TITLE + "=?", new String[] { name }, null); 107 final int intentIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT); 108 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID); 117 final Uri uri = LauncherSettings.Favorites.getContentUri(id, false); 133 cr.notifyChange(LauncherSettings.Favorites.CONTENT_URI, null);
|
LauncherModel.java | 339 final Uri uri = LauncherSettings.Favorites.getContentUri(itemId, false); 351 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP && 352 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) { 368 if (modelItem.container == LauncherSettings.Favorites.CONTAINER_DESKTOP || 369 modelItem.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { 371 case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION: 372 case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT: 373 case LauncherSettings.Favorites.ITEM_TYPE_FOLDER: 436 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { 443 values.put(LauncherSettings.Favorites.CONTAINER, item.container) [all...] |
LauncherAppWidgetInfo.java | 55 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; 68 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId);
|
FolderInfo.java | 42 itemType = LauncherSettings.Favorites.ITEM_TYPE_FOLDER; 81 values.put(LauncherSettings.Favorites.TITLE, title.toString());
|
LauncherSettings.java | 94 * Favorites. 96 static final class Favorites implements BaseLauncherColumns {
|
PendingAddItemInfo.java | 61 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET;
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
CursorIconInfo.java | 39 iconTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_TYPE); 40 iconIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON); 41 iconPackageIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE); 42 iconResourceIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE); 49 case LauncherSettings.Favorites.ICON_TYPE_RESOURCE: 63 case LauncherSettings.Favorites.ICON_TYPE_BITMAP:
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
GridSizeMigrationTaskTest.java | 25 private static final long DESKTOP = LauncherSettings.Favorites.CONTAINER_DESKTOP; 26 private static final long HOTSEAT = LauncherSettings.Favorites.CONTAINER_HOTSEAT; 28 private static final int APPLICATION = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 29 private static final int SHORTCUT = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; 86 Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, 87 new String[]{LauncherSettings.Favorites._ID}, 104 Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, 105 new String[]{LauncherSettings.Favorites._ID}, 260 Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, 261 new String[]{LauncherSettings.Favorites._ID} [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
GridSizeMigrationTask.java | 23 import com.android.launcher3.LauncherSettings.Favorites; 135 mContext.getContentResolver().delete(LauncherSettings.Favorites.CONTENT_URI, 137 LauncherSettings.Favorites._ID, mEntryToRemove), null); 363 .newUpdate(LauncherSettings.Favorites.getContentUri(item.id)) 622 Cursor c = mContext.getContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, 624 Favorites._ID, // 0 625 Favorites.ITEM_TYPE, // 1 626 Favorites.INTENT, // 2 627 Favorites.SCREEN}, // 3 628 Favorites.CONTAINER + " = " + Favorites.CONTAINER_HOTSEAT, null, null, null) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
PendingAddWidgetInfo.java | 42 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; 44 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; 59 return itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET;
|
PendingAddShortcutInfo.java | 36 itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
|