Home
last modified time | relevance | path

Searched refs:cardView (Results 1 – 18 of 18) sorted by relevance

/packages/apps/TV/src/com/android/tv/search/
DProgramGuideSearchFragment.java58 ImageCardView cardView = new ImageCardView(mMainActivity);
59 cardView.setFocusable(true);
60 cardView.setFocusableInTouchMode(true);
61 cardView.setMainImageAdjustViewBounds(false);
64 cardView.setMainImageDimensions(
68 return new Presenter.ViewHolder(cardView);
73 ImageCardView cardView = (ImageCardView) viewHolder.view;
77 cardView.setTitleText(result.getTitle());
84 createImageLoaderCallback(cardView));
86 cardView.setMainImage(
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DScheduledRecordingPresenter.java71 RecordingCardView cardView = (RecordingCardView) view; in updateProgressBar() local
73 cardView.setProgressBar( in updateProgressBar()
85 cardView.setProgressBar(100); in updateProgressBar()
88 cardView.setProgressBar(null); in updateProgressBar()
118 final RecordingCardView cardView = viewHolder.getView(); in onBindDvrItemViewHolder() local
120 cardView.setTitle(details.getTitle()); in onBindDvrItemViewHolder()
121 cardView.setImageUri(details.getLogoImageUri(), details.isUsingChannelLogo()); in onBindDvrItemViewHolder()
123 cardView.setRecordingFailedContent(mContext); in onBindDvrItemViewHolder()
125 cardView.setRecordingConflictContent(mContext); in onBindDvrItemViewHolder()
127 cardView.setContent(generateMajorContent(recording), null); in onBindDvrItemViewHolder()
[all …]
DRecordedProgramPresenter.java118 final RecordingCardView cardView = viewHolder.getView(); in onBindDvrItemViewHolder() local
120 cardView.setTitle( in onBindDvrItemViewHolder()
122 cardView.setImageUri(details.getLogoImageUri(), details.isUsingChannelLogo()); in onBindDvrItemViewHolder()
123 cardView.setContent(generateMajorContent(program), generateMinorContent(program)); in onBindDvrItemViewHolder()
124 cardView.setDetailBackgroundImageUri(details.getBackgroundImageUri()); in onBindDvrItemViewHolder()
DFullSchedulesCardPresenter.java48 final RecordingCardView cardView = (RecordingCardView) vh.view; in onBindDvrItemViewHolder() local
50 cardView.setTitle(mCardTitleText); in onBindDvrItemViewHolder()
51 cardView.setImage(mIconDrawable); in onBindDvrItemViewHolder()
67 cardView.setContent( in onBindDvrItemViewHolder()
DDvrHistoryCardPresenter.java43 final RecordingCardView cardView = (RecordingCardView) vh.view; in onBindDvrItemViewHolder() local
45 cardView.setTitle(mCardTitleText); in onBindDvrItemViewHolder()
46 cardView.setImage(mIconDrawable); in onBindDvrItemViewHolder()
DSeriesRecordingPresenter.java206 final RecordingCardView cardView = viewHolder.getView(); in onBindDvrItemViewHolder() local
209 cardView.setTitle(details.getTitle()); in onBindDvrItemViewHolder()
210 cardView.setImageUri(details.getLogoImageUri(), details.isUsingChannelLogo()); in onBindDvrItemViewHolder()
211 cardView.setDetailBackgroundImageUri(details.getBackgroundImageUri()); in onBindDvrItemViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java72 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in bindView_shouldSetListener() local
74 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in bindView_shouldSetListener()
81 assertThat(cardView).isNotNull(); in bindView_shouldSetListener()
82 assertThat(cardView.hasOnClickListeners()).isTrue(); in bindView_shouldSetListener()
90 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in bindView_closeButton_shouldSetListener() local
92 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in bindView_closeButton_shouldSetListener()
109 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in viewClick_shouldInvokeControllerPrimaryClick() local
111 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in viewClick_shouldInvokeControllerPrimaryClick()
118 assertThat(cardView).isNotNull(); in viewClick_shouldInvokeControllerPrimaryClick()
119 cardView.performClick(); in viewClick_shouldInvokeControllerPrimaryClick()
[all …]
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java166 View cardView = viewHolder.itemView; in updatePadding() local
167 int cardCenter = (cardView.getLeft() + cardView.getRight()) / 2; in updatePadding()
228 CardView cardView = viewHolder.cardView; in updateCardView() local
235 cardView.setScaleX(scaleFactor); in updateCardView()
236 cardView.setScaleY(scaleFactor); in updateCardView()
363 private final CardView cardView;
369 cardView = view.requireViewById(R.id.card);
370 imageView = cardView.requireViewById(R.id.image);
390 CardView cardView = viewHolder.cardView;
391 cardView.setRadius(mCornerRadiusPx);
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardRendererTest.java75 final View cardView = view.findViewById(R.id.content); in bindView_shouldSetListener() local
81 assertThat(cardView).isNotNull(); in bindView_shouldSetListener()
82 assertThat(cardView.hasOnClickListeners()).isTrue(); in bindView_shouldSetListener()
94 final View cardView = view.findViewById(R.id.content); in viewClick_shouldInvokeControllerPrimaryClick() local
100 assertThat(cardView).isNotNull(); in viewClick_shouldInvokeControllerPrimaryClick()
101 cardView.performClick(); in viewClick_shouldInvokeControllerPrimaryClick()
/packages/apps/TV/src/com/android/tv/menu/
DChannelCardView.java148 ChannelCardView cardView, final Program program) { in createProgramPosterArtCallback() argument
149 return new ImageLoader.ImageLoaderCallback<ChannelCardView>(cardView) { in createProgramPosterArtCallback()
151 public void onBitmapLoaded(ChannelCardView cardView, @Nullable Bitmap posterArt) { in createProgramPosterArtCallback()
153 || cardView.mProgram == null in createProgramPosterArtCallback()
154 || program.getChannelId() != cardView.mProgram.getChannelId() in createProgramPosterArtCallback()
155 || program.getChannelId() != cardView.mChannel.getId()) { in createProgramPosterArtCallback()
158 cardView.updatePosterArt(posterArt); in createProgramPosterArtCallback()
DItemListRowView.java224 CardView<T> cardView = (CardView<T>) viewHolder.itemView; in onBindViewHolder() local
225 cardView.onBind(mItemList.get(position), cardView.equals(mItemListView.mSelectedCard)); in onBindViewHolder()
231 CardView<T> cardView = (CardView<T>) viewHolder.itemView; in onViewRecycled() local
232 cardView.onRecycled(); in onViewRecycled()
DAppLinkCardView.java264 AppLinkCardView cardView, final Channel channel, final int type) { in createChannelLogoCallback() argument
265 return new ImageLoader.ImageLoaderCallback<AppLinkCardView>(cardView) { in createChannelLogoCallback()
267 public void onBitmapLoaded(AppLinkCardView cardView, @Nullable Bitmap bitmap) { in createChannelLogoCallback()
269 if (!cardView.mChannel.hasSameReadOnlyInfo(channel)) { in createChannelLogoCallback()
272 cardView.updateChannelLogo(bitmap, type); in createChannelLogoCallback()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarHeadsUpNotificationManager.java508 View cardView = notificationView.findViewById(R.id.card_view); in attachHunViewListeners() local
509 cardView.setOnTouchListener(new HeadsUpNotificationOnTouchListener(cardView, in attachHunViewListeners()
540 View cardView = currentNotification.getNotificationView().findViewById( in setInternalInsetsInfo() local
543 if (cardView == null) return; in setInternalInsetsInfo()
550 cardView.getLocationInWindow(mTmpTwoArray); in setInternalInsetsInfo()
552 int maxX = mTmpTwoArray[0] + cardView.getWidth(); in setInternalInsetsInfo()
554 int maxY = mTmpTwoArray[1] + mNotificationHeadsUpCardMarginTop + cardView.getHeight(); in setInternalInsetsInfo()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java207 void bindCardView(CardView cardView, boolean isInGroup) { in bindCardView() argument
210 if (cardView == null) { in bindCardView()
217 cardView.setCardBackgroundColor(mBackgroundColor); in bindCardView()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockCarouselView.kt329 val cardView = motionLayout.requireViewById<View>(it) in <lambda>() constant
330 cardView.backgroundTintList = ColorStateList.valueOf(color) in <lambda>()
401 val cardView = in <lambda>() constant
448 cardView.alpha = if (isMiddleView) 0f else 1f in <lambda>()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchFragment.java153 final CardView cardView = view.findViewById(R.id.search_bar); in onCreateView() local
154 cardView.setBackgroundResource(R.drawable.search_bar_selected_background); in onCreateView()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterQsFragment.java222 View cardView = View.inflate(mContext, R.layout.indicator_card, usageLayout); in addPermissionUsageInformation() local
223 cardView.setId(View.generateViewId()); in addPermissionUsageInformation()
224 ConstraintLayout parentIndicatorLayout = cardView.findViewById(R.id.indicator_layout); in addPermissionUsageInformation()
241 ConstraintLayout expandedLayout = cardView.findViewById(R.id.expanded_layout); in addPermissionUsageInformation()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategorySelectorFragment.java641 CardView cardView = gridItemCategory.findViewById(R.id.category); in setLayoutParams() local
642 cardView.getLayoutParams().height = SizeCalculator in setLayoutParams()
644 cardView.setRadius(getResources().getDimension(R.dimen.grid_item_all_radius)); in setLayoutParams()