Home
last modified time | relevance | path

Searched refs:desiredWidth (Results 1 – 10 of 10) sorted by relevance

/frameworks/volley/src/com/android/volley/toolbox/
DImageRequest.java152 int desiredWidth = getResizedDimension(mMaxWidth, mMaxHeight, in doParse() local
162 findBestSampleSize(actualWidth, actualHeight, desiredWidth, desiredHeight); in doParse()
167 if (tempBitmap != null && (tempBitmap.getWidth() > desiredWidth || in doParse()
170 desiredWidth, desiredHeight, true); in doParse()
200 int actualWidth, int actualHeight, int desiredWidth, int desiredHeight) { in findBestSampleSize() argument
201 double wr = (double) actualWidth / desiredWidth; in findBestSampleSize()
/frameworks/base/libs/hwui/
DLayer.cpp118 uint32_t desiredWidth = computeIdealWidth(width); in resize() local
121 if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) { in resize()
128 if (desiredWidth > maxTextureSize || desiredHeight > maxTextureSize) { in resize()
130 desiredWidth, desiredHeight, maxTextureSize, maxTextureSize); in resize()
137 setSize(desiredWidth, desiredHeight); in resize()
152 stencil->resize(desiredWidth, desiredHeight); in resize()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java115 int desiredWidth = 300 + mPaddingLeft + mPaddingRight; in measureWidth() local
120 return desiredWidth < specSize ? desiredWidth : specSize; in measureWidth()
122 return desiredWidth; in measureWidth()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java168 public void onDesiredSizeChanged(int desiredWidth, int desiredHeight) { in onDesiredSizeChanged() argument
169 super.onDesiredSizeChanged(desiredWidth, desiredHeight); in onDesiredSizeChanged()
170 mDesiredWidth = desiredWidth; in onDesiredSizeChanged()
/frameworks/base/libs/input/
DSpriteController.cpp154 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites() local
156 if (update.state.surfaceWidth < desiredWidth in doUpdateSprites()
163 status_t status = update.state.surfaceControl->setSize(desiredWidth, desiredHeight); in doUpdateSprites()
167 desiredWidth, desiredHeight); in doUpdateSprites()
169 update.state.surfaceWidth = desiredWidth; in doUpdateSprites()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java493 public void onDesiredSizeChanged(int desiredWidth, int desiredHeight) { in onDesiredSizeChanged() argument
880 void doDesiredSizeChanged(int desiredWidth, int desiredHeight) { in doDesiredSizeChanged() argument
883 + desiredWidth + "," + desiredHeight + "): " + this); in doDesiredSizeChanged()
884 mIWallpaperEngine.mReqWidth = desiredWidth; in doDesiredSizeChanged()
886 onDesiredSizeChanged(desiredWidth, desiredHeight); in doDesiredSizeChanged()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java667 if (lp.desiredWidth < width / curNumItemsPerRow) { in calculateItemFittingMetadata()
750 int desiredWidth; field in IconMenuView.LayoutParams
DIconMenuItemView.java268 lp.desiredWidth = (int) Layout.getDesiredWidth(getText(), getPaint()); in getTextAppropriateLayoutParams()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java1048 private float computeScaleFactor(int desiredWidth, int desiredHeight,
1070 if (desiredWidth > actualWidth) {
1072 (desiredWidth - mMaxTargetWidth);
/frameworks/base/core/java/android/widget/
DNumberPicker.java1619 final int desiredWidth = Math.max(minSize, measuredSize); in resolveSizeAndStateRespectingMinSize() local
1620 return resolveSizeAndState(desiredWidth, measureSpec, 0); in resolveSizeAndStateRespectingMinSize()