/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
D | BitmapWorkerTask.java | 37 ContentResolver contentResolver, ImageView imageView, in BitmapWorkerTask() argument 39 imageViewReference = new WeakReference<>(imageView); in BitmapWorkerTask() 60 final ImageView imageView = imageViewReference.get(); in onPostExecute() local 61 if (imageView != null) { in onPostExecute() 62 final BitmapWorkerTask bitmapWorkerTask = (BitmapWorkerTask) imageView.getTag(); in onPostExecute() 65 mRunnable.setImageView(imageView); in onPostExecute() 73 ContentResolver contentResolver, ImageView imageView, in loadBitmap() argument 75 if (cancelPotentialWork(number, imageView)) { in loadBitmap() 77 new BitmapWorkerTask(contentResolver, imageView, number, runnable); in loadBitmap() 78 imageView.setTag(task); in loadBitmap() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | ContactBitmapWorker.java | 52 ImageView imageView, in loadBitmap() argument 57 if (!cancelPotentialWork(number, imageView)) { in loadBitmap() 62 new ContactBitmapWorker(contentResolver, imageView, number, listener); in loadBitmap() 63 imageView.setTag(task); in loadBitmap() 64 imageView.setImageResource(0); in loadBitmap() 72 ImageView imageView, in ContactBitmapWorker() argument 75 mImageViewReference = new WeakReference<>(imageView); in ContactBitmapWorker() 104 private static boolean cancelPotentialWork(String number, ImageView imageView) { in cancelPotentialWork() argument 105 final ContactBitmapWorker bitmapWorkerTask = (ContactBitmapWorker) imageView.getTag(); in cancelPotentialWork() 109 imageView.setTag(null); in cancelPotentialWork()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | ChangeImageTransformWithScaledParent.java | 65 ImageView imageView = (ImageView) view; in applyParentScale() local 66 if (imageView.getScaleType() == ScaleType.CENTER_INSIDE in applyParentScale() 67 && imageView.getDrawable() instanceof BitmapDrawable) { in applyParentScale() 68 Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); in applyParentScale() 69 if (bitmap.getWidth() < imageView.getWidth() in applyParentScale() 70 && bitmap.getHeight() < imageView.getHeight()) { in applyParentScale() 71 float scale = imageView.getContext().getResources().getFraction( in applyParentScale() 73 matrix.postScale(scale, scale, imageView.getWidth() / 2, in applyParentScale() 74 imageView.getHeight() / 2); in applyParentScale()
|
D | DvrPrioritySettingsFragment.java | 228 ImageView imageView = (ImageView) itemView.findViewById(R.id.guidedactions_item_tail_image); 232 imageView.setVisibility(View.GONE); 240 imageView.setImageResource(R.drawable.ic_draggable_white); 241 imageView.setVisibility(View.VISIBLE); 248 imageView.setImageResource(R.drawable.ic_dragging_grey); 249 imageView.setVisibility(View.VISIBLE); 256 imageView.setVisibility(View.INVISIBLE);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | SessionItem.java | 95 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()
|
D | PhotoItem.java | 118 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/Calendar/src/com/android/calendar/event/ |
D | EventLocationAdapter.java | 199 final ImageView imageView = (ImageView) view.findViewById(R.id.icon); in getView() local 200 if (imageView != null) { in getView() 202 imageView.setVisibility(View.INVISIBLE); in getView() 204 imageView.setVisibility(View.VISIBLE); in getView() 205 imageView.setImageResource(result.mDefaultIcon); in getView() 210 imageView.setTag(result.mContactPhotoUri); in getView() 215 imageView.setImageBitmap(cachedPhoto); in getView() 218 asyncLoadPhotoAndUpdateView(result.mContactPhotoUri, imageView); in getView() 228 final ImageView imageView) { in asyncLoadPhotoAndUpdateView() argument 248 if (photo != null && imageView.getTag() == contactPhotoUri) { in asyncLoadPhotoAndUpdateView() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | SubRatingsFragment.java | 107 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() local 109 imageView.setVisibility(View.VISIBLE); in onBind() 110 imageView.setImageDrawable(icon); in onBind() 112 imageView.setVisibility(View.GONE); in onBind() 168 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() local 170 imageView.setVisibility(View.VISIBLE); in onBind() 171 imageView.setImageDrawable(icon); in onBind() 173 imageView.setVisibility(View.GONE); in onBind()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | ContactsAsyncHelper.java | 139 ImageView imageView, Uri contact, int placeholderImageResource) { in updateImageViewWithContactPhotoAsync() argument 145 imageView.setVisibility(View.VISIBLE); in updateImageViewWithContactPhotoAsync() 146 imageView.setImageResource(placeholderImageResource); in updateImageViewWithContactPhotoAsync() 156 args.view = imageView; in updateImageViewWithContactPhotoAsync() 174 imageView.setVisibility(View.VISIBLE); in updateImageViewWithContactPhotoAsync() 175 imageView.setImageResource(placeholderImageResource); in updateImageViewWithContactPhotoAsync() 177 imageView.setVisibility(View.INVISIBLE); in updateImageViewWithContactPhotoAsync()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | BitmapDownloader.java | 154 public void loadBitmap(final BitmapWorkerOptions options, final ImageView imageView) { in loadBitmap() argument 155 cancelDownload(imageView); in loadBitmap() 165 imageView.setImageBitmap(bitmap); in loadBitmap() 167 BitmapWorkerTask task = new BitmapWorkerTask(imageView) { in loadBitmap() 177 imageView.setTag(R.id.imageDownloadTask, new SoftReference<BitmapWorkerTask>(task)); in loadBitmap() 225 ImageView imageView = (ImageView)key; in cancelDownload() local 227 (SoftReference<BitmapWorkerTask>) imageView.getTag(R.id.imageDownloadTask); in cancelDownload()
|
D | DrawableDownloader.java | 246 public void loadBitmap(BitmapWorkerOptions options, final ImageView imageView) { in loadBitmap() argument 247 cancelDownload(imageView); in loadBitmap() 257 imageView.setImageDrawable(bitmap); in loadBitmap() 259 DrawableLoader task = new DrawableLoader(imageView, mRecycledBitmaps) { in loadBitmap() 269 imageView.setTag(R.id.imageDownloadTask, new SoftReference<DrawableLoader>(task)); in loadBitmap() 326 ImageView imageView = (ImageView)key; in cancelDownload() local 328 (SoftReference<DrawableLoader>) imageView.getTag(R.id.imageDownloadTask); in cancelDownload()
|
D | BitmapWorkerTask.java | 65 public BitmapWorkerTask(ImageView imageView) { in BitmapWorkerTask() argument 66 mImageView = new WeakReference<ImageView>(imageView); in BitmapWorkerTask() 116 final ImageView imageView = mImageView.get(); in onPostExecute() local 117 if (imageView != null) { in onPostExecute() 118 imageView.setImageBitmap(bitmap); in onPostExecute()
|
D | DrawableLoader.java | 75 DrawableLoader(ImageView imageView, RecycleBitmapPool recycledBitmapPool) { in DrawableLoader() argument 76 mImageView = new WeakReference<ImageView>(imageView); in DrawableLoader() 132 final ImageView imageView = mImageView.get(); in onPostExecute() local 133 if (imageView != null) { in onPostExecute() 134 imageView.setImageDrawable(bitmap); in onPostExecute()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EditorUiUtils.java | 239 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/Settings/src/com/android/settings/nfc/ |
D | NfcPaymentPreference.java | 172 holder.imageView = (ImageView) convertView.findViewById(R.id.banner); in getView() 178 holder.imageView.setImageDrawable(appInfo.banner); in getView() 179 holder.imageView.setTag(appInfo); in getView() 180 holder.imageView.setContentDescription(appInfo.label); in getView() 181 holder.imageView.setOnClickListener(this); in getView() 193 public ImageView imageView; field in NfcPaymentPreference.NfcPaymentAdapter.ViewHolder
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AttachmentPreviewFactory.java | 168 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/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
D | MtpAdapter.java | 140 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/Settings/src/com/android/settings/widget/ |
D | VideoPreference.java | 95 final ImageView imageView = (ImageView) holder.findViewById(R.id.video_preview_image); in onBindViewHolder() local 97 imageView.setImageResource(mPreviewResource); in onBindViewHolder() 131 imageView.setVisibility(View.VISIBLE); in onBindViewHolder() 138 if (imageView.getVisibility() == View.VISIBLE) { in onBindViewHolder() 139 imageView.setVisibility(View.GONE); in onBindViewHolder()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkMenuAdapter.java | 57 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/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 170 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/Camera2/src/com/android/camera/widget/ |
D | IndicatorIconController.java | 298 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/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | SetupAnimationHelper.java | 195 public static ObjectAnimator createFrameAnimator(ImageView imageView, int[] frames) { in createFrameAnimator() argument 196 return createFrameAnimatorWithDelay(imageView, frames, 0); in createFrameAnimator() 204 public static ObjectAnimator createFrameAnimatorWithDelay(ImageView imageView, int[] frames, in createFrameAnimatorWithDelay() argument 206 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames); in createFrameAnimatorWithDelay()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | UserPresetsAdapter.java | 87 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/ |
D | GalleryGridItemViewTest.java | 58 final AsyncImageView imageView = (AsyncImageView) view.findViewById(R.id.image); 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/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityServiceWarning.java | 130 ImageView imageView = (ImageView) capabilityView.findViewById( in createEnableDialogContentView() local 132 imageView.setImageDrawable(context.getDrawable( in createEnableDialogContentView() 158 imageView = (ImageView) capabilityView.findViewById( in createEnableDialogContentView() 160 imageView.setImageDrawable(context.getDrawable( in createEnableDialogContentView()
|