Home
last modified time | relevance | path

Searched refs:appWidgetManager (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAppWidgetManagerTest.java23 private AppWidgetManager appWidgetManager; field in AppWidgetManagerTest
28 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() local
36 …tSame(AppWidgetManager.getInstance(new ContextWrapper(Robolectric.application)), appWidgetManager); in getInstance_shouldReturnSameInstance() local
73 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 …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAppWidgetManager.java30 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
DShadowApplication.java93 AppWidgetManager appWidgetManager; field in ShadowApplication
473 return appWidgetManager; in getAppWidgetManager()