Home
last modified time | relevance | path

Searched refs:imageView (Results 1 – 25 of 85) sorted by relevance

1234

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java47 Context context, ImageView imageView, int placeholderColor) { in getPlaceholderDrawable() argument
48 Point imageViewDimensions = getViewDimensions(imageView); in getPlaceholderDrawable()
117 public void loadLowResDrawable(Activity activity, ImageView imageView, int placeholderColor, in loadLowResDrawable() argument
134 public void loadDrawable(final Context context, final ImageView imageView, in loadDrawable() argument
138 final boolean needsTransition = imageView.getDrawable() == null; in loadDrawable()
141 imageView.setImageDrawable(placeholderDrawable); in loadDrawable()
146 int width = imageView.getWidth() > 0 in loadDrawable()
147 ? imageView.getWidth() in loadDrawable()
148 : Math.abs(imageView.getLayoutParams().width); in loadDrawable()
149 int height = imageView.getHeight() > 0 in loadDrawable()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DChangeImageTransformWithScaledParent.java66 ImageView imageView = (ImageView) view; in applyParentScale() local
67 if (imageView.getScaleType() == ScaleType.CENTER_INSIDE in applyParentScale()
68 && imageView.getDrawable() instanceof BitmapDrawable) { in applyParentScale()
69 Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); in applyParentScale()
70 if (bitmap.getWidth() < imageView.getWidth() in applyParentScale()
71 && bitmap.getHeight() < imageView.getHeight()) { in applyParentScale()
73 imageView in applyParentScale()
78 scale, scale, imageView.getWidth() / 2, imageView.getHeight() / 2); in applyParentScale()
DDvrPrioritySettingsFragment.java238 ImageView imageView = (ImageView) itemView.findViewById(R.id.guidedactions_item_tail_image);
242 imageView.setVisibility(View.GONE);
250 imageView.setImageResource(R.drawable.ic_draggable_white);
251 imageView.setVisibility(View.VISIBLE);
258 imageView.setImageResource(R.drawable.ic_dragging_grey);
259 imageView.setVisibility(View.VISIBLE);
266 imageView.setVisibility(View.INVISIBLE);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DVideoPreference.java118 final ImageView imageView = (ImageView) holder.findViewById(R.id.video_preview_image); in onBindViewHolder() local
123 imageView.setImageResource(mPreviewResource); in onBindViewHolder()
125 updateViewStates(imageView, playButton); in onBindViewHolder()
127 video.setOnClickListener(v -> updateViewStates(imageView, playButton)); in onBindViewHolder()
146 imageView.setVisibility(View.VISIBLE); in onBindViewHolder()
156 if (imageView.getVisibility() == View.VISIBLE) { in onBindViewHolder()
157 imageView.setVisibility(View.GONE); in onBindViewHolder()
173 void updateViewStates(ImageView imageView, ImageView playButton) { in updateViewStates() argument
178 imageView.setVisibility(View.VISIBLE); in updateViewStates()
181 imageView.setVisibility(View.GONE); in updateViewStates()
/packages/apps/Settings/src/com/android/settings/widget/
DVideoPreference.java123 final ImageView imageView = (ImageView) holder.findViewById(R.id.video_preview_image); in onBindViewHolder() local
128 imageView.setImageResource(mPreviewResource); in onBindViewHolder()
134 updateViewStates(imageView, playButton); in onBindViewHolder()
136 video.setOnClickListener(v -> updateViewStates(imageView, playButton)); in onBindViewHolder()
155 imageView.setVisibility(View.VISIBLE); in onBindViewHolder()
165 if (imageView.getVisibility() == View.VISIBLE) { in onBindViewHolder()
166 imageView.setVisibility(View.GONE); in onBindViewHolder()
182 void updateViewStates(ImageView imageView, ImageView playButton) { in updateViewStates() argument
187 imageView.setVisibility(View.VISIBLE); in updateViewStates()
190 imageView.setVisibility(View.GONE); in updateViewStates()
/packages/apps/Dialer/java/com/android/dialer/widget/
DEmptyContentView.java40 private ImageView imageView; field in EmptyContentView
65 imageView = (ImageView) findViewById(R.id.empty_list_view_image); in EmptyContentView()
70 imageView.setImageTintList( in EmptyContentView()
86 imageView.setImageDrawable(null); in setImage()
87 imageView.setVisibility(View.GONE); in setImage()
89 imageView.setImageResource(resourceId); in setImage()
90 imageView.setVisibility(View.VISIBLE); in setImage()
110 return imageView.getVisibility() == View.VISIBLE in isShowingContent()
/packages/apps/Camera2/src/com/android/camera/data/
DSessionItem.java95 ImageView imageView; in getView() local
98 imageView = (ImageView) optionalView.get(); in getView()
100 imageView = new ImageView(mContext); in getView()
101 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
106 imageView.setImageBitmap(placeholder.get()); in getView()
108 imageView.setImageResource(GlideFilmstripManager.DEFAULT_PLACEHOLDER_RESOURCE); in getView()
110 imageView.setContentDescription(mContext.getResources().getString( in getView()
112 return imageView; in getView()
DPhotoItem.java118 ImageView imageView; in getView() local
121 imageView = (ImageView) optionalView.get(); in getView()
123 imageView = new ImageView(mContext); in getView()
124 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
127 fillImageView(imageView); in getView()
129 return imageView; in getView()
132 protected void fillImageView(final ImageView imageView) { in fillImageView() argument
133 renderTinySize(mData.getUri()).into(imageView); in fillImageView()
148 imageView.setContentDescription(mContext.getResources().getString( in fillImageView()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java209 final ImageView imageView = linearLayout.findViewById(R.id.header_icon); in updateSubLayout() local
210 updateIcon(imageView, iconUri); in updateSubLayout()
217 final ImageView imageView = linearLayout.findViewById(R.id.bt_battery_icon); in updateSubLayout() local
218 imageView.setImageDrawable(createBtBatteryIcon(mContext, batteryLevel, charging)); in updateSubLayout()
219 imageView.setVisibility(View.VISIBLE); in updateSubLayout()
249 final ImageView imageView = linearLayout.findViewById(R.id.header_icon); in updateDisconnectLayout() local
250 updateIcon(imageView, iconUri); in updateDisconnectLayout()
259 void updateIcon(ImageView imageView, String iconUri) { in updateIcon() argument
261 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
271 imageView.setImageBitmap(bitmap); in updateIcon()
DBluetoothDevicePreference.java171 final ImageView imageView = (ImageView) view.findViewById(android.R.id.icon); in onBindViewHolder() local
172 if (imageView != null) { in onBindViewHolder()
173 imageView.setContentDescription(contentDescription); in onBindViewHolder()
175 imageView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); in onBindViewHolder()
176 imageView.setElevation( in onBindViewHolder()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DSubRatingsFragment.java108 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() local
110 imageView.setVisibility(View.VISIBLE); in onBind()
111 imageView.setImageDrawable(icon); in onBind()
113 imageView.setVisibility(View.GONE); in onBind()
169 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() local
171 imageView.setVisibility(View.VISIBLE); in onBind()
172 imageView.setImageDrawable(icon); in onBind()
174 imageView.setVisibility(View.GONE); in onBind()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorUiUtils.java239 static void loadPhoto(ContactPhotoManager contactPhotoManager, ImageView imageView, in loadPhoto() argument
249 contactPhotoManager.loadPhoto(imageView, photoUri, imageView.getWidth(), in loadPhoto()
263 public static void setDefaultPhoto(ImageView imageView , Resources resources, in setDefaultPhoto() argument
266 imageView.setImageDrawable(ContactPhotoManager.getDefaultAvatarDrawableForContact( in setDefaultPhoto()
270 if (imageView instanceof QuickContactImageView) { in setDefaultPhoto()
271 ((QuickContactImageView) imageView).setTint(materialPalette == null in setDefaultPhoto()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DMtpAdapter.java140 MtpThumbnailTileView imageView; in getView() local
142 imageView = (MtpThumbnailTileView) mInflater.inflate( in getView()
145 imageView = (MtpThumbnailTileView) convertView; in getView()
147 imageView.setMtpDeviceAndObjectInfo(mModel.getDevice(), in getView()
149 return imageView; in getView()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java168 final AsyncImageView imageView = (AsyncImageView) view.findViewById( in createImagePreview() local
170 int maxWidth = imageView.getMaxWidth(); in createImagePreview()
171 int maxHeight = imageView.getMaxHeight(); in createImagePreview()
184 imageView.setImageResourceId(getImageRequestDescriptorForAttachment(attachmentData, in createImagePreview()
187 imageView.setContentDescription( in createImagePreview()
196 final ImageView imageView = (ImageView) in createPendingAttachmentPreview() local
198 final ViewGroup.LayoutParams layoutParams = imageView.getLayoutParams(); in createPendingAttachmentPreview()
/packages/apps/Stk/src/com/android/stk/
DStkMenuAdapter.java57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon)); in getView() local
59 imageView.setVisibility(View.GONE); in getView()
61 imageView.setImageBitmap(item.icon); in getView()
62 imageView.setVisibility(View.VISIBLE); in getView()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/imaging/
DImageViewBinder.java51 public ImageViewBinder(Size maxImageSize, @Nullable ImageView imageView) { in ImageViewBinder() argument
52 this(PlaceholderType.FOREGROUND, maxImageSize, imageView, false); in ImageViewBinder()
60 @Nullable ImageView imageView, boolean flagBitmaps) { in ImageViewBinder() argument
62 mImageView = imageView; in ImageViewBinder()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java170 ImageView imageView = new ImageView(this); in addRowWithBitmap() local
171 imageView.setImageBitmap(bitmap); in addRowWithBitmap()
172 imageView.setPadding(4, 4, 4, 4); in addRowWithBitmap()
173 imageView.setScaleType(ScaleType.FIT_START); in addRowWithBitmap()
174 addRow(labelView, imageView); in addRowWithBitmap()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java176 public static ObjectAnimator createFrameAnimator(ImageView imageView, int[] frames) { in createFrameAnimator() argument
177 return createFrameAnimatorWithDelay(imageView, frames, 0); in createFrameAnimator()
187 ImageView imageView, int[] frames, long startDelay) { in createFrameAnimatorWithDelay() argument
188 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames); in createFrameAnimatorWithDelay()
/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java298 private void setIndicatorState(String scope, String key, ImageView imageView, in setIndicatorState() argument
308 imageView.setVisibility(View.GONE); in setIndicatorState()
315 imageView.setImageDrawable(drawable); in setIndicatorState()
320 changeVisibility(imageView, View.GONE); in setIndicatorState()
322 changeVisibility(imageView, View.VISIBLE); in setIndicatorState()
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/impl/
DGlidePhotoManagerImpl.java70 public void loadContactPhoto(ImageView imageView, PhotoInfo photoInfo) { in loadContactPhoto() argument
72 imageView.setContentDescription( in loadContactPhoto()
79 GlideRequest<Drawable> request = buildRequest(GlideApp.with(imageView), photoInfo); in loadContactPhoto()
80 request.into(imageView); in loadContactPhoto()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java87 ImageView imageView; field in UserPresetsAdapter.UserPresetViewHolder
98 viewHolder.imageView = (ImageView) convertView.findViewById(R.id.imageView); in getView()
109 viewHolder.imageView.setImageBitmap(action.getImage()); in getView()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java58 final AsyncImageView imageView = (AsyncImageView) view.findViewById(R.id.thumbnail); in verifyContent() local
61 assertNotNull(imageView); in verifyContent()
62 assertTrue(imageView.mImageRequestBinding.isBound()); in verifyContent()
63 assertTrue(imageView.mImageRequestBinding.getData().getKey().startsWith(imageUrl)); in verifyContent()
/packages/apps/Car/Media/src/com/android/car/media/widgets/
DMediaItemTab.java48 protected void bindIcon(ImageView imageView) { in bindIcon() argument
49 Context context = imageView.getContext(); in bindIcon()
51 mArtBinder = new ImageViewBinder<>(PlaceholderType.NONE, maxArtSize, imageView, true); in bindIcon()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DAddCustomRingtoneViewHolder.kt38 val imageView = itemView.findViewById<View>(R.id.ringtone_image) as ImageView constant
39 imageView.setImageResource(R.drawable.ic_add_white_24dp)
40 imageView.alpha = 0.63f
DAddCustomRingtoneViewHolder.java47 final ImageView imageView = (ImageView) itemView.findViewById(R.id.ringtone_image); in AddCustomRingtoneViewHolder() local
48 imageView.setImageResource(R.drawable.ic_add_white_24dp); in AddCustomRingtoneViewHolder()
49 imageView.setAlpha(0.63f); in AddCustomRingtoneViewHolder()

1234