Home
last modified time | relevance | path

Searched refs:getWidth (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java254 int oldWidth0 = column0.getWidth(); in testColumnStretchableEffect()
255 int oldWidth1 = column1.getWidth(); in testColumnStretchableEffect()
256 int oldWidth2 = column2.getWidth(); in testColumnStretchableEffect()
263 int totalSpace = mTableDefault.getWidth() - orignalWidth0 in testColumnStretchableEffect()
269 assertEquals(oldWidth0, column0.getWidth()); in testColumnStretchableEffect()
270 assertTrue(oldWidth1 < column1.getWidth()); in testColumnStretchableEffect()
271 assertTrue(oldWidth2 > column2.getWidth()); in testColumnStretchableEffect()
273 assertEquals(orignalWidth0, column0.getWidth()); in testColumnStretchableEffect()
274 assertEquals(orignalWidth1 + extraSpace, column1.getWidth()); in testColumnStretchableEffect()
275 assertEquals(orignalWidth2 + extraSpace, column2.getWidth()); in testColumnStretchableEffect()
[all …]
DMagnifierTest.java115 .setSize(mView.getWidth() / 2, mView.getHeight() / 2) in setup()
171 assertEquals(magnifierWidth, magnifier.getWidth()); in testBuilder_setsPropertiesCorrectly_whenTheyAreValid()
236 assertEquals(width, magnifier.getWidth()); in testMagnifierDefaultParameters_withDeprecatedConstructor()
265 assertEquals(width, magnifier.getWidth()); in testMagnifierDefaultParameters_withBuilder()
289 assertTrue(mMagnifier.getWidth() > 0); in testSizeAndZoom_areValid()
303 final float xCenter = mView.getWidth() / 2f; in testShow()
322 - mMagnifier.getWidth() / 2f + mMagnifier.getSourceWidth() / 2f, in testShow()
339 final float xCenter = mView.getWidth() / 2; in testShow_withDecoupledMagnifierPosition()
351 viewLocationInWindow[0] + xMagnifier - mMagnifier.getWidth() / 2, in testShow_withDecoupledMagnifierPosition()
415 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2); in testMagnifierContent_refreshesAfterUpdate()
[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()
57 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in compareBitmap()
59 a.getPixels(aPixels, /*offset*/0, /*stride*/a.getWidth(), /*x*/0, /*y*/0, a.getWidth(), in compareBitmap()
61 b.getPixels(bPixels, /*offset*/0, /*stride*/b.getWidth(), /*x*/0, /*y*/0, b.getWidth(), in compareBitmap()
/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()
161 assertEquals(expected.getWidth(), bitmap.getWidth()); in verifyBitmapWithAlpha()
163 int width = expected.getWidth(); in verifyBitmapWithAlpha()
[all …]
DMediaVulkanGpuTest.java40 int[] framePixels = new int[bitmap.getWidth() * bitmap.getHeight()]; in getFramePixels()
41 bitmap.getPixels(framePixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), in getFramePixels()
DBitmapFactoryTest.java162 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResource1()
173 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2()
185 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResourceStream()
195 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray1()
207 assertEquals(START_WIDTH, b.getWidth()); in testDecodeByteArray2()
218 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream1()
230 assertEquals(START_WIDTH, b.getWidth()); in testDecodeStream2()
240 assertEquals(testImage.width, b.getWidth()); in testDecodeStream3()
341 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor1()
354 assertEquals(START_WIDTH, b.getWidth()); in testDecodeFileDescriptor2()
[all …]
/cts/tests/tests/media/common/src/android/media/cts/
DCodecImage.java100 public abstract int getWidth(); in getWidth() 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.java53 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/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsLayoutTests.java67 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsTypes()
85 PollingCheck.waitFor(TIMEOUT, () -> overlayWindowRoot.getWidth() > 0); in testSetFitInsetsTypesInner()
103 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsSides()
123 PollingCheck.waitFor(TIMEOUT, () -> overlayWindowRoot.getWidth() > 0); in testSetFitInsetsSidesInner()
152 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsIgnoringVisibility()
166 PollingCheck.waitFor(TIMEOUT, () -> overlayWindowRoot1.getWidth() > 0); in testSetFitInsetsIgnoringVisibility()
170 locationAndSize1[2] = overlayWindowRoot1.getWidth(); in testSetFitInsetsIgnoringVisibility()
181 PollingCheck.waitFor(TIMEOUT, () -> overlayWindowRoot2.getWidth() > 0); in testSetFitInsetsIgnoringVisibility()
185 locationAndSize2[2] = overlayWindowRoot2.getWidth(); in testSetFitInsetsIgnoringVisibility()
239 assertEquals(windowMetricsBounds.width(), rootView.getWidth()); in assertMatchesWindowBounds()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java57 activity.getWidth(), activity.getTop()); in takeStatusBarScreenshot()
95 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in checkNavigationBarDivider()
96 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in checkNavigationBarDivider()
102 int x = i % bitmap.getWidth(); in checkNavigationBarDivider()
103 int y = i / bitmap.getWidth(); in checkNavigationBarDivider()
111 for (int col = 0; col < bitmap.getWidth(); col++) { in checkNavigationBarDivider()
125 0.3f, (float) diffCount / (float)bitmap.getWidth(), in checkNavigationBarDivider()
DLightBarBaseActivity.java61 return mContent.getLocationOnScreen()[0] + mContent.getWidth(); in getRight()
64 public int getWidth() { in getWidth() method in LightBarBaseActivity
65 return mContent.getWidth(); in getWidth()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java371 assertEquals(0.0f, PrecomputedText.create("", param).getWidth(0, 0), 0.0f); in testGetWidth()
373 assertEquals(0.0f, PrecomputedText.create("I", param).getWidth(0, 0), 0.0f); in testGetWidth()
374 assertEquals(0.0f, PrecomputedText.create("I", param).getWidth(1, 1), 0.0f); in testGetWidth()
375 assertEquals(1.0f, PrecomputedText.create("I", param).getWidth(0, 1), 0.0f); in testGetWidth()
377 assertEquals(0.0f, PrecomputedText.create("V", param).getWidth(0, 0), 0.0f); in testGetWidth()
378 assertEquals(0.0f, PrecomputedText.create("V", param).getWidth(1, 1), 0.0f); in testGetWidth()
379 assertEquals(5.0f, PrecomputedText.create("V", param).getWidth(0, 1), 0.0f); in testGetWidth()
381 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(0, 0), 0.0f); in testGetWidth()
382 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(1, 1), 0.0f); in testGetWidth()
383 assertEquals(0.0f, PrecomputedText.create("IV", param).getWidth(2, 2), 0.0f); in testGetWidth()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DHardwareBufferTest.java59 assertEquals(2, buffer.getWidth()); in testCreate()
105 assertEquals(2, buffer.getWidth()); in testCreateOptionalFormats()
151 assertEquals(2, buffer.getWidth()); in testCreateFromNativeObject()
217 assertEquals(2, buffer.getWidth()); in testClosedFails()
220 assertThrows(IllegalStateException.class, buffer::getWidth); in testClosedFails()
233 assertEquals(2, inBuffer.getWidth()); in testWriteJavaReadNativeParcel()
243 assertEquals(2, inBuffer.getWidth()); in testWriteJavaReadNativeParcel()
244 assertEquals(2, outBuffer.getWidth()); in testWriteJavaReadNativeParcel()
257 assertEquals(2, inBuffer.getWidth()); in testWriteNativeReadJavaParcel()
267 assertEquals(2, inBuffer.getWidth()); in testWriteNativeReadJavaParcel()
[all …]
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/util/
DWallpaperTestUtils.java45 drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in getBitmap()
65 int width = bitmap1.getWidth(); in isSimilar()
67 if (width != bitmap2.getWidth() || height != bitmap2.getHeight()) { in isSimilar()
69 Bitmap largest = width >= bitmap2.getWidth() ? bitmap1 : bitmap2; in isSimilar()
72 largest, smallest.getWidth(), smallest.getHeight(), true); in isSimilar()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java43 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/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()
79 for (int i = 0; i < bmp1.getWidth(); i++) { in compareBitmaps()
100 final int width = bmp1.getWidth(); in compareBitmaps()
135 for (int x = 0; x < bitmap.getWidth(); x++) { in logIfBitmapSolidColor()
176 int width = expected.getWidth(); 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()
207 (int) (mActivity.mSvSize.getWidth() * FRACTION_SMALLER_THAN_VISIBLE), in testTrustedPresentationListener_minFractionDueToCrop()
222 setBuffer(sc1, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_minFractionDueToCovered()
232 (int) (mActivity.mSvSize.getWidth() * (1 - FRACTION_SMALLER_THAN_VISIBLE)), in testTrustedPresentationListener_minFractionDueToCovered()
245 setBuffer(sc, mActivity.mSvSize.getWidth(), mActivity.mSvSize.getHeight()); in testTrustedPresentationListener_enteredExitEntered()
253 (int) (mActivity.mSvSize.getWidth() * FRACTION_SMALLER_THAN_VISIBLE), 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.java49 if (bitmap1.getWidth() != bitmap2.getWidth() || in psnr()
60 final int width = bitmap1.getWidth(); in psnr()
DRGBZ.java120 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/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java89 public float getWidth() { in getWidth() method in ShapeHolder
90 return mShape.getShape().getWidth(); in getWidth()
104 s.resize(s.getWidth(), height); in setHeight()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java510 int w = configuredSize.getWidth(); in onImageAvailable()
517 byte[] row = new byte[configuredSize.getWidth()]; in onImageAvailable()
518 byte[] uRow = new byte[(configuredSize.getWidth()/2-1)*uPStride + 1]; in onImageAvailable()
519 byte[] vRow = new byte[(configuredSize.getWidth()/2-1)*vPStride + 1]; in onImageAvailable()
562 imgBitmap = Bitmap.createBitmap(imgBitmap, 0, 0, imgBitmap.getWidth(), in onImageAvailable()
620 long lha = lhs.getWidth() * lhs.getHeight(); in compare()
621 long rha = rhs.getWidth() * rhs.getHeight(); in compare()
623 lha = lhs.getWidth(); in compare()
624 rha = rhs.getWidth(); in compare()
673 if ((maxStreamingSize.getWidth() == 0 && maxStreamingSize.getHeight() == 0) || in setUpCamera()
[all …]
/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()
294 transformation.postScale((float) clipping.width() / bitmap.getWidth(), in applyTransformationOnBitmap()
298 transformation.postScale((float) bmWidth / bitmap.getWidth(), 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/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()
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/uirendering27/src/android/uirendering/cts/util/
DBitmapAsserter.java52 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/
DBitmapImage.java56 final int width = bitmap.getWidth(); in createFromBitmap()
67 int getWidth() { in getWidth() method in BitmapImage
126 final int targetWidth = targetImage.getWidth(); in robustMatch()

12345678910>>...16