Lines Matching refs:ItemInfo
150 static final LongArrayMap<ItemInfo> sBgItemsIdMap = new LongArrayMap<>();
155 static final ArrayList<ItemInfo> sBgWorkspaceItems = new ArrayList<ItemInfo>();
182 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end, in bindItems()
191 ArrayList<ItemInfo> addNotAnimated, in bindAppsAdded()
192 ArrayList<ItemInfo> addAnimated, in bindAppsAdded()
198 public void bindRestoreItemsChange(HashSet<ItemInfo> updates); in bindRestoreItemsChange()
212 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn); in filterItem()
277 final HashSet<ItemInfo> updates = new HashSet<>(); in setPackageState()
284 for (ItemInfo info : sBgItemsIdMap) { in setPackageState()
338 for (ItemInfo info : sBgItemsIdMap) { in updateSessionDisplayInfo()
403 private static boolean findNextAvailableIconSpaceInScreen(ArrayList<ItemInfo> occupiedPos, in findNextAvailableIconSpaceInScreen()
411 for (ItemInfo r : occupiedPos) { in findNextAvailableIconSpaceInScreen()
433 LongSparseArray<ArrayList<ItemInfo>> screenItems = new LongSparseArray<>(); in findSpaceForItem()
438 for (ItemInfo info : sBgItemsIdMap) { in findSpaceForItem()
440 ArrayList<ItemInfo> items = screenItems.get(info.screenId); in findSpaceForItem()
498 final ArrayList<? extends ItemInfo> workspaceApps) { in addAndBindAddedWorkspaceItems()
506 final ArrayList<ItemInfo> addedShortcutsFinal = new ArrayList<ItemInfo>(); in addAndBindAddedWorkspaceItems()
514 for (ItemInfo item : workspaceApps) { in addAndBindAddedWorkspaceItems()
529 ItemInfo itemInfo; in addAndBindAddedWorkspaceItems()
555 final ArrayList<ItemInfo> addAnimated = new ArrayList<ItemInfo>(); in addAndBindAddedWorkspaceItems()
556 … final ArrayList<ItemInfo> addNotAnimated = new ArrayList<ItemInfo>(); in addAndBindAddedWorkspaceItems()
558 … ItemInfo info = addedShortcutsFinal.get(addedShortcutsFinal.size() - 1); in addAndBindAddedWorkspaceItems()
560 for (ItemInfo i : addedShortcutsFinal) { in addAndBindAddedWorkspaceItems()
600 final ArrayList<ItemInfo> tmpItems = new ArrayList<ItemInfo>(); in unbindWorkspaceItemsOnMainThread()
608 for (ItemInfo item : tmpItems) { in unbindWorkspaceItemsOnMainThread()
620 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container, in addOrMoveItemInDatabase()
622 if (item.container == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
632 final long itemId, final ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked()
633 ItemInfo modelItem = sBgItemsIdMap.get(itemId); in checkItemInfoLocked()
674 static void checkItemInfo(final ItemInfo item) { in checkItemInfo()
688 final ItemInfo item, final String callingFunction) { in updateItemInDatabaseHelper()
704 final ArrayList<ItemInfo> items, final String callingFunction) { in updateItemsInDatabaseHelper()
714 ItemInfo item = items.get(i); in updateItemsInDatabaseHelper()
733 static void updateItemArrays(ItemInfo item, long itemId, StackTraceElement[] stackTrace) { in updateItemArrays()
753 ItemInfo modelItem = sBgItemsIdMap.get(itemId); in updateItemArrays()
777 … public static void moveItemInDatabase(Context context, final ItemInfo item, final long container, in moveItemInDatabase()
806 static void moveItemsInDatabase(Context context, final ArrayList<ItemInfo> items, in moveItemsInDatabase()
813 ItemInfo item = items.get(i); in moveItemsInDatabase()
841 static void modifyItemInDatabase(Context context, final ItemInfo item, final long container, in modifyItemInDatabase()
873 public static void updateItemInDatabase(Context context, final ItemInfo item) { in updateItemInDatabase()
914 for (ItemInfo item : sBgItemsIdMap) { in shortcutExists()
980 public static void addItemToDatabase(Context context, final ItemInfo item, final long container, in addItemToDatabase()
1047 private static ArrayList<ItemInfo> getItemsByPackageName( in getItemsByPackageName()
1051 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn) { in getItemsByPackageName()
1069 public static void deleteItemFromDatabase(Context context, final ItemInfo item) { in deleteItemFromDatabase()
1070 ArrayList<ItemInfo> items = new ArrayList<ItemInfo>(); in deleteItemFromDatabase()
1078 … static void deleteItemsFromDatabase(Context context, final ArrayList<? extends ItemInfo> items) { in deleteItemsFromDatabase()
1082 for (ItemInfo item : items) { in deleteItemsFromDatabase()
1091 for (ItemInfo info: sBgItemsIdMap) { in deleteItemsFromDatabase()
1186 for (ItemInfo childInfo : info.contents) { in deleteFolderAndContentsFromDatabase()
1617 private boolean checkItemPlacement(LongArrayMap<ItemInfo[][]> occupied, ItemInfo item, in checkItemPlacement()
1635 final ItemInfo[][] hotseatItems = in checkItemPlacement()
1659 final ItemInfo[][] items = new ItemInfo[(int) profile.numHotseatIcons][1]; in checkItemPlacement()
1675 ItemInfo[][] items = new ItemInfo[countX + 1][countY + 1]; in checkItemPlacement()
1679 final ItemInfo[][] screens = occupied.get(item.screenId); in checkItemPlacement()
1775 final LongArrayMap<ItemInfo[][]> occupied = new LongArrayMap<>(); in loadWorkspace()
2043 info.intent.putExtra(ItemInfo.EXTRA_PROFILE, serialNumber); in loadWorkspace()
2045 … info.promisedIntent.putExtra(ItemInfo.EXTRA_PROFILE, serialNumber); in loadWorkspace()
2326 for (ItemInfo item: sBgItemsIdMap) { in loadWorkspace()
2352 ItemInfo[][] screen = occupied.valueAt(i); in loadWorkspace()
2381 ArrayList<ItemInfo> allWorkspaceItems, in filterCurrentWorkspaceItems()
2382 ArrayList<ItemInfo> currentScreenItems, in filterCurrentWorkspaceItems()
2383 ArrayList<ItemInfo> otherScreenItems) { in filterCurrentWorkspaceItems()
2385 Iterator<ItemInfo> iter = allWorkspaceItems.iterator(); in filterCurrentWorkspaceItems()
2387 ItemInfo i = iter.next(); in filterCurrentWorkspaceItems()
2397 Collections.sort(allWorkspaceItems, new Comparator<ItemInfo>() { in filterCurrentWorkspaceItems()
2399 public int compare(ItemInfo lhs, ItemInfo rhs) { in filterCurrentWorkspaceItems()
2403 for (ItemInfo info : allWorkspaceItems) { in filterCurrentWorkspaceItems()
2444 LongArrayMap<ItemInfo> itemsIdMap, in filterCurrentFolders()
2454 ItemInfo info = itemsIdMap.get(id); in filterCurrentFolders()
2467 private void sortWorkspaceItemsSpatially(ArrayList<ItemInfo> workspaceItems) { in sortWorkspaceItemsSpatially()
2471 Collections.sort(workspaceItems, new Comparator<ItemInfo>() { in sortWorkspaceItemsSpatially()
2473 public int compare(ItemInfo lhs, ItemInfo rhs) { in sortWorkspaceItemsSpatially()
2502 final ArrayList<ItemInfo> workspaceItems, in bindWorkspaceItems()
2589 ArrayList<ItemInfo> workspaceItems = new ArrayList<ItemInfo>(); in bindWorkspace()
2595 final LongArrayMap<ItemInfo> itemsIdMap; in bindWorkspace()
2623 ArrayList<ItemInfo> currentWorkspaceItems = new ArrayList<ItemInfo>(); in bindWorkspace()
2624 ArrayList<ItemInfo> otherWorkspaceItems = new ArrayList<ItemInfo>(); in bindWorkspace()
2741 for (ItemInfo info : sBgItemsIdMap) {
2903 for (ItemInfo info : sBgItemsIdMap) {
3128 for (ItemInfo info : sBgItemsIdMap) {
3504 static ArrayList<ItemInfo> filterItemInfos(Iterable<ItemInfo> infos,
3506 HashSet<ItemInfo> filtered = new HashSet<ItemInfo>();
3507 for (ItemInfo i : infos) {
3530 return new ArrayList<ItemInfo>(filtered);
3533 @Thunk ArrayList<ItemInfo> getItemInfoForComponentName(final ComponentName cname,
3537 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn) {