/packages/apps/Launcher3/src/com/android/launcher3/widget/util/ |
D | WidgetsTableUtils.java | 73 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()
|
D | WidgetSizes.java | 93 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/ |
D | WidgetsRecommendationTableLayout.java | 116 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()
|
D | WidgetsListTableViewHolderBinder.java | 122 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()
|
D | WidgetsListAdapter.java | 297 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/ |
D | WidgetCell.java | 359 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()
|
D | WidgetsBottomSheet.java | 200 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/ |
D | WidgetsListAdapterTest.java | 160 WidgetItem widgetItem = testPackage1ContentEntry.mWidgets.get(0); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff() local 163 testPackage1ContentEntry.mTitleSectionName, List.of(widgetItem, widgetItem)); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff()
|
D | WidgetsDiffReporterTest.java | 306 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/ |
D | SimpleWidgetsSearchAlgorithmTest.java | 207 WidgetItem widgetItem = new WidgetItem( in generateWidgetItems() local 210 widgetItems.add(widgetItem); in generateWidgetItems()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 365 WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName( 367 if (widgetItem == null) { 370 inflateAndAddWidgets(info, widgetItem.widgetInfo);
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | CachingWidgetPreviewLoaderTest.java | 401 private void loadPreviewIntoCache(WidgetItem widgetItem, Size size, Bitmap bitmap) { in loadPreviewIntoCache() argument 403 mLoader.loadPreview(mTestActivity, widgetItem, size, ignored -> {}); in loadPreviewIntoCache()
|