Home
last modified time | relevance | path

Searched refs:widgetItems (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java110 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWithReordering_widgetsOnly_maxSpanPxPerRow220_cellPadding0() local
114 WidgetsTableUtils.groupWidgetItemsUsingRowPxWithReordering(widgetItems, mContext, in groupWithReordering_widgetsOnly_maxSpanPxPerRow220_cellPadding0()
131 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWithReordering_widgetsOnly_maxSpanPxPerRow220_cellPadding10() local
135 WidgetsTableUtils.groupWidgetItemsUsingRowPxWithReordering(widgetItems, mContext, in groupWithReordering_widgetsOnly_maxSpanPxPerRow220_cellPadding10()
155 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWithReordering_widgetsOnly_maxSpanPxPerRow260_cellPadding10() local
159 WidgetsTableUtils.groupWidgetItemsUsingRowPxWithReordering(widgetItems, mContext, in groupWithReordering_widgetsOnly_maxSpanPxPerRow260_cellPadding10()
177 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWithReordering_widgetsOnly_maxSpanPxPerRow350_cellPadding0() local
181 WidgetsTableUtils.groupWidgetItemsUsingRowPxWithReordering(widgetItems, mContext, in groupWithReordering_widgetsOnly_maxSpanPxPerRow350_cellPadding0()
198 List<WidgetItem> widgetItems = List.of(mWidget4x4, mShortcut3, mWidget2x3, mShortcut1, in groupWithReordering_mixItems_maxSpanPxPerRow350_cellPadding0() local
202 WidgetsTableUtils.groupWidgetItemsUsingRowPxWithReordering(widgetItems, mContext, in groupWithReordering_mixItems_maxSpanPxPerRow350_cellPadding0()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java174 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsHeaderEntry() local
176 widgetItems.get(0).user); in createWidgetsHeaderEntry()
178 return WidgetsListHeaderEntry.create(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsHeaderEntry()
183 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsContentEntry() local
185 widgetItems.get(0).user); in createWidgetsContentEntry()
187 return new WidgetsListContentEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsContentEntry()
199 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
207 widgetItems.add(widgetItem); in generateWidgetItems()
209 return widgetItems; in generateWidgetItems()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java106 List<WidgetItem> widgetItems = recommendationTable.get(i); in bindData() local
108 tableRow.setupRow(widgetItems.size(), /*resizeDelayMs=*/ 0); in bindData()
110 for (WidgetItem widgetItem : widgetItems) { in bindData()
148 List<WidgetItem> widgetItems = recommendedWidgets.get(i); in selectRowsThatFitInAvailableHeight() local
150 for (int j = 0; j < widgetItems.size(); j++) { in selectRowsThatFitInAvailableHeight()
151 WidgetItem widgetItem = widgetItems.get(j); in selectRowsThatFitInAvailableHeight()
161 filteredRows.add(new ArrayList<>(widgetItems)); in selectRowsThatFitInAvailableHeight()
DWidgetsListTableViewHolderBinder.java148 List<WidgetItem> widgetItems = widgetItemsTable.get(i); in recycleTableBeforeBinding() local
159 tableRow.setupRow(widgetItems.size(), in recycleTableBeforeBinding()
162 if (tableRow.getChildCount() > widgetItems.size()) { in recycleTableBeforeBinding()
163 for (int j = widgetItems.size(); j < tableRow.getChildCount(); j++) { in recycleTableBeforeBinding()
167 for (int j = tableRow.getChildCount(); j < widgetItems.size(); j++) { in recycleTableBeforeBinding()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java113 Set<String> widgetItems = new HashSet<>(); in sendBroadcastToInstaller() local
132 widgetItems.add(packageName); in sendBroadcastToInstaller()
144 printList(installerPackageName, "Widget item", widgetItems); in sendBroadcastToInstaller()
150 && widgetItems.isEmpty()) { in sendBroadcastToInstaller()
159 .putStringArrayListExtra(WIDGET_ITEM_EXTRA, new ArrayList<>(widgetItems)) in sendBroadcastToInstaller()
DWidgetsModel.java90 List<WidgetItem> widgetItems = entry.getValue() in getFilteredWidgetsListForPicker() local
93 if (!widgetItems.isEmpty()) { in getFilteredWidgetsListForPicker()
96 result.add(WidgetsListHeaderEntry.create(pkgItem, sectionName, widgetItems)); in getFilteredWidgetsListForPicker()
97 result.add(new WidgetsListContentEntry(pkgItem, sectionName, widgetItems)); in getFilteredWidgetsListForPicker()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java76 List<WidgetItem> widgetItems, Context context, final DeviceProfile dp, in groupWidgetItemsUsingRowPxWithReordering() argument
78 List<WidgetItem> sortedWidgetItems = widgetItems.stream().sorted(WIDGET_SHORTCUT_COMPARATOR) in groupWidgetItemsUsingRowPxWithReordering()
104 List<WidgetItem> widgetItems, Context context, final DeviceProfile dp, in groupWidgetItemsUsingRowPxWithoutReordering() argument
112 for (WidgetItem widgetItem : widgetItems) { in groupWidgetItemsUsingRowPxWithoutReordering()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/
DWidgetsListHeaderViewHolderBinderTest.java145 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
150 widgetItems.add(new WidgetItem( in generateWidgetItems()
154 return widgetItems; in generateWidgetItems()
DWidgetsListTableViewHolderBinderTest.java147 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
152 widgetItems.add(new WidgetItem( in generateWidgetItems()
156 return widgetItems; in generateWidgetItems()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetPredictionsRequester.java210 private List<ItemInfo> mapWidgetItemsToItemInfo(List<WidgetItem> widgetItems) { in mapWidgetItemsToItemInfo() argument
215 items = widgetItems.stream() in mapWidgetItemsToItemInfo()
220 items = widgetItems.stream().map(it -> new PendingAddWidgetInfo(it.widgetInfo, in mapWidgetItemsToItemInfo()