Home | History | Annotate | Download | only in launcher3

Lines Matching defs:LauncherSettings

56 import com.android.launcher3.LauncherSettings.Favorites;
149 if (!values.containsKey(LauncherSettings.BaseLauncherColumns._ID)) {
157 Uri uri = LauncherSettings.Favorites.getContentUri(id, false);
248 values.put(LauncherSettings.ChangeLogColumns.MODIFIED, System.currentTimeMillis());
321 LauncherSettings.Favorites.OLD_CONTENT_URI);
445 int container = values.getAsInteger(LauncherSettings.Favorites.CONTAINER);
447 int screen = values.getAsInteger(LauncherSettings.Favorites.SCREEN);
449 values.put(LauncherSettings.Favorites.SCREEN, screen);
457 uri = LauncherSettings.Favorites.OLD_CONTENT_URI;
477 LauncherSettings.WorkspaceScreens._ID + " INTEGER," +
478 LauncherSettings.WorkspaceScreens.SCREEN_RANK + " INTEGER," +
479 LauncherSettings.ChangeLogColumns.MODIFIED + " INTEGER NOT NULL DEFAULT 0" +
553 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID);
554 final int intentIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT);
555 final int titleIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE);
556 final int iconTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_TYPE);
557 final int iconIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON);
558 final int iconPackageIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE);
559 final int iconResourceIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE);
560 final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
561 final int itemTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE);
562 final int screenIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN);
563 final int cellXIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLX);
564 final int cellYIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLY);
565 final int uriIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.URI);
566 final int displayModeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.DISPLAY_MODE);
572 values.put(LauncherSettings.Favorites._ID, c.getLong(idIndex));
573 values.put(LauncherSettings.Favorites.INTENT, c.getString(intentIndex));
574 values.put(LauncherSettings.Favorites.TITLE, c.getString(titleIndex));
575 values.put(LauncherSettings.Favorites.ICON_TYPE, c.getInt(iconTypeIndex));
576 values.put(LauncherSettings.Favorites.ICON, c.getBlob(iconIndex));
577 values.put(LauncherSettings.Favorites.ICON_PACKAGE, c.getString(iconPackageIndex));
578 values.put(LauncherSettings.Favorites.ICON_RESOURCE, c.getString(iconResourceIndex));
579 values.put(LauncherSettings.Favorites.CONTAINER, c.getInt(containerIndex));
580 values.put(LauncherSettings.Favorites.ITEM_TYPE, c.getInt(itemTypeIndex));
581 values.put(LauncherSettings.Favorites.APPWIDGET_ID, -1);
582 values.put(LauncherSettings.Favorites.SCREEN, c.getInt(screenIndex));
583 values.put(LauncherSettings.Favorites.CELLX, c.getInt(cellXIndex));
584 values.put(LauncherSettings.Favorites.CELLY, c.getInt(cellYIndex));
585 values.put(LauncherSettings.Favorites.URI, c.getString(uriIndex));
586 values.put(LauncherSettings.Favorites.DISPLAY_MODE, c.getInt(displayModeIndex));
843 values.put(LauncherSettings.Favorites.INTENT,
946 long id = values.getAsLong(LauncherSettings.BaseLauncherColumns._ID);
996 Cursor c = db.rawQuery("SELECT MAX(" + LauncherSettings.WorkspaceScreens._ID + ") FROM " + TABLE_WORKSPACE_SCREENS, null);
1060 values.put(LauncherSettings.Favorites.SPANX, 4);
1061 values.put(LauncherSettings.Favorites.SPANY, 1);
1063 values.put(LauncherSettings.Favorites.SPANX, 2);
1064 values.put(LauncherSettings.Favorites.SPANY, 2);
1181 long container = LauncherSettings.Favorites.CONTAINER_DESKTOP;
1191 values.put(LauncherSettings.Favorites.CONTAINER, container);
1192 values.put(LauncherSettings.Favorites.SCREEN, screen);
1193 values.put(LauncherSettings.Favorites.CELLX, x);
1194 values.put(LauncherSettings.Favorites.CELLY, y);
1227 values.put(LauncherSettings.Favorites.TITLE, title);
1244 values.put(LauncherSettings.Favorites.CONTAINER, folderId);
1539 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID);
1541 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT);
1543 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE);
1545 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_TYPE);
1547 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON);
1549 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE);
1551 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE);
1553 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
1555 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE);
1557 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN);
1559 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLX);
1561 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLY);
1563 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.URI);
1565 = c.getColumnIndexOrThrow(LauncherSettings.Favorites.DISPLAY_MODE);
1600 + LauncherSettings.Favorites.containerToString(container)
1629 LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1647 values.put(LauncherSettings.Favorites._ID, c.getInt(idIndex));
1648 values.put(LauncherSettings.Favorites.INTENT, intentStr);
1649 values.put(LauncherSettings.Favorites.TITLE, c.getString(titleIndex));
1650 values.put(LauncherSettings.Favorites.ICON_TYPE,
1652 values.put(LauncherSettings.Favorites.ICON, c.getBlob(iconIndex));
1653 values.put(LauncherSettings.Favorites.ICON_PACKAGE,
1655 values.put(LauncherSettings.Favorites.ICON_RESOURCE,
1657 values.put(LauncherSettings.Favorites.ITEM_TYPE, itemType);
1658 values.put(LauncherSettings.Favorites.APPWIDGET_ID, -1);
1659 values.put(LauncherSettings.Favorites.URI, c.getString(uriIndex));
1660 values.put(LauncherSettings.Favorites.DISPLAY_MODE,
1663 if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1667 if (container != LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1669 values.put(LauncherSettings.Favorites.SCREEN, screen);
1670 values.put(LauncherSettings.Favorites.CELLX, cellX);
1671 values.put(LauncherSettings.Favorites.CELLY, cellY);
1677 values.put(LauncherSettings.Favorites.CONTAINER, container);
1698 values.put(LauncherSettings.Favorites.SCREEN,
1706 values.put(LauncherSettings.Favorites.CONTAINER,
1719 if (values.getAsInteger(LauncherSettings.Favorites.CONTAINER) !=
1720 LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1725 values.put(LauncherSettings.Favorites.SCREEN, curScreen);
1726 values.put(LauncherSettings.Favorites.CELLX, curX);
1727 values.put(LauncherSettings.Favorites.CELLY, curY);
1761 values.put(LauncherSettings.WorkspaceScreens._ID, i);
1762 values.put(LauncherSettings.WorkspaceScreens.SCREEN_RANK, i);