Lines Matching refs:tiles
107 for (int j = 0; j < category.tiles.size(); j++) {
108 Tile tile = category.tiles.get(j);
110 category.tiles.remove(j--);
117 // Keep cached tiles by default. The cache is only invalidated when InterestingConfigChange
152 List<Tile> tiles = packageToTileMap.get(packageName);
153 if (tiles == null) {
154 tiles = new ArrayList<>();
155 packageToTileMap.put(packageName, tiles);
157 tiles.add(tileEntry.getValue());
161 final List<Tile> tiles = entry.getValue();
162 // Loop map, find if all tiles from same package uses old key only.
165 for (Tile tile : tiles) {
175 for (Tile tile : tiles) {
184 newCategory.tiles.add(tile);
191 * Sort the tiles injected from all apps such that if they have the same priority value,
194 * A list of tiles are considered sorted when their priority value decreases in a linear
206 * Filter out duplicate tiles from category. Duplicate tiles are the ones pointing to the
213 final int count = category.tiles.size();
216 final Tile tile = category.tiles.get(i);
222 category.tiles.remove(i);
231 * Sort priority value for tiles within a single {@code DashboardCategory}.
239 // Sort tiles based on [priority, package within priority]
240 Collections.sort(dashboardCategory.tiles, (tile1, tile2) -> {