Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java37 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 …]
DPathDashPathEffectTest.java42 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()
DSumPathEffectTest.java43 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()
75 for (int i = 0; i < WIDTH; i++) { in testSumPathEffect()
DYuvImageTest.java63 private static final int WIDTH = 256; 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 …]
DNinePatchTest.java49 private static final int WIDTH = 80; field in NinePatchTest
51 private static final int[] COLOR = new int[WIDTH * HEIGTH];
DPathTest.java531 private static final int WIDTH = 100; field in PathTest
535 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in drawAndGetBitmap()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DBufferDebug.java31 public static final int WIDTH = HALF_WIDTH * 2; field in BufferDebug
67 int rows = len / WIDTH; in toHex()
69 writeRow(str, buf, row * WIDTH, WIDTH, max); in toHex()
73 if (len % WIDTH != 0) { in toHex()
74 writeRow(str, buf, rows * WIDTH, max - (rows * WIDTH), max); in toHex()
97 if (start + WIDTH > max) { in writeRow()
98 padding = WIDTH - (end % WIDTH); in writeRow()
/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/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java61 private static final int WIDTH = 90; field in EdgeEffectTests
106 stretch += Color.red(observedColor) / 255f / WIDTH; in verifyPixel()
113 edgeEffect.setSize(WIDTH, HEIGHT); in assertEdgeEffect()
147 edgeEffect.setSize(WIDTH, HEIGHT / 2); 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);
279 recordingCanvas.drawRect(0f, 0f, WIDTH, HEIGHT / 2f, paint);
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DVirtualDisplayHelper.java53 static final int WIDTH = 800; 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.java522 private static final int WIDTH = 800; 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.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/display/src/android/display/cts/
DVirtualDisplayTest.java82 private static final int WIDTH = 720; 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()
322 assertEquals("display width must match supplied width", WIDTH, size.x); in assertDisplayRegistered()
/cts/tests/tests/text/src/android/text/style/cts/
DIconMarginSpanTest.java41 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/media/src/android/media/cts/
DVideoCodecTest.java49 private static final int WIDTH = 320; field in VideoCodecTest
104 WIDTH, in internalTestBasic()
164 WIDTH, in internalTestAsyncEncoding()
191 WIDTH, in internalTestAsyncEncoding()
238 WIDTH, in internalTestSyncFrame()
291 WIDTH, in internalTestDynamicBitrateChange()
355 MediaFormat format = MediaFormat.createVideoFormat(codecMimeType, WIDTH, HEIGHT); in internalTestParallelEncodingAndDecoding()
371 WIDTH, in internalTestParallelEncodingAndDecoding()
476 WIDTH, in internalTestEncoderQuality()
DMediaCodecTest.java104 private static final int WIDTH = 1280; field in MediaCodecTest
1862 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java56 private static final int WIDTH = 800; field in ProjectionOffscreenActivity
135 mService.startRendering(mReader.getSurface(), WIDTH, HEIGHT, DENSITY,
176 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in onCreate()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFadingEdgeTest.java65 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/media/
DMediaStore_Images_ThumbnailsTest.java270 values.put(Thumbnails.WIDTH, 320); in testStoreImagesMediaExternal()
286 assertEquals(320, c.getInt(c.getColumnIndex(Thumbnails.WIDTH))); in testStoreImagesMediaExternal()
295 values.put(Thumbnails.WIDTH, 50); in testStoreImagesMediaExternal()
DMediaStore_Video_MediaTest.java390 assertEquals(1920, c.getLong(c.getColumnIndex(VideoColumns.WIDTH))); in testMetadata()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java69 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/inprog/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py31 WIDTH = 640 variable
177 w, h = WIDTH, HEIGHT
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java92 private static final int WIDTH = 1920; field in MediaTranscodingManagerTest
132 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java74 private static final int WIDTH = 278; field in AnimatedImageDrawableTest
152 assertEquals(WIDTH, drawable.getIntrinsicWidth()); in testDecodeAnimatedImageDrawable()

12