Home
last modified time | relevance | path

Searched refs:WIDTH (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java31 private static final int WIDTH = 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()
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()
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
[all …]
DPathDashPathEffectTest.java36 private static final int WIDTH = 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()
56 for (int i = 0; i <= WIDTH + SQUARE; i += ADVANCE) { in testPathDashPathEffect()
64 for (int x = 0; x < WIDTH; x++) { in testPathDashPathEffect()
76 p.lineTo(WIDTH, HEIGHT / 2); in path()
DSumPathEffectTest.java36 private static final int WIDTH = 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()
66 for (int i = 0; i < WIDTH; i++) { in testSumPathEffect()
DYuvImageTest.java57 private static final int WIDTH = 256; 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 …]
DNinePatchTest.java42 private final int WIDTH = 80; field in NinePatchTest
44 private final int[] COLOR = new int[WIDTH * HEIGTH];
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.rs4 int WIDTH;
30 for (int i = 0 ; i < WIDTH ; i++) {
37 meanIdeal /= WIDTH;
38 meanGiven /= WIDTH;
44 for (int i = 0 ; i < WIDTH ; i++) {
56 varIdeal /= WIDTH - 1;
57 varGiven /= WIDTH - 1;
58 varBoth /= WIDTH - 1;
DExactComparer.rs4 int WIDTH;
16 for(int i = 0 ; i < WIDTH ; i ++){
DMeanSquaredComparer.rs5 int WIDTH;
14 for (int x = 0 ; x < WIDTH ; x++) {
DThresholdDifferenceComparer.rs4 int WIDTH;
15 for(int i = 0 ; i < WIDTH ; i ++){
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java33 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/
DFramebufferTest.java55 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()
DWrapperTest.java167 private static final int WIDTH = 1280; in testThreadCleanup() field in WrapperTest.WrappedTest
173 eglSetup(2, WIDTH, HEIGHT); in testThreadCleanup()
/cts/tests/tests/text/src/android/text/style/cts/
DIconMarginSpanTest.java32 private static final int WIDTH = 80; field in IconMarginSpanTest
34 private static final int[] COLOR = new int[WIDTH * HEIGHT];
36 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
/cts/tests/tests/media/src/android/media/cts/
DVp8EncoderTest.java46 private static final int WIDTH = 320; field in Vp8EncoderTest
93 WIDTH, in testBasic()
136 WIDTH, in testAsyncEncoding()
160 WIDTH, in testAsyncEncoding()
203 WIDTH, in testSyncFrame()
253 WIDTH, in testDynamicBitrateChange()
316 MediaFormat format = MediaFormat.createVideoFormat(VP8_MIME, WIDTH, HEIGHT); in testParallelEncodingAndDecoding()
331 WIDTH, in testParallelEncodingAndDecoding()
427 WIDTH, in testEncoderQuality()
DMediaCodecTest.java67 private static final int WIDTH = 1280; field in MediaCodecTest
1361 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java57 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/cts/
DStaticLayoutLineBreakingTest.java37 private static final int WIDTH = 100; field in StaticLayoutLineBreakingTest
103 return getBreaks(source, WIDTH); in getBreaks()
131 layout(source, breaks, WIDTH); in layout()
161 StaticLayout staticLayout = new StaticLayout(source, 0, source.length(), mTextPaint, WIDTH, in layoutMaxLines()
163 null, WIDTH, maxLines); in layoutMaxLines()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Images_ThumbnailsTest.java139 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT }; in testQueryExternalMiniThumbnails()
144 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.WIDTH)) >= Math.min(src.getWidth(), 240)); in testQueryExternalMiniThumbnails()
151 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.WIDTH))); in testQueryExternalMiniThumbnails()
242 values.put(Thumbnails.WIDTH, 320); in testStoreImagesMediaExternal()
258 assertEquals(320, c.getInt(c.getColumnIndex(Thumbnails.WIDTH))); in testStoreImagesMediaExternal()
267 values.put(Thumbnails.WIDTH, 50); in testStoreImagesMediaExternal()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java56 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/content/src/android/content/res/cts/
DConfigTest.java49 WIDTH, enumConstant
121 case WIDTH: in setProperty()
211 config.setProperty(Properties.WIDTH, 200); in makeClassicConfig()
332 config.setProperty(Properties.WIDTH, 320); in testAllEmptyConfigs()
536 config.setProperty(Properties.WIDTH, 320); in testAllClassicConfigs()
901 config.setProperty(Properties.WIDTH, 400); in testPrecidence()
1122 config.setProperty(Properties.WIDTH, 57); in testCombinations()
1132 config.setProperty(Properties.WIDTH, 400); 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 ...
/cts/tools/dex-tools/dex/
Dclasses0.out.dex9223 public static final java.awt.font.TextAttribute WIDTH