Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/
DGeneratedPreviewTest.kt53 private lateinit var widgetItem: WidgetItem variable in com.android.launcher3.widget.GeneratedPreviewTest
94 widgetItem = in createWidgetItem()
109 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_HOME_SCREEN)).isTrue() in widgetItem_hasGeneratedPreview()
110 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_KEYGUARD)).isFalse() in widgetItem_hasGeneratedPreview()
111 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_SEARCHBOX)).isFalse() in widgetItem_hasGeneratedPreview()
119 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_HOME_SCREEN)).isFalse() in widgetItem_hasGeneratedPreview_noPreview()
120 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_KEYGUARD)).isFalse() in widgetItem_hasGeneratedPreview_noPreview()
121 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_SEARCHBOX)).isFalse() in widgetItem_hasGeneratedPreview_noPreview()
130 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_HOME_SCREEN)).isTrue() in widgetItem_hasGeneratedPreview_nullPreview()
132 assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_KEYGUARD)).isFalse() in widgetItem_hasGeneratedPreview_nullPreview()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java112 for (WidgetItem widgetItem : widgetItems) { in groupWidgetItemsUsingRowPxWithoutReordering()
120 WidgetPreviewContainerSize.Companion.forItem(widgetItem, dp); in groupWidgetItemsUsingRowPxWithoutReordering()
126 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsUsingRowPxWithoutReordering()
131 && widgetItem.hasSameType(widgetItemsAtRow.get(numOfWidgetItems - 1)) in groupWidgetItemsUsingRowPxWithoutReordering()
137 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsUsingRowPxWithoutReordering()
142 widgetItemsAtRow.add(widgetItem); in groupWidgetItemsUsingRowPxWithoutReordering()
DWidgetSizes.java80 WidgetItem widgetItem) { in getWidgetItemSizePx() argument
81 if (widgetItem.isShortcut()) { in getWidgetItemSizePx()
86 return getWidgetSizePx(profile, widgetItem.spanX, widgetItem.spanY); in getWidgetItemSizePx()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java110 for (WidgetItem widgetItem : widgetItems) { in bindData()
112 widgetCell.applyFromCellItem(widgetItem); in bindData()
151 WidgetItem widgetItem = widgetItems.get(j); in selectRowsThatFitInAvailableHeight() local
153 WidgetPreviewContainerSize.Companion.forItem(widgetItem, deviceProfile); in selectRowsThatFitInAvailableHeight()
DWidgetsListTableViewHolderBinder.java124 WidgetItem widgetItem = widgetItemsPerRow.get(j); in bindViewHolder() local
127 widget.applyFromCellItem(widgetItem); in bindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsModel.java223 .flatMap(widgetItem -> getPackageUserKeys(app.getContext(), widgetItem).stream() in setWidgetsAndShortcuts()
224 .map(key -> new Pair<>(packageItemInfoCache.getOrCreate(key), widgetItem))) in setWidgetsAndShortcuts()
389 public boolean test(WidgetItem widgetItem) { in test() argument
390 if (BUBBLES_SHORTCUT_WIDGET.equals(widgetItem.componentName.flattenToString())) { in test()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/util/
DWidgetPreviewContainerSizesTest.kt69 val widgetItem = in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize() constant
73 .that(WidgetPreviewContainerSize.forItem(widgetItem, deviceProfile)) in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java142 row.forEach(widgetItem -> { in onWidgetsBound()
144 widget.applyFromCellItem(widgetItem); in onWidgetsBound()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetPredictionsRequester.java156 return widgetItem -> !existingComponentKeys.contains(widgetItem); in notOnUiSurfaceFilter()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java204 WidgetItem widgetItem = new WidgetItem( in generateWidgetItems() local
207 widgetItems.add(widgetItem); in generateWidgetItems()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java380 WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(
382 if (widgetItem == null) {
385 inflateAndAddWidgets(info, widgetItem.widgetInfo);