Lines Matching refs:appWidgetManager
21 import android.appwidget.AppWidgetManager;
56 // Lazily creating this name to use with the AppWidgetManager
87 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
88 if (appWidgetManager != null) {
89 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(getComponentName(context));
91 appWidgetManager.
100 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget);
110 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
111 if (appWidgetManager != null) {
112 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(getComponentName(context));
117 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget);
122 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
123 if (appWidgetManager != null) {
124 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(getComponentName(context));
126 appWidgetManager.
135 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
141 updateClock(context, appWidgetManager, appWidgetId, ratio);
144 super.onUpdate(context, appWidgetManager, appWidgetIds);
148 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager,
152 AppWidgetManager widgetManager = AppWidgetManager.getInstance(context);
157 Context context, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) {
161 Bundle newOptions = appWidgetManager.getAppWidgetOptions(appWidgetId);
163 newOptions.getInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, -1)
183 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
194 appWidgetManager.notifyAppWidgetViewDataChanged(
196 appWidgetManager.updateAppWidget(appWidgetId, widget);