Lines Matching refs:views

68 …     final RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.album_appwidget);  in defaultAppWidget()  local
70 views.setViewVisibility(R.id.title, View.GONE); in defaultAppWidget()
71 views.setTextViewText(R.id.artist, res.getText(R.string.widget_initial_text)); in defaultAppWidget()
73 linkButtons(context, views, false /* not playing */); in defaultAppWidget()
74 pushUpdate(context, appWidgetIds, views); in defaultAppWidget()
77 private void pushUpdate(Context context, int[] appWidgetIds, RemoteViews views) { in pushUpdate() argument
81 gm.updateAppWidget(appWidgetIds, views); in pushUpdate()
83 gm.updateAppWidget(new ComponentName(context, this.getClass()), views); in pushUpdate()
114 … final RemoteViews views = new RemoteViews(service.getPackageName(), R.layout.album_appwidget); in performUpdate() local
141 views.setViewVisibility(R.id.title, View.GONE); in performUpdate()
142 views.setTextViewText(R.id.artist, errorState); in performUpdate()
146 views.setViewVisibility(R.id.title, View.VISIBLE); in performUpdate()
147 views.setTextViewText(R.id.title, titleName); in performUpdate()
148 views.setTextViewText(R.id.artist, artistName); in performUpdate()
154 views.setImageViewResource(R.id.control_play, R.drawable.ic_appwidget_music_pause); in performUpdate()
156 views.setImageViewResource(R.id.control_play, R.drawable.ic_appwidget_music_play); in performUpdate()
160 linkButtons(service, views, playing); in performUpdate()
162 pushUpdate(service, appWidgetIds, views); in performUpdate()
172 private void linkButtons(Context context, RemoteViews views, boolean playerActive) { in linkButtons() argument
183 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent); in linkButtons()
188 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent); in linkButtons()
195 views.setOnClickPendingIntent(R.id.control_play, pendingIntent); in linkButtons()
201 views.setOnClickPendingIntent(R.id.control_next, pendingIntent); in linkButtons()