/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ImageViewTest.java | 10 import android.widget.ImageView; 29 private ImageView imageView; 36 imageView = new ImageView(Robolectric.application); 37 imageView.setImageBitmap(bitmap); 42 imageView.setImageMatrix(new Matrix()); 44 visualize(imageView)); 48 imageView.setImageMatrix(matrix); 50 visualize(imageView)); [all...] |
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
ImageLoader.java | 30 import android.widget.ImageView; 39 * ImageView. It handles things like using a memory and disk cache, running the work in a background 64 * Load an image specified by the data parameter into an ImageView (override 70 * @param imageView The ImageView to bind the downloaded image to. 72 public void loadImage(Object data, ImageView imageView) { 74 imageView.setImageBitmap(mLoadingBitmap); 86 imageView.setImageBitmap(bitmap); 87 } else if (cancelPotentialWork(data, imageView)) { [all...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
BitmapEditor.java | 21 import android.widget.ImageView; 28 protected void setImage(ImageView imageView, Object value) { 29 imageView.setImageBitmap((Bitmap) value);
|
IconEditor.java | 27 import android.widget.ImageView; 28 import android.widget.ImageView.ScaleType; 69 final ImageView imageView = new ImageView(v.getContext()); 70 imageView.setScaleType(ScaleType.CENTER); 71 imageView.setOnTouchListener(new OnTouchListener(){ 84 setImage(imageView, iconResId); 94 imageView.setLayoutParams(flp); 96 imageViewHolder.addView(imageView); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ImageViewTest.java | 48 import android.widget.ImageView; 49 import android.widget.ImageView.ScaleType; 55 * Test {@link ImageView}. 58 private ImageView mImageView; 66 * Find the ImageView specified by id. 69 * @return the ImageView 71 private ImageView findImageViewById(int id) { 72 return (ImageView) mActivity.findViewById(id); 111 new ImageView(mActivity); 113 new ImageView(mActivity, null) [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ImageDownloader.java | 33 import android.widget.ImageView; 48 * This helper class download images from the Internet and binds those with the provided ImageView. 90 * Download the specified image from the Internet and binds it to the provided ImageView. The 92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs. 95 * @param imageView The ImageView to bind the downloaded image to. 97 public void download(String url, ImageView imageView) { 98 download(url, imageView, null); 102 * Same as {@link #download(String, ImageView)}, with the possibility to provide an additiona [all...] |
/frameworks/base/core/java/android/app/ |
SharedElementCallback.java | 29 import android.widget.ImageView; 30 import android.widget.ImageView.ScaleType; 151 if (sharedElement instanceof ImageView) { 152 ImageView imageView = ((ImageView) sharedElement); 153 Drawable d = imageView.getDrawable(); 154 Drawable bg = imageView.getBackground(); 161 imageView.getScaleType().toString()); 162 if (imageView.getScaleType() == ScaleType.MATRIX) [all...] |
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageWorker.java | 29 import android.widget.ImageView; 38 * ImageView. It handles things like using a memory and disk cache, running the work in a background 65 * Load an image specified by the data parameter into an ImageView (override 73 * @param imageView The ImageView to bind the downloaded image to. 75 public void loadImage(Object data, ImageView imageView) { 88 imageView.setImageDrawable(value); 89 } else if (cancelPotentialWork(data, imageView)) { 91 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView); [all...] |
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageWorker.java | 29 import android.widget.ImageView; 38 * ImageView. It handles things like using a memory and disk cache, running the work in a background 65 * Load an image specified by the data parameter into an ImageView (override 73 * @param imageView The ImageView to bind the downloaded image to. 75 public void loadImage(Object data, ImageView imageView) { 88 imageView.setImageDrawable(value); 89 } else if (cancelPotentialWork(data, imageView)) { 91 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SetWallpaperActivity.java | 34 import android.widget.ImageView; 62 final ImageView imageView = (ImageView) findViewById(R.id.imageview); 63 imageView.setDrawingCacheEnabled(true); 64 imageView.setImageDrawable(wallpaperDrawable); 71 imageView.setImageDrawable(wallpaperDrawable); 72 imageView.invalidate(); 80 wallpaperManager.setBitmap(imageView.getDrawingCache()) [all...] |
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageWorker.java | 29 import android.widget.ImageView; 38 * ImageView. It handles things like using a memory and disk cache, running the work in a background 65 * Load an image specified by the data parameter into an ImageView (override 73 * @param imageView The ImageView to bind the downloaded image to. 75 public void loadImage(Object data, ImageView imageView) { 88 imageView.setImageDrawable(value); 89 } else if (cancelPotentialWork(data, imageView)) { 91 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView); [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
DetailsOverviewSharedElementHelper.java | 32 import android.widget.ImageView; 33 import android.widget.ImageView.ScaleType; 53 return snapshotView instanceof ImageView; 59 ImageView imageView = mViewHolder.mImageView; 60 mSavedScaleType = imageView.getScaleType(); 61 mSavedMatrix = mSavedScaleType == ScaleType.MATRIX ? imageView.getMatrix() : null; 68 private static void updateImageViewAfterScaleTypeChange(ImageView imageView) { 69 // enforcing imageView to update its internal bounds/matrix immediatel [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
ImageLoader.java | 25 import android.widget.ImageView; 45 static void loadMediaStoreThumbnail(final ImageView imageView, 53 imageView.setImageBitmap(cachedValue); 64 imageView.getContext().getContentResolver(), 72 imageView.setImageBitmap(bitmap);
|
/packages/apps/Stk/src/com/android/stk/ |
StkMenuAdapter.java | 26 import android.widget.ImageView; 57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon)); 59 imageView.setVisibility(View.GONE); 61 imageView.setImageBitmap(item.icon); 62 imageView.setVisibility(View.VISIBLE);
|
/frameworks/base/core/java/android/transition/ |
ChangeImageTransform.java | 29 import android.widget.ImageView; 34 * This Transition captures an ImageView's matrix before and after the 38 * that change size, shape, or {@link android.widget.ImageView.ScaleType} to animate contents 60 private static Property<ImageView, Matrix> ANIMATED_TRANSFORM_PROPERTY 61 = new Property<ImageView, Matrix>(Matrix.class, "animatedTransform") { 63 public void set(ImageView object, Matrix value) { 68 public Matrix get(ImageView object) { 81 if (!(view instanceof ImageView) || view.getVisibility() != View.VISIBLE) { 84 ImageView imageView = (ImageView) view [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
InCallAnimationUtils.java | 27 import android.widget.ImageView; 109 final ImageView imageView, final Drawable from, final Drawable to) { 122 log("Start cross-fade animation for " + imageView 129 imageView.setImageDrawable(crossFadeDrawable); 151 imageView.setImageDrawable(to); 166 imageView.setImageDrawable(transitionDrawable); 168 imageView.setTag(to); 170 imageView.setImageDrawable(to); 171 imageView.setTag(to) [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
SharedElementCallback.java | 30 import android.widget.ImageView; 31 import android.widget.ImageView.ScaleType; 149 if (sharedElement instanceof ImageView) { 150 ImageView imageView = ((ImageView) sharedElement); 151 Drawable d = imageView.getDrawable(); 152 Drawable bg = imageView.getBackground(); 159 imageView.getScaleType().toString()); 160 if (imageView.getScaleType() == ScaleType.MATRIX) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
IconPreferenceScreen.java | 25 import android.widget.ImageView; 50 ImageView imageView = (ImageView) view.findViewById(R.id.icon); 51 if (imageView != null && mIcon != null) { 52 imageView.setImageDrawable(mIcon);
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
ActivityAnimations.java | 33 import android.widget.ImageView; 51 HashMap<ImageView, PictureData> mPicturesData = new HashMap<ImageView, PictureData>(); 76 ImageView imageView = new ImageView(this); 77 imageView.setOnClickListener(thumbnailClickListener); 78 imageView.setImageDrawable(thumbnailDrawable); 79 mPicturesData.put(imageView, pictureData); 80 mGridLayout.addView(imageView); [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
LocalSessionData.java | 24 import android.widget.ImageView; 63 final ImageView imageView; 65 imageView = (ImageView) recycled; 67 imageView = new ImageView(context); 68 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); 77 .into(imageView); 79 imageView.setContentDescription(context.getResources().getString [all...] |
/developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
AnimatedNotificationDisplayActivity.java | 29 import android.widget.ImageView; 44 private ImageView mImageView; 58 mImageView = new ImageView(this); 113 public ImageZoomView(Context context, ImageView imageView, int zoomLength) { 115 addView(imageView); 121 ImageView imageView = (ImageView) getChildAt(0); 125 int imageWidth = imageView.getDrawable().getIntrinsicWidth() [all...] |
/developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
AnimatedNotificationDisplayActivity.java | 29 import android.widget.ImageView; 44 private ImageView mImageView; 58 mImageView = new ImageView(this); 113 public ImageZoomView(Context context, ImageView imageView, int zoomLength) { 115 addView(imageView); 121 ImageView imageView = (ImageView) getChildAt(0); 125 int imageWidth = imageView.getDrawable().getIntrinsicWidth() [all...] |
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
AnimatedNotificationDisplayActivity.java | 29 import android.widget.ImageView; 44 private ImageView mImageView; 58 mImageView = new ImageView(this); 113 public ImageZoomView(Context context, ImageView imageView, int zoomLength) { 115 addView(imageView); 121 ImageView imageView = (ImageView) getChildAt(0); 125 int imageWidth = imageView.getDrawable().getIntrinsicWidth() [all...] |
/frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/ |
AnimatedGifTest.java | 24 import android.widget.ImageView; 93 ImageView imageView = (ImageView) findViewById(R.id.imageview); 105 imageView.setImageDrawable(mDrawable); 111 ImageView imageView = (ImageView) findViewById(R.id.imageview); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
MtpAdapter.java | 140 MtpThumbnailTileView imageView; 142 imageView = (MtpThumbnailTileView) mInflater.inflate( 145 imageView = (MtpThumbnailTileView) convertView; 147 imageView.setMtpDeviceAndObjectInfo(mModel.getDevice(), 149 return imageView;
|