code: public static int[] getAppWidgetIds(AppWidgetManager appWidgetManager, Context context, Class<?> clazz) {
          return appWidgetManager.getAppWidgetIds(new ComponentName(context, clazz));
      }
docs: Wrapper method of the {@link android.appwidget.AppWidgetManager#getAppWidgetIds(android.content.ComponentName)}.
  @see android.appwidget.AppWidgetManager#getAppWidgetIds(android.content.ComponentName).