Home
last modified time | relevance | path

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

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java93 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWidgetItemsIntoTable_widgetsOnly_maxSpansPerRow5_shouldGroupWidgetsInTable() local
97 widgetItems, /* maxSpansPerRow= */ 5); in groupWidgetItemsIntoTable_widgetsOnly_maxSpansPerRow5_shouldGroupWidgetsInTable()
110 List<WidgetItem> widgetItems = List.of(mWidget4x4, mWidget2x3, mWidget1x1, mWidget2x4, in groupWidgetItemsIntoTable_widgetsOnly_maxSpansPerRow4_shouldGroupWidgetsInTable() local
114 widgetItems, /* maxSpansPerRow= */ 4); in groupWidgetItemsIntoTable_widgetsOnly_maxSpansPerRow4_shouldGroupWidgetsInTable()
129 List<WidgetItem> widgetItems = List.of(mWidget4x4, mShortcut3, mWidget2x3, mShortcut1, in groupWidgetItemsIntoTable_mixItems_maxSpansPerRow4_shouldGroupWidgetsInTable() local
133 widgetItems, /* maxSpansPerRow= */ 4); in groupWidgetItemsIntoTable_mixItems_maxSpansPerRow4_shouldGroupWidgetsInTable()
152 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in initTestWidgets() local
165 widgetItems.add(new WidgetItem(widgetInfo, mTestProfile, mIconCache)); in initTestWidgets()
168 mWidget1x1 = widgetItems.get(0); in initTestWidgets()
169 mWidget2x2 = widgetItems.get(1); in initTestWidgets()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java172 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsHeaderEntry() local
174 widgetItems.get(0).user); in createWidgetsHeaderEntry()
176 return new WidgetsListHeaderEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsHeaderEntry()
181 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsContentEntry() local
183 widgetItems.get(0).user); in createWidgetsContentEntry()
185 return new WidgetsListContentEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsContentEntry()
199 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
210 widgetItems.add(widgetItem); in generateWidgetItems()
212 return widgetItems; in generateWidgetItems()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporterTest.java271 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsHeaderEntry() local
273 widgetItems.get(0).user); in createWidgetsHeaderEntry()
275 return new WidgetsListHeaderEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsHeaderEntry()
280 List<WidgetItem> widgetItems = generateWidgetItems(packageName, numOfWidgets); in createWidgetsContentEntry() local
282 widgetItems.get(0).user); in createWidgetsContentEntry()
284 return new WidgetsListContentEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsContentEntry()
298 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
309 widgetItems.add(widgetItem); in generateWidgetItems()
311 return widgetItems; in generateWidgetItems()
DWidgetsListAdapterTest.java253 List<WidgetItem> widgetItems = generateWidgetItems(packageName, /* numOfWidgets= */ 1); in generateSampleMap() local
257 pInfo.user = widgetItems.get(0).user; in generateSampleMap()
260 result.add(new WidgetsListHeaderEntry(pInfo, /* titleSectionName= */ "", widgetItems)); in generateSampleMap()
261 result.add(new WidgetsListContentEntry(pInfo, /* titleSectionName= */ "", widgetItems)); in generateSampleMap()
269 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
277 widgetItems.add(new WidgetItem( in generateWidgetItems()
281 return widgetItems; in generateWidgetItems()
DWidgetsListHeaderViewHolderBinderTest.java168 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
176 widgetItems.add(new WidgetItem( in generateWidgetItems()
180 return widgetItems; in generateWidgetItems()
DWidgetsListSearchHeaderViewHolderBinderTest.java169 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
177 widgetItems.add(new WidgetItem( in generateWidgetItems()
181 return widgetItems; in generateWidgetItems()
DWidgetsListTableViewHolderBinderTest.java167 ArrayList<WidgetItem> widgetItems = new ArrayList<>(); in generateWidgetItems() local
175 widgetItems.add(new WidgetItem( in generateWidgetItems()
179 return widgetItems; in generateWidgetItems()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java112 List<WidgetItem> widgetItems = data.mRecommendationTable.get(i); in bindData() local
116 for (WidgetItem widgetItem : widgetItems) { in bindData()
154 List<WidgetItem> widgetItems = recommendedWidgetsInTable.get(i); in fitRecommendedWidgetsToTableSpace() local
156 for (int j = 0; j < widgetItems.size(); j++) { in fitRecommendedWidgetsToTableSpace()
157 WidgetItem widgetItem = widgetItems.get(j); in fitRecommendedWidgetsToTableSpace()
DWidgetsListTableViewHolderBinder.java152 List<WidgetItem> widgetItems = widgetItemsTable.get(i); in recycleTableBeforeBinding() local
161 if (tableRow.getChildCount() > widgetItems.size()) { in recycleTableBeforeBinding()
162 for (int j = widgetItems.size(); j < tableRow.getChildCount(); j++) { in recycleTableBeforeBinding()
166 for (int j = tableRow.getChildCount(); j < widgetItems.size(); j++) { in recycleTableBeforeBinding()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java103 Set<String> widgetItems = new HashSet<>(); in sendBroadcastToInstaller() local
123 widgetItems.add(packageName); in sendBroadcastToInstaller()
135 printList(installerPackageName, "Widget item", widgetItems); in sendBroadcastToInstaller()
143 .putStringArrayListExtra(WIDGET_ITEM_EXTRA, new ArrayList<>(widgetItems)) in sendBroadcastToInstaller()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetsPredictionUpdateTask.java85 Map<ComponentKey, WidgetItem> widgetItems = in execute() local
95 if (widgetItems.containsKey(targetWidget)) { in execute()
97 new PendingAddWidgetInfo(widgetItems.get( in execute()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java68 List<WidgetItem> widgetItems, final int maxSpansPerRow) { in groupWidgetItemsIntoTable() argument
69 List<WidgetItem> sortedWidgetItems = widgetItems.stream().sorted(WIDGET_SHORTCUT_COMPARATOR) in groupWidgetItemsIntoTable()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java84 List<WidgetItem> widgetItems = entry.getValue(); in getWidgetsListForPicker() local
87 result.add(new WidgetsListHeaderEntry(pkgItem, sectionName, widgetItems)); in getWidgetsListForPicker()
88 result.add(new WidgetsListContentEntry(pkgItem, sectionName, widgetItems)); in getWidgetsListForPicker()