Home
last modified time | relevance | path

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

/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/core/jni/android/graphics/
DImageDecoder.cpp202 jint desiredWidth, jint desiredHeight, jobject jsubset, in ImageDecoder_nDecodeBitmap() argument
208 const SkISize desiredSize = SkISize::Make(desiredWidth, desiredHeight); in ImageDecoder_nDecodeBitmap()
363 desiredWidth = subset.width(); in ImageDecoder_nDecodeBitmap()
366 SkImageInfo scaledInfo = bitmapInfo.makeWH(desiredWidth, desiredHeight); in ImageDecoder_nDecodeBitmap()
382 desiredWidth, desiredHeight); in ImageDecoder_nDecodeBitmap()
394 float scaleX = (float) desiredWidth / decodeInfo.width(); in ImageDecoder_nDecodeBitmap()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java176 public void onDesiredSizeChanged(int desiredWidth, int desiredHeight) { in onDesiredSizeChanged() argument
177 super.onDesiredSizeChanged(desiredWidth, desiredHeight); in onDesiredSizeChanged()
178 mDesiredWidth = desiredWidth; in onDesiredSizeChanged()
/frameworks/base/libs/input/
DSpriteController.cpp158 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites() local
160 if (update.state.surfaceWidth < desiredWidth in doUpdateSprites()
165 desiredWidth, desiredHeight); in doUpdateSprites()
166 update.state.surfaceWidth = desiredWidth; in doUpdateSprites()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DPagingIndicator.java377 int desiredWidth = getDesiredWidth(); in onMeasure() local
384 width = Math.min(desiredWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
388 width = desiredWidth; in onMeasure()
/frameworks/support/wear/src/main/java/androidx/wear/widget/
DCircledImageView.java320 float desiredWidth = radius * 2; in onMeasure() local
334 width = (int) Math.min(desiredWidth, widthSize); in onMeasure()
336 width = (int) desiredWidth; in onMeasure()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java578 public void onDesiredSizeChanged(int desiredWidth, int desiredHeight) { in onDesiredSizeChanged() argument
1045 void doDesiredSizeChanged(int desiredWidth, int desiredHeight) { in doDesiredSizeChanged() argument
1048 + desiredWidth + "," + desiredHeight + "): " + this); in doDesiredSizeChanged()
1049 mIWallpaperEngine.mReqWidth = desiredWidth; in doDesiredSizeChanged()
1051 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.java279 lp.desiredWidth = (int) Layout.getDesiredWidth(getText(), 0, getText().length(), in getTextAppropriateLayoutParams()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java348 int desiredWidth = getMeasuredWidth() - widthPadding; in onMeasure() local
349 if (child.getMeasuredWidth() < desiredWidth) { in onMeasure()
351 desiredWidth, MeasureSpec.EXACTLY); in onMeasure()
DNumberPicker.java1707 final int desiredWidth = Math.max(minSize, measuredSize); in resolveSizeAndStateRespectingMinSize() local
1708 return resolveSizeAndState(desiredWidth, measureSpec, 0); in resolveSizeAndStateRespectingMinSize()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp2211 constexpr uint32_t desiredWidth = 1024; in TEST_F() local
2227 state.width = desiredWidth; in TEST_F()
2241 EXPECT_EQ(desiredWidth, display.getCurrentDisplayState().width); in TEST_F()