public void testStartService() throws Exception { Intent i = new Intent(getContext(), RssfeedWidgetService.class); startService(i); RssfeedWidgetService service = getService(); RemoteViewsFactory onGetViewFactory = service.onGetViewFactory(i); assertNotNull(onGetViewFactory); }
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent) { return new RecommendationsViewFactory(this, paramIntent.getIntExtra("appWidgetId", 0), paramIntent.getIntExtra("RecWidget.heightLandscape", 0), paramIntent.getIntExtra("RecWidget.heightPortrait", 0)); }
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent) { return new eaw(getApplicationContext(), paramIntent); }
@Override public RemoteViewsFactory onGetViewFactory(Intent intent) { this.courseCode = intent.getStringExtra(EXTRA_COURSE_CODE); return this; }
@Override public RemoteViewsFactory onGetViewFactory(Intent intent) { return new RssfeedWidgetViewsFactory(getApplicationContext(), intent); }