/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/ |
D | GeneratedPreviewTest.kt | 53 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/ |
D | WidgetsTableUtils.java | 112 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()
|
D | WidgetSizes.java | 80 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/ |
D | WidgetsRecommendationTableLayout.java | 110 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()
|
D | WidgetsListTableViewHolderBinder.java | 124 WidgetItem widgetItem = widgetItemsPerRow.get(j); in bindViewHolder() local 127 widget.applyFromCellItem(widgetItem); in bindViewHolder()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetsModel.java | 223 .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/ |
D | WidgetPreviewContainerSizesTest.kt | 69 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/ |
D | WidgetsBottomSheet.java | 142 row.forEach(widgetItem -> { in onWidgetsBound() 144 widget.applyFromCellItem(widgetItem); in onWidgetsBound()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | WidgetPredictionsRequester.java | 156 return widgetItem -> !existingComponentKeys.contains(widgetItem); in notOnUiSurfaceFilter()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/ |
D | SimpleWidgetsSearchAlgorithmTest.java | 204 WidgetItem widgetItem = new WidgetItem( in generateWidgetItems() local 207 widgetItems.add(widgetItem); in generateWidgetItems()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 380 WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName( 382 if (widgetItem == null) { 385 inflateAndAddWidgets(info, widgetItem.widgetInfo);
|