/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AppWidgetManagerTest.java | 3 import android.appwidget.AppWidgetManager; 23 private AppWidgetManager appWidgetManager; 28 appWidgetManager = AppWidgetManager.getInstance(Robolectric.application); 29 shadowAppWidgetManager = shadowOf(appWidgetManager); 34 assertNotNull(appWidgetManager); 35 assertSame(AppWidgetManager.getInstance(Robolectric.application), appWidgetManager); 36 assertSame(AppWidgetManager.getInstance(new ContextWrapper(Robolectric.application)), appWidgetManager) [all...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalAppWidgetProvider.java | 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) [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetProvider.java | 20 import android.appwidget.AppWidgetManager; 44 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 45 performUpdate(context, appWidgetManager, 46 appWidgetManager.getAppWidgetIds(getComponentName(context))); 53 public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) { 76 AppWidgetManager wm = AppWidgetManager.getInstance(context); 82 AppWidgetManager appWidgetManager, int[] appWidgetIds) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
ExampleAppWidgetProvider.java | 19 import android.appwidget.AppWidgetManager; 52 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 57 // - Tell the AppWidgetManager to show that views object for the widget. 62 updateAppWidget(context, appWidgetManager, appWidgetId, titlePrefix); 102 static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, 118 appWidgetManager.updateAppWidget(appWidgetId, views);
|
ExampleAppWidgetConfigure.java | 20 import android.appwidget.AppWidgetManager; 44 int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; 73 AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); 77 if (mAppWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID) { 94 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 95 ExampleAppWidgetProvider.updateAppWidget(context, appWidgetManager, 100 resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId) [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 25 import android.appwidget.AppWidgetManager; 63 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 64 performUpdate(context, appWidgetManager, 65 appWidgetManager.getAppWidgetIds(getComponentName(context)), 94 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 95 performUpdate(context, appWidgetManager, appWidgetIds, null /* no eventIds */); 120 AppWidgetManager appWidgetManager, int[] appWidgetIds [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetBind.java | 22 import android.appwidget.AppWidgetManager; 51 extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 61 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); 72 appWidgetManager.updateAppWidget(new int[] { appWidgetId }, views);
|
PhotoAppWidgetConfigure.java | 22 import android.appwidget.AppWidgetManager; 45 AppWidgetManager.EXTRA_APPWIDGET_ID, -1); 87 AppWidgetManager appWidgetManager = 88 AppWidgetManager.getInstance(this); 89 appWidgetManager.updateAppWidget(new int[] {mAppWidgetId}, 99 resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId);
|
PhotoAppWidgetProvider.java | 21 import android.appwidget.AppWidgetManager; 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, 56 appWidgetManager.updateAppWidget(specificAppWidget, views);
|
/packages/apps/Mms/src/com/android/mms/widget/ |
MmsWidgetProvider.java | 21 import android.appwidget.AppWidgetManager; 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 46 super.onUpdate(context, appWidgetManager, appWidgetIds); 65 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 66 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, 70 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, 89 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId) [all...] |
/development/samples/StackWidget/src/com/example/android/stackwidget/ |
StackWidgetProvider.java | 20 import android.appwidget.AppWidgetManager; 49 AppWidgetManager mgr = AppWidgetManager.getInstance(context); 51 int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 52 AppWidgetManager.INVALID_APPWIDGET_ID); 60 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 67 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 84 toastIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 90 appWidgetManager.updateAppWidget(appWidgetIds[i], rv) [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 61 if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { 64 int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 70 else if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) { 72 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID)) { 73 final int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 77 else if (AppWidgetManager.ACTION_APPWIDGET_OPTIONS_CHANGED.equals(action)) { 79 if (extras != null && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_ID) 80 && extras.containsKey(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS)) { 81 int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAppWidgetManager.java | 5 import android.appwidget.AppWidgetManager; 25 @Implements(AppWidgetManager.class) 27 private static AppSingletonizer<AppWidgetManager> instances = new AppSingletonizer<AppWidgetManager>(AppWidgetManager.class) { 29 protected AppWidgetManager get(ShadowApplication shadowApplication) { 30 return shadowApplication.appWidgetManager; 34 protected void set(ShadowApplication shadowApplication, AppWidgetManager instance) { 35 shadowApplication.appWidgetManager = instance; 39 protected AppWidgetManager createInstance(Application applicationContext) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 21 import android.appwidget.AppWidgetManager; 54 AppWidgetManager appWidgetManager, int[] appWidgetIds) { 67 appWidgetManager.updateAppWidget(id, views); 75 super.onUpdate(context, appWidgetManager, appWidgetIds); 85 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
WidgetCtsProvider.java | 22 import android.appwidget.AppWidgetManager; 80 int widgetId = (Integer) intent.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, 97 AppWidgetManager mgr = AppWidgetManager.getInstance(ctx); 111 Bundle getAppWidgetOptions(AppWidgetManager mgr, int widgetId) { 146 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 152 updateWidget(context, appWidgetIds[i], appWidgetManager, null); 157 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, [all...] |
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
WeatherWidgetProvider.java | 20 import android.appwidget.AppWidgetManager; 43 private AppWidgetManager mAppWidgetManager; 46 WeatherDataProviderObserver(AppWidgetManager mgr, ComponentName cn, Handler h) { 95 final AppWidgetManager mgr = AppWidgetManager.getInstance(context); 132 final AppWidgetManager mgr = AppWidgetManager.getInstance(context); 138 final int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 139 AppWidgetManager.INVALID_APPWIDGET_ID); 142 final int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID [all...] |
/packages/apps/Settings/src/com/android/settings/ |
AppWidgetLoader.java | 19 import android.appwidget.AppWidgetManager; 38 private AppWidgetManager mAppWidgetManager; 45 public AppWidgetLoader(Context context, AppWidgetManager appWidgetManager, 48 mAppWidgetManager = appWidgetManager; 54 * {@link AppWidgetManager#EXTRA_CUSTOM_INFO}. 61 customInfo = intent.getParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_INFO); 77 customExtras = intent.getParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_EXTRAS); 142 * {@link AppWidgetManager#EXTRA_CUSTOM_INFO}, sorting them alphabetically. 146 intent.getBooleanExtra(AppWidgetManager.EXTRA_CUSTOM_SORT, true) [all...] |
/development/apps/BuildWidget/src/com/android/buildwidget/ |
BuildWidget.java | 21 import android.appwidget.AppWidgetManager; 43 public void onUpdate(Context context, AppWidgetManager appWidgetManager, 57 AppWidgetManager manager = AppWidgetManager.getInstance(this);
|
/packages/apps/Music/src/com/android/music/ |
MediaAppWidgetProvider.java | 20 import android.appwidget.AppWidgetManager; 49 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 57 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds); 79 final AppWidgetManager gm = AppWidgetManager.getInstance(context); 88 * Check against {@link AppWidgetManager} if there are any instances of this widget. 91 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SearchWidgetProvider.java | 27 import android.appwidget.AppWidgetManager; 66 if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) { 68 } else if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { 76 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 77 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(myComponentName(context)); 94 state.updateWidget(context, AppWidgetManager.getInstance(context)); 161 public void updateWidget(Context context,AppWidgetManager appWidgetMgr) {
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
WordWidget.java | 24 import android.appwidget.AppWidgetManager; 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 58 AppWidgetManager manager = AppWidgetManager.getInstance(this);
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
WordWidget.java | 24 import android.appwidget.AppWidgetManager; 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, 59 AppWidgetManager manager = AppWidgetManager.getInstance(this);
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
BaseWidgetProvider.java | 20 import android.appwidget.AppWidgetManager; 91 final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 93 return appWidgetManager.getAppWidgetIds(mailComponent); 179 AppWidgetManager.getInstance(context).notifyAppWidgetViewDataChanged(widgets, 189 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 192 super.onUpdate(context, appWidgetManager, appWidgetIds); 337 configureIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId) [all...] |
WidgetService.java | 19 import android.appwidget.AppWidgetManager; 126 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); 232 AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); 349 // AppWidgetManager#notifyAppWidgetViewDataChanged() is called 531 final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(mContext); 558 appWidgetManager.updateAppWidget(mAppWidgetId, remoteViews); 588 appWidgetManager.partiallyUpdateAppWidget(mAppWidgetId, remoteViews) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 21 import android.appwidget.AppWidgetManager; 707 final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(mContext); 757 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, [all...] |