/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetItem.java | 24 public final LauncherAppWidgetProviderInfo widgetInfo; field in WidgetItem 35 widgetInfo = info; in WidgetItem() 46 widgetInfo = null; in WidgetItem() 58 if (widgetInfo != null && otherItem.widgetInfo != null) { in hasSameType() 70 return ATLEAST_S && widgetInfo != null && widgetInfo.previewLayout != Resources.ID_NULL; in hasPreviewLayout()
|
D | PackageUpdatedTask.java | 295 for (LauncherAppWidgetInfo widgetInfo : dataModel.appWidgets) { in execute() 296 if (mUser.equals(widgetInfo.user) in execute() 297 && widgetInfo.hasRestoreFlag( in execute() 299 && packageSet.contains(widgetInfo.providerName.getPackageName())) { in execute() 300 widgetInfo.restoreStatus &= in execute() 307 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute() 309 widgets.add(widgetInfo); in execute() 310 getModelWriter().updateItemInDatabase(widgetInfo); in execute()
|
D | ItemInstallQueue.java | 314 LauncherAppWidgetInfo widgetInfo = new LauncherAppWidgetInfo( in getItemInfo() local 318 widgetInfo.minSpanX = info.minSpanX; in getItemInfo() 319 widgetInfo.minSpanY = info.minSpanY; in getItemInfo() 320 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo() 321 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo() 322 widgetInfo.user = user; in getItemInfo() 323 return Pair.create(widgetInfo, providerInfo); in getItemInfo()
|
D | FirstScreenBroadcast.java | 151 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in getPackageName() local 152 if (widgetInfo.providerName != null) { in getPackageName() 153 packageName = widgetInfo.providerName.getPackageName(); in getPackageName()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/util/ |
D | WidgetsTableUtilsTest.java | 159 LauncherAppWidgetProviderInfo widgetInfo = in initTestWidgets() 161 widgetInfo.spanX = widgetSize.x; in initTestWidgets() 162 widgetInfo.spanY = widgetSize.y; in initTestWidgets() 163 ReflectionHelpers.setField(widgetInfo, "providerInfo", in initTestWidgets() 164 packageManager.addReceiverIfNotPresent(widgetInfo.provider)); in initTestWidgets() 165 widgetItems.add(new WidgetItem(widgetInfo, mTestProfile, mIconCache)); in initTestWidgets()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/ |
D | WidgetsTableUtils.java | 38 if (item.widgetInfo != null && otherItem.widgetInfo == null) return -1; 40 if (item.widgetInfo == null && otherItem.widgetInfo != null) return 1;
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | AddWidgetTest.java | 53 final LauncherAppWidgetProviderInfo widgetInfo = in testDragIcon() local 59 getWidget(widgetInfo.getLabel(mTargetContext.getPackageManager())). in testDragIcon() 67 widgetInfo.provider.getClassName())).call()); in testDragIcon() 69 final Widget widget = mLauncher.getWorkspace().tryGetWidget(widgetInfo.label, in testDragIcon()
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | WidgetsModel.java | 98 .filter(item -> item.widgetInfo != null) in getAllWidgetsWithoutShortcuts() 126 for (AppWidgetProviderInfo widgetInfo : widgetManager.getAllProviders(packageUser)) { in update() 128 LauncherAppWidgetProviderInfo.fromProviderInfo(context, widgetInfo); in update() 203 items.set(i, new WidgetItem(item.widgetInfo, in onPackageIconsUpdated() 255 if (item.widgetInfo != null) { in test() 256 if ((item.widgetInfo.getWidgetFeatures() & WIDGET_FEATURE_HIDE_FROM_PICKER) != 0) { in test() 262 if (!item.widgetInfo.isMinSizeFulfilled()) { in test()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 250 LauncherAppWidgetProviderInfo widgetInfo = LauncherAppWidgetProviderInfo in setupWidget() local 252 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget() 262 new PendingAddWidgetInfo(widgetInfo, CONTAINER_PIN_WIDGETS); in setupWidget() 263 pendingInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget() 264 pendingInfo.spanY = Math.min(mIdp.numRows, widgetInfo.spanY); in setupWidget() 268 applyWidgetItemAsync(() -> new WidgetItem(widgetInfo, mIdp, mApp.getIconCache())); in setupWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetCell.java | 200 if (ATLEAST_S && mItem.widgetInfo != null) { in applyFromCellItem() 201 CharSequence description = mItem.widgetInfo.loadDescription(context); in applyFromCellItem() 214 setTag(new PendingAddWidgetInfo(item.widgetInfo, mSourceContainer)); in applyFromCellItem() 222 setAppWidgetHostViewPreview(mAppWidgetHostViewPreview, item.widgetInfo, in applyPreviewOnAppWidgetHostView() 237 LauncherAppWidgetProviderInfo.fromProviderInfo(context, item.widgetInfo.clone()); in applyPreviewOnAppWidgetHostView() 241 launcherAppWidgetProviderInfo.initialLayout = item.widgetInfo.previewLayout; in applyPreviewOnAppWidgetHostView()
|
D | DatabaseWidgetPreviewLoader.java | 359 if (item.widgetInfo != null) { in generatePreview() 360 return generateWidgetPreview(launcher, item.widgetInfo, in generatePreview()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/ |
D | WidgetsListHeaderViewHolderBinderTest.java | 171 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 172 widgetInfo.provider = cn; in generateWidgetItems() 173 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 177 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
D | WidgetsListSearchHeaderViewHolderBinderTest.java | 172 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 173 widgetInfo.provider = cn; in generateWidgetItems() 174 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 178 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
D | WidgetsListTableViewHolderBinderTest.java | 170 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 171 widgetInfo.provider = cn; in generateWidgetItems() 172 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 176 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
D | WidgetsListAdapterTest.java | 272 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 273 widgetInfo.provider = cn; in generateWidgetItems() 274 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 278 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
D | WidgetsDiffReporterTest.java | 301 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 302 widgetInfo.provider = cn; in generateWidgetItems() 303 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 307 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/ |
D | SimpleWidgetsSearchAlgorithmTest.java | 202 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in generateWidgetItems() local 203 widgetInfo.provider = cn; in generateWidgetItems() 204 ReflectionHelpers.setField(widgetInfo, "providerInfo", in generateWidgetItems() 208 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), in generateWidgetItems()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/model/ |
D | WidgetsListContentEntryTest.java | 249 AppWidgetProviderInfo widgetInfo = new AppWidgetProviderInfo(); in createWidgetItem() local 250 widgetInfo.provider = componentName; in createWidgetItem() 251 ReflectionHelpers.setField(widgetInfo, "providerInfo", in createWidgetItem() 255 LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo); in createWidgetItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SecondaryDropTarget.java | 252 AppWidgetProviderInfo widgetInfo = hostView.getAppWidgetInfo(); in getReconfigurableWidgetId() local 253 if (widgetInfo == null || widgetInfo.configure == null) { in getReconfigurableWidgetId() 256 if ( (LauncherAppWidgetProviderInfo.fromProviderInfo(getContext(), widgetInfo) in getReconfigurableWidgetId()
|
D | AppWidgetResizeFrame.java | 266 ItemInfo widgetInfo = (ItemInfo) mWidgetView.getTag(); in setupForWidget() local 267 lp.cellX = lp.tmpCellX = widgetInfo.cellX; in setupForWidget() 268 lp.cellY = lp.tmpCellY = widgetInfo.cellY; in setupForWidget() 269 lp.cellHSpan = widgetInfo.spanX; in setupForWidget() 270 lp.cellVSpan = widgetInfo.spanY; in setupForWidget() 281 .withItemInfo(widgetInfo) in setupForWidget()
|
D | Workspace.java | 2626 private Drawable createWidgetDrawable(ItemInfo widgetInfo, View layout) { 2627 int[] unScaledSize = estimateItemSize(widgetInfo); 3240 final AppWidgetProviderInfo widgetInfo; in widgetsRestored() local 3243 widgetInfo = widgetHelper.findProvider(item.providerName, item.user); in widgetsRestored() 3245 widgetInfo = widgetHelper.getLauncherAppWidgetInfo(item.appWidgetId); in widgetsRestored() 3248 if (widgetInfo != null) { in widgetsRestored()
|
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
D | QsbContainerView.java | 204 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb() local 205 boolean isWidgetBound = (widgetInfo != null) && in createQsb() 206 widgetInfo.provider.equals(mWidgetInfo.provider); in createQsb()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | WidgetsPredictionUpdateTask.java | 79 notAddedWidgets.get(0).widgetInfo, in execute() 98 targetWidget).widgetInfo, in execute()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupContainerWithArrow.java | 541 SystemShortcut widgetInfo = SystemShortcut.WIDGETS.getShortcut(mLauncher, itemInfo); 547 if (widgetInfo != null && widgetsView == null) { 555 widgetInfo); 565 } else if (widgetInfo == null && widgetsView != null) {
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/model/ |
D | WidgetsListHeaderEntry.java | 40 widgetsCount = (int) items.stream().filter(item -> item.widgetInfo != null).count(); in WidgetsListHeaderEntry()
|