/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewFadingEdgeTests.java | 92 child.setFadingEdgeLength(TEST_WIDTH / 2); in testCreateLeftFade() 98 new Point(TEST_WIDTH / 4, 0), in testCreateLeftFade() 99 new Point(TEST_WIDTH / 2, 0), in testCreateLeftFade() 100 new Point(TEST_WIDTH - 1, 0) in testCreateLeftFade() 116 child.setFadingEdgeLength(TEST_WIDTH / 2); in testCreateRightFade() 122 new Point(TEST_WIDTH / 2, 0), in testCreateRightFade() 123 new Point((TEST_WIDTH / 4) * 3, 0), in testCreateRightFade() 124 new Point(TEST_WIDTH - 1, 0) in testCreateRightFade() 186 child.setFadingEdgeLength(TEST_WIDTH / 2); in testCreateLeftAndRightFade() 192 new Point(TEST_WIDTH / 4, 0), in testCreateLeftAndRightFade() [all …]
|
D | HardwareRendererTests.kt | 52 const val TEST_WIDTH = ActivityTestBase.TEST_WIDTH in <lambda>() constant 71 TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in <lambda>() 90 assertTrue((ActivityTestBase.TEST_WIDTH * 4) <= plane.rowStride) in <lambda>() 106 TEST_WIDTH, TEST_WIDTH) in <lambda>() 124 content.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT) in rendererTest() 149 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawCpuConsumer() 157 content.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT) in testBasicDrawCpuConsumer() 178 assertTrue((TEST_WIDTH * 4) <= plane.rowStride) in testBasicDrawCpuConsumer() 198 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawGpuConsumer() 206 content.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT) in testBasicDrawGpuConsumer() [all …]
|
D | BlendModeColorFilterTest.java | 42 private static final int LEFT_X = TEST_WIDTH / 4; 43 private static final int RIGHT_X = TEST_WIDTH * 3 / 4; 63 final Bitmap b1 = Bitmap.createBitmap(TEST_WIDTH / 2, in BlendModeColorFilterClient() 66 final Bitmap b2 = Bitmap.createBitmap(TEST_WIDTH, in BlendModeColorFilterClient()
|
D | BitmapBlendModeTest.java | 38 new Point(TEST_WIDTH - 1, 0), 40 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1), 41 new Point(TEST_WIDTH / 2, TEST_HEIGHT / 2)
|
D | AutofillHighlightTests.java | 41 Bitmap goldenBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in testHighlightedFrameLayout() 55 autofilledDrawable.setBounds(0, 0, ActivityTestBase.TEST_WIDTH, in testHighlightedFrameLayout()
|
D | LayerTests.java | 129 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testLayerPaintAlphaChanged() 431 webview.getLayoutParams().width = TEST_WIDTH - 20; in testWebViewWithOffsetLayer() 435 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithOffsetLayer() 457 webview.getLayoutParams().width = TEST_WIDTH - 20; in testWebViewWithParentLayer() 462 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithParentLayer() 590 new Point(TEST_WIDTH / 2 , 5), in testWebViewWithUnclippedLayerAndComplexClip() 592 new Point(TEST_WIDTH / 2, TEST_HEIGHT - 10), in testWebViewWithUnclippedLayerAndComplexClip() 593 new Point(TEST_WIDTH / 2, TEST_HEIGHT - 5) in testWebViewWithUnclippedLayerAndComplexClip()
|
D | XfermodeTest.java | 169 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null); 179 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 188 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
|
D | SurfaceViewTests.java | 119 TEST_WIDTH, TEST_HEIGHT); in testMovingWhiteSurfaceView() 140 TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in takeScreenshot() 141 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot()
|
D | BitmapFilterTests.java | 85 private static final int BIG_GRID_SIZE = TEST_WIDTH * 2; 161 final Region whiteArea = new Region(0, 0, TEST_WIDTH, TEST_HEIGHT); in testDrawSnapped() 183 final Region whiteArea = new Region(0, 0, TEST_WIDTH, TEST_HEIGHT); in testDrawHalfPixelFiltered()
|
D | BlendModeTest.java | 43 private static final int LEFT_X = TEST_WIDTH / 4; 44 private static final int RIGHT_X = TEST_WIDTH * 3 / 4; 65 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null); in draw() 96 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createBlendmodeDst() 100 srcCanvas.drawRect(0, 0, TEST_WIDTH / 2, TEST_HEIGHT, srcPaint); in createBlendmodeDst() 105 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createBlendmodeSrc() 109 dstCanvas.drawRect(0, TEST_HEIGHT / 2, TEST_WIDTH, TEST_HEIGHT, dstPaint); in createBlendmodeSrc()
|
D | ColorFilterAlphaTest.java | 115 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap() 120 final int blockWidth = TEST_WIDTH / blockCount; in createMultiRectBitmap()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 41 private static final int TEST_WIDTH = 4; // must be >= 2 field in PictureTest 54 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance() 65 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance() 82 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verifyBalance() 108 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 113 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 120 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 135 assertEquals(TEST_WIDTH, picture.getWidth()); in verifySize() 144 canvas.drawRect(0, 0, TEST_WIDTH, TEST_HEIGHT, paint); in drawPicture() 147 canvas.drawLine(0, 0, TEST_WIDTH, 0, paint); in drawPicture() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | RectShapeTest.java | 43 private static final int TEST_WIDTH = 100; field in RectShapeTest 65 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 70 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 73 verifyDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1); in testDraw() 77 verifyDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_2); in testDraw() 103 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testRect() 107 assertEquals((float) TEST_WIDTH, rect.right, 0.0f); in testRect()
|
D | ArcShapeTest.java | 40 private static final int TEST_WIDTH = 100; field in ArcShapeTest 73 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 78 arcShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 82 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 84 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | OvalShapeTest.java | 42 private static final int TEST_WIDTH = 100; field in OvalShapeTest 58 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 63 ovalShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 67 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 69 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | RoundRectShapeTest.java | 43 private static final int TEST_WIDTH = 100; field in RoundRectShapeTest 79 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 84 roundRectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 88 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw() 93 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
|
D | ShapeTest.java | 41 private static final int TEST_WIDTH = 100; field in ShapeTest 111 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 116 shape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientView.java | 65 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw() 68 Canvas pictureCanvas = picture.beginRecording(ActivityTestBase.TEST_WIDTH, in onDraw() 70 mCanvasClient.draw(pictureCanvas, ActivityTestBase.TEST_WIDTH, in onDraw() 75 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw()
|
D | CanvasClientDrawable.java | 32 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in draw() 33 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in draw()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientView.java | 65 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw() 68 Canvas pictureCanvas = picture.beginRecording(ActivityTestBase.TEST_WIDTH, in onDraw() 70 mCanvasClient.draw(pictureCanvas, ActivityTestBase.TEST_WIDTH, in onDraw() 75 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw()
|
D | CanvasClientDrawable.java | 32 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in draw() 33 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in draw()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_LayoutParamsTest.java | 54 int TEST_WIDTH = 25; in testConstructors() local 60 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors() 73 AbsListView.LayoutParams tmpParams = new AbsListView.LayoutParams(TEST_WIDTH, TEST_HEIGHT2); in testConstructors() 75 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/ |
D | BitmapBlendModeTest.java | 38 new Point(TEST_WIDTH - 1, 0), 40 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1), 41 new Point (TEST_WIDTH / 2, TEST_HEIGHT / 2)
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointVerifier.java | 66 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointVerifier.java | 66 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|