/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayoutTest.java | 246 int oldWidth0 = column0.getWidth(); in testColumnStretchableEffect() 247 int oldWidth1 = column1.getWidth(); in testColumnStretchableEffect() 248 int oldWidth2 = column2.getWidth(); in testColumnStretchableEffect() 255 int totalSpace = mTableDefault.getWidth() - orignalWidth0 in testColumnStretchableEffect() 261 assertEquals(oldWidth0, column0.getWidth()); in testColumnStretchableEffect() 262 assertTrue(oldWidth1 < column1.getWidth()); in testColumnStretchableEffect() 263 assertTrue(oldWidth2 > column2.getWidth()); in testColumnStretchableEffect() 265 assertEquals(orignalWidth0, column0.getWidth()); in testColumnStretchableEffect() 266 assertEquals(orignalWidth1 + extraSpace, column1.getWidth()); in testColumnStretchableEffect() 267 assertEquals(orignalWidth2 + extraSpace, column2.getWidth()); in testColumnStretchableEffect() [all …]
|
D | MagnifierTest.java | 106 .setSize(mView.getWidth() / 2, mView.getHeight() / 2) in setup() 162 assertEquals(magnifierWidth, magnifier.getWidth()); in testBuilder_setsPropertiesCorrectly_whenTheyAreValid() 227 assertEquals(width, magnifier.getWidth()); in testMagnifierDefaultParameters_withDeprecatedConstructor() 256 assertEquals(width, magnifier.getWidth()); in testMagnifierDefaultParameters_withBuilder() 280 assertTrue(mMagnifier.getWidth() > 0); in testSizeAndZoom_areValid() 294 final float xCenter = mView.getWidth() / 2f; in testShow() 313 - mMagnifier.getWidth() / 2f + mMagnifier.getSourceWidth() / 2f, in testShow() 330 final float xCenter = mView.getWidth() / 2; in testShow_withDecoupledMagnifierPosition() 342 viewLocationInWindow[0] + xMagnifier - mMagnifier.getWidth() / 2, in testShow_withDecoupledMagnifierPosition() 406 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2); in testMagnifierContent_refreshesAfterUpdate() [all …]
|
D | LinearLayoutTest.java | 208 int parentWidth = parent.getWidth(); in testAccessWeightSum() 209 assertEquals(Math.ceil(parentWidth * 0.2), weight02.getWidth(), 1.0); in testAccessWeightSum() 210 assertEquals(Math.ceil(parentWidth * 0.5), weight05.getWidth(), 1.0); in testAccessWeightSum() 211 assertEquals(Math.ceil(parentWidth * 0.3), weight03.getWidth(), 1.0); in testAccessWeightSum() 236 assertEquals(100, parent.getWidth()); in testWeightDistribution() 237 assertEquals(100, parent.getChildAt(0).getWidth()); in testWeightDistribution() 238 assertEquals(100, parent.getChildAt(1).getWidth()); in testWeightDistribution() 239 assertEquals(100, parent.getChildAt(2).getWidth()); in testWeightDistribution() 255 assertEquals(100, parent.getWidth()); in testWeightDistribution() 256 assertEquals(33, parent.getChildAt(0).getWidth()); in testWeightDistribution() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | NinePatchTest.java | 116 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw() 119 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw() 124 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw() 127 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw() 131 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw() 134 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw() 141 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw() 144 rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw() 151 assertEquals(expected.getWidth(), bitmap.getWidth()); in verifyBitmapWithAlpha() 153 int width = expected.getWidth(); in verifyBitmapWithAlpha() [all …]
|
D | BitmapFactoryTest.java | 137 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResource1() 148 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2() 160 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResourceStream() 170 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray1() 182 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray2() 193 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream1() 205 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream2() 215 assertEquals(WIDTHS[i], b.getWidth()); in testDecodeStream3() 302 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor1() 315 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor2() [all …]
|
D | MediaVulkanGpuTest.java | 40 int[] framePixels = new int[bitmap.getWidth() * bitmap.getHeight()]; in getFramePixels() 41 bitmap.getPixels(framePixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), in getFramePixels()
|
D | BitmapColorSpaceTest.java | 188 Bitmap cropped = Bitmap.createBitmap(orig, 0, 0, orig.getWidth() / 2, in createFromSourceWithColorSpace() 196 m.setRotate(45, orig.getWidth() / 2, orig.getHeight() / 2); in createFromSourceWithColorSpace() 197 Bitmap rotated = Bitmap.createBitmap(orig, 0, 0, orig.getWidth(), in createFromSourceWithColorSpace() 223 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in sRGB() 228 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in sRGB() 242 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in p3() 247 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in p3() 264 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in extendedSRGB() 269 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in extendedSRGB() 332 b.reconfigure(b.getWidth() / 4, b.getHeight() / 4, Bitmap.Config.RGBA_F16); in reconfigure() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | PrecomputedTextTest.java | 322 assertEquals(0.0f, PrecomputedText.create("", param).getWidth(0, 0), 0.0f); in testGetWidth() 324 assertEquals(0.0f, PrecomputedText.create("I", param).getWidth(0, 0), 0.0f); in testGetWidth() 325 assertEquals(0.0f, PrecomputedText.create("I", param).getWidth(1, 1), 0.0f); in testGetWidth() 326 assertEquals(1.0f, PrecomputedText.create("I", param).getWidth(0, 1), 0.0f); in testGetWidth() 328 assertEquals(0.0f, PrecomputedText.create("V", param).getWidth(0, 0), 0.0f); in testGetWidth() 329 assertEquals(0.0f, PrecomputedText.create("V", param).getWidth(1, 1), 0.0f); in testGetWidth() 330 assertEquals(5.0f, PrecomputedText.create("V", param).getWidth(0, 1), 0.0f); in testGetWidth() 332 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(0, 0), 0.0f); in testGetWidth() 333 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(1, 1), 0.0f); in testGetWidth() 334 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(2, 2), 0.0f); in testGetWidth() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 77 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in compareBitmap() 79 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in compareBitmap() 83 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in compareBitmap() 85 a.getPixels(aPixels, /*offset*/0, /*stride*/a.getWidth(), /*x*/0, /*y*/0, a.getWidth(), in compareBitmap() 87 b.getPixels(bPixels, /*offset*/0, /*stride*/b.getWidth(), /*x*/0, /*y*/0, b.getWidth(), in compareBitmap()
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | Utils.java | 157 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform() 171 transformation.postScale((float) clipping.width() / renderedBm.getWidth(), in renderAndThenTransform() 175 transformation.postScale((float) bmWidth / renderedBm.getWidth(), in renderAndThenTransform() 208 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in getNonMatching() 212 int[] aPx = new int[a.getWidth() * a.getHeight()]; in getNonMatching() 213 int[] bPx = new int[b.getWidth() * b.getHeight()]; in getNonMatching() 214 a.getPixels(aPx, 0, a.getWidth(), 0, 0, a.getWidth(), a.getHeight()); in getNonMatching() 215 b.getPixels(bPx, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in getNonMatching() 218 int totalPixels = a.getWidth() * a.getHeight(); in getNonMatching()
|
D | PdfDocumentTest.java | 196 assertEquals(101, page.getWidth()); in writeTwoPageDocWithSameIndex() 201 assertEquals(201, page.getWidth()); in writeTwoPageDocWithSameIndex() 249 assertEquals(101, page.getWidth()); in writeTwoPageDoc() 273 assertEquals(101, page.getWidth()); in writeTwoPageDoc() 278 assertEquals(201, page.getWidth()); in writeTwoPageDoc() 369 assertEquals(100, page.getCanvas().getWidth()); in createPageWithFullContentRect() 383 assertEquals(80, page.getCanvas().getWidth()); in createPageWithPartialContentRect() 397 assertEquals(0, page.getCanvas().getWidth()); in createPageWithEmptyContentRect() 415 assertEquals(0, page.getCanvas().getWidth()); in createPageWithInverseContentRect()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTestBase.java | 62 return Bitmap.createBitmap(fullBitmap, 0, 0, activity.getWidth(), activity.getTop()); in takeStatusBarScreenshot() 67 return Bitmap.createBitmap(fullBitmap, 0, activity.getBottom(), activity.getWidth(), in takeNavigationBarScreenshot() 100 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in checkNavigationBarDivider() 101 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in checkNavigationBarDivider() 107 int x = i % bitmap.getWidth(); in checkNavigationBarDivider() 108 int y = i / bitmap.getWidth(); in checkNavigationBarDivider() 118 for (int col = 0; col < bitmap.getWidth(); col++) { in checkNavigationBarDivider() 132 0.3f, (float) diffCount / (float)bitmap.getWidth(), in checkNavigationBarDivider()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | ShapeTest.java | 53 assertEquals(200f, mockShape.getWidth(), 0.0f); in testSize() 58 assertEquals(0f, mockShape.getWidth(), 0.0f); in testSize() 62 assertEquals(Float.MAX_VALUE, mockShape.getWidth(), 0.0f); in testSize() 66 assertEquals(0f, mockShape.getWidth(), 0.0f); in testSize() 94 assertEquals(100f, shape.getWidth(), 0.0f); in testClone() 98 assertEquals(shape.getWidth(), clonedShape.getWidth(), 0.0f); in testClone()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 53 if ((bmp1.getWidth() != bmp2.getWidth()) || (bmp1.getHeight() != bmp2.getHeight())) { in compareBasicBitmapsInfo() 55 + "bmp1=(" + bmp1.getWidth() + "x" + bmp1.getHeight() + "), " in compareBasicBitmapsInfo() 56 + "bmp2=(" + bmp2.getWidth() + "x" + bmp2.getHeight() + ")"); in compareBasicBitmapsInfo() 69 for (int i = 0; i < bmp1.getWidth(); i++) { in compareBitmaps() 90 final int width = bmp1.getWidth(); in compareBitmaps() 149 for (int x = 0; x < bitmap.getWidth(); x++) { in logIfBitmapSolidColor()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 53 if ((bmp1.getWidth() != bmp2.getWidth()) || (bmp1.getHeight() != bmp2.getHeight())) { in compareBasicBitmapsInfo() 55 + "bmp1=(" + bmp1.getWidth() + "x" + bmp1.getHeight() + "), " in compareBasicBitmapsInfo() 56 + "bmp2=(" + bmp2.getWidth() + "x" + bmp2.getHeight() + ")"); in compareBasicBitmapsInfo() 69 for (int i = 0; i < bmp1.getWidth(); i++) { in compareBitmaps() 90 final int width = bmp1.getWidth(); in compareBitmaps() 149 for (int x = 0; x < bitmap.getWidth(); x++) { in logIfBitmapSolidColor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | CameraPreviewView.java | 43 float centerX = canvas.getWidth() / 2.0f; in onDraw() 52 int vertLines = canvas.getWidth() / 2 / GRID_WIDTH; in onDraw() 56 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); in onDraw() 58 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); in onDraw()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecImage.java | 101 public abstract int getWidth(); in getWidth() method in CodecImage 130 return new Rect(0, 0, getWidth(), getHeight()); in getCropRect() 145 cropRect.intersect(0, 0, getWidth(), getHeight()); in setCropRect()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | RenderNodeTests.java | 55 assertEquals(0, renderNode.getWidth()); in testDefaults() 105 assertEquals(rect.width(), canvas.getWidth()); in testBasicDraw() 295 assertEquals(0, renderNode.getWidth()); in testStartEndRecordingEmpty() 299 assertEquals(0, canvas.getWidth()); in testStartEndRecordingEmpty() 308 assertEquals(20, renderNode.getWidth()); in testStartEndRecordingWithBounds() 312 assertEquals(20, canvas.getWidth()); in testStartEndRecordingWithBounds() 320 assertEquals(0, renderNode.getWidth()); in testStartEndRecordingEmptyWithSize() 324 assertEquals(5, canvas.getWidth()); in testStartEndRecordingEmptyWithSize() 333 assertEquals(20, renderNode.getWidth()); in testStartEndRecordingWithBoundsWithSize() 337 assertEquals(5, canvas.getWidth()); in testStartEndRecordingWithBoundsWithSize()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureSurfaceView.java | 134 int byteBufferSize = mBaseTexture.getWidth() * in CompressedTextureRender() 175 int w = mBaseTexture.getWidth(); in comparePixel() 200 int w = mBaseTexture.getWidth(); in comparePixels() 201 int h = mBaseTexture.getWidth(); in comparePixels() 222 GLES20.glViewport(0, 0, mBaseTexture.getWidth(), mBaseTexture.getHeight()); in onDrawFrame() 225 GLES20.glReadPixels(0, 0, mBaseTexture.getWidth(), mBaseTexture.getHeight(), in onDrawFrame() 264 mBaseTexture.getWidth(), mBaseTexture.getHeight(), 0, in initFBO() 328 mCompressedTexture.getWidth(), in onSurfaceCreated()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | ImageCompare.java | 49 if (bitmap1.getWidth() != bitmap2.getWidth() || in psnr() 60 final int width = bitmap1.getWidth(); in psnr()
|
D | RGBZ.java | 120 public int getWidth() { in getWidth() method in RGBZ 121 return bitmap.getWidth(); in getWidth() 139 if (x < 0 || x > depthBitmap.getWidth() || in getDepth() 161 int w = orig.getWidth(); in setAlphaChannelFromBitmap()
|
/cts/tests/tests/graphics/src/android/graphics/text/cts/ |
D | MeasuredTextTest.java | 117 assertEquals(0.0f, mt.getWidth(0, 0), 0.0f); in testGetWidth() 118 assertEquals(10.0f, mt.getWidth(0, 1), 0.0f); in testGetWidth() 119 assertEquals(20.0f, mt.getWidth(0, 2), 0.0f); in testGetWidth() 120 assertEquals(10.0f, mt.getWidth(1, 2), 0.0f); in testGetWidth() 121 assertEquals(20.0f, mt.getWidth(1, 3), 0.0f); in testGetWidth() 130 .getWidth(-1, 0); in testGetWidth_StartSmallerThanZero() 139 .getWidth(text.length() + 1, 0); in testGetWidth_StartLargerThanLength() 148 .getWidth(0, -1); in testGetWidth_EndSmallerThanZero() 157 .getWidth(0, text.length() + 1); in testGetWidth_EndLargerThanLength() 166 .getWidth(1, 0); in testGetWidth_StartLargerThanEnd()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyViewProducerActivity.java | 80 boolean contentPortrait = mContent.getHeight() > mContent.getWidth(); in onDraw() 90 offset.x - mOutsets.left + mContent.getWidth(), in onDraw() 158 int cx = getWidth() / 2; in onDraw() 168 mRect.set(cx, BORDER_WIDTH, getWidth() - BORDER_WIDTH, cy); in onDraw() 176 mRect.set(cx, cy, getWidth() - BORDER_WIDTH, getHeight() - BORDER_WIDTH); in onDraw()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ShapeHolder.java | 89 public float getWidth() { in getWidth() method in ShapeHolder 90 return mShape.getShape().getWidth(); in getWidth() 104 s.resize(s.getWidth(), height); in setHeight()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | RecordingTest.java | 437 preview.setDefaultBufferSize(size.getWidth(), size.getHeight()); in testAbandonedHighSpeedRequest() 993 (videoSz.getWidth() > maxPreviewSize.getWidth() || in basicRecordingTestByCamera() 1233 (videoSz.getWidth() > maxPreviewSize.getWidth() || in videoSnapshotTestByCamera() 1261 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera() 1269 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera() 1287 videoSz.getWidth() <= maxPreviewSize.getWidth() && in videoSnapshotTestByCamera() 1305 if (videoSnapshotSz.getWidth() * videoSnapshotSz.getHeight() > FRAME_SIZE_15M) in videoSnapshotTestByCamera() 1330 ((videoSnapshotSz.getWidth() > FULL_HD.getWidth()) || in videoSnapshotTestByCamera() 1500 if (videoSize.getWidth() > maxPreviewSize.getWidth() || in updatePreviewSurfaceWithVideo() 1511 s.getWidth() <= videoSize.getWidth() && in updatePreviewSurfaceWithVideo() [all …]
|