Home
last modified time | relevance | path

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

123

/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 …]
/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/Dialer/src/com/android/dialer/calllog/
DPhoneCallDetailsHelper.java88 public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details) { in setPhoneCallDetails() argument
90 views.callTypeIcons.clear(); in setPhoneCallDetails()
94 views.callTypeIcons.add(details.callTypes[index]); in setPhoneCallDetails()
101 views.callTypeIcons.setShowVideo( in setPhoneCallDetails()
103 views.callTypeIcons.requestLayout(); in setPhoneCallDetails()
104 views.callTypeIcons.setVisibility(View.VISIBLE); in setPhoneCallDetails()
115 setDetailText(views, callCount, details); in setPhoneCallDetails()
129 views.callAccountLabel.setVisibility(View.VISIBLE); in setPhoneCallDetails()
130 views.callAccountLabel.setText(accountLabel); in setPhoneCallDetails()
134 views.callAccountLabel.setTextColor(mContext.getResources().getColor(defaultColor)); in setPhoneCallDetails()
[all …]
DCallLogListItemHelper.java65 CallLogListItemViewHolder views, in setPhoneCallDetails() argument
67 mPhoneCallDetailsHelper.setPhoneCallDetails(views.phoneCallDetailsViews, details); in setPhoneCallDetails()
70 views.quickContactView.setContentDescription(getContactBadgeDescription(details)); in setPhoneCallDetails()
73 views.primaryActionView.setContentDescription(getCallDescription(details)); in setPhoneCallDetails()
77 views.nameOrNumber = getNameOrNumber(details); in setPhoneCallDetails()
81 views.callTypeOrLocation = mPhoneCallDetailsHelper.getCallTypeOrLocation(details); in setPhoneCallDetails()
84 views.countryIso = details.countryIso; in setPhoneCallDetails()
92 public void setActionContentDescriptions(CallLogListItemViewHolder views) { in setActionContentDescriptions() argument
93 if (views.nameOrNumber == null) { in setActionContentDescriptions()
99 CharSequence nameOrNumber = views.nameOrNumber == null ? "" : views.nameOrNumber; in setActionContentDescriptions()
[all …]
DCallLogAdapter.java550 final CallLogListItemViewHolder views = (CallLogListItemViewHolder) viewHolder; in bindCallLogListViewHolder() local
551 views.info = info; in bindCallLogListViewHolder()
552 views.rowId = c.getLong(CallLogQuery.ID); in bindCallLogListViewHolder()
554 views.number = number; in bindCallLogListViewHolder()
555 views.postDialDigits = details.postDialDigits; in bindCallLogListViewHolder()
556 views.displayNumber = details.displayNumber; in bindCallLogListViewHolder()
557 views.numberPresentation = numberPresentation; in bindCallLogListViewHolder()
559 views.accountHandle = accountHandle; in bindCallLogListViewHolder()
561 views.callIds = getCallIds(c, count); in bindCallLogListViewHolder()
562 views.isBusiness = mContactInfoHelper.isBusiness(info.sourceType); in bindCallLogListViewHolder()
[all …]
/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/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/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/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()
DPhotoAppWidgetBind.java69 RemoteViews views = in onCreate() local
72 appWidgetManager.updateAppWidget(new int[] { appWidgetId }, views); in onCreate()
DPhotoAppWidgetConfigure.java85 RemoteViews views = PhotoAppWidgetProvider.buildUpdate(this, in onActivityResult() local
90 views); in onActivityResult()
/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/DeskClock/src/com/android/alarmclock/
DAnalogAppWidgetProvider.java40 final RemoteViews views = new RemoteViews(packageName, R.layout.analog_appwidget); in onReceive() local
45 views.setOnClickPendingIntent(R.id.analog_appwidget, pendingIntent); in onReceive()
48 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetIds, views); in onReceive()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java273 final ArrayList<View> views = new ArrayList<View>(); in getCertLayout() local
279 views.add(sslCert.inflateCertificateView(mActivity)); in getCertLayout()
294 for (int i = 0; i < views.size(); i++) { in getCertLayout()
295 views.get(i).setVisibility(i == position ? View.VISIBLE : View.GONE); in getCertLayout()
307 for (int i = 0; i < views.size(); ++i) { in getCertLayout()
308 View certificateView = views.get(i); in getCertLayout()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1432 ArrayList<View> views; field in CellLayout.ViewCluster
1443 public ViewCluster(ArrayList<View> views, ItemConfiguration config) { in ViewCluster() argument
1444 this.views = (ArrayList<View>) views.clone(); in ViewCluster()
1466 int count = views.size(); in computeEdge()
1468 CellAndSpan cs = config.map.get(views.get(i)); in computeEdge()
1545 for (View v: views) { in shift()
1567 views.add(v); in addView()
1574 for (View v: views) { in getBoundingRect()
1655 private boolean pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, in pushViewsToTempLocation() argument
1658 ViewCluster cluster = new ViewCluster(views, currentState); in pushViewsToTempLocation()
[all …]
DFolder.java871 ArrayList<View> views = getItemsInReadingOrder(); in onDropCompleted() local
872 views.add(info.rank, icon); in onDropCompleted()
873 mContent.arrangeChildren(views, views.size()); in onDropCompleted()
1109 ArrayList<View> views = getItemsInReadingOrder(); in rearrangeChildren() local
1110 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/UnifiedEmail/src/com/android/mail/browse/
DConversationOverlayItem.java199 public void registerOnKeyListeners(View... views) { in registerOnKeyListeners() argument
202 for (View v : views) { in registerOnKeyListeners()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DEditorPlaceHolder.java64 public void setOldViews(Vector<ImageShow> views) { in setOldViews() argument
65 mOldViews = views; in setOldViews()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorAnimator.java202 private static void translateViews(List<Animator> animators, List<View> views, float fromY, in translateViews() argument
204 for (int i = 0; i < views.size(); i++) { in translateViews()
205 final View child = views.get(i); in translateViews()
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/
DCarMenu.java342 public Builder setRemoteViews(RemoteViews views) { in setRemoteViews() argument
343 mBundle.putParcelable(MenuItemConstants.KEY_REMOTEVIEWS, views); in setRemoteViews()

123