Home
last modified time | relevance | path

Searched refs:HEIGHT (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java38 private static final int HEIGHT = 100; field in PorterDuffXfermodeTest
42 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode()
44 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode()
46 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); in testPorterDuffXfermode()
53 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
54 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
55 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
56 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
62 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
[all …]
DPathDashPathEffectTest.java43 private static final int HEIGHT = 100; field in PathDashPathEffectTest
47 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
57 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
62 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); in testPathDashPathEffect()
70 for (int y = 0; y < HEIGHT; y++) { in testPathDashPathEffect()
82 p.moveTo(0, HEIGHT / 2); in path()
83 p.lineTo(WIDTH, HEIGHT / 2); in path()
DSumPathEffectTest.java44 private static final int HEIGHT = 100; field in SumPathEffectTest
48 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
54 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW); in testSumPathEffect()
76 for (int j = 0; j < HEIGHT; j++) { in testSumPathEffect()
DYuvImageTest.java64 private static final int HEIGHT = 128; field in YuvImageTest
150 generateTestBitmaps(WIDTH, HEIGHT); in testCompressYuvToJpeg()
185 generateTestBitmaps(WIDTH, HEIGHT); in testGetHeight()
193 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvData()
209 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvFormat()
221 c.drawBitmap(src, null, new Rect(0, 0, WIDTH, HEIGHT), null); in generateTestBitmaps()
349 int[] argb = new int[WIDTH * HEIGHT]; in verifyParameters()
350 mTestBitmaps[0].getPixels(argb, 0, WIDTH, 0, 0, WIDTH, HEIGHT); in verifyParameters()
351 byte[] yuv = convertArgbsToYuvs(argb, WIDTH, HEIGHT, format); in verifyParameters()
353 YuvImage image = new YuvImage(yuv, format, WIDTH, HEIGHT, null); in verifyParameters()
[all …]
DPathTest.java532 private static final int HEIGHT = 100; field in PathTest
535 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in drawAndGetBitmap()
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java34 private static final int HEIGHT = 480; field in NoCaptureVideoPermissionTest
48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePublicVirtualDisplay()
50 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreatePublicVirtualDisplay()
71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreateSecureVirtualDisplay()
73 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreateSecureVirtualDisplay()
92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePrivateVirtualDisplay()
95 NAME, WIDTH, HEIGHT, DENSITY, in testCreatePrivateVirtualDisplay()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java62 private static final int HEIGHT = 90; field in EdgeEffectTests
100 if (y < HEIGHT / 2) { in verifyPixel()
113 edgeEffect.setSize(WIDTH, HEIGHT); in assertEdgeEffect()
147 edgeEffect.setSize(WIDTH, HEIGHT / 2); in testSetSize()
149 RenderNode renderNode = drawEdgeEffect(edgeEffect, HEIGHT / 2f, 0f); in testSetSize()
220 edgeEffect.setSize(WIDTH, HEIGHT); in testFlingNegativeReleases()
237 edgeEffect.setSize(WIDTH, HEIGHT); in testMaxStretch()
253 edgeEffect.setSize(WIDTH, HEIGHT); in testMaxFling()
267 edgeEffect.setSize(WIDTH, HEIGHT);
275 renderNode.setPosition(0, 0, WIDTH, HEIGHT);
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DIconMarginSpanTest.java42 private static final int HEIGHT = 120; field in IconMarginSpanTest
43 private static final int[] COLOR = new int[WIDTH * HEIGHT];
45 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
107 assertEquals(HEIGHT, fm.bottom); in testChooseHeight()
108 assertEquals(HEIGHT, fm.descent); in testChooseHeight()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DVirtualDisplayHelper.java52 static final int HEIGHT = 480; field in VirtualDisplayHelper
103 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in createVirtualDisplay()
120 logAlways("createVirtualDisplay: " + WIDTH + "x" + HEIGHT + ", dpi: " + DENSITY in createVirtualDisplay()
126 VIRTUAL_DISPLAY_NAME, WIDTH, HEIGHT, DENSITY, mReader.getSurface(), flags); in createVirtualDisplay()
DWindowFocusTests.java523 private static final int HEIGHT = 480; field in WindowFocusTests.InvisibleVirtualDisplaySession
531 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, in InvisibleVirtualDisplaySession()
535 WIDTH, HEIGHT, DENSITY, mReader.getSurface(), in InvisibleVirtualDisplaySession()
/cts/tests/tests/opengl/src/android/opengl/cts/
DFramebufferTest.java56 final int HEIGHT = 480; in testBlitFramebuffer() local
77 surface1 = new OffscreenSurface(eglCore, WIDTH, HEIGHT); in testBlitFramebuffer()
78 surface2 = new OffscreenSurface(eglCore, WIDTH, HEIGHT); in testBlitFramebuffer()
87 GLES30.glBlitFramebuffer(0, 0, WIDTH, HEIGHT, 0, 0, WIDTH, HEIGHT, in testBlitFramebuffer()
91 ByteBuffer pixelBuf = ByteBuffer.allocateDirect(WIDTH * HEIGHT * BYTES_PER_PIXEL); in testBlitFramebuffer()
98 GLES30.glReadPixels(0, 0, WIDTH, HEIGHT, GLES30.GL_RGBA, GLES30.GL_UNSIGNED_BYTE, in testBlitFramebuffer()
101 pixelBuf.position((WIDTH * (HEIGHT / 2) + (WIDTH / 2)) * BYTES_PER_PIXEL); in testBlitFramebuffer()
109 GLES30.glReadPixels(0, 0, WIDTH, HEIGHT, GLES30.GL_RGBA, GLES30.GL_UNSIGNED_BYTE, in testBlitFramebuffer()
112 pixelBuf.position((WIDTH * (HEIGHT / 2) + (WIDTH / 2)) * BYTES_PER_PIXEL); in testBlitFramebuffer()
DWrapperTest.java168 private static final int HEIGHT = 720; in testThreadCleanup() field in WrapperTest.WrappedTest
173 eglSetup(2, WIDTH, HEIGHT); in testThreadCleanup()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java83 private static final int HEIGHT = 480; field in VirtualDisplayTest
133 mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in setUp()
162 WIDTH, HEIGHT, DENSITY, mSurface, 0); in testPrivateVirtualDisplay()
187 WIDTH, HEIGHT, DENSITY, mSurface, in testPrivatePresentationVirtualDisplay()
213 WIDTH, HEIGHT, DENSITY, null, 0); in testPrivateVirtualDisplayWithDynamicSurface()
246 WIDTH, HEIGHT, DENSITY, mSurface, in testUntrustedSysDecorVirtualDisplay()
274 WIDTH, HEIGHT, DENSITY, mSurface, VIRTUAL_DISPLAY_FLAG_TRUSTED); in testTrustedVirtualDisplay()
286 WIDTH, HEIGHT, DENSITY, mSurface, /*flags*/ 0); in testHdrApiMethods()
298 WIDTH, HEIGHT, DENSITY, mSurface, /*flags*/ 0); in testGetHdrCapabilitiesWithUserDisabledFormats()
323 assertEquals("display height must match supplied height", HEIGHT, size.y); in assertDisplayRegistered()
/cts/tests/tests/media/src/android/media/cts/
DVideoCodecTest.java50 private static final int HEIGHT = 240; field in VideoCodecTest
105 HEIGHT, in internalTestBasic()
165 HEIGHT, in internalTestAsyncEncoding()
192 HEIGHT, in internalTestAsyncEncoding()
239 HEIGHT, in internalTestSyncFrame()
292 HEIGHT, in internalTestDynamicBitrateChange()
355 MediaFormat format = MediaFormat.createVideoFormat(codecMimeType, WIDTH, HEIGHT); in internalTestParallelEncodingAndDecoding()
372 HEIGHT, in internalTestParallelEncodingAndDecoding()
477 HEIGHT, in internalTestEncoderQuality()
DMediaCodecTest.java105 private static final int HEIGHT = 720; field in MediaCodecTest
1862 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStorePendingTest.java402 values.put(MediaColumns.HEIGHT, 32); in testMutableColumns()
412 assertEquals(32, c.getLong(c.getColumnIndexOrThrow(MediaColumns.HEIGHT))); in testMutableColumns()
417 values.put(MediaColumns.HEIGHT, 64); in testMutableColumns()
421 assertEquals(64, c.getLong(c.getColumnIndexOrThrow(MediaColumns.HEIGHT))); in testMutableColumns()
430 assertEquals(107, c.getLong(c.getColumnIndexOrThrow(MediaColumns.HEIGHT))); in testMutableColumns()
435 values.put(MediaColumns.HEIGHT, 48); in testMutableColumns()
439 assertEquals(107, c.getLong(c.getColumnIndexOrThrow(MediaColumns.HEIGHT))); in testMutableColumns()
453 values.put(MediaColumns.HEIGHT, 32); in testMatchingColumns()
474 assertEquals(107, c.getLong(c.getColumnIndexOrThrow(MediaColumns.HEIGHT))); in testMatchingColumns()
DMediaStore_Images_ThumbnailsTest.java269 values.put(Thumbnails.HEIGHT, 480); in testStoreImagesMediaExternal()
285 assertEquals(480, c.getInt(c.getColumnIndex(Thumbnails.HEIGHT))); in testStoreImagesMediaExternal()
294 values.put(Thumbnails.HEIGHT, 50); in testStoreImagesMediaExternal()
DMediaStore_Video_MediaTest.java391 assertEquals(1080, c.getLong(c.getColumnIndex(VideoColumns.HEIGHT))); in testMetadata()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java57 private static final int HEIGHT = 480; field in ProjectionOffscreenActivity
135 mService.startRendering(mReader.getSurface(), WIDTH, HEIGHT, DENSITY,
176 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in onCreate()
/cts/apps/CameraITS/tests/inprog/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py32 HEIGHT = 480 variable
37 CLUSTER_DISTANCE = 50.0 / HEIGHT
177 w, h = WIDTH, HEIGHT
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java70 HEIGHT, enumConstant
148 case HEIGHT: in setProperty()
235 config.setProperty(Properties.HEIGHT, 320); in makeClassicConfig()
366 config.setProperty(Properties.HEIGHT, 480); in testAllEmptyConfigs()
598 config.setProperty(Properties.HEIGHT, 480); in testAllClassicConfigs()
963 config.setProperty(Properties.HEIGHT, 640); in testPrecedence()
1196 config.setProperty(Properties.HEIGHT, 63); in testCombinations()
1206 config.setProperty(Properties.HEIGHT, 640); in testCombinations()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java93 private static final int HEIGHT = 1080; field in MediaTranscodingManagerTest
132 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java75 private static final int HEIGHT = 183; field in AnimatedImageDrawableTest
153 assertEquals(HEIGHT, drawable.getIntrinsicHeight()); in testDecodeAnimatedImageDrawable()
/cts/tests/media/src/android/mediav2/cts/
DCodecTestBase.java1064 assertTrue(metrics.getInt(MediaCodec.MetricsConstants.HEIGHT) == getHeight(format)); in validateMetrics()