Home
last modified time | relevance | path

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

12345678910>>...16

/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java126 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
129 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
134 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
137 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
141 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
144 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); in testDraw()
151 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
154 rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); in testDraw()
162 assertEquals(expected.getHeight(), bitmap.getHeight()); in verifyBitmapWithAlpha()
164 int height = expected.getHeight(); in verifyBitmapWithAlpha()
[all …]
DMediaVulkanGpuTest.java40 int[] framePixels = new int[bitmap.getWidth() * bitmap.getHeight()]; in getFramePixels()
42 bitmap.getHeight()); in getFramePixels()
DBitmapFactoryTest.java161 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1()
172 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2()
184 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResourceStream()
194 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray1()
206 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeByteArray2()
217 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream1()
229 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeStream2()
241 assertEquals(testImage.height, b.getHeight()); in testDecodeStream3()
340 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor1()
353 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeFileDescriptor2()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMagnifierTest.java115 .setSize(mView.getWidth() / 2, mView.getHeight() / 2) in setup()
172 assertEquals(magnifierHeight, magnifier.getHeight()); in testBuilder_setsPropertiesCorrectly_whenTheyAreValid()
238 assertEquals(height, magnifier.getHeight()); in testMagnifierDefaultParameters_withDeprecatedConstructor()
267 assertEquals(height, magnifier.getHeight()); in testMagnifierDefaultParameters_withBuilder()
290 assertTrue(mMagnifier.getHeight() > 0); in testSizeAndZoom_areValid()
304 final float yCenter = mView.getHeight() / 2f; in testShow()
325 - mMagnifier.getHeight() / 2f + mMagnifier.getSourceHeight() / 2f, in testShow()
340 final float yCenter = mView.getHeight() / 2; in testShow_withDecoupledMagnifierPosition()
354 viewLocationInWindow[1] + yMagnifier - mMagnifier.getHeight() / 2, in testShow_withDecoupledMagnifierPosition()
415 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2); in testMagnifierContent_refreshesAfterUpdate()
[all …]
DLinearLayoutTest.java249 assertEquals(100, parent.getHeight()); in testWeightDistribution()
250 assertEquals(33, parent.getChildAt(0).getHeight()); in testWeightDistribution()
251 assertEquals(33, parent.getChildAt(1).getHeight()); in testWeightDistribution()
252 assertEquals(34, parent.getChildAt(2).getHeight()); in testWeightDistribution()
268 assertEquals(100, parent.getHeight()); in testWeightDistribution()
269 assertEquals(100, parent.getChildAt(0).getHeight()); in testWeightDistribution()
270 assertEquals(100, parent.getChildAt(1).getHeight()); in testWeightDistribution()
271 assertEquals(100, parent.getChildAt(2).getHeight()); in testWeightDistribution()
377 assertEquals(topView.getHeight(), topView.getBottom()); in testLayoutHorizontal()
381 int offset = (parent.getHeight() - centerView.getHeight()) / 2; in testLayoutHorizontal()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java51 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in compareBitmap()
53 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in compareBitmap()
54 b.getHeight()); in compareBitmap()
57 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in compareBitmap()
60 a.getHeight()); in compareBitmap()
62 b.getHeight()); in compareBitmap()
/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/common/src/android/media/cts/
DCodecImage.java106 public abstract int getHeight(); in getHeight() method in CodecImage
129 return new Rect(0, 0, getWidth(), getHeight()); in getCropRect()
144 cropRect.intersect(0, 0, getWidth(), getHeight()); in setCropRect()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DShapeTest.java54 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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBitmapUtils.java55 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()
136 for (int y = 0; y < bitmap.getHeight(); y++) { in logIfBitmapSolidColor()
177 int height = expected.getHeight(); in compareBitmapsMse()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DTrustedPresentationCallbackTest.java137 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener()
157 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_parentVisibilityChanges()
180 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_alphaBelow()
198 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_minFractionDueToCrop()
208 mActivity.mSvSize.getHeight())).apply(); in testTrustedPresentationListener_minFractionDueToCrop()
222 setBuffer(sc1, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_minFractionDueToCovered()
233 mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_minFractionDueToCovered()
245 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_enteredExitEntered()
254 mActivity.mSvSize.getHeight())).apply(); in testTrustedPresentationListener_enteredExitEntered()
304 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_clearCallback()
[all …]
/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/app/WallpaperTest/src/android/app/cts/wallpapers/util/
DWallpaperTestUtils.java45 drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in getBitmap()
66 int height = bitmap1.getHeight(); in isSimilar()
67 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in isSimilar()
72 largest, smallest.getWidth(), smallest.getHeight(), true); in isSimilar()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java55 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/uirendering27/src/android/uirendering/cts/util/
DBitmapAsserter.java53 int height = bitmap1.getHeight(); in assertBitmapsAreSimilar()
55 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in assertBitmapsAreSimilar()
79 int height = bitmap.getHeight(); in assertBitmapIsVerified()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java57 final int height = bitmap.getHeight(); in createFromBitmap()
75 int getHeight() { in getHeight() method in BitmapImage
127 final int targetHeight = targetImage.getHeight(); in robustMatch()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DUtils.java245 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform()
259 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform()
295 (float) clipping.height() / bitmap.getHeight()); in applyTransformationOnBitmap()
299 (float) bmHeight / bitmap.getHeight()); in applyTransformationOnBitmap()
330 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in getNonMatching()
334 int[] aPx = new int[a.getWidth() * a.getHeight()]; in getNonMatching()
335 int[] bPx = new int[b.getWidth() * b.getHeight()]; in getNonMatching()
336 a.getPixels(aPx, 0, a.getWidth(), 0, 0, a.getWidth(), a.getHeight()); in getNonMatching()
337 b.getPixels(bPx, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in getNonMatching()
340 int totalPixels = a.getWidth() * a.getHeight(); in getNonMatching()
[all …]
/cts/tests/surfacecontrol/src/android/view/cts/util/
DSyncValidatorSCVHTestCase.java83 svParams.height = size.getHeight();
86 mTextView.setText(size.getWidth() + "x" + size.getHeight());
92 size.getWidth(), size.getHeight(),
145 mSizes[0].getHeight());
152 mTextView.setText(mSizes[0].getWidth() + "x" + mSizes[0].getHeight());
/cts/tests/tests/text/src/android/text/style/cts/
DLineHeightSpan_StandardTest.java87 assertEquals(height, span.getHeight()); in testGetHeight()
98 assertEquals(span.getHeight(), parcelSpan.getHeight()); in testWriteToParcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java511 int h = configuredSize.getHeight(); in onImageAvailable()
563 imgBitmap.getHeight(), m, true); in onImageAvailable()
620 long lha = lhs.getWidth() * lhs.getHeight(); in compare()
621 long rha = rhs.getWidth() * rhs.getHeight(); in compare()
673 if ((maxStreamingSize.getWidth() == 0 && maxStreamingSize.getHeight() == 0) || in setUpCamera()
682 previewSize.getHeight(), mCameraId, in setUpCamera()
695 previewSize.getHeight(), mCameraId, in setUpCamera()
706 mJpegSize.getWidth(), mJpegSize.getHeight(), ImageFormat.JPEG, 1); in setUpCamera()
759 mPreviewSize.getHeight()); in configurePreviewTextureTransform()
760 RectF viewRect = new RectF(0, 0, mPreviewView.getWidth(), mPreviewView.getHeight()); in configurePreviewTextureTransform()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DTouchableInsetsProviderTest.java135 tapOnView(view, view.getWidth() / 8, view.getHeight() / 8); in testTouchableInsetsProvider_InputEventDeliveredOnObscuredRegion()
143 tapOnView(view, view.getWidth() / 2, view.getHeight() / 2); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
148 tapOnView(view, view.getWidth() / 8 * 7, view.getHeight() / 8); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
154 tapOnView(view, view.getWidth() / 8, view.getHeight() / 8 * 7); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
160 tapOnView(view, view.getWidth() / 8 * 7, view.getHeight() / 8 * 7); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java52 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()

12345678910>>...16