Home
last modified time | relevance | path

Searched refs:views (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java202 RemoteViews views = new RemoteViews(mContext.getPackageName(),
204 return views;
215 RemoteViews views = new RemoteViews(mContext.getPackageName(),
219 views.setOnClickFillInIntent(R.id.appwidget_loading, intent);
220 return views;
224 RemoteViews views = new RemoteViews(mContext.getPackageName(),
228 views.setOnClickFillInIntent(R.id.appwidget_no_events, intent);
229 return views;
234 RemoteViews views = new RemoteViews(mContext.getPackageName(),
237 updateTextView(views, R.id.date, View.VISIBLE, dayInfo.mDayLabel);
[all …]
DCalendarAppWidgetProvider.java132 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget); in performUpdate() local
142 views.setTextViewText(R.id.day_of_week, dayOfWeek); in performUpdate()
143 views.setTextViewText(R.id.date, date); in performUpdate()
145 views.setRemoteAdapter(appWidgetId, R.id.events_list, updateIntent); in performUpdate()
156 views.setOnClickPendingIntent(R.id.header, launchCalendarPendingIntent); in performUpdate()
162 views.setPendingIntentTemplate(R.id.events_list, updateEventIntent); in performUpdate()
164 appWidgetManager.updateAppWidget(appWidgetId, views); in performUpdate()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java199 public final void setImageViewResources(Context context, RemoteViews views) { in setImageViewResources() argument
206 views.setContentDescription(containerId, in setImageViewResources()
208 views.setImageViewResource(buttonId, getButtonImageId(false)); in setImageViewResources()
209 views.setImageViewResource( in setImageViewResources()
213 views.setContentDescription(containerId, in setImageViewResources()
215 views.setImageViewResource(buttonId, getButtonImageId(true)); in setImageViewResources()
216 views.setImageViewResource( in setImageViewResources()
226 views.setContentDescription(containerId, in setImageViewResources()
228 views.setImageViewResource(buttonId, getButtonImageId(true)); in setImageViewResources()
229 views.setImageViewResource( in setImageViewResources()
[all …]
/packages/apps/Music/src/com/android/music/
DMediaAppWidgetProvider.java68 … 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()
[all …]
DMediaPlaybackService.java1191 RemoteViews views = new RemoteViews(getPackageName(), R.layout.statusbar); in updateNotification() local
1192 views.setImageViewResource(R.id.icon, R.drawable.stat_notify_musicplayer); in updateNotification()
1195 views.setTextViewText(R.id.trackname, getPath()); in updateNotification()
1196 views.setTextViewText(R.id.artistalbum, null); in updateNotification()
1199 views.setTextViewText(R.id.trackname, getTrackName()); in updateNotification()
1208 views.setTextViewText(R.id.artistalbum, in updateNotification()
1213 status.contentView = views; in updateNotification()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DPhoneCallDetailsHelper.java78 public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details) { in setPhoneCallDetails() argument
80 views.callTypeIcons.clear(); in setPhoneCallDetails()
84 views.callTypeIcons.add(details.callTypes[index]); in setPhoneCallDetails()
91 views.callTypeIcons.setShowVideo( in setPhoneCallDetails()
93 views.callTypeIcons.requestLayout(); in setPhoneCallDetails()
94 views.callTypeIcons.setVisibility(View.VISIBLE); in setPhoneCallDetails()
107 setCallCountAndDate(views, callCount, callLocationAndDate); in setPhoneCallDetails()
113 views.callAccountLabel.setVisibility(View.VISIBLE); in setPhoneCallDetails()
114 views.callAccountLabel.setText(accountLabel); in setPhoneCallDetails()
118 views.callAccountLabel.setTextColor(mContext.getResources().getColor(defaultColor)); in setPhoneCallDetails()
[all …]
DCallLogAdapter.java526 CallLogListItemViewHolder views = (CallLogListItemViewHolder) viewHolder; in bindCallLogListViewHolder() local
527 views.info = info; in bindCallLogListViewHolder()
528 views.rowId = c.getLong(CallLogQuery.ID); in bindCallLogListViewHolder()
530 views.number = number; in bindCallLogListViewHolder()
531 views.displayNumber = details.displayNumber; in bindCallLogListViewHolder()
532 views.numberPresentation = numberPresentation; in bindCallLogListViewHolder()
533 views.callType = c.getInt(CallLogQuery.CALL_TYPE); in bindCallLogListViewHolder()
534 views.accountHandle = accountHandle; in bindCallLogListViewHolder()
535 views.voicemailUri = c.getString(CallLogQuery.VOICEMAIL_URI); in bindCallLogListViewHolder()
537 views.callIds = getCallIds(c, count); in bindCallLogListViewHolder()
[all …]
DCallLogListItemHelper.java64 CallLogListItemViewHolder views, in setPhoneCallDetails() argument
66 mPhoneCallDetailsHelper.setPhoneCallDetails(views.phoneCallDetailsViews, details); in setPhoneCallDetails()
69 views.quickContactView.setContentDescription(getContactBadgeDescription(details)); in setPhoneCallDetails()
72 views.primaryActionView.setContentDescription(getCallDescription(details)); in setPhoneCallDetails()
76 views.nameOrNumber = getNameOrNumber(details); in setPhoneCallDetails()
84 public void setActionContentDescriptions(CallLogListItemViewHolder views) { in setActionContentDescriptions() argument
85 if (views.nameOrNumber == null) { in setActionContentDescriptions()
91 CharSequence nameOrNumber = views.nameOrNumber == null ? "" : views.nameOrNumber; in setActionContentDescriptions()
93 views.videoCallButtonView.setContentDescription( in setActionContentDescriptions()
98 views.createNewContactButtonView.setContentDescription( in setActionContentDescriptions()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactFragment.java668 ViewCache views; in getView() local
673 views = (ViewCache) v.getTag(); in getView()
679 views = new ViewCache(); in getView()
680 views.label = (TextView) v.findViewById(android.R.id.text1); in getView()
681 views.data = (TextView) v.findViewById(android.R.id.text2); in getView()
682 views.footer = (TextView) v.findViewById(R.id.footer); in getView()
683 views.actionIcon = (ImageView) v.findViewById(R.id.action_icon); in getView()
684 views.primaryIcon = (ImageView) v.findViewById(R.id.primary_icon); in getView()
685 views.presenceIcon = (ImageView) v.findViewById(R.id.presence_icon); in getView()
686 views.secondaryActionButton = (ImageView) v.findViewById( in getView()
[all …]
/packages/apps/Browser/src/com/android/browser/widget/
DBookmarkThumbnailWidgetService.java226 RemoteViews views; in getViewAt() local
229 views = new RemoteViews(mContext.getPackageName(), in getViewAt()
232 views = new RemoteViews(mContext.getPackageName(), in getViewAt()
241 views.setTextViewText(R.id.label, displayTitle); in getViewAt()
245views.setImageViewResource(R.id.thumb, R.drawable.thumb_bookmark_widget_folder_back_holo); in getViewAt()
247views.setImageViewResource(R.id.thumb, R.drawable.thumb_bookmark_widget_folder_holo); in getViewAt()
249views.setImageViewResource(R.id.favicon, R.drawable.ic_bookmark_widget_bookmark_holo_dark); in getViewAt()
250 views.setDrawableParameters(R.id.thumb, true, 0, -1, null, -1); in getViewAt()
257 views.setDrawableParameters(R.id.thumb, true, 255, -1, null, -1); in getViewAt()
261 views.setImageViewBitmap(R.id.thumb, thumbnail); in getViewAt()
[all …]
DBookmarkThumbnailWidgetProvider.java91 RemoteViews views = new RemoteViews(context.getPackageName(), in performUpdate() local
93 views.setOnClickPendingIntent(R.id.app_shortcut, launchBrowser); in performUpdate()
94 views.setRemoteAdapter(R.id.bookmarks_list, updateIntent); in performUpdate()
97 views.setPendingIntentTemplate(R.id.bookmarks_list, in performUpdate()
100 appWidgetManager.updateAppWidget(appWidgetId, views); in performUpdate()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DPhotoAppWidgetProvider.java66 RemoteViews views = buildWidget(context, id, entry); in onUpdate() local
67 appWidgetManager.updateAppWidget(id, views); in onUpdate()
81 RemoteViews views = new RemoteViews( in buildStackWidget() local
92 views.setRemoteAdapter(widgetId, R.id.appwidget_stack_view, intent); in buildStackWidget()
94 views.setEmptyView(R.id.appwidget_stack_view, R.id.appwidget_empty_view); in buildStackWidget()
99 views.setPendingIntentTemplate(R.id.appwidget_stack_view, pendingIntent); in buildStackWidget()
101 return views; in buildStackWidget()
105 RemoteViews views = new RemoteViews( in buildFrameWidget() local
110 views.setImageViewBitmap(R.id.photo, bitmap); in buildFrameWidget()
122 views.setOnClickPendingIntent(R.id.photo, pendingClickIntent); in buildFrameWidget()
[all …]
DWidgetService.java121 RemoteViews views = new RemoteViews( in getViewAt()
124 views.setImageViewBitmap(R.id.appwidget_photo_item, bitmap); in getViewAt()
125 views.setOnClickFillInIntent(R.id.appwidget_photo_item, new Intent() in getViewAt()
128 return views; in getViewAt()
/packages/apps/Launcher2/src/com/android/launcher2/
DFocusHelper.java572 ArrayList<View> views = new ArrayList<View>(); in getCellLayoutChildrenSortedSpatially() local
574 views.add(parent.getChildAt(j)); in getCellLayoutChildrenSortedSpatially()
576 Collections.sort(views, new Comparator<View>() { in getCellLayoutChildrenSortedSpatially()
586 return views; in getCellLayoutChildrenSortedSpatially()
594 private static View findIndexOfIcon(ArrayList<View> views, int i, int delta) { in findIndexOfIcon() argument
596 final int count = views.size(); in findIndexOfIcon()
599 View newV = views.get(newI); in findIndexOfIcon()
609 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent); in getIconInDirection() local
610 return findIndexOfIcon(views, i, delta); in getIconInDirection()
614 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent); in getIconInDirection() local
[all …]
DCellLayout.java1600 ArrayList<View> views; field in CellLayout.ViewCluster
1611 public ViewCluster(ArrayList<View> views, ItemConfiguration config) { in ViewCluster() argument
1612 this.views = (ArrayList<View>) views.clone(); in ViewCluster()
1634 int count = views.size(); in computeEdge()
1636 CellAndSpan cs = config.map.get(views.get(i)); in computeEdge()
1713 for (View v: views) { in shift()
1735 views.add(v); in addView()
1742 for (View v: views) { in getBoundingRect()
1823 private boolean pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, in pushViewsToTempLocation() argument
1826 ViewCluster cluster = new ViewCluster(views, currentState); in pushViewsToTempLocation()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchWidgetProvider.java163 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.search_widget); in updateWidget() local
165 setOnClickActivityIntent(context, views, R.id.search_widget_text, in updateWidget()
169 setOnClickActivityIntent(context, views, R.id.search_widget_voice_btn, in updateWidget()
171 views.setViewVisibility(R.id.search_widget_voice_btn, View.VISIBLE); in updateWidget()
173 views.setViewVisibility(R.id.search_widget_voice_btn, View.GONE); in updateWidget()
176 appWidgetMgr.updateAppWidget(mAppWidgetId, views); in updateWidget()
179 private void setOnClickActivityIntent(Context context, RemoteViews views, int viewId, in setOnClickActivityIntent() argument
182 views.setOnClickPendingIntent(viewId, pendingIntent); in setOnClickActivityIntent()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetProvider.java51 RemoteViews views = buildUpdate(context, appWidgetId, helper); in onUpdate() local
53 Log.d(TAG, "sending out views=" + views in onUpdate()
56 appWidgetManager.updateAppWidget(specificAppWidget, views); in onUpdate()
76 RemoteViews views = null; in buildUpdate() local
79 views = new RemoteViews(context.getPackageName(), in buildUpdate()
81 views.setImageViewBitmap(R.id.photo, bitmap); in buildUpdate()
83 return views; in buildUpdate()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalWidgetViewsFactory.java68 RemoteViews views = new RemoteViews( in getViewAt() local
72 updateView(views, (CityObj) mCitiesList[index], R.id.left_clock, in getViewAt()
78 updateView(views, (CityObj) mCitiesList[index + 1], R.id.right_clock, in getViewAt()
81 hideView(views, R.id.right_clock, R.id.city_name_right, in getViewAt()
88 views.setViewVisibility(R.id.city_spacer, View.GONE); in getViewAt()
90 views.setViewVisibility(R.id.city_spacer, View.VISIBLE); in getViewAt()
93 return views; in getViewAt()
DAnalogAppWidgetProvider.java40 RemoteViews views = new RemoteViews(context.getPackageName(), in onReceive() local
43 views.setOnClickPendingIntent(R.id.analog_appwidget, in onReceive()
51 gm.updateAppWidget(appWidgetIds, views); in onReceive()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java637 final ArrayList<View> views = new ArrayList<View>(); in showCertDialog() local
639 addCertChain(certHolder, views, titles); in showCertDialog()
651 for(int i = 0; i < views.size(); i++) { in showCertDialog()
652 views.get(i).setVisibility(i == position ? View.VISIBLE : View.GONE); in showCertDialog()
662 for (int i = 0; i < views.size(); ++i) { in showCertDialog()
663 View certificateView = views.get(i); in showCertDialog()
714 final ArrayList<View> views, final ArrayList<String> titles) { in addCertChain() argument
735 addCertDetails(certificate, views, titles); in addCertChain()
739 private void addCertDetails(X509Certificate certificate, final ArrayList<View> views, in addCertDetails() argument
742 views.add(sslCert.inflateCertificateView(getActivity())); in addCertDetails()
/packages/apps/Dialer/tests/src/com/android/dialer/voicemail/
DVoicemailPlaybackTest.java209 List<TextView> views = mTestUtils.getTextViewsWithString(mLayout, text); in assertHasOneTextViewContaining() local
211 + views, 1, views.size()); in assertHasOneTextViewContaining()
216 List<TextView> views = mTestUtils.getTextViewsWithString(mLayout, text); in assertHasZeroTextViewsContaining() local
218 + views, 0, views.size()); in assertHasZeroTextViewsContaining()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1380 ArrayList<View> views; field in CellLayout.ViewCluster
1391 public ViewCluster(ArrayList<View> views, ItemConfiguration config) { in ViewCluster() argument
1392 this.views = (ArrayList<View>) views.clone(); in ViewCluster()
1414 int count = views.size(); in computeEdge()
1416 CellAndSpan cs = config.map.get(views.get(i)); in computeEdge()
1493 for (View v: views) { in shift()
1515 views.add(v); in addView()
1522 for (View v: views) { in getBoundingRect()
1603 private boolean pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, in pushViewsToTempLocation() argument
1606 ViewCluster cluster = new ViewCluster(views, currentState); in pushViewsToTempLocation()
[all …]
DFolder.java832 ArrayList<View> views = getItemsInReadingOrder(); in onDropCompleted() local
833 views.add(info.rank, icon); in onDropCompleted()
834 mContent.arrangeChildren(views, views.size()); in onDropCompleted()
1071 ArrayList<View> views = getItemsInReadingOrder(); in rearrangeChildren() local
1072 mContent.arrangeChildren(views, Math.max(itemCount, views.size())); in rearrangeChildren()
DFolderPagedView.java177 ArrayList<View> views = new ArrayList<View>(mFolder.getItemsInReadingOrder()); in allocateRankForNewItem() local
178 views.add(rank, null); in allocateRankForNewItem()
179 arrangeChildren(views, views.size(), false); in allocateRankForNewItem()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorAnimator.java214 private static void translateViews(List<Animator> animators, List<View> views, float fromY, in translateViews() argument
216 for (int i = 0; i < views.size(); i++) { in translateViews()
217 final View child = views.get(i); in translateViews()

123