Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java96 for (AppWidgetProviderInfo widgetInfo : widgetManager.getAllProviders(packageUser)) { in update()
98 LauncherAppWidgetProviderInfo.fromProviderInfo(context, widgetInfo); in update()
170 if (item.widgetInfo != null) { in setWidgetsAndShortcuts()
171 if ((item.widgetInfo.getWidgetFeatures() & WIDGET_FEATURE_HIDE_FROM_PICKER) != 0) { in setWidgetsAndShortcuts()
177 int minSpanX = Math.min(item.widgetInfo.spanX, item.widgetInfo.minSpanX); in setWidgetsAndShortcuts()
178 int minSpanY = Math.min(item.widgetInfo.spanY, item.widgetInfo.minSpanY); in setWidgetsAndShortcuts()
233 items.set(i, new WidgetItem(item.widgetInfo, in onPackageIconsUpdated()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java269 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in execute() local
270 if (mUser.equals(widgetInfo.user) in execute()
271 … && widgetInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in execute()
272 && packageSet.contains(widgetInfo.providerName.getPackageName())) { in execute()
273 widgetInfo.restoreStatus &= in execute()
280 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
282 widgets.add(widgetInfo); in execute()
283 getModelWriter().updateItemInDatabase(widgetInfo); in execute()
DWidgetItem.java27 public final LauncherAppWidgetProviderInfo widgetInfo; field in WidgetItem
38 widgetInfo = info; in WidgetItem()
49 widgetInfo = null; in WidgetItem()
DFirstScreenBroadcast.java154 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in getPackageName() local
155 if (widgetInfo.providerName != null) { in getPackageName()
156 packageName = widgetInfo.providerName.getPackageName(); in getPackageName()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java203 LauncherAppWidgetProviderInfo widgetInfo = LauncherAppWidgetProviderInfo in setupWidget() local
205 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
214 PendingAddWidgetInfo pendingInfo = new PendingAddWidgetInfo(widgetInfo); in setupWidget()
215 pendingInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget()
216 pendingInfo.spanY = Math.min(mIdp.numRows, widgetInfo.spanY); in setupWidget()
220 applyWidgetItemAsync(() -> new WidgetItem(widgetInfo, mIdp, mApp.getIconCache())); in setupWidget()
DLivePreviewWidgetCell.java43 mActivity, mPreview, mItem.widgetInfo, mPresetPreviewSize, new int[1]); in ensurePreview()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddWidgetTest.java53 final LauncherAppWidgetProviderInfo widgetInfo = in testDragIcon() local
59 getWidget(widgetInfo.getLabel(mTargetContext.getPackageManager())). in testDragIcon()
65 widgetInfo.provider.getClassName())).call()); in testDragIcon()
67 final Widget widget = mLauncher.getWorkspace().tryGetWidget(widgetInfo.label, in testDragIcon()
/packages/apps/Launcher3/src/com/android/launcher3/
DSecondaryDropTarget.java208 AppWidgetProviderInfo widgetInfo = hostView.getAppWidgetInfo(); in getReconfigurableWidgetId() local
209 if (widgetInfo == null || widgetInfo.configure == null) { in getReconfigurableWidgetId()
212 if ( (LauncherAppWidgetProviderInfo.fromProviderInfo(getContext(), widgetInfo) in getReconfigurableWidgetId()
DInstallShortcutReceiver.java500 LauncherAppWidgetInfo widgetInfo = new LauncherAppWidgetInfo( in getItemInfo() local
504 widgetInfo.minSpanX = info.minSpanX; in getItemInfo()
505 widgetInfo.minSpanY = info.minSpanY; in getItemInfo()
506 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo()
507 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo()
508 return Pair.create(widgetInfo, providerInfo); in getItemInfo()
DLauncher.java655 LauncherAppWidgetInfo widgetInfo = in completeAdd() local
657 if (widgetInfo != null) { in completeAdd()
663 .startConfigActivity(this, widgetInfo, in completeAdd()
1741 final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo; in removeItem() local
1744 getModelWriter().deleteWidgetInfo(widgetInfo, getAppWidgetHost()); in removeItem()
DWidgetPreviewLoader.java294 if (item.widgetInfo != null) { in generatePreview()
295 return generateWidgetPreview(launcher, item.widgetInfo, in generatePreview()
DWorkspace.java2610 public Bitmap createWidgetBitmap(ItemInfo widgetInfo, View layout) {
2611 int[] unScaledSize = estimateItemSize(widgetInfo);
3233 final AppWidgetProviderInfo widgetInfo; in widgetsRestored() local
3235 widgetInfo = AppWidgetManagerCompat in widgetsRestored()
3238 widgetInfo = AppWidgetManagerCompat.getInstance(mLauncher) in widgetsRestored()
3242 if (widgetInfo != null) { in widgetsRestored()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java205 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb() local
206 boolean isWidgetBound = (widgetInfo != null) && in createQsb()
207 widgetInfo.provider.equals(mWidgetInfo.provider); in createQsb()
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java132 for (AppWidgetProviderInfo widgetInfo : widgetManager.getAllProviders(null)) { in generateSampleMap()
134 .fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache); in generateSampleMap()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupContainerWithArrow.java385 SystemShortcut widgetInfo = new SystemShortcut.Widgets(); in onWidgetsBound() local
386 View.OnClickListener onClickListener = widgetInfo.getOnClickListener(mLauncher, itemInfo); in onWidgetsBound()
401 R.layout.system_shortcut_icon_only, mSystemShortcutContainer, widgetInfo); in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java151 setTag(new PendingAddWidgetInfo(item.widgetInfo)); in applyFromCellItem()