Home
last modified time | relevance | path

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

12345

/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
83 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
88 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
91 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
95 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
98 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
105 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
108 rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
116 assertEquals(expected.getHeight(), bitmap.getHeight()); in checkBitmapWithAlpha()
118 int height = expected.getHeight(); in checkBitmapWithAlpha()
[all …]
DBitmapRegionDecoderTest.java115 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceInputStream()
134 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceByteArray()
151 assertEquals(HEIGHTS[i], decoder1.getHeight()); in testNewInstanceStringAndFileDescriptor()
156 assertEquals(HEIGHTS[i], decoder2.getHeight()); in testNewInstanceStringAndFileDescriptor()
205 wholeImage.getWidth(), wholeImage.getHeight(), opts.inPreferredConfig); in testDecodeRegionInputStreamInBitmap()
293 decoder.getHeight(); in testRecycle()
310 int height = decoder.getHeight(); in compareRegionByRegion()
335 top + actual.getHeight()); in compareRegionByRegion()
403 assertEquals("mismatching heights", expected.getHeight(), in compareBitmaps()
404 actual.getHeight()); in compareBitmaps()
[all …]
DBitmapFactoryTest.java115 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1()
125 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2()
136 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResourceStream()
145 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray1()
156 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray2()
166 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream1()
177 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream2()
188 assertEquals(HEIGHTS[i], b.getHeight()); in testDecodeStream3()
270 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor1()
282 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor2()
[all …]
/cts/tests/tests/hardware/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()
DScriptYuvCrop.java66 (int)(crop.height() * inputSize.getHeight())); in createOutputInfo()
102 int y = (int)(mCropWindow.top * mInputInfo.getSize().getHeight()); in updateScriptInput()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java82 assertEquals(0, mPopupWindow.getHeight()); in testConstructor()
86 assertEquals(50, mPopupWindow.getHeight()); in testConstructor()
90 assertEquals(-1, mPopupWindow.getHeight()); in testConstructor()
98 assertEquals(0, mPopupWindow.getHeight()); in testConstructor()
103 assertEquals(50, mPopupWindow.getHeight()); in testConstructor()
108 assertEquals(-1, mPopupWindow.getHeight()); in testConstructor()
113 assertEquals(0, mPopupWindow.getHeight()); in testConstructor()
119 assertEquals(50, mPopupWindow.getHeight()); in testConstructor()
125 assertEquals(-1, mPopupWindow.getHeight()); in testConstructor()
190 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getHeight()); in testAccessHeight()
[all …]
DListPopupWindowTest.java97 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getHeight()); in testAccessHeight()
99 int height = getDisplay().getHeight() / 2; in testAccessHeight()
101 assertEquals(height, mPopupWindow.getHeight()); in testAccessHeight()
103 height = getDisplay().getHeight(); in testAccessHeight()
105 assertEquals(height, mPopupWindow.getHeight()); in testAccessHeight()
108 assertEquals(0, mPopupWindow.getHeight()); in testAccessHeight()
110 height = getDisplay().getHeight() * 2; in testAccessHeight()
112 assertEquals(height, mPopupWindow.getHeight()); in testAccessHeight()
114 height = -getDisplay().getHeight() / 2; in testAccessHeight()
116 assertEquals(height, mPopupWindow.getHeight()); in testAccessHeight()
[all …]
DLinearLayoutTest.java257 assertEquals(topView.getHeight(), topView.getBottom()); in testLayoutHorizontal()
261 int offset = (parent.getHeight() - centerView.getHeight()) / 2; in testLayoutHorizontal()
263 assertEquals(offset + centerView.getHeight(), centerView.getBottom()); in testLayoutHorizontal()
267 assertEquals(parent.getHeight() - bottomView.getHeight(), bottomView.getTop()); in testLayoutHorizontal()
268 assertEquals(parent.getHeight(), bottomView.getBottom()); in testLayoutHorizontal()
325 assertEquals(parent.getHeight(), rightView.getBottom()); in testLayoutVertical()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DShapeTest.java44 assertEquals(300f, mockShape.getHeight()); in testSize()
49 assertEquals(0f, mockShape.getHeight()); in testSize()
53 assertEquals(Float.MAX_VALUE, mockShape.getHeight()); in testSize()
57 assertEquals(0f, mockShape.getHeight()); in testSize()
83 assertEquals(200f, shape.getHeight()); in testClone()
87 assertEquals(shape.getHeight(), clonedShape.getHeight()); in testClone()
DRoundRectShapeTest.java88 assertEquals(200f, roundRectShape.getHeight()); in testClone()
92 assertEquals(roundRectShape.getHeight(), clonedShape.getHeight()); in testClone()
DPathShapeTest.java95 assertEquals(200f, pathShape.getHeight()); in testClone()
99 assertEquals(pathShape.getHeight(), clonedShape.getHeight()); in testClone()
DRectShapeTest.java71 assertEquals(200f, rectShape.getHeight()); in testClone()
75 assertEquals(rectShape.getHeight(), clonedShape.getHeight()); in testClone()
/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/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()
DInputSurface.java108 mHeight = getHeight(); in eglSetup()
117 mHeight = getHeight(); in updateSize()
202 public int getHeight() { in getHeight() method in InputSurface
/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/text/src/android/text/cts/
DBoringLayoutTest.java86 assertEquals(metricsBottomToTop, boringLayout.getHeight()); in verifyMultAddScale()
87 assertEquals(boringLayout.getHeight() + METRICS_TOP, boringLayout.getLineDescent(0)); in verifyMultAddScale()
110 assertEquals(mBoringLayout.getHeight(), mBoringLayout.getLineTop(1)); in testPreconditions()
111 assertEquals(mBoringLayout.getHeight(), mBoringLayout.getLineTop(10)); in testPreconditions()
175 assertEquals(METRICS_BOTTOM - METRICS_TOP, mBoringLayout.getHeight()); in testIncludePadding()
176 assertEquals(mBoringLayout.getHeight() + METRICS_TOP, mBoringLayout.getLineDescent(0)); in testIncludePadding()
190 assertEquals(METRICS_DESCENT - METRICS_ASCENT, boringLayout.getHeight()); in testIncludePadding()
191 assertEquals(boringLayout.getHeight() + METRICS_ASCENT, boringLayout.getLineDescent(0)); in testIncludePadding()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DRecordingTest.java609 videoSz.getHeight() > maxPreviewSize.getHeight())) { in basicRecordingTestByCamera()
799 videoSz.getHeight() > maxPreviewSize.getHeight())) { in videoSnapshotTestByCamera()
827 candidateSize.getHeight() <= videoSz.getHeight()) { in videoSnapshotTestByCamera()
835 candidateSize.getHeight() <= videoSz.getHeight() && in videoSnapshotTestByCamera()
852 videoSz.getHeight() <= maxPreviewSize.getHeight()) { in videoSnapshotTestByCamera()
871 if (videoSnapshotSz.getWidth() * videoSnapshotSz.getHeight() > FRAME_SIZE_15M) in videoSnapshotTestByCamera()
1019 videoSize.getHeight() > maxPreviewSize.getHeight()) { in updatePreviewSurfaceWithVideo()
1030 s.getHeight() <= videoSize.getHeight()) { in updatePreviewSurfaceWithVideo()
1084 mMediaRecorder.setVideoSize(sz.getWidth(), sz.getHeight()); in prepareRecording()
1227 CameraTestUtils.validateImage(image, size.getWidth(), size.getHeight(),
[all …]
DExtendedCameraCharacteristicsTest.java180 activeArraySize.getHeight() >= FULLHD.getHeight()) { in testAvailableStreamConfigs()
187 activeArraySize.getHeight() >= HD.getHeight()) { in testAvailableStreamConfigs()
194 activeArraySize.getHeight() >= VGA.getHeight()) { in testAvailableStreamConfigs()
201 activeArraySize.getHeight() >= QVGA.getHeight()) { in testAvailableStreamConfigs()
219 maxVideoSize.getHeight() >= FULLHD.getHeight())) { in testAvailableStreamConfigs()
238 size.getHeight() >= maxVideoSize.getHeight()) { in testAvailableStreamConfigs()
523 maxJpegSize.getHeight() <= maxYuvSize.getHeight()) : false; in testStaticBurstCharacteristics()
528 maxYuvSize.getHeight() <= sensorSize.getHeight() * (1.0 + SIZE_ERROR_MARGIN) && in testStaticBurstCharacteristics()
529 maxYuvSize.getHeight() >= sensorSize.getHeight() * (1.0 - SIZE_ERROR_MARGIN)); in testStaticBurstCharacteristics()
552 boolean havefast8MPYuv = (maxFastYuvSize.getWidth() * maxFastYuvSize.getHeight()) > in testStaticBurstCharacteristics()
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java51 if (b1.getWidth() != b2.getWidth() || b1.getHeight() != b2.getHeight() in assertEquals()
57 int h = b1.getHeight(); in assertEquals()
/cts/tests/tests/view/src/android/view/cts/
DFocusFinderTest.java96 rect.inset(mTopLeft.getWidth() / 4, mTopLeft.getHeight() / 4); in testFindNextFocusFromRect()
111 rect.offset(0, mTopRight.getHeight() / 2); in testFindNextFocusFromRect()
112 rect.inset(mTopLeft.getWidth() / 4, mTopLeft.getHeight() / 4); in testFindNextFocusFromRect()
157 y = mTopLeft.getBottom() + mBottomLeft.getHeight() / 2; in testFindNearestTouchable()
/cts/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java83 final int h = actual.getHeight(); in compare()
84 if (w != expected.getWidth() || h != expected.getHeight()) { in compare()
111 final int h1 = expected.getHeight(); in createDiff()
113 final int h2 = actual.getHeight(); in createDiff()
/cts/tests/tests/view/src/android/view/animation/cts/
DRotateAnimationTest.java92 rotateAnimation.initialize(animWindow.getWidth(), animWindow.getHeight(), in testRotateAgainstOrigin()
93 animWindowParent.getWidth(), animWindowParent.getHeight()); in testRotateAgainstOrigin()
140 final float actualPivotY = pivotY * animWindow.getHeight(); in testRotateAgainstPoint()
148 rotateAnimation.initialize(animWindow.getWidth(), animWindow.getHeight(), in testRotateAgainstPoint()
149 animWindowParent.getWidth(), animWindowParent.getHeight()); in testRotateAgainstPoint()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateBitmapTask.java52 if (mView.getWidth() == 0 || mView.getHeight() == 0) { in onPreExecute()
57 mBitmap = Bitmap.createBitmap(mView.getWidth(), mView.getHeight(), in onPreExecute()
/cts/tests/tests/textureview/src/android/textureview/cts/
DTextureViewSnapshotTestActivity.java83 Assert.assertEquals(mTexView.getHeight(), bitmap.getHeight()); in onSurfaceTextureUpdated()

12345