/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 | 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 | BitmapFactoryTest.java | 145 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResource1() 156 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2() 168 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResourceStream() 178 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray1() 190 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray2() 201 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream1() 213 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream2() 223 assertEquals(testImage.width, b.getWidth()); in testDecodeStream3() 324 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor1() 337 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor2() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsLayoutTests.java | 68 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsTypes() 87 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsTypesInner() 97 mainWindowRoot.getWidth() - locationOnScreen[0] - childWindowRoot.getWidth()); in testSetFitInsetsTypesInner() 112 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsSides() 133 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsSidesInner() 143 mainWindowRoot.getWidth() - locationOnScreen[0] - childWindowRoot.getWidth()); in testSetFitInsetsSidesInner() 158 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 172 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot1.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 176 locationAndSize1[2] = childWindowRoot1.getWidth(); in testSetFitInsetsIgnoringVisibility() 187 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot2.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() [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/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/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, fullBitmap.getWidth(), activity.getTop()); in takeStatusBarScreenshot() 67 return Bitmap.createBitmap(fullBitmap, 0, activity.getBottom(), fullBitmap.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()
|
D | LightBarBaseActivity.java | 56 public int getWidth() { in getWidth() method in LightBarBaseActivity 57 return mContent.getWidth(); in getWidth()
|
/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/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/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 55 if ((bmp1.getWidth() != bmp2.getWidth()) || (bmp1.getHeight() != bmp2.getHeight())) { in compareBasicBitmapsInfo() 57 + "bmp1=(" + bmp1.getWidth() + "x" + bmp1.getHeight() + "), " in compareBasicBitmapsInfo() 58 + "bmp2=(" + bmp2.getWidth() + "x" + bmp2.getHeight() + ")"); in compareBasicBitmapsInfo() 79 for (int i = 0; i < bmp1.getWidth(); i++) { in compareBitmaps() 100 final int width = bmp1.getWidth(); in compareBitmaps() 159 for (int x = 0; x < bitmap.getWidth(); x++) { in logIfBitmapSolidColor() 200 int width = expected.getWidth(); in compareBitmapsMse()
|
/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/tests/uirendering27/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 52 int width = bitmap1.getWidth(); in assertBitmapsAreSimilar() 55 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar() 78 int width = bitmap.getWidth(); in assertBitmapIsVerified()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 56 final int width = bitmap.getWidth(); in createFromBitmap() 67 int getWidth() { in getWidth() method in BitmapImage 126 final int targetWidth = targetImage.getWidth(); in robustMatch()
|
/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/uirendering/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 46 int width = bitmap1.getWidth(); in assertBitmapsAreSimilar() 49 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar() 73 int width = bitmap.getWidth(); in assertBitmapIsVerified()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | Rgba16fTests.java | 51 width / (float) bitmap.getWidth(), in testTransferFunctions() 72 width / (float) bitmap.getWidth(), in testAlpha() 98 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testMasked() 108 width / (float) bitmap.getWidth(), in testMasked()
|