Home
last modified time | relevance | path

Searched refs:widgetItem (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java73 for (WidgetItem widgetItem : sortedWidgetItems) { in groupWidgetItemsIntoTable()
81 int totalHorizontalSpanAfterAddingWidget = widgetItem.spanX + totalHorizontalSpan; in groupWidgetItemsIntoTable()
83 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsIntoTable()
89 && widgetItem.hasSameType(widgetItemsAtRow.get(numOfWidgetItems - 1))) { in groupWidgetItemsIntoTable()
96 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsIntoTable()
100 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsIntoTable()
DWidgetSizes.java93 WidgetItem widgetItem) { in getWidgetItemSizePx() argument
94 if (widgetItem.isShortcut()) { in getWidgetItemSizePx()
99 return getWidgetPaddedSizePx(context, widgetItem.componentName, profile, widgetItem.spanX, in getWidgetItemSizePx()
100 widgetItem.spanY); in getWidgetItemSizePx()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java116 for (WidgetItem widgetItem : widgetItems) { in bindData()
118 widgetCell.setPreviewSize(widgetItem, data.mPreviewScale); in bindData()
119 widgetCell.applyFromCellItem(widgetItem, in bindData()
157 WidgetItem widgetItem = widgetItems.get(j); in fitRecommendedWidgetsToTableSpace() local
159 widgetItem); in fitRecommendedWidgetsToTableSpace()
DWidgetsListTableViewHolderBinder.java122 WidgetItem widgetItem = widgetItemsPerRow.get(j); in bindViewHolder() local
123 Size previewSize = widget.setPreviewSize(widgetItem); in bindViewHolder()
124 widget.applyFromCellItem(widgetItem, mWidgetPreviewLoader); in bindViewHolder()
126 Bitmap preview = mWidgetPreviewLoader.getPreview(widgetItem, previewSize); in bindViewHolder()
DWidgetsListAdapter.java297 WidgetItem widgetItem = entry.mWidgets.get(i); in ensureAllPreviewsReady() local
300 widgetItem); in ensureAllPreviewsReady()
301 if (widgetItem.isShortcut()) { in ensureAllPreviewsReady()
308 if (widgetItem.hasPreviewLayout() in ensureAllPreviewsReady()
309 || mCachingPreviewLoader.isPreviewLoaded(widgetItem, widgetSize)) { in ensureAllPreviewsReady()
319 widgetItem, in ensureAllPreviewsReady()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java359 public Size setPreviewSize(WidgetItem widgetItem) { in setPreviewSize() argument
360 return setPreviewSize(widgetItem, 1f); in setPreviewSize()
364 public Size setPreviewSize(WidgetItem widgetItem, float previewScale) { in setPreviewSize() argument
366 Size widgetSize = WidgetSizes.getWidgetItemSizePx(getContext(), deviceProfile, widgetItem); in setPreviewSize()
DWidgetsBottomSheet.java200 row.forEach(widgetItem -> { in onWidgetsBound()
202 widget.setPreviewSize(widgetItem); in onWidgetsBound()
203 widget.applyFromCellItem(widgetItem, LauncherAppState.getInstance(mActivityContext) in onWidgetsBound()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListAdapterTest.java160 WidgetItem widgetItem = testPackage1ContentEntry.mWidgets.get(0); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff() local
163 testPackage1ContentEntry.mTitleSectionName, List.of(widgetItem, widgetItem)); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff()
DWidgetsDiffReporterTest.java306 WidgetItem widgetItem = new WidgetItem( in generateWidgetItems() local
309 widgetItems.add(widgetItem); in generateWidgetItems()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java207 WidgetItem widgetItem = new WidgetItem( in generateWidgetItems() local
210 widgetItems.add(widgetItem); in generateWidgetItems()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java365 WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(
367 if (widgetItem == null) {
370 inflateAndAddWidgets(info, widgetItem.widgetInfo);
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DCachingWidgetPreviewLoaderTest.java401 private void loadPreviewIntoCache(WidgetItem widgetItem, Size size, Bitmap bitmap) { in loadPreviewIntoCache() argument
403 mLoader.loadPreview(mTestActivity, widgetItem, size, ignored -> {}); in loadPreviewIntoCache()