Lines Matching refs:widget
35 import android.widget.RemoteViews;
95 RemoteViews widget = new RemoteViews(context.getPackageName(), in onReceive() local
98 WidgetUtils.setTimeFormat(context, widget, false /* showAmPm */, in onReceive()
100 WidgetUtils.setClockSize(context, widget, ratio); in onReceive()
101 refreshAlarm(context, widget, ratio); in onReceive()
102 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget); in onReceive()
161 RemoteViews widget = new RemoteViews(context.getPackageName(), R.layout.digital_appwidget); in updateClock() local
171 widget.setOnClickPendingIntent(R.id.digital_appwidget, pendingIntent); in updateClock()
175 refreshDate(context, widget, ratio); in updateClock()
176 refreshAlarm(context, widget, ratio); in updateClock()
177 WidgetUtils.setTimeFormat(context, widget, false /* showAmPm */, R.id.the_clock); in updateClock()
178 WidgetUtils.setClockSize(context, widget, ratio); in updateClock()
185 widget.setRemoteAdapter(R.id.digital_appwidget_listview, intent); in updateClock()
190 widget.setPendingIntentTemplate(R.id.digital_appwidget_listview, in updateClock()
196 appWidgetManager.updateAppWidget(appWidgetId, widget); in updateClock()
199 private void refreshDate(Context context, RemoteViews widget, float ratio) { in refreshDate() argument
206 widget.setViewPadding(R.id.date_and_alarm, 0, (int) padding, 0, 0); in refreshDate()
213 widget.setCharSequence(R.id.date, "setFormat12Hour", timeFormat); in refreshDate()
214 widget.setCharSequence(R.id.date, "setFormat24Hour", timeFormat); in refreshDate()
216 widget.setTextViewTextSize(R.id.date, TypedValue.COMPLEX_UNIT_PX, fontSize * ratio); in refreshDate()
219 protected void refreshAlarm(Context context, RemoteViews widget, float ratio) { in refreshAlarm() argument
224 widget.setTextViewTextSize( in refreshAlarm()
237 widget.setTextViewCompoundDrawablesRelative( in refreshAlarm()
240 widget.setTextViewText(R.id.nextAlarm, nextAlarm); in refreshAlarm()
241 widget.setViewVisibility(R.id.nextAlarm, View.VISIBLE); in refreshAlarm()
246 widget.setViewVisibility(R.id.nextAlarm, View.GONE); in refreshAlarm()