Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DInstallWidgetReceiver.java63 public AppWidgetProviderInfo widgetInfo; field in InstallWidgetReceiver.WidgetMimeTypeHandlerData
67 widgetInfo = wInfo; in WidgetMimeTypeHandlerData()
142 final AppWidgetProviderInfo widgetInfo = data.widgetInfo; in getView() local
152 mTargetLayout.rectToCell(widgetInfo.minWidth, widgetInfo.minHeight, widgetSpan); in getView()
187 final AppWidgetProviderInfo widgetInfo = mActivities.get(which).widgetInfo; in onClick() local
189 final PendingAddWidgetInfo createInfo = new PendingAddWidgetInfo(widgetInfo, mMimeType, in onClick()
DWorkspace.java3183 public Bitmap createWidgetBitmap(ItemInfo widgetInfo, View layout) {
3184 int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(widgetInfo.spanX,
3185 widgetInfo.spanY, widgetInfo, false);
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsModel.java74 for (AppWidgetProviderInfo widgetInfo : widgetManager.getAllProviders(packageUser)) { in update()
76 .fromProviderInfo(context, widgetInfo), pm, idp)); in update()
141 if (item.widgetInfo != null) { in setWidgetsAndShortcuts()
143 int minSpanX = Math.min(item.widgetInfo.spanX, item.widgetInfo.minSpanX); in setWidgetsAndShortcuts()
144 int minSpanY = Math.min(item.widgetInfo.spanY, item.widgetInfo.minSpanY); in setWidgetsAndShortcuts()
DPackageUpdatedTask.java277 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in execute() local
278 if (mUser.equals(widgetInfo.user) in execute()
279 … && widgetInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in execute()
280 && packageSet.contains(widgetInfo.providerName.getPackageName())) { in execute()
281 widgetInfo.restoreStatus &= in execute()
288 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
290 widgets.add(widgetInfo); in execute()
291 getModelWriter().updateItemInDatabase(widgetInfo); in execute()
DWidgetItem.java26 public final LauncherAppWidgetProviderInfo widgetInfo; field in WidgetItem
37 widgetInfo = info; in WidgetItem()
47 widgetInfo = null; in WidgetItem()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java194 LauncherAppWidgetProviderInfo widgetInfo = LauncherAppWidgetProviderInfo in setupWidget() local
196 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
205 mPendingWidgetInfo = new PendingAddWidgetInfo(widgetInfo); in setupWidget()
206 mPendingWidgetInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget()
207 mPendingWidgetInfo.spanY = Math.min(mIdp.numRows, widgetInfo.spanY); in setupWidget()
210 WidgetItem item = new WidgetItem(widgetInfo, getPackageManager(), mIdp); in setupWidget()
DLivePreviewWidgetCell.java44 mActivity, mPreview, mItem.widgetInfo, mPresetPreviewSize, new int[1]); in ensurePreview()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddWidgetTest.java39 private LauncherAppWidgetProviderInfo widgetInfo; field in AddWidgetTest
46 widgetInfo = findWidgetProvider(false /* hasConfigureScreen */); in setUp()
69 .hasDescendant(By.text(widgetInfo.getLabel(mTargetContext.getPackageManager())))); in performTest()
76 ((LauncherAppWidgetInfo) info).providerName.equals(widgetInfo.provider); in performTest()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java470 LauncherAppWidgetInfo widgetInfo = new LauncherAppWidgetInfo( in getItemInfo() local
474 widgetInfo.minSpanX = info.minSpanX; in getItemInfo()
475 widgetInfo.minSpanY = info.minSpanY; in getItemInfo()
476 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo()
477 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo()
478 return widgetInfo; in getItemInfo()
DLauncher.java685 LauncherAppWidgetInfo widgetInfo = in completeAdd() local
687 if (widgetInfo != null) { in completeAdd()
693 … .startConfigActivity(this, widgetInfo, REQUEST_RECONFIGURE_APPWIDGET); in completeAdd()
2177 final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo; in removeItem() local
2180 deleteWidgetInfo(widgetInfo); in removeItem()
2191 private void deleteWidgetInfo(final LauncherAppWidgetInfo widgetInfo) { in deleteWidgetInfo() argument
2193 … if (appWidgetHost != null && !widgetInfo.isCustomWidget() && widgetInfo.isWidgetIdAllocated()) { in deleteWidgetInfo()
2198 appWidgetHost.deleteAppWidgetId(widgetInfo.appWidgetId); in deleteWidgetInfo()
2203 getModelWriter().deleteItemFromDatabase(widgetInfo); in deleteWidgetInfo()
DWidgetPreviewLoader.java294 if (item.widgetInfo != null) { in generatePreview()
295 return generateWidgetPreview(launcher, item.widgetInfo, in generatePreview()
DWorkspace.java3412 public Bitmap createWidgetBitmap(ItemInfo widgetInfo, View layout) {
3413 int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(widgetInfo, false, true);
4060 final AppWidgetProviderInfo widgetInfo;
4062 widgetInfo = AppWidgetManagerCompat
4065 widgetInfo = AppWidgetManagerCompat.getInstance(mLauncher)
4069 if (widgetInfo != null) {
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java120 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb() local
121 boolean isWidgetBound = (widgetInfo != null) && in createQsb()
122 widgetInfo.provider.equals(mWidgetInfo.provider); in createQsb()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutsItemView.java173 SystemShortcut widgetInfo = new SystemShortcut.Widgets(); in enableWidgetsIfExist() local
174 View.OnClickListener onClickListener = widgetInfo.getOnClickListener(mLauncher, itemInfo); in enableWidgetsIfExist()
188 PopupPopulator.initializeSystemShortcut(getContext(), widgetsView, widgetInfo); in enableWidgetsIfExist() local
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DBaseWidgetProvider.java102 final String[][] widgetInfo = new String[widgetIds.length][2]; in getWidgetInfo() local
110 widgetInfo[i] = TextUtils.split(accountFolder, ACCOUNT_FOLDER_PREFERENCE_SEPARATOR); in getWidgetInfo()
113 return widgetInfo; in getWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java145 setTag(new PendingAddWidgetInfo(item.widgetInfo)); in applyFromCellItem()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java6153 for (String[] widgetInfo: widgetInfos) { in notifyWidgets()
6155 if (widgetInfo == null || TextUtils.isEmpty(widgetInfo[1])) continue; in notifyWidgets()
6156 long id = Long.parseLong(Uri.parse(widgetInfo[1]).getLastPathSegment()); in notifyWidgets()