/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PorterDuffXfermodeTest.java | 37 private static final int WIDTH = 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() 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() 63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 64 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 65 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() [all …]
|
D | PathDashPathEffectTest.java | 42 private static final int WIDTH = 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() 63 for (int i = 0; i <= WIDTH + SQUARE; i += ADVANCE) { in testPathDashPathEffect() 71 for (int x = 0; x < WIDTH; x++) { in testPathDashPathEffect() 83 p.lineTo(WIDTH, HEIGHT / 2); in path()
|
D | YuvImageTest.java | 62 private static final int WIDTH = 256; field in YuvImageTest 149 generateTestBitmaps(WIDTH, HEIGHT); in testCompressYuvToJpeg() 184 generateTestBitmaps(WIDTH, HEIGHT); in testGetHeight() 192 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvData() 208 generateTestBitmaps(WIDTH, HEIGHT); in testGetYuvFormat() 220 c.drawBitmap(src, null, new Rect(0, 0, WIDTH, HEIGHT), null); in generateTestBitmaps() 392 int[] argb = new int[WIDTH * HEIGHT]; in verifyParameters() 393 mTestBitmaps[0].getPixels(argb, 0, WIDTH, 0, 0, WIDTH, HEIGHT); in verifyParameters() 394 byte[] yuv = convertArgbsToYuvs(argb, WIDTH, HEIGHT, format); in verifyParameters() 396 YuvImage image = new YuvImage(yuv, format, WIDTH, HEIGHT, null); in verifyParameters() [all …]
|
D | SumPathEffectTest.java | 43 private static final int WIDTH = 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() 74 for (int i = 0; i < WIDTH; i++) { in testSumPathEffect()
|
D | NinePatchTest.java | 49 private static final int WIDTH = 80; field in NinePatchTest 51 private static final int[] COLOR = new int[WIDTH * HEIGTH];
|
D | PathTest.java | 531 private static final int WIDTH = 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/ |
D | NoCaptureVideoPermissionTest.java | 33 private static final int WIDTH = 720; 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/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 55 final int WIDTH = 640; 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 | 167 private static final int WIDTH = 1280; in testThreadCleanup() field in WrapperTest.WrappedTest 173 eglSetup(2, WIDTH, HEIGHT); in testThreadCleanup()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | VirtualDisplayHelper.java | 57 static final int WIDTH = 800; field in VirtualDisplayHelper 118 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in createVirtualDisplay() 135 logAlways("createVirtualDisplay: " + WIDTH + "x" + HEIGHT + ", dpi: " + DENSITY in createVirtualDisplay() 141 VIRTUAL_DISPLAY_NAME, WIDTH, HEIGHT, DENSITY, mReader.getSurface(), flags); in createVirtualDisplay()
|
D | WindowFocusTests.java | 495 private static final int WIDTH = 800; field in WindowFocusTests.VirtualDisplaySession 507 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, in createDisplay() 510 "CtsDisplay", WIDTH, HEIGHT, DENSITY, mReader.getSurface(), in createDisplay()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VpxEncoderTest.java | 49 private static final int WIDTH = 320; field in VpxEncoderTest 97 WIDTH, in internalTestBasic() 146 WIDTH, in internalTestAsyncEncoding() 171 WIDTH, in internalTestAsyncEncoding() 215 WIDTH, in internalTestSyncFrame() 267 WIDTH, in internalTestDynamicBitrateChange() 331 MediaFormat format = MediaFormat.createVideoFormat(codecMimeType, WIDTH, HEIGHT); in internalTestParallelEncodingAndDecoding() 347 WIDTH, in internalTestParallelEncodingAndDecoding() 444 WIDTH, in internalTestEncoderQuality()
|
D | MediaCodecTest.java | 94 private static final int WIDTH = 1280; field in MediaCodecTest 1679 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 57 private static final int WIDTH = 720; 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() 205 assertEquals("display width must match supplied width", WIDTH, size.x); in assertDisplayRegistered()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | IconMarginSpanTest.java | 41 private static final int WIDTH = 80; field in IconMarginSpanTest 43 private static final int[] COLOR = new int[WIDTH * HEIGHT]; 45 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 51 private static final int WIDTH = 100; field in StaticLayoutLineBreakingTest 90 return getBreaks(source, WIDTH, Layout.BREAK_STRATEGY_SIMPLE); in getBreaks() 118 layout(source, breaks, WIDTH); in layout() 153 .obtain(source, 0, source.length(), sTextPaint, WIDTH) in layoutMaxLines()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | EdgeEffectTests.java | 55 private static final int WIDTH = 90; field in EdgeEffectTests 102 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in assertEdgeEffect() 106 edgeEffect.setSize(WIDTH, HEIGHT); in assertEdgeEffect()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 56 private static final int WIDTH = 800; 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/widget/src/android/widget/cts/ |
D | TextViewFadingEdgeTest.java | 65 public static final int WIDTH = 100; field in TextViewFadingEdgeTest 165 textView.setLayoutParams(new ViewGroup.LayoutParams(WIDTH, in createTextView()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Images_ThumbnailsTest.java | 264 values.put(Thumbnails.WIDTH, 320); in testStoreImagesMediaExternal() 280 assertEquals(320, c.getInt(c.getColumnIndex(Thumbnails.WIDTH))); in testStoreImagesMediaExternal() 289 values.put(Thumbnails.WIDTH, 50); in testStoreImagesMediaExternal()
|
D | MediaStore_Video_MediaTest.java | 386 assertEquals(1920, c.getLong(c.getColumnIndex(VideoColumns.WIDTH))); in testMetadata()
|
D | MediaStore_Images_MediaTest.java | 472 assertEquals(600, c.getLong(c.getColumnIndex(ImageColumns.WIDTH)));
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 69 WIDTH, enumConstant 144 case WIDTH: in setProperty() 234 config.setProperty(Properties.WIDTH, 200); in makeClassicConfig() 367 config.setProperty(Properties.WIDTH, 320); in testAllEmptyConfigs() 599 config.setProperty(Properties.WIDTH, 320); in testAllClassicConfigs() 964 config.setProperty(Properties.WIDTH, 400); in testPrecedence() 1197 config.setProperty(Properties.WIDTH, 57); in testCombinations() 1207 config.setProperty(Properties.WIDTH, 400); in testCombinations()
|
/cts/apps/CameraITS/tests/rolling_shutter_skew/ |
D | test_rolling_shutter_skew.py | 31 WIDTH = 640 variable 177 w, h = WIDTH, HEIGHT
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 68 private static final int WIDTH = 278; field in AnimatedImageDrawableTest 136 assertEquals(WIDTH, drawable.getIntrinsicWidth()); in testDecodeAnimatedImageDrawable()
|