Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 187) sorted by relevance

12345678

/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java115 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
118 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
123 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
126 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
130 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
133 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
140 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
143 rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
151 assertEquals(expected.getHeight(), bitmap.getHeight()); in verifyBitmapWithAlpha()
153 int height = expected.getHeight(); in verifyBitmapWithAlpha()
[all …]
DBitmapFactoryTest.java132 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1()
143 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2()
155 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResourceStream()
165 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray1()
177 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray2()
188 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream1()
200 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream2()
212 assertEquals(HEIGHTS[i], b.getHeight()); in testDecodeStream3()
297 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor1()
310 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor2()
[all …]
DBitmapColorSpaceTest.java156 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in sRGB()
161 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in sRGB()
175 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in p3()
180 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in p3()
197 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in extendedSRGB()
202 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in extendedSRGB()
222 b.reconfigure(b.getWidth() / 2, b.getHeight() / 2, Bitmap.Config.RGBA_F16); in reconfigure()
227 b.reconfigure(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888); in reconfigure()
280 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in verifyGetPixel()
283 b = Bitmap.createScaledBitmap(b, b.getWidth() / 2, b.getHeight() / 2, true); in verifyGetPixel()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java68 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in calcDifferenceMetric()
70 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in calcDifferenceMetric()
71 b.getHeight()); in calcDifferenceMetric()
74 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in calcDifferenceMetric()
77 a.getHeight()); in calcDifferenceMetric()
79 b.getHeight()); in calcDifferenceMetric()
/cts/tests/app/src/android/app/cts/
DDisplayTest.java55 final int origHeight = origDisplay.getHeight(); in testRotation()
70 origHeight == origDisplay.getHeight()); in testRotation()
78 origDisplay.getHeight() == updatedDisplay.getHeight()); in testRotation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java44 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/tests/graphics/src/android/graphics/drawable/shapes/cts/
DShapeTest.java53 assertEquals(300f, mockShape.getHeight(), 0.0f); in testSize()
58 assertEquals(0f, mockShape.getHeight(), 0.0f); in testSize()
62 assertEquals(Float.MAX_VALUE, mockShape.getHeight(), 0.0f); in testSize()
66 assertEquals(0f, mockShape.getHeight(), 0.0f); in testSize()
94 assertEquals(200f, shape.getHeight(), 0.0f); in testClone()
98 assertEquals(shape.getHeight(), clonedShape.getHeight(), 0.0f); in testClone()
/cts/tests/tests/media/src/android/media/cts/
DCodecImage.java107 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()
DDecodeAccuracyTest.java203 if (!MediaUtils.canDecodeVideo(vf.getMimeType(), vf.getWidth(), vf.getHeight(), 30)) { in runTest()
264 public int getHeight() { in getLargerHeightVideoFormat()
265 return super.getHeight() + OFFSET; in getLargerHeightVideoFormat()
269 return super.getHeight() * 2 + OFFSET; in getLargerHeightVideoFormat()
286 return super.getHeight() * 2 + OFFSET;
/cts/tests/pdf/src/android/graphics/pdf/cts/
DUtils.java157 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()
DPdfDocumentTest.java196 assertEquals(100, page.getHeight()); in writeTwoPageDocWithSameIndex()
201 assertEquals(200, page.getHeight()); in writeTwoPageDocWithSameIndex()
249 assertEquals(100, page.getHeight()); in writeTwoPageDoc()
273 assertEquals(100, page.getHeight()); in writeTwoPageDoc()
278 assertEquals(200, page.getHeight()); in writeTwoPageDoc()
369 assertEquals(200, page.getCanvas().getHeight()); in createPageWithFullContentRect()
383 assertEquals(160, page.getCanvas().getHeight()); in createPageWithPartialContentRect()
397 assertEquals(0, page.getCanvas().getHeight()); in createPageWithEmptyContentRect()
415 assertEquals(0, page.getCanvas().getHeight()); in createPageWithInverseContentRect()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DImageCompare.java50 bitmap1.getHeight() != bitmap2.getHeight()) { in psnr()
61 final int height = bitmap1.getHeight(); in psnr()
DRGBZ.java127 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()
DImageBuffersForRenderScript.java52 inputImage.getHeight(), Bitmap.Config.ARGB_8888); in ImageBuffersForRenderScript()
57 imageHeightPadded = inputImage.getHeight() + 2 * margin; in ImageBuffersForRenderScript()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java95 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/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java73 boolean contentPortrait = mContent.getHeight() > mContent.getWidth(); in onDraw()
83 offset.x + mContent.getWidth(), offset.y + mContent.getHeight()); in onDraw()
138 int cy = getHeight() / 2; in onDraw()
150 mRect.set(1, cy, cx, getHeight() - 1); in onDraw()
154 mRect.set(cx, cy, getWidth() - 1, getHeight() - 1); in onDraw()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java113 assertEquals(0, mPopupWindow.getHeight()); in testSize()
117 assertEquals(50, mPopupWindow.getHeight()); in testSize()
121 assertEquals(-1, mPopupWindow.getHeight()); in testSize()
129 assertEquals(0, mPopupWindow.getHeight()); in testSize()
134 assertEquals(50, mPopupWindow.getHeight()); in testSize()
139 assertEquals(-1, mPopupWindow.getHeight()); in testSize()
144 assertEquals(0, mPopupWindow.getHeight()); in testSize()
150 assertEquals(50, mPopupWindow.getHeight()); in testSize()
156 assertEquals(-1, mPopupWindow.getHeight()); in testSize()
273 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getHeight()); in testAccessHeight()
[all …]
DLinearLayoutTest.java239 assertEquals(100, parent.getHeight()); in testWeightDistribution()
240 assertEquals(33, parent.getChildAt(0).getHeight()); in testWeightDistribution()
241 assertEquals(33, parent.getChildAt(1).getHeight()); in testWeightDistribution()
242 assertEquals(34, parent.getChildAt(2).getHeight()); in testWeightDistribution()
258 assertEquals(100, parent.getHeight()); in testWeightDistribution()
259 assertEquals(100, parent.getChildAt(0).getHeight()); in testWeightDistribution()
260 assertEquals(100, parent.getChildAt(1).getHeight()); in testWeightDistribution()
261 assertEquals(100, parent.getChildAt(2).getHeight()); in testWeightDistribution()
367 assertEquals(topView.getHeight(), topView.getBottom()); in testLayoutHorizontal()
371 int offset = (parent.getHeight() - centerView.getHeight()) / 2; in testLayoutHorizontal()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java51 height / (float) bitmap.getHeight()); in testTransferFunctions()
72 height / (float) bitmap.getHeight()); in testAlpha()
97 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testMasked()
108 height / (float) bitmap.getHeight()); in testMasked()
153 height / (float) bitmap.getHeight()); in testMirroredTransferFunctions()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java182 activeArraySize.getHeight() >= FULLHD.getHeight()) { in testAvailableStreamConfigs()
190 activeArraySize.getHeight() >= HD.getHeight()) { in testAvailableStreamConfigs()
197 activeArraySize.getHeight() >= VGA.getHeight()) { in testAvailableStreamConfigs()
204 activeArraySize.getHeight() >= QVGA.getHeight()) { in testAvailableStreamConfigs()
224 maxVideoSize.getHeight() >= FULLHD.getHeight())) { in testAvailableStreamConfigs()
243 size.getHeight() >= maxVideoSize.getHeight()) { in testAvailableStreamConfigs()
543 maxJpegSize.getHeight() <= maxYuvSize.getHeight()) : false; in testStaticBurstCharacteristics()
546 float croppedHeight = (float)sensorSize.getHeight(); in testStaticBurstCharacteristics()
547 float sensorAspectRatio = (float)sensorSize.getWidth() / (float)sensorSize.getHeight(); in testStaticBurstCharacteristics()
548 float maxYuvAspectRatio = (float)maxYuvSize.getWidth() / (float)maxYuvSize.getHeight(); in testStaticBurstCharacteristics()
[all …]
DRecordingTest.java734 videoSz.getHeight() > maxPreviewSize.getHeight())) { in basicRecordingTestByCamera()
929 videoSz.getHeight() > maxPreviewSize.getHeight())) { in videoSnapshotTestByCamera()
957 candidateSize.getHeight() <= videoSz.getHeight()) { in videoSnapshotTestByCamera()
965 candidateSize.getHeight() <= videoSz.getHeight() && in videoSnapshotTestByCamera()
983 videoSz.getHeight() <= maxPreviewSize.getHeight()) { in videoSnapshotTestByCamera()
1002 if (videoSnapshotSz.getWidth() * videoSnapshotSz.getHeight() > FRAME_SIZE_15M) in videoSnapshotTestByCamera()
1170 videoSize.getHeight() > maxPreviewSize.getHeight()) { in updatePreviewSurfaceWithVideo()
1181 s.getHeight() <= videoSize.getHeight()) { in updatePreviewSurfaceWithVideo()
1235 mMediaRecorder.setVideoSize(sz.getWidth(), sz.getHeight()); in prepareRecording()
1477 CameraTestUtils.validateImage(image, size.getWidth(), size.getHeight(),
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBitmapUtils.java49 if ((bmp1.getWidth() != bmp2.getWidth()) || (bmp1.getHeight() != bmp2.getHeight())) { in compareBitmaps()
54 for (int j = 0; j < bmp1.getHeight(); j++) { in compareBitmaps()
98 for (int y = 0; y < bitmap.getHeight(); y++) { in logIfBitmapSolidColor()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapAsserter.java59 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar()
61 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar()
85 int height = bitmap.getHeight(); in assertBitmapIsVerified()
/cts/tests/tests/util/src/android/util/cts/
DSizeTest.java36 assertEquals(200, size.getHeight()); in testConstructors()
40 assertEquals(200, sizeF.getHeight(), 0f); in testConstructors()
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DActivityAndWindowManagersState.java696 && displayRect.getWidth() > displayRect.getHeight()) { in assertValidBounds()
705 + ", stackId" + stackId, aTaskBounds.getHeight(), in assertValidBounds()
706 wTaskBounds.getHeight()); in assertValidBounds()
714 + ", stackId" + stackId, aStackBounds.getHeight(), in assertValidBounds()
715 wTaskBounds.getHeight()); in assertValidBounds()
742 && aStackBounds.getHeight() >= aTaskMinHeight in assertValidBounds()
751 if (displayRect.getHeight() > displayRect.getWidth()) { in assertValidBounds()
757 aStackBounds.getHeight() < wTaskBounds.getHeight()); in assertValidBounds()
767 aStackBounds.getHeight(), wTaskBounds.getHeight()); in assertValidBounds()
781 aStackBounds.getHeight()); in assertValidBounds()
[all …]

12345678