Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java32 private static final int HEIGHT = 100; field in PorterDuffXfermodeTest
35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode()
37 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode()
39 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); in testPorterDuffXfermode()
46 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
55 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
[all …]
DPathDashPathEffectTest.java37 private static final int HEIGHT = 100; field in PathDashPathEffectTest
40 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
55 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); in testPathDashPathEffect()
63 for (int y = 0; y < HEIGHT; y++) { in testPathDashPathEffect()
75 p.moveTo(0, HEIGHT / 2); in path()
76 p.lineTo(WIDTH, HEIGHT / 2); in path()
DSumPathEffectTest.java37 private static final int HEIGHT = 100; field in SumPathEffectTest
40 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
42 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
46 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW); in testSumPathEffect()
67 for (int j = 0; j < HEIGHT; j++) { in testSumPathEffect()
DYuvImageTest.java58 private static final int HEIGHT = 128; field in YuvImageTest
158 generateTestBitmaps(WIDTH, HEIGHT); in testCompressYuvToJpeg()
192 generateTestBitmaps(WIDTH, HEIGHT); in testGetHeight()
199 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvData()
214 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvFormat()
226 c.drawBitmap(src, null, new Rect(0, 0, WIDTH, HEIGHT), null); in generateTestBitmaps()
397 int[] argb = new int[WIDTH * HEIGHT]; in checkParameters()
398 mTestBitmaps[0].getPixels(argb, 0, WIDTH, 0, 0, WIDTH, HEIGHT); in checkParameters()
399 byte[] yuv = convertArgbsToYuvs(argb, WIDTH, HEIGHT, format); in checkParameters()
401 YuvImage image = new YuvImage(yuv, format, WIDTH, HEIGHT, null); in checkParameters()
[all …]
/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/text/src/android/text/style/cts/
DIconMarginSpanTest.java33 private static final int HEIGHT = 120; field in IconMarginSpanTest
34 private static final int[] COLOR = new int[WIDTH * HEIGHT];
36 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
93 assertEquals(HEIGHT, fm.bottom); in testChooseHeight()
94 assertEquals(HEIGHT, fm.descent); in testChooseHeight()
/cts/tests/tests/net/src/android/net/cts/
DUrlQuerySanitizerTest.java42 private static final String HEIGHT = "height"; field in UrlQuerySanitizerTest
80 assertTrue(uqs.hasParameter(HEIGHT)); in testUrlQuerySanitizer()
85 assertEquals(EXPECTED_HEIGHT, uqs.getValue(HEIGHT)); in testUrlQuerySanitizer()
93 assertTrue(urlSet.contains(HEIGHT)); in testUrlQuerySanitizer()
105 assertEquals(HEIGHT, pvp.mParameter); in testUrlQuerySanitizer()
109 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT + 1); in testUrlQuerySanitizer()
112 assertEquals(EXPECTED_HEIGHT + 1, uqs.getValue(HEIGHT)); in testUrlQuerySanitizer()
116 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT); in testUrlQuerySanitizer()
119 assertEquals(EXPECTED_HEIGHT + 1, uqs.getValue(HEIGHT)); in testUrlQuerySanitizer()
141 assertNotSame(EXPECTED_HEIGHT, uqs.getValue(HEIGHT)); in testUrlQuerySanitizer()
/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/media/src/android/media/cts/
DVp8EncoderTest.java47 private static final int HEIGHT = 240; field in Vp8EncoderTest
94 HEIGHT, in testBasic()
137 HEIGHT, in testAsyncEncoding()
161 HEIGHT, in testAsyncEncoding()
204 HEIGHT, in testSyncFrame()
254 HEIGHT, in testDynamicBitrateChange()
316 MediaFormat format = MediaFormat.createVideoFormat(VP8_MIME, WIDTH, HEIGHT); in testParallelEncodingAndDecoding()
332 HEIGHT, in testParallelEncodingAndDecoding()
428 HEIGHT, in testEncoderQuality()
DMediaCodecTest.java68 private static final int HEIGHT = 720; field in MediaCodecTest
1361 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java58 private static final int HEIGHT = 480; field in VirtualDisplayTest
93 mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in setUp()
121 WIDTH, HEIGHT, DENSITY, mSurface, 0); in testPrivateVirtualDisplay()
145 WIDTH, HEIGHT, DENSITY, mSurface, in testPrivatePresentationVirtualDisplay()
170 WIDTH, HEIGHT, DENSITY, null, 0); in testPrivateVirtualDisplayWithDynamicSurface()
206 assertEquals("display height must match supplied height", HEIGHT, size.y); in assertDisplayRegistered()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Images_ThumbnailsTest.java139 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT }; in testQueryExternalMiniThumbnails()
145 … assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240)); in testQueryExternalMiniThumbnails()
152 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT))); in testQueryExternalMiniThumbnails()
241 values.put(Thumbnails.HEIGHT, 480); in testStoreImagesMediaExternal()
257 assertEquals(480, c.getInt(c.getColumnIndex(Thumbnails.HEIGHT))); in testStoreImagesMediaExternal()
266 values.put(Thumbnails.HEIGHT, 50); in testStoreImagesMediaExternal()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java57 private static final int HEIGHT = 480; field in ProjectionOffscreenActivity
131 mService.startRendering(mReader.getSurface(), WIDTH, HEIGHT, DENSITY,
172 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in onCreate()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.rs5 int HEIGHT;
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java50 HEIGHT, enumConstant
125 case HEIGHT: in setProperty()
212 config.setProperty(Properties.HEIGHT, 320); in makeClassicConfig()
331 config.setProperty(Properties.HEIGHT, 480); in testAllEmptyConfigs()
535 config.setProperty(Properties.HEIGHT, 480); in testAllClassicConfigs()
900 config.setProperty(Properties.HEIGHT, 640); in testPrecidence()
1121 config.setProperty(Properties.HEIGHT, 63); in testCombinations()
1131 config.setProperty(Properties.HEIGHT, 640); in testCombinations()
/cts/tools/signature-tools/lib/
Dstringtemplate.jarMETA-INF/ META-INF/MANIFEST.MF org/antlr/stringtemplate/AttributeRenderer. ...
Dantlr-2.7.7.jarMETA-INF/ META-INF/MANIFEST.MF antlr/ antlr/ActionElement.class ActionElement ...