/frameworks/support/compat/tests/java/android/support/v4/testutils/ |
TestUtils.java | 44 int drawableWidth = drawable.getIntrinsicWidth(); 47 if ((drawableWidth <= 0) || (drawableHeight <= 0)) { 51 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, 64 int drawableWidth, int drawableHeight, @ColorInt int color, 67 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); 71 drawable.setBounds(0, 0, drawableWidth, drawableHeight); 76 int[] rowPixels = new int[drawableWidth]; 78 bitmap.getPixels(rowPixels, 0, drawableWidth, 0, row, drawableWidth, 1); 79 for (int column = 0; column < drawableWidth; column++) [all...] |
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
TestUtils.java | 38 int drawableWidth = drawable.getIntrinsicWidth(); 41 if ((drawableWidth <= 0) || (drawableHeight <= 0)) { 45 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, 58 int drawableWidth, int drawableHeight, @ColorInt int color, 61 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); 65 drawable.setBounds(0, 0, drawableWidth, drawableHeight); 70 int[] rowPixels = new int[drawableWidth]; 72 bitmap.getPixels(rowPixels, 0, drawableWidth, 0, row, drawableWidth, 1); 73 for (int column = 0; column < drawableWidth; column++) [all...] |
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtils.java | 41 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 43 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, 48 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 52 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); 57 drawable.setBounds(0, 0, drawableWidth, drawableHeight); 64 int[] rowPixels = new int[drawableWidth]; 69 final int lastCol = checkArea != null ? checkArea.right : drawableWidth - 1; 77 bitmap.getPixels(rowPixels, 0, drawableWidth, 0, row, drawableWidth, 1);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
PlaceholderInsetDrawable.java | 45 final int drawableWidth = drawable.getIntrinsicWidth(); 47 final int insetHorizontal = drawableWidth < 0 || drawableWidth > sourceWidth ? 48 0 : (sourceWidth - drawableWidth) / 2;
|
/frameworks/base/core/java/android/transition/ |
ChangeImageTransform.java | 105 int drawableWidth = drawable.getIntrinsicWidth(); 107 if (drawableWidth > 0 && drawableHeight > 0) { 108 float scaleX = ((float) bounds.width()) / drawableWidth; 171 int drawableWidth = drawable.getIntrinsicWidth(); 175 if (drawableWidth == 0 || drawableHeight == 0) {
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
ButtonDropTarget.java | 124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { 131 final int width = drawableWidth;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
ClickShadowView.java | 96 float drawableWidth = view.getIcon().getBounds().width(); 101 + (iconHSpace - drawableWidth) * view.getScaleX() / 2 /* drawable gap */
|
ButtonDropTarget.java | 266 protected Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { 273 final int width = drawableWidth;
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
TestUtils.java | 137 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 140 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, 146 drawable.setBounds(0, 0, drawableWidth, drawableHeight); 152 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color,
|
/cts/tests/tests/widget/src/android/widget/cts/ |
CompoundButtonTest.java | 257 int drawableWidth; 274 drawableWidth = drawable.getIntrinsicWidth(); 280 assertEquals(drawableWidth, bounds.right); 289 assertEquals(drawableWidth, bounds.right); 298 assertEquals(drawableWidth, bounds.right);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
GlifPatternDrawable.java | 107 int drawableWidth = bounds.width(); 118 if (drawableWidth > bitmapWidth 131 bitmap = createBitmapCache(drawableWidth, drawableHeight); 158 public Bitmap createBitmapCache(int drawableWidth, int drawableHeight) { 159 float scaleX = drawableWidth / VIEWBOX_WIDTH;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
TestUtils.java | 114 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, 123 drawable.setBounds(0, 0, drawableWidth, drawableHeight); 129 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
DetailsOverviewRowPresenter.java | 473 final int drawableWidth = getNonNegativeWidth(row.getImageDrawable()); 483 if (drawableWidth > drawableHeight) { 490 if ((landscape && drawableWidth > cardHeight) || 500 if (landscape && drawableWidth > cardHeight - horizontalMargin) { 536 layoutParams.width = Math.min(cardHeight, drawableWidth);
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 360 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); 364 final int drawableLeft = (viewWidth - drawableWidth) / 2 365 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); 368 mDrawable.setBounds(drawableLeft, drawableTop, drawableLeft + drawableWidth,
|
/frameworks/base/core/java/android/widget/ |
CompoundButton.java | 407 final int drawableWidth = buttonDrawable.getIntrinsicWidth(); 421 final int left = isLayoutRtl() ? getWidth() - drawableWidth : 0; 422 final int right = isLayoutRtl() ? getWidth() : drawableWidth;
|
Editor.java | [all...] |
/external/libdrm/tests/ttmtest/src/ |
xf86dristr.h | 300 INT16 drawableWidth B16;
|
xf86dri.c | 490 *W = (int)rep.drawableWidth;
|
/external/mesa3d/src/glx/ |
xf86dristr.h | 281 INT16 drawableWidth B16;
|
XF86dri.c | 494 *W = (int) rep.drawableWidth;
|
/hardware/intel/common/libva/va/x11/ |
va_dristr.h | 264 INT16 drawableWidth B16;
|
va_dri.c | 485 *W = (int)rep.drawableWidth;
|