Home | History | Annotate | Download | only in launcher2

Lines Matching refs:CONTAINER

256      * <container, screen, cellX, cellY>
258 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container,
260 if (item.container == ItemInfo.NO_ID) {
262 addItemToDatabase(context, item, container, screen, cellX, cellY, false);
265 moveItemInDatabase(context, item, container, screen, cellX, cellY);
281 modelShortcut.container == shortcut.container &&
340 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP &&
341 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
343 if (!sBgFolders.containsKey(item.container)) {
344 // An items container is being set to a that of an item which is not in
346 String msg = "item: " + item + " container being set to: " +
347 item.container + ", not in the list of folders";
357 if (modelItem.container == LauncherSettings.Favorites.CONTAINER_DESKTOP ||
358 modelItem.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
409 * Move an item in the DB to a new <container, screen, cellX, cellY>
411 static void moveItemInDatabase(Context context, final ItemInfo item, final long container,
414 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY +
415 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")";
418 item.container = container;
425 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
432 values.put(LauncherSettings.Favorites.CONTAINER, item.container);
441 * Move and/or resize item in the DB to a new <container, screen, cellX, cellY, spanX, spanY>
443 static void modifyItemInDatabase(Context context, final ItemInfo item, final long container,
446 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY +
447 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")";
458 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
465 values.put(LauncherSettings.Favorites.CONTAINER, item.container);
476 * Update an item to the database in a specified container.
511 LauncherSettings.Favorites.ITEM_TYPE, LauncherSettings.Favorites.CONTAINER,
516 final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
530 item.container = c.getInt(containerIndex);
559 final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
573 folderInfo.container = c.getInt(containerIndex);
588 * Add an item to the database in a specified container. Sets the container, screen, cellX and
591 static void addItemToDatabase(Context context, final ItemInfo item, final long container,
593 item.container = container;
599 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
617 + item.id + " (" + container + ", " + screen + ", " + cellX + ", "
635 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP ||
636 item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
639 if (!sBgFolders.containsKey(item.container)) {
662 long container, int screen, int localCellX, int localCellY, int spanX, int spanY) {
663 return (((int) container & 0xFF) << 24)
696 + item.id + " (" + item.container + ", " + item.screen + ", " + item.cellX +
709 if (info.container == item.id) {
754 LauncherSettings.Favorites.CONTAINER + "=" + info.id, null);
1209 if (item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1226 } else if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1227 // Skip further checking if it is not the hotseat or workspace container
1297 LauncherSettings.Favorites.CONTAINER);
1319 int container;
1361 container = c.getInt(containerIndex);
1362 info.container = container;
1372 switch (container) {
1380 findOrMakeFolder(sBgFolders, container);
1407 container = c.getInt(containerIndex);
1408 folderInfo.container = container;
1417 switch (container) {
1456 container = c.getInt(containerIndex);
1457 if (container != LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1458 container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1459 Log.e(TAG, "Widget found where container != " +
1463 appWidgetInfo.container = c.getInt(containerIndex);
1519 /** Filters the set of items who are directly or indirectly (via another container) on the
1547 return (int) (lhs.container - rhs.container);
1551 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1558 } else if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1562 if (itemsOnScreen.contains(info.container)) {
1585 if (widget.container == LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1610 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1630 long lr = (lhs.container * containerOffset + lhs.screen * screenOffset +
1632 long rr = (rhs.container * containerOffset + rhs.screen * screenOffset +
2334 ShortcutInfo addShortcut(Context context, Intent data, long container, int screen,
2340 addItemToDatabase(context, info, container, screen, cellX, cellY, notify);