/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PorterDuffXfermodeTest.java | 37 private static final int HEIGHT = 100; field in PorterDuffXfermodeTest 41 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 43 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 45 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); in testPorterDuffXfermode() 52 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode() 53 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 54 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 55 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 61 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode() 62 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() [all …]
|
D | PathDashPathEffectTest.java | 42 private static final int HEIGHT = 100; field in PathDashPathEffectTest 46 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect() 56 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect() 61 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); in testPathDashPathEffect() 69 for (int y = 0; y < HEIGHT; y++) { in testPathDashPathEffect() 81 p.moveTo(0, HEIGHT / 2); in path() 82 p.lineTo(WIDTH, HEIGHT / 2); in path()
|
D | SumPathEffectTest.java | 43 private static final int HEIGHT = 100; field in SumPathEffectTest 47 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect() 49 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect() 53 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW); in testSumPathEffect() 74 for (int j = 0; j < HEIGHT; j++) { in testSumPathEffect()
|
D | YuvImageTest.java | 62 private static final int HEIGHT = 128; field in YuvImageTest 148 generateTestBitmaps(WIDTH, HEIGHT); in testCompressYuvToJpeg() 183 generateTestBitmaps(WIDTH, HEIGHT); in testGetHeight() 191 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvData() 207 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvFormat() 219 c.drawBitmap(src, null, new Rect(0, 0, WIDTH, HEIGHT), null); in generateTestBitmaps() 391 int[] argb = new int[WIDTH * HEIGHT]; in verifyParameters() 392 mTestBitmaps[0].getPixels(argb, 0, WIDTH, 0, 0, WIDTH, HEIGHT); in verifyParameters() 393 byte[] yuv = convertArgbsToYuvs(argb, WIDTH, HEIGHT, format); in verifyParameters() 395 YuvImage image = new YuvImage(yuv, format, WIDTH, HEIGHT, null); in verifyParameters() [all …]
|
D | PathTest.java | 531 private static final int HEIGHT = 100; field in PathTest 534 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in drawAndGetBitmap()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoCaptureVideoPermissionTest.java | 34 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/ |
D | IconMarginSpanTest.java | 41 private static final int HEIGHT = 120; field in IconMarginSpanTest 42 private static final int[] COLOR = new int[WIDTH * HEIGHT]; 44 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565); 106 assertEquals(HEIGHT, fm.bottom); in testChooseHeight() 107 assertEquals(HEIGHT, fm.descent); in testChooseHeight()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | UrlQuerySanitizerTest.java | 42 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/ |
D | FramebufferTest.java | 56 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()
|
D | WrapperTest.java | 168 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/ |
D | VpxEncoderTest.java | 49 private static final int HEIGHT = 240; field in VpxEncoderTest 97 HEIGHT, in internalTestBasic() 141 HEIGHT, in internalTestAsyncEncoding() 166 HEIGHT, in internalTestAsyncEncoding() 210 HEIGHT, in internalTestSyncFrame() 262 HEIGHT, in internalTestDynamicBitrateChange() 325 MediaFormat format = MediaFormat.createVideoFormat(codecMimeType, WIDTH, HEIGHT); in internalTestParallelEncodingAndDecoding() 342 HEIGHT, in internalTestParallelEncodingAndDecoding() 439 HEIGHT, in internalTestEncoderQuality()
|
D | MediaCodecTest.java | 81 private static final int HEIGHT = 720; field in MediaCodecTest 1662 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
|
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | VirtualDisplayHelper.java | 54 private static final int HEIGHT = 480; field in VirtualDisplayHelper 88 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in createVirtualDisplay() 97 VIRTUAL_DISPLAY_NAME, WIDTH, HEIGHT, DENSITY, mReader.getSurface(), flags); in createVirtualDisplay()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 58 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/uirendering/src/android/uirendering/cts/testclasses/ |
D | EdgeEffectTests.java | 53 private static final int HEIGHT = 90; field in EdgeEffectTests 99 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in assertEdgeEffect() 103 edgeEffect.setSize(WIDTH, HEIGHT); in assertEdgeEffect()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 57 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/provider/src/android/provider/cts/ |
D | MediaStore_Images_ThumbnailsTest.java | 141 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT }; in testQueryExternalMiniThumbnails() 147 … assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240)); in testQueryExternalMiniThumbnails() 154 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT))); in testQueryExternalMiniThumbnails() 243 values.put(Thumbnails.HEIGHT, 480); in testStoreImagesMediaExternal() 259 assertEquals(480, c.getInt(c.getColumnIndex(Thumbnails.HEIGHT))); in testStoreImagesMediaExternal() 268 values.put(Thumbnails.HEIGHT, 50); in testStoreImagesMediaExternal()
|
/cts/apps/CameraITS/tests/rolling_shutter_skew/ |
D | test_rolling_shutter_skew.py | 32 HEIGHT = 480 variable 37 CLUSTER_DISTANCE = 50.0 / HEIGHT 177 w, h = WIDTH, HEIGHT
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 51 HEIGHT, enumConstant 129 case HEIGHT: in setProperty() 216 config.setProperty(Properties.HEIGHT, 320); in makeClassicConfig() 335 config.setProperty(Properties.HEIGHT, 480); in testAllEmptyConfigs() 567 config.setProperty(Properties.HEIGHT, 480); in testAllClassicConfigs() 932 config.setProperty(Properties.HEIGHT, 640); in testPrecedence() 1165 config.setProperty(Properties.HEIGHT, 63); in testCombinations() 1175 config.setProperty(Properties.HEIGHT, 640); in testCombinations()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 67 private static final int HEIGHT = 183; field in AnimatedImageDrawableTest 135 assertEquals(HEIGHT, drawable.getIntrinsicHeight()); in testDecodeAnimatedImageDrawable()
|