Home
last modified time | relevance | path

Searched refs:drawableHeight (Results 1 – 11 of 11) sorted by relevance

/frameworks/support/compat/tests/java/android/support/v4/testutils/
DTestUtils.java40 int drawableHeight = drawable.getIntrinsicHeight(); in assertAllPixelsOfColor() local
42 if ((drawableWidth <= 0) || (drawableHeight <= 0)) { in assertAllPixelsOfColor()
46 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, in assertAllPixelsOfColor()
59 int drawableWidth, int drawableHeight, @ColorInt int color, in assertAllPixelsOfColor() argument
62 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor()
66 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor()
72 for (int row = 0; row < drawableHeight; row++) { in assertAllPixelsOfColor()
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtils.java39 int drawableHeight = drawable.getIntrinsicHeight(); in assertAllPixelsOfColor() local
41 if ((drawableWidth <= 0) || (drawableHeight <= 0)) { in assertAllPixelsOfColor()
45 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, in assertAllPixelsOfColor()
58 int drawableWidth, int drawableHeight, @ColorInt int color, in assertAllPixelsOfColor() argument
61 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor()
65 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor()
71 for (int row = 0; row < drawableHeight; row++) { in assertAllPixelsOfColor()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtils.java41 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, in assertAllPixelsOfColor() argument
43 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, in assertAllPixelsOfColor()
48 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, in assertAllPixelsOfColor() argument
52 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor()
57 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor()
67 final int lastRow = checkArea != null ? checkArea.bottom : drawableHeight - 1; in assertAllPixelsOfColor()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java119 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, in assertAllPixelsOfColor() argument
122 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, in assertAllPixelsOfColor()
128 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor()
134 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color, in assertAllPixelsOfColor()
184 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, in assertCenterPixelOfColor() argument
187 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); in assertCenterPixelOfColor()
192 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertCenterPixelOfColor()
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java106 int drawableHeight = drawable.getIntrinsicHeight(); in captureValues() local
107 if (drawableWidth > 0 && drawableHeight > 0) { in captureValues()
109 float scaleY = ((float) bounds.height()) / drawableHeight; in captureValues()
172 int drawableHeight = drawable.getIntrinsicHeight(); in createAnimator() local
175 if (drawableWidth == 0 || drawableHeight == 0) { in createAnimator()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java109 int drawableHeight = bounds.height(); in draw() local
122 } else if (drawableHeight > bitmapHeight in draw()
132 bitmap = createBitmapCache(drawableWidth, drawableHeight); in draw()
159 public Bitmap createBitmapCache(int drawableWidth, int drawableHeight) { in createBitmapCache() argument
161 float scaleY = drawableHeight / VIEWBOX_HEIGHT; in createBitmapCache()
/frameworks/base/core/java/android/widget/
DCompoundButton.java424 final int drawableHeight = buttonDrawable.getIntrinsicHeight(); in onDraw() local
430 top = getHeight() - drawableHeight; in onDraw()
433 top = (getHeight() - drawableHeight) / 2; in onDraw()
438 final int bottom = top + drawableHeight; in onDraw()
DProgressBar.java789 int drawableHeight = d.getMinimumHeight(); in setProgressDrawable() local
790 if (mMaxHeight < drawableHeight) { in setProgressDrawable()
791 mMaxHeight = drawableHeight; in setProgressDrawable()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRowPresenter.java472 final int drawableHeight = getNonNegativeHeight(row.getImageDrawable()); in bindImageDrawable() local
481 if (drawableWidth > drawableHeight) { in bindImageDrawable()
489 || (!landscape && drawableHeight > cardHeight)) { in bindImageDrawable()
500 } else if (!landscape && drawableHeight > cardHeight - 2 * verticalMargin) { in bindImageDrawable()
/frameworks/support/transition/src/android/support/transition/
DChangeImageTransform.java152 int drawableHeight = drawable.getIntrinsicHeight(); in createAnimator() local
157 if (drawableWidth == 0 || drawableHeight == 0) { in createAnimator()
/frameworks/support/wear/src/android/support/wear/widget/
DCircledImageView.java394 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight); in onLayout() local
400 final int drawableTop = (viewHeight - drawableHeight) / 2; in onLayout()
404 drawableTop + drawableHeight); in onLayout()