/frameworks/support/transition/api14/android/support/transition/ |
ImageViewUtilsApi14.java | 30 final ImageView.ScaleType scaleType = view.getScaleType(); 31 view.setTag(R.id.save_scale_type, scaleType); 32 if (scaleType == ImageView.ScaleType.MATRIX) { 35 view.setScaleType(ImageView.ScaleType.MATRIX); 50 final ImageView.ScaleType scaleType = (ImageView.ScaleType) 52 view.setScaleType(scaleType); [all...] |
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/ |
ChangeImageTransformUsage.java | 56 mPhoto.setScaleType(ImageView.ScaleType.FIT_XY); 59 mPhoto.setScaleType(ImageView.ScaleType.CENTER); 62 mPhoto.setScaleType(ImageView.ScaleType.CENTER_CROP); 65 mPhoto.setScaleType(ImageView.ScaleType.FIT_START); 68 mPhoto.setScaleType(ImageView.ScaleType.FIT_END); 71 mPhoto.setScaleType(ImageView.ScaleType.MATRIX);
|
ReparentImageUsage.java | 56 addImageView(mOuterFrame, ImageView.ScaleType.CENTER_CROP, mPhotoSize); 63 addImageView(mOuterFrame, ImageView.ScaleType.CENTER_CROP, mPhotoSize); 66 addImageView(mInnerFrame, ImageView.ScaleType.FIT_XY, 73 private void addImageView(FrameLayout parent, ImageView.ScaleType scaleType, int size) { 77 photo.setScaleType(scaleType);
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
ImageRequest.java | 22 import android.widget.ImageView.ScaleType; 49 private ScaleType mScaleType; 68 * @param scaleType The ImageViews ScaleType used to calculate the needed image size. 73 ScaleType scaleType, Config decodeConfig, Response.ErrorListener errorListener) { 81 mScaleType = scaleType; 85 * For API compatibility with the pre-ScaleType variant of the constructor. Equivalent to 86 * the normal constructor with {@code ScaleType.CENTER_INSIDE}. 92 ScaleType.CENTER_INSIDE, decodeConfig, errorListener) [all...] |
ImageLoader.java | 23 import android.widget.ImageView.ScaleType; 153 return isCached(requestUrl, maxWidth, maxHeight, ScaleType.CENTER_INSIDE); 162 * @param scaleType The scaleType of the imageView. 165 public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) { 168 String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType); 186 * Equivalent to calling {@link #get(String, ImageListener, int, int, ScaleType)} with 187 * {@code Scaletype == ScaleType.CENTER_INSIDE} [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
ImageRequestTest.java | 22 import android.widget.ImageView.ScaleType; 55 ScaleType scalteType = ScaleType.CENTER_INSIDE; 80 scalteType = ScaleType.CENTER_CROP; 104 scalteType = ScaleType.FIT_XY; 127 ScaleType scaleType, int expectedWidth, int expectedHeight) { 128 ImageRequest request = new ImageRequest("", null, maxWidth, maxHeight, scaleType, 170 int.class, int.class, ImageView.ScaleType.class, Bitmap.Config.class,
|
NetworkImageViewTest.java | 22 import android.widget.ImageView.ScaleType; 65 int maxHeight, ScaleType scaleType) {
|
ImageLoaderTest.java | 88 ImageView.ScaleType.class)); 94 ImageLoader.ImageListener.class, int.class, int.class, ImageView.ScaleType.class));
|
/cts/tests/tests/transition/src/android/transition/cts/ |
ChangeImageTransformTest.java | 40 import android.widget.ImageView.ScaleType; 75 transformImage(ScaleType.CENTER, ScaleType.FIT_XY); 82 transformImage(ScaleType.CENTER_CROP, ScaleType.FIT_CENTER); 89 transformImage(ScaleType.CENTER_INSIDE, ScaleType.FIT_END); 97 transformImage(ScaleType.FIT_START, ScaleType.CENTER); 231 private void transformImage(ScaleType startScale, final ScaleType endScale) throws Throwable [all...] |
/frameworks/support/transition/tests/src/android/support/transition/ |
ChangeImageTransformTest.java | 63 transformImage(ImageView.ScaleType.CENTER, ImageView.ScaleType.FIT_XY); 70 transformImage(ImageView.ScaleType.CENTER_CROP, ImageView.ScaleType.FIT_CENTER); 77 transformImage(ImageView.ScaleType.CENTER_INSIDE, ImageView.ScaleType.FIT_END); 85 transformImage(ImageView.ScaleType.FIT_START, ImageView.ScaleType.CENTER); 219 private void transformImage(ImageView.ScaleType startScale, final ImageView.ScaleType endScale [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestGalleryImages.java | 23 import android.widget.ImageView.ScaleType; 65 i.setScaleType(ScaleType.CENTER_INSIDE);
|
/frameworks/base/core/java/android/app/ |
SharedElementCallback.java | 32 import android.widget.ImageView.ScaleType; 191 if (imageView.getScaleType() == ScaleType.MATRIX) { 243 ScaleType.valueOf(bundle.getString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE))); 244 if (imageView.getScaleType() == ScaleType.MATRIX) {
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
ScaleDrawableTests.java | 61 ImageView.ScaleType scaleType = ImageView.ScaleType.values()[i]; 65 png_view.setScaleType(scaleType); 71 view.setScaleType(scaleType); 77 avd_view.setScaleType(scaleType);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
ChangeImageTransformWithScaledParent.java | 28 import android.widget.ImageView.ScaleType; 66 if (imageView.getScaleType() == ScaleType.CENTER_INSIDE
|
/frameworks/base/core/java/android/widget/ |
ImageView.java | 62 * apply tints to an image} and handle {@link #setScaleType(ScaleType) image scaling}. 101 private ScaleType mScaleType; 150 private static final ScaleType[] sScaleTypeArray = { 151 ScaleType.MATRIX, 152 ScaleType.FIT_XY, 153 ScaleType.FIT_START, 154 ScaleType.FIT_CENTER, 155 ScaleType.FIT_END, 156 ScaleType.CENTER, 157 ScaleType.CENTER_CROP [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowImageView.java | 25 private ImageView.ScaleType scaleType; 106 public ImageView.ScaleType getScaleType() { 107 return scaleType; 111 public void setScaleType(ImageView.ScaleType scaleType) { 112 this.scaleType = scaleType;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
HeaderView.java | 27 import android.widget.ImageView.ScaleType; 101 mThumbnail.setScaleType(ScaleType.FIT_CENTER); 111 mThumbnail.setScaleType(ScaleType.CENTER_CROP);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
GalleryGridItemView.java | 27 import android.widget.ImageView.ScaleType; 139 mImageView.setScaleType(ScaleType.CENTER); 146 mImageView.setScaleType(ScaleType.CENTER_CROP);
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
GalleryGridItemView.java | 25 import android.widget.ImageView.ScaleType; 99 image.setScaleType(ScaleType.CENTER_CROP);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
StyleChooser.java | 11 import android.widget.ImageView.ScaleType; 48 button.setScaleType(ScaleType.CENTER_CROP);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ImageViewTest.java | 59 import android.widget.ImageView.ScaleType; 158 mImageViewRegular.setScaleType(ScaleType.FIT_XY); 162 assertEquals(ScaleType.FIT_XY, mImageViewRegular.getScaleType()); 166 assertEquals(ScaleType.FIT_CENTER, mImageViewRegular.getScaleType()); 324 mImageViewRegular.setScaleType(ImageView.ScaleType.CENTER); 325 assertEquals(ImageView.ScaleType.CENTER, mImageViewRegular.getScaleType()); 327 mImageViewRegular.setScaleType(ImageView.ScaleType.MATRIX); 328 assertEquals(ImageView.ScaleType.MATRIX, mImageViewRegular.getScaleType()); 330 mImageViewRegular.setScaleType(ImageView.ScaleType.FIT_START); 331 assertEquals(ImageView.ScaleType.FIT_START, mImageViewRegular.getScaleType()) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
CarNavigationButton.java | 45 mIcon.setScaleType(ImageView.ScaleType.CENTER);
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
CrossfadeImage.java | 48 mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
|
/frameworks/support/compat/java/android/support/v4/app/ |
SharedElementCallback.java | 30 import android.widget.ImageView.ScaleType; 179 if (imageView.getScaleType() == ScaleType.MATRIX) { 268 ScaleType.valueOf(bundle.getString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE))); 269 if (imageView.getScaleType() == ScaleType.MATRIX) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AttachmentTile.java | 30 import android.widget.ImageView.ScaleType; 208 mIcon.setScaleType(ScaleType.CENTER); 212 mIcon.setScaleType(ScaleType.CENTER_CROP); 216 mIcon.setScaleType(ScaleType.CENTER);
|