Home
last modified time | relevance | path

Searched refs:widgetInfo (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetItem.java36 public final LauncherAppWidgetProviderInfo widgetInfo; field in WidgetItem
52 widgetInfo = info; in WidgetItem()
65 if ((widgetCategory & widgetInfo.generatedPreviewCategories) != 0) { in WidgetItem()
67 helper.loadGeneratedPreview(widgetInfo, widgetCategory)); in WidgetItem()
85 widgetInfo = null; in WidgetItem()
98 if (widgetInfo != null && otherItem.widgetInfo != null) { in hasSameType()
110 return ATLEAST_S && widgetInfo != null && widgetInfo.previewLayout != Resources.ID_NULL; in hasPreviewLayout()
DWidgetsModel.java123 .filter(item -> item.widgetInfo != null) in getAllWidgetsWithoutShortcuts()
144 widgetsAndShortcuts.stream().filter(item -> item.widgetInfo != null).forEach( in getAllWidgetComponentsWithoutShortcuts()
170 for (AppWidgetProviderInfo widgetInfo : widgetManager.getAllProviders(packageUser)) { in update()
172 LauncherAppWidgetProviderInfo.fromProviderInfo(context, widgetInfo); in update()
251 items.set(i, new WidgetItem(item.widgetInfo, in onPackageIconsUpdated()
354 if (item.widgetInfo != null) { in test()
355 if ((item.widgetInfo.getWidgetFeatures() & WIDGET_FEATURE_HIDE_FROM_PICKER) != 0) { in test()
361 if (!item.widgetInfo.isMinSizeFulfilled()) { in test()
DItemInstallQueue.java325 LauncherAppWidgetInfo widgetInfo = new LauncherAppWidgetInfo( in getItemInfo() local
329 widgetInfo.minSpanX = info.minSpanX; in getItemInfo()
330 widgetInfo.minSpanY = info.minSpanY; in getItemInfo()
331 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo()
332 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo()
333 widgetInfo.user = user; in getItemInfo()
334 return Pair.create(widgetInfo, providerInfo); in getItemInfo()
DPackageUpdatedTask.java348 for (LauncherAppWidgetInfo widgetInfo : dataModel.appWidgets) { in execute()
349 if (mUser.equals(widgetInfo.user) in execute()
350 && widgetInfo.hasRestoreFlag( in execute()
352 && packageSet.contains(widgetInfo.providerName.getPackageName())) { in execute()
353 widgetInfo.restoreStatus &= in execute()
360 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
362 widgets.add(widgetInfo); in execute()
363 taskController.getModelWriter().updateItemInDatabase(widgetInfo); in execute()
DFirstScreenBroadcast.java167 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in getPackageName() local
168 if (widgetInfo.providerName != null) { in getPackageName()
169 packageName = widgetInfo.providerName.getPackageName(); in getPackageName()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplAddWidgetTest.java62 final LauncherAppWidgetProviderInfo widgetInfo = in testDragIcon() local
68 .getWidget(widgetInfo.getLabel(mTargetContext.getPackageManager())) in testDragIcon()
74 final Widget widget = mLauncher.getWorkspace().tryGetWidget(widgetInfo.label, in testDragIcon()
113 final LauncherAppWidgetProviderInfo widgetInfo = in testResizeWidget() local
119 .getWidget(widgetInfo.getLabel(mTargetContext.getPackageManager())) in testResizeWidget()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetRecommendationCategoryProvider.java66 if (item.widgetInfo != null && item.widgetInfo.getComponent() != null) { in getWidgetRecommendationCategory()
68 item.widgetInfo.getComponent().getPackageName(), item.widgetInfo.getUser(), in getWidgetRecommendationCategory()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DLauncherPopupLiveUpdateHandler.java49 SystemShortcut widgetInfo = SystemShortcut.WIDGETS.getShortcut(mContext, in onWidgetsBound() local
56 if (widgetInfo != null && widgetsView == null) { in onWidgetsBound()
68 widgetInfo); in onWidgetsBound() local
78 } else if (widgetInfo == null && widgetsView != null) { in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java267 setTag(new PendingAddWidgetInfo(item.widgetInfo, mSourceContainer)); in applyFromCellItem()
272 setAppWidgetHostViewPreview(mAppWidgetHostViewPreview, item.widgetInfo, in applyFromCellItem()
277 setAppWidgetHostViewPreview(mAppWidgetHostViewPreview, item.widgetInfo, in applyFromCellItem()
287 fromProviderInfo(context, item.widgetInfo.clone()); in applyFromCellItem()
291 providerInfo.initialLayout = item.widgetInfo.previewLayout; in applyFromCellItem()
455 if (mItem.widgetInfo != null) { in showAppIconInWidgetTitle()
711 if (info.widgetInfo != null && mItem.widgetInfo != null) {
712 return info.widgetInfo.getUser().equals(mItem.widgetInfo.getUser())
713 && info.widgetInfo.getComponent().equals(mItem.widgetInfo.getComponent());
DWidgetInflater.kt183 return InflationResult(TYPE_REAL, isUpdate = update, widgetInfo = appWidgetInfo) in inflateAppWidget()
185 return InflationResult(TYPE_PENDING, isUpdate = update, widgetInfo = appWidgetInfo) in inflateAppWidget()
194 val widgetInfo: LauncherAppWidgetProviderInfo? = null constant in com.android.launcher3.widget.WidgetInflater.InflationResult
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java290 final LauncherAppWidgetProviderInfo widgetInfo = LauncherAppWidgetProviderInfo in setupWidget() local
292 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
302 new PendingAddWidgetInfo(widgetInfo, CONTAINER_PIN_WIDGETS); in setupWidget()
303 pendingInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget()
304 pendingInfo.spanY = Math.min(mIdp.numRows, widgetInfo.spanY); in setupWidget()
309 widgetInfo, mIdp, mApp.getIconCache(), mApp.getContext())); in setupWidget()
310 return WidgetsModel.newPendingItemInfo(this, widgetInfo.getComponent(), in setupWidget()
311 widgetInfo.getUser()); in setupWidget()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetsTableUtils.java46 if (item.widgetInfo != null && otherItem.widgetInfo == null) return -1;
48 if (item.widgetInfo == null && otherItem.widgetInfo != null) return 1;
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInflater.kt116 val (type, reason, _, isUpdate, widgetInfo) = widgetInflater.inflateAppWidget(item) in inflateAppWidget() constant
125 if (type == WidgetInflater.TYPE_PENDING || widgetInfo == null) in inflateAppWidget()
126 PendingAppWidgetHostView(context, widgetHolder, item, widgetInfo) in inflateAppWidget()
127 else widgetHolder.createView(item.appWidgetId, widgetInfo) in inflateAppWidget()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DWidgetPickerActivity.java168 (v instanceof WidgetCell) ? ((WidgetCell) v).getWidgetItem().widgetInfo : null; in getItemOnClickListener()
192 final AppWidgetProviderInfo info = widgetCell.getWidgetItem().widgetInfo; in getAllAppsItemLongClickListener()
273 final AppWidgetProviderInfo info = widget.widgetInfo;
350 widget.widgetInfo != null
351 ? widget.widgetInfo.provider.flattenToShortString()
358 true, widget.widgetInfo.provider.flattenToShortString(), "");
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java268 LauncherAppWidgetProviderInfo widgetInfo = in initTestWidgets()
270 widgetInfo.spanX = widgetSize.x; in initTestWidgets()
271 widgetInfo.spanY = widgetSize.y; in initTestWidgets()
273 widgetInfo, mTestInvariantProfile, mIconCache, mContext)); in initTestWidgets()
DWidgetPreviewContainerSizesTest.kt154 val widgetInfo = in createWidgetItem() constant
159 return WidgetItem(widgetInfo, invariantDeviceProfile, iconCache, context) in createWidgetItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DSecondaryDropTarget.java263 AppWidgetProviderInfo widgetInfo = hostView.getAppWidgetInfo(); in getReconfigurableWidgetId() local
264 if (widgetInfo == null || widgetInfo.configure == null) { in getReconfigurableWidgetId()
267 if ( (LauncherAppWidgetProviderInfo.fromProviderInfo(getContext(), widgetInfo) in getReconfigurableWidgetId()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetsPredictionUpdateTask.java93 .map(it -> new PendingAddWidgetInfo(it.widgetInfo, CONTAINER_WIDGETS_PREDICTION, in execute()
98 .map(it -> new PendingAddWidgetInfo(it.widgetInfo, in execute()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java158 final SparseArray<Size> widgetInfo = new SparseArray<>(); in getLoadedLauncherWidgetInfo() local
179 widgetInfo.append(appWidgetId, new Size(spanX, spanY)); in getLoadedLauncherWidgetInfo()
186 return widgetInfo; in getLoadedLauncherWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java210 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb() local
211 boolean isWidgetBound = (widgetInfo != null) && in createQsb()
212 widgetInfo.provider.equals(mWidgetInfo.provider); in createQsb()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredictionsRequesterTest.kt186 val widgetInfo = LauncherAppWidgetProviderInfo.fromProviderInfo(context, providerInfo) in createWidgetItem() constant
187 return WidgetItem(widgetInfo, testInvariantProfile, iconCache, context) in createWidgetItem()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/
DWidgetsListHeaderViewHolderBinderTest.java148 AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn); in generateWidgetItems() local
151 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
DWidgetsListTableViewHolderBinderTest.java150 AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn); in generateWidgetItems() local
153 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemProcessorTest.kt551 widgetInfo = expectedWidgetProviderInfo in When valid TYPE_REAL App Widget then add item()
609 widgetInfo = mockProviderInfo in When valid Pending Widget then checkAndAddItem()
648 WidgetInflater.InflationResult(type = WidgetInflater.TYPE_PENDING, widgetInfo = null) in When Unrestored Pending App Widget then mark deleted()
708 widgetInfo = null in When Pending App Widget has not started restore then update db and add item()
785 widgetInfo = null in When Archived Pending App Widget then checkAndAddItem()
830 widgetInfo = null, in When widget inflation result is TYPE_DELETE then mark deleted()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/model/
DWidgetsListContentEntryTest.java251 AppWidgetProviderInfo widgetInfo = createAppWidgetProviderInfo(componentName); in createWidgetItem() local
255 LauncherAppWidgetProviderInfo.fromProviderInfo(context, widgetInfo); in createWidgetItem()

12