Lines Matching defs:appWidgetId
611 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
612 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null);
634 int appWidgetId = data != null ?
637 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId);
639 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo);
650 final int appWidgetId;
654 appWidgetId = pendingAddWidgetId;
656 appWidgetId = widgetId;
659 if (appWidgetId < 0) {
660 Log.e(TAG, "Error: appWidgetId (EXTRA_APPWIDGET_ID) was not returned from the \\" +
662 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId);
664 completeTwoStageWidgetDrop(resultCode, appWidgetId);
694 private void completeTwoStageWidgetDrop(final int resultCode, final int appWidgetId) {
703 final AppWidgetHostView layout = mAppWidgetHost.createView(this, appWidgetId,
709 completeAddAppWidget(appWidgetId, mPendingAddInfo.container,
716 mAppWidgetHost.deleteAppWidgetId(appWidgetId);
1189 * @param appWidgetId The app widget id
1192 private void completeAddAppWidget(final int appWidgetId, long container, int screen,
1195 appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
1230 if (appWidgetId != -1) {
1235 mAppWidgetHost.deleteAppWidgetId(appWidgetId);
1244 LauncherAppWidgetInfo launcherInfo = new LauncherAppWidgetInfo(appWidgetId,
1258 launcherInfo.hostView = mAppWidgetHost.createView(this, appWidgetId, appWidgetInfo);
1259 launcherInfo.hostView.setAppWidget(appWidgetId, appWidgetInfo);
1784 void addAppWidgetImpl(final int appWidgetId, ItemInfo info, AppWidgetHostView boundWidget,
1788 mPendingAddWidgetId = appWidgetId;
1791 startAppWidgetConfigureActivitySafely(appWidgetId);
1794 completeAddAppWidget(appWidgetId, info.container, info.screen, boundWidget,
1853 int appWidgetId;
1855 appWidgetId = hostView.getAppWidgetId();
1856 addAppWidgetImpl(appWidgetId, info, hostView, info.info);
1860 appWidgetId = getAppWidgetHost().allocateAppWidgetId();
1862 boolean success = mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,
1865 addAppWidgetImpl(appWidgetId, info, null, info.info);
1869 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
2200 void startAppWidgetConfigureActivitySafely(int appWidgetId) {
2202 mAppWidgetHost.startAppWidgetConfigureActivityForResult(this, appWidgetId, 0,
3552 final int appWidgetId = item.appWidgetId;
3553 final AppWidgetProviderInfo appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
3555 Log.d(TAG, "bindAppWidget: id=" + item.appWidgetId + " belongs to component " + appWidgetInfo.provider);
3558 item.hostView = mAppWidgetHost.createView(this, appWidgetId, appWidgetInfo);
3570 Log.d(TAG, "bound widget id="+item.appWidgetId+" in "