HomeSort by relevance Sort by last modified time
    Searched refs:getWidth (Results 1 - 25 of 664) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
BitmapUtils.java 68 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) {
70 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" +
74 int[] aPixels = new int[a.getHeight() * a.getWidth()];
76 a.getPixels(aPixels, /*offset*/0, /*stride*/a.getWidth(), /*x*/0, /*y*/0, a.getWidth(),
78 b.getPixels(bPixels, /*offset*/0, /*stride*/b.getWidth(), /*x*/0, /*y*/0, b.getWidth(),
  /cts/tests/tests/media/src/android/media/cts/
CodecImage.java 101 public abstract int getWidth();
130 return new Rect(0, 0, getWidth(), getHeight());
145 cropRect.intersect(0, 0, getWidth(), getHeight());
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/flyout/
IFlyoutPreferences.java 57 int getWidth();
MemoryFlyoutPreferences.java 48 public int getWidth() {
  /external/deqp/framework/opengl/
gluPixelTransfer.cpp 54 TCU_CHECK_INTERNAL(dst.getRowPitch() == dst.getFormat().getPixelSize()*dst.getWidth());
56 int width = dst.getWidth();
73 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
75 int width = src.getWidth();
91 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
94 int width = src.getWidth();
112 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
114 int width = src.getWidth();
130 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth());
133 int width = src.getWidth();
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
NinePatchTest.java 80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(),
83 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight());
88 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(),
91 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight());
95 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(),
98 rect = new Rect(0, 0, c.getWidth(), c.getHeight());
105 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(),
108 rectf = new RectF(0, 0, c.getWidth(), c.getHeight());
115 assertEquals(expected.getWidth(), bitmap.getWidth());
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/request/target/
DrawableImageViewTarget.java 25 float viewRatio = view.getWidth() / (float) view.getHeight();
28 resource = new SquaringDrawable(resource, view.getWidth());
ViewTarget.java 103 notifyCbs(view.getWidth(), view.getHeight());
127 cb.onSizeReady(view.getWidth(), view.getHeight());
134 final int width = display.getWidth();
141 cb.onSizeReady(display.getWidth(), display.getHeight());
151 return view.getWidth() > 0 && view.getHeight() > 0;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
CameraPreviewView.java 43 float centerX = canvas.getWidth() / 2.0f;
52 int vertLines = canvas.getWidth() / 2 / GRID_WIDTH;
56 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint);
58 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint);
  /external/deqp/framework/common/
tcuRenderTarget.hpp 46 int getWidth (void) const { return m_width; }
tcuFuzzyImageCompare.cpp 124 int w = src.getWidth();
162 DE_ASSERT(dst.getWidth() == src.getWidth() && dst.getHeight() == src.getHeight());
164 TextureLevel tmp (dst.getFormat(), dst.getHeight(), dst.getWidth());
174 for (int i = 0; i < src.getWidth(); i++)
181 deUint32 p = readUnorm8<SrcChannels>(src, de::clamp(i+kx-shiftX, 0, src.getWidth()-1), j);
193 for (int i = 0; i < src.getWidth(); i++)
200 deUint32 p = readUnorm8<DstChannels>(tmpAccess, de::clamp(j+ky-shiftY, 0, tmp.getWidth()-1), i);
238 if (!deInBounds32(dx, 0, surface.getWidth()) || !deInBounds32(dy, 0, surface.getHeight()))
274 DE_ASSERT(ref.getWidth() == cmp.getWidth() && ref.getHeight() == cmp.getHeight())
    [all...]
  /cts/tests/tests/animation/src/android/animation/cts/
ShapeHolder.java 89 public float getWidth() {
90 return mShape.getShape().getWidth();
104 s.resize(s.getWidth(), height);
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
ShapeHolder.java 81 public float getWidth() {
82 return shape.getShape().getWidth();
94 s.resize(s.getWidth(), height);
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
TransformationUtils.java 37 } else if (toCrop.getWidth() == width && toCrop.getHeight() == height) {
46 if (toCrop.getWidth() * height > width * toCrop.getHeight()) {
48 dx = (width - toCrop.getWidth() * scale) * 0.5f;
50 scale = (float) width / (float) toCrop.getWidth();
81 if (toFit.getWidth() == width && toFit.getHeight() == height) {
87 final float widthPercentage = width / (float) toFit.getWidth();
94 final int targetWidth = (int) (minPercentage * toFit.getWidth());
97 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) {
112 Log.v(TAG, "toFit: " + toFit.getWidth() + "x" + toFit.getHeight());
113 Log.v(TAG, "toReuse: " + toReuse.getWidth() + "x" + toReuse.getHeight())
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
TableLayoutTest.java 230 int oldWidth0 = column0.getWidth();
231 int oldWidth1 = column1.getWidth();
232 int oldWidth2 = column2.getWidth();
239 int totalSpace = tableLayout.getWidth() - orignalWidth0
249 assertEquals(oldWidth0, column0.getWidth());
250 assertTrue(oldWidth1 < column1.getWidth());
251 assertTrue(oldWidth2 > column2.getWidth());
253 assertEquals(orignalWidth0, column0.getWidth());
254 assertEquals(orignalWidth1 + extraSpace, column1.getWidth());
255 assertEquals(orignalWidth2 + extraSpace, column2.getWidth());
    [all...]
PopupWindowTest.java 79 assertEquals(0, mPopupWindow.getWidth());
83 assertEquals(50, mPopupWindow.getWidth());
87 assertEquals(-1, mPopupWindow.getWidth());
95 assertEquals(0, mPopupWindow.getWidth());
100 assertEquals(50, mPopupWindow.getWidth());
105 assertEquals(-1, mPopupWindow.getWidth());
110 assertEquals(0, mPopupWindow.getWidth());
116 assertEquals(50, mPopupWindow.getWidth());
122 assertEquals(-1, mPopupWindow.getWidth());
227 assertEquals(0, mPopupWindow.getWidth());
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ShapeTest.java 43 assertEquals(200f, mockShape.getWidth());
48 assertEquals(0f, mockShape.getWidth());
52 assertEquals(Float.MAX_VALUE, mockShape.getWidth());
56 assertEquals(0f, mockShape.getWidth());
82 assertEquals(100f, shape.getWidth());
86 assertEquals(shape.getWidth(), clonedShape.getWidth());
RoundRectShapeTest.java 87 assertEquals(100f, roundRectShape.getWidth());
91 assertEquals(roundRectShape.getWidth(), clonedShape.getWidth());
  /external/chromium_org/third_party/angle/src/libGLESv2/
FramebufferAttachment.h 59 virtual GLsizei getWidth() const = 0;
89 virtual GLsizei getWidth() const;
116 virtual GLsizei getWidth() const;
  /external/chromium_org/third_party/angle/util/
OSWindow.cpp 18 int OSWindow::getWidth() const
OSWindow.h 25 int getWidth() const;
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
GoldenImageVerifier.java 28 mGoldenBitmapArray = new int[goldenBitmap.getWidth() * goldenBitmap.getHeight()];
29 goldenBitmap.getPixels(mGoldenBitmapArray, 0, goldenBitmap.getWidth(), 0, 0,
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Pictures.java 68 canvas.drawPicture(mPicture, new RectF(0, 100, getWidth(), 200));
70 mDrawable.setBounds(0, 200, getWidth(), 300);
  /external/deqp/framework/referencerenderer/
rrMultisamplePixelBufferAccess.hpp 48 inline int getNumSamples (void) const { return raw().getWidth(); }
76 inline int getNumSamples (void) const { return raw().getWidth(); }
rrMultisamplePixelBufferAccess.cpp 59 original.getWidth(),
105 original.getWidth(),
129 DE_ASSERT(dst.getWidth() == src.raw().getHeight());
136 for (int x = 0; x < dst.getWidth(); x++)
139 for (int s = 0; s < src.raw().getWidth(); s++)

Completed in 477 milliseconds

1 2 3 4 5 6 7 8 91011>>