Lines Matching refs:CONTAINER
267 * <container, screen, cellX, cellY>
269 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container,
271 if (item.container == ItemInfo.NO_ID) {
273 addItemToDatabase(context, item, container, screen, cellX, cellY, false);
276 moveItemInDatabase(context, item, container, screen, cellX, cellY);
292 modelShortcut.container == shortcut.container &&
351 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP &&
352 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
354 if (!sBgFolders.containsKey(item.container)) {
355 // An items container is being set to a that of an item which is not in
357 String msg = "item: " + item + " container being set to: " +
358 item.container + ", not in the list of folders";
368 if (modelItem.container
369 modelItem.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
420 * Move an item in the DB to a new <container, screen, cellX, cellY>
422 static void moveItemInDatabase(Context context, final ItemInfo item, final long container,
425 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY +
426 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")";
429 item.container = container;
436 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
443 values.put(LauncherSettings.Favorites.CONTAINER, item.container);
452 * Move and/or resize item in the DB to a new <container, screen, cellX, cellY, spanX, spanY>
454 static void modifyItemInDatabase(Context context, final ItemInfo item, final long container,
457 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY +
458 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")";
469 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
476 values.put(LauncherSettings.Favorites.CONTAINER, item.container);
487 * Update an item to the database in a specified container.
522 LauncherSettings.Favorites.ITEM_TYPE, LauncherSettings.Favorites.CONTAINER,
529 final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
544 item.container = c.getInt(containerIndex);
577 final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER);
591 folderInfo.container = c.getInt(containerIndex);
606 * Add an item to the database in a specified container. Sets the container, screen, cellX and
609 static void addItemToDatabase(Context context, final ItemInfo item, final long container,
611 item.container = container;
617 container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
636 + item.id + " (" + container + ", " + screen + ", " + cellX + ", "
654 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP ||
655 item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
658 if (!sBgFolders.containsKey(item.container)) {
681 long container, int screen, int localCellX, int localCellY, int spanX, int spanY) {
682 return (((int) container & 0xFF) << 24)
715 + item.id + " (" + item.container + ", " + item.screen + ", " + item.cellX +
728 if (info.container == item.id) {
773 LauncherSettings.Favorites.CONTAINER + "=" + info.id, null);
1222 if (item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1239 } else if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1240 // Skip further checking if it is not the hotseat or workspace container
1310 LauncherSettings.Favorites.CONTAINER);
1334 int container;
1385 container = c.getInt(containerIndex);
1386 info.container = container;
1397 switch (container) {
1405 findOrMakeFolder(sBgFolders, container);
1432 container = c.getInt(containerIndex);
1433 folderInfo.container = container;
1442 switch (container) {
1481 container = c.getInt(containerIndex);
1482 if (container != LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1483 container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1484 Log.e(TAG, "Widget found where container != " +
1488 appWidgetInfo.container = c.getInt(containerIndex);
1544 /** Filters the set of items who are directly or indirectly (via another container) on the
1572 return (int) (lhs.container - rhs.container);
1576 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) {
1583 } else if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
1587 if (itemsOnScreen.contains(info.container)) {
1610 if (widget.container == LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1635 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP &&
1655 long lr = (lhs.container * containerOffset + lhs.screen * screenOffset +
1657 long rr = (rhs.container * containerOffset + rhs.screen * screenOffset +
2355 ShortcutInfo addShortcut(Context context, Intent data, long container, int screen,
2361 addItemToDatabase(context, info, container, screen, cellX, cellY, notify);