/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() 152 assertEquals(expected.getHeight(), bitmap.getHeight()); in verifyBitmapWithAlpha() 154 int height = expected.getHeight(); in verifyBitmapWithAlpha() [all …]
|
D | BitmapFactoryTest.java | 144 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1() 155 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2() 167 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResourceStream() 177 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray1() 189 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray2() 200 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream1() 212 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream2() 224 assertEquals(testImage.height, b.getHeight()); in testDecodeStream3() 323 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor1() 336 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor2() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MagnifierTest.java | 106 .setSize(mView.getWidth() / 2, mView.getHeight() / 2) in setup() 163 assertEquals(magnifierHeight, magnifier.getHeight()); in testBuilder_setsPropertiesCorrectly_whenTheyAreValid() 229 assertEquals(height, magnifier.getHeight()); in testMagnifierDefaultParameters_withDeprecatedConstructor() 258 assertEquals(height, magnifier.getHeight()); in testMagnifierDefaultParameters_withBuilder() 281 assertTrue(mMagnifier.getHeight() > 0); in testSizeAndZoom_areValid() 295 final float yCenter = mView.getHeight() / 2f; in testShow() 316 - mMagnifier.getHeight() / 2f + mMagnifier.getSourceHeight() / 2f, in testShow() 331 final float yCenter = mView.getHeight() / 2; in testShow_withDecoupledMagnifierPosition() 345 viewLocationInWindow[1] + yMagnifier - mMagnifier.getHeight() / 2, in testShow_withDecoupledMagnifierPosition() 406 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2); in testMagnifierContent_refreshesAfterUpdate() [all …]
|
D | LinearLayoutTest.java | 240 assertEquals(100, parent.getHeight()); in testWeightDistribution() 241 assertEquals(33, parent.getChildAt(0).getHeight()); in testWeightDistribution() 242 assertEquals(33, parent.getChildAt(1).getHeight()); in testWeightDistribution() 243 assertEquals(34, parent.getChildAt(2).getHeight()); in testWeightDistribution() 259 assertEquals(100, parent.getHeight()); in testWeightDistribution() 260 assertEquals(100, parent.getChildAt(0).getHeight()); in testWeightDistribution() 261 assertEquals(100, parent.getChildAt(1).getHeight()); in testWeightDistribution() 262 assertEquals(100, parent.getChildAt(2).getHeight()); in testWeightDistribution() 368 assertEquals(topView.getHeight(), topView.getBottom()); in testLayoutHorizontal() 372 int offset = (parent.getHeight() - centerView.getHeight()) / 2; in testLayoutHorizontal() [all …]
|
D | PopupWindowTest.java | 135 assertEquals(0, mPopupWindow.getHeight()); in testSize() 139 assertEquals(50, mPopupWindow.getHeight()); in testSize() 143 assertEquals(-1, mPopupWindow.getHeight()); in testSize() 151 assertEquals(0, mPopupWindow.getHeight()); in testSize() 156 assertEquals(50, mPopupWindow.getHeight()); in testSize() 161 assertEquals(-1, mPopupWindow.getHeight()); in testSize() 166 assertEquals(0, mPopupWindow.getHeight()); in testSize() 172 assertEquals(50, mPopupWindow.getHeight()); in testSize() 178 assertEquals(-1, mPopupWindow.getHeight()); in testSize() 295 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getHeight()); in testAccessHeight() [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() 80 b.getHeight()); in compareBitmap() 83 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in compareBitmap() 86 a.getHeight()); in compareBitmap() 88 b.getHeight()); in compareBitmap()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | ShapeTest.java | 54 assertEquals(300f, mockShape.getHeight(), 0.0f); in testSize() 59 assertEquals(0f, mockShape.getHeight(), 0.0f); in testSize() 63 assertEquals(Float.MAX_VALUE, mockShape.getHeight(), 0.0f); in testSize() 67 assertEquals(0f, mockShape.getHeight(), 0.0f); in testSize() 95 assertEquals(200f, shape.getHeight(), 0.0f); in testClone() 99 assertEquals(shape.getHeight(), clonedShape.getHeight(), 0.0f); in testClone()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | CameraPreviewView.java | 44 float centerY = canvas.getHeight() / 2.0f; in onDraw() 48 canvas.drawLine(centerX, 0, centerX, canvas.getHeight(), mPaint); in onDraw() 53 int horizLines = canvas.getHeight() / 2 / GRID_WIDTH; in onDraw() 62 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); in onDraw() 64 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); in onDraw()
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | Utils.java | 157 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform() 172 (float) clipping.height() / renderedBm.getHeight()); in renderAndThenTransform() 176 (float) bmHeight / renderedBm.getHeight()); 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 | 197 assertEquals(100, page.getHeight()); in writeTwoPageDocWithSameIndex() 202 assertEquals(200, page.getHeight()); in writeTwoPageDocWithSameIndex() 250 assertEquals(100, page.getHeight()); in writeTwoPageDoc() 274 assertEquals(100, page.getHeight()); in writeTwoPageDoc() 279 assertEquals(200, page.getHeight()); in writeTwoPageDoc() 370 assertEquals(200, page.getCanvas().getHeight()); in createPageWithFullContentRect() 384 assertEquals(160, page.getCanvas().getHeight()); in createPageWithPartialContentRect() 398 assertEquals(0, page.getCanvas().getHeight()); in createPageWithEmptyContentRect() 416 assertEquals(0, page.getCanvas().getHeight()); in createPageWithInverseContentRect()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecImage.java | 107 public abstract int getHeight(); in getHeight() method in CodecImage 130 return new Rect(0, 0, getWidth(), getHeight()); in getCropRect() 145 cropRect.intersect(0, 0, getWidth(), getHeight()); in setCropRect()
|
/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() 80 for (int j = 0; j < bmp1.getHeight(); j++) { in compareBitmaps() 101 final int height = bmp1.getHeight(); in compareBitmaps() 160 for (int y = 0; y < bitmap.getHeight(); y++) { in logIfBitmapSolidColor() 201 int height = expected.getHeight(); in compareBitmapsMse()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | ImageCompare.java | 50 bitmap1.getHeight() != bitmap2.getHeight()) { in psnr() 61 final int height = bitmap1.getHeight(); in psnr()
|
D | RGBZ.java | 127 public int getHeight() { in getHeight() method in RGBZ 128 return bitmap.getHeight(); in getHeight() 140 y < 0 || y > depthBitmap.getHeight()) { in getDepth() 162 int h = orig.getHeight(); in setAlphaChannelFromBitmap()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsLayoutTests.java | 95 mainWindowRoot.getHeight()- locationOnScreen[1] - childWindowRoot.getHeight()); in testSetFitInsetsTypesInner() 139 mainWindowRoot.getHeight()- locationOnScreen[1] - childWindowRoot.getHeight()); in testSetFitInsetsSidesInner() 169 locationAndSize1[3] = childWindowRoot1.getHeight(); in testSetFitInsetsIgnoringVisibility() 184 locationAndSize2[3] = childWindowRoot2.getHeight(); in testSetFitInsetsIgnoringVisibility() 225 assertEquals(size.y, rootView.getHeight()); in assertMatchDisplay()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ShapeHolder.java | 95 s.resize(width, s.getHeight()); in setWidth() 98 public float getHeight() { in getHeight() method in ShapeHolder 99 return mShape.getShape().getHeight(); in getHeight()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | RenderNodeTests.java | 56 assertEquals(0, renderNode.getHeight()); in testDefaults() 106 assertEquals(rect.height(), canvas.getHeight()); in testBasicDraw() 296 assertEquals(0, renderNode.getHeight()); in testStartEndRecordingEmpty() 300 assertEquals(0, canvas.getHeight()); in testStartEndRecordingEmpty() 309 assertEquals(30, renderNode.getHeight()); in testStartEndRecordingWithBounds() 313 assertEquals(30, canvas.getHeight()); in testStartEndRecordingWithBounds() 321 assertEquals(0, renderNode.getHeight()); in testStartEndRecordingEmptyWithSize() 325 assertEquals(10, canvas.getHeight()); in testStartEndRecordingEmptyWithSize() 334 assertEquals(30, renderNode.getHeight()); in testStartEndRecordingWithBoundsWithSize() 338 assertEquals(10, canvas.getHeight()); in testStartEndRecordingWithBoundsWithSize()
|
D | Rgba16fTests.java | 52 height / (float) bitmap.getHeight()); in testTransferFunctions() 73 height / (float) bitmap.getHeight()); in testAlpha() 98 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testMasked() 109 height / (float) bitmap.getHeight()); in testMasked()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 49 final int height = bitmap.getHeight(); in createFromBitmap() 67 int getHeight() { in getHeight() method in BitmapImage 104 final int targetHeight = targetImage.getHeight(); in match()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyViewProducerActivity.java | 80 boolean contentPortrait = mContent.getHeight() > mContent.getWidth(); in onDraw() 91 offset.y - mOutsets.top + mContent.getHeight()); in onDraw() 159 int cy = getHeight() / 2; in onDraw() 172 mRect.set(BORDER_WIDTH, cy, cx, getHeight() - BORDER_WIDTH); in onDraw() 176 mRect.set(cx, cy, getWidth() - BORDER_WIDTH, getHeight() - BORDER_WIDTH); in onDraw()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | Watermark.java | 54 final int height = bitmap.getHeight(); in createFromBitmap() 72 int getHeight() { in getHeight() method in Watermark.BitmapImage 109 final int targetHeight = targetImage.getHeight(); in match() 232 for (int offsetY = targetImage.getHeight() - 1; offsetY >= 0; --offsetY) { in detect()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 53 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar() 55 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar() 79 int height = bitmap.getHeight(); in assertBitmapIsVerified()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | LineHeightSpan_StandardTest.java | 87 assertEquals(height, span.getHeight()); in testGetHeight() 98 assertEquals(span.getHeight(), parcelSpan.getHeight()); in testWriteToParcel()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 47 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar() 49 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar() 74 int height = bitmap.getHeight(); in assertBitmapIsVerified()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 93 final int h = generated.getHeight(); in checkNeighbors() 132 final int h = generated.getHeight(); in compare() 133 if (w != reference.getWidth() || h != reference.getHeight()) { in compare() 165 final int h1 = expected.getHeight(); in createDiff() 167 final int h2 = actual.getHeight(); in createDiff()
|