Searched refs:appWidgetManager (Results 1 – 3 of 3) sorted by relevance
23 private AppWidgetManager appWidgetManager; field in AppWidgetManagerTest28 appWidgetManager = AppWidgetManager.getInstance(Robolectric.application); in setUp()29 shadowAppWidgetManager = shadowOf(appWidgetManager); in setUp()34 assertNotNull(appWidgetManager); in getInstance_shouldReturnSameInstance()35 assertSame(AppWidgetManager.getInstance(Robolectric.application), appWidgetManager); in getInstance_shouldReturnSameInstance() local36 …tSame(AppWidgetManager.getInstance(new ContextWrapper(Robolectric.application)), appWidgetManager); in getInstance_shouldReturnSameInstance() local73 appWidgetManager.updateAppWidget(widgetId, new RemoteViews("whatevs", R.layout.main)); in shouldReplaceLayoutIfAndOnlyIfLayoutIdIsDifferent()76 appWidgetManager.updateAppWidget(widgetId, new RemoteViews("whatevs", R.layout.media)); in shouldReplaceLayoutIfAndOnlyIfLayoutIdIsDifferent()87 int[] appWidgetIds = appWidgetManager.getAppWidgetIds( in getAppWidgetIds()102 …@Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidget… in onUpdate() argument[all …]
30 return shadowApplication.appWidgetManager;35 shadowApplication.appWidgetManager = instance;40 AppWidgetManager appWidgetManager = super.createInstance(applicationContext);41 shadowOf(appWidgetManager).context = applicationContext;42 return appWidgetManager;54 private static void bind(AppWidgetManager appWidgetManager, Context context) { in bind() argument
93 AppWidgetManager appWidgetManager; field in ShadowApplication473 return appWidgetManager; in getAppWidgetManager()