Searched refs:drawableHeight (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/v4/tests/java/android/support/v4/testutils/ |
D | TestUtils.java | 73 int drawableHeight = drawable.getIntrinsicHeight(); in assertAllPixelsOfColor() local 75 if ((drawableWidth <= 0) || (drawableHeight <= 0)) { in assertAllPixelsOfColor() 79 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, in assertAllPixelsOfColor() 92 int drawableWidth, int drawableHeight, @ColorInt int color, in assertAllPixelsOfColor() argument 95 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor() 99 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor() 105 for (int row = 0; row < drawableHeight; row++) { in assertAllPixelsOfColor()
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | TestUtils.java | 41 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/base/core/java/android/transition/ |
D | ChangeImageTransform.java | 106 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/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
D | TestUtils.java | 114 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, in assertAllPixelsOfColor() argument 117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, in assertAllPixelsOfColor() 123 drawable.setBounds(0, 0, drawableWidth, drawableHeight); in assertAllPixelsOfColor() 129 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color, in assertAllPixelsOfColor()
|
/frameworks/base/core/java/android/widget/ |
D | CompoundButton.java | 406 final int drawableHeight = buttonDrawable.getIntrinsicHeight(); in onDraw() local 412 top = getHeight() - drawableHeight; in onDraw() 415 top = (getHeight() - drawableHeight) / 2; in onDraw() 420 final int bottom = top + drawableHeight; in onDraw()
|
D | ProgressBar.java | 826 int drawableHeight = d.getMinimumHeight(); in setProgressDrawable() local 827 if (mMaxHeight < drawableHeight) { in setProgressDrawable() 828 mMaxHeight = drawableHeight; in setProgressDrawable()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | DetailsOverviewRowPresenter.java | 474 final int drawableHeight = getNonNegativeHeight(row.getImageDrawable()); in bindImageDrawable() local 483 if (drawableWidth > drawableHeight) { in bindImageDrawable() 491 (!landscape && drawableHeight > cardHeight)) { in bindImageDrawable() 502 } else if (!landscape && drawableHeight > cardHeight - 2 * verticalMargin) { in bindImageDrawable()
|