Home
last modified time | relevance | path

Searched refs:ScaleType (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/volley/src/test/java/com/android/volley/toolbox/
DImageRequestTest.java22 import android.widget.ImageView.ScaleType;
55 ScaleType scalteType = ScaleType.CENTER_INSIDE; in parseNetworkResponse_resizing()
80 scalteType = ScaleType.CENTER_CROP; in parseNetworkResponse_resizing()
104 scalteType = ScaleType.FIT_XY; in parseNetworkResponse_resizing()
127 ScaleType scaleType, int expectedWidth, int expectedHeight) { in verifyResize()
170 int.class, int.class, ImageView.ScaleType.class, Bitmap.Config.class, in publicMethods()
DNetworkImageViewTest.java6 import android.widget.ImageView.ScaleType;
49 int maxHeight, ScaleType scaleType) { in get()
DImageLoaderTest.java88 ImageView.ScaleType.class)); in publicMethods()
94 ImageLoader.ImageListener.class, int.class, int.class, ImageView.ScaleType.class)); in publicMethods()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DImageRequest.java22 import android.widget.ImageView.ScaleType;
49 private ScaleType mScaleType;
73 ScaleType scaleType, Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest()
92 ScaleType.CENTER_INSIDE, decodeConfig, errorListener); in ImageRequest()
112 int actualSecondary, ScaleType scaleType) { in getResizedDimension()
120 if (scaleType == ScaleType.FIT_XY) { in getResizedDimension()
141 if (scaleType == ScaleType.CENTER_CROP) { in getResizedDimension()
DImageLoader.java23 import android.widget.ImageView.ScaleType;
153 return isCached(requestUrl, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
165 public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
191 return get(requestUrl, imageListener, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
208 int maxWidth, int maxHeight, ScaleType scaleType) {
251 ScaleType scaleType, final String cacheKey) {
502 … private static String getCacheKey(String url, int maxWidth, int maxHeight, ScaleType scaleType) {
DNetworkImageView.java106 ScaleType scaleType = getScaleType(); in loadImageIfNecessary()
/frameworks/base/core/java/android/widget/
DImageView.java81 private ScaleType mScaleType;
124 private static final ScaleType[] sScaleTypeArray = {
125 ScaleType.MATRIX,
126 ScaleType.FIT_XY,
127 ScaleType.FIT_START,
128 ScaleType.FIT_CENTER,
129 ScaleType.FIT_END,
130 ScaleType.CENTER,
131 ScaleType.CENTER_CROP,
132 ScaleType.CENTER_INSIDE
[all …]
/frameworks/base/core/java/android/app/
DSharedElementCallback.java30 import android.widget.ImageView.ScaleType;
182 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCaptureSharedElementSnapshot()
229 ScaleType.valueOf(bundle.getString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE))); in onCreateSnapshotView()
230 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCreateSnapshotView()
DActivityTransitionCoordinator.java135 protected static final ImageView.ScaleType[] SCALE_TYPE_VALUES = ImageView.ScaleType.values();
432 ImageView.ScaleType scaleType = SCALE_TYPE_VALUES[scaleTypeInt]; in setSharedElementState()
434 if (scaleType == ImageView.ScaleType.MATRIX) { in setSharedElementState()
605 if (state.mScaleType == ImageView.ScaleType.MATRIX) { in getOldSharedElementState()
650 if (state.mScaleType == ImageView.ScaleType.MATRIX) { in setOriginalSharedElementState()
759 if (imageView.getScaleType() == ImageView.ScaleType.MATRIX) { in captureSharedElementState()
929 private static int scaleTypeToInt(ImageView.ScaleType scaleType) { in scaleTypeToInt()
1014 ImageView.ScaleType mScaleType;
/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java31 import android.widget.ImageView.ScaleType;
180 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCaptureSharedElementSnapshot()
269 ScaleType.valueOf(bundle.getString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE))); in onCreateSnapshotView()
270 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCreateSnapshotView()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewSharedElementHelper.java33 import android.widget.ImageView.ScaleType;
49 private ScaleType mSavedScaleType;
61 mSavedMatrix = mSavedScaleType == ScaleType.MATRIX ? imageView.getMatrix() : null; in saveImageViewScale()
84 if (snapshotImageView.getScaleType() == ScaleType.MATRIX) { in changeImageViewScale()
97 if (mSavedScaleType == ScaleType.MATRIX) { in restoreImageViewScale()
DImageCardView.java27 import android.widget.ImageView.ScaleType;
304 public void setMainImageScaleType(ScaleType scaleType) { in setMainImageScaleType()
DFullWidthDetailsOverviewSharedElementHelper.java33 import android.widget.ImageView.ScaleType;
DDetailsOverviewRowPresenter.java526 vh.mImageView.setScaleType(ImageView.ScaleType.FIT_START); in bindImageDrawable()
532 vh.mImageView.setScaleType(ImageView.ScaleType.CENTER); in bindImageDrawable()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestGalleryImages.java23 import android.widget.ImageView.ScaleType;
65 i.setScaleType(ScaleType.CENTER_INSIDE); in getView()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DScaleDrawableTests.java61 ImageView.ScaleType scaleType = ImageView.ScaleType.values()[i]; in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSIconView.java26 import android.widget.ImageView.ScaleType;
112 icon.setScaleType(ScaleType.FIT_CENTER); in createIcon()
DQSDualTileLabel.java70 mFirstLineCaret.setScaleType(ImageView.ScaleType.MATRIX); in QSDualTileLabel()
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java99 ImageView.ScaleType scaleType = imageView.getScaleType(); in captureValues()
100 if (scaleType == ImageView.ScaleType.FIT_XY) { in captureValues()
DTransitionUtils.java101 copy.setScaleType(ImageView.ScaleType.CENTER_CROP); in copyViewImage()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DCrossfadeImage.java48 mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationOverflowIconsView.java60 v.setScaleType(ImageView.ScaleType.CENTER_INSIDE); in addNotification()
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java41 import android.widget.ImageView.ScaleType;
200 tab.setScaleType(ScaleType.CENTER); in Slider()
215 target.setScaleType(ScaleType.CENTER); in Slider()
/frameworks/base/docs/html/guide/topics/ui/layout/
Dgridview.jd127 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
171 <li>{@link android.widget.ImageView#setScaleType(ImageView.ScaleType)} declares that images should
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconController.java243 imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); in setExternalIcon()
247 imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); in setExternalIcon()

12