/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetItem.java | 36 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()
|
D | WidgetsModel.java | 123 .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()
|
D | ItemInstallQueue.java | 325 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()
|
D | PackageUpdatedTask.java | 348 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()
|
D | FirstScreenBroadcast.java | 167 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/ |
D | TaplAddWidgetTest.java | 62 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/ |
D | WidgetRecommendationCategoryProvider.java | 66 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/ |
D | LauncherPopupLiveUpdateHandler.java | 49 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/ |
D | WidgetCell.java | 267 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());
|
D | WidgetInflater.kt | 183 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/ |
D | AddItemActivity.java | 290 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/ |
D | WidgetsTableUtils.java | 46 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/ |
D | ItemInflater.kt | 116 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/ |
D | WidgetPickerActivity.java | 168 (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/ |
D | WidgetsTableUtilsTest.java | 268 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()
|
D | WidgetPreviewContainerSizesTest.kt | 154 val widgetInfo = in createWidgetItem() constant 159 return WidgetItem(widgetInfo, invariantDeviceProfile, iconCache, context) in createWidgetItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SecondaryDropTarget.java | 263 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/ |
D | WidgetsPredictionUpdateTask.java | 93 .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/ |
D | PreviewSurfaceRenderer.java | 158 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/ |
D | QsbContainerView.java | 210 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/ |
D | WidgetsPredictionsRequesterTest.kt | 186 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/ |
D | WidgetsListHeaderViewHolderBinderTest.java | 148 AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn); in generateWidgetItems() local 151 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
D | WidgetsListTableViewHolderBinderTest.java | 150 AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn); in generateWidgetItems() local 153 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | WorkspaceItemProcessorTest.kt | 551 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/ |
D | WidgetsListContentEntryTest.java | 251 AppWidgetProviderInfo widgetInfo = createAppWidgetProviderInfo(componentName); in createWidgetItem() local 255 LauncherAppWidgetProviderInfo.fromProviderInfo(context, widgetInfo); in createWidgetItem()
|