/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 42 private static final int TEST_HEIGHT = 3; // must >= 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() 136 assertEquals(TEST_HEIGHT, picture.getHeight()); in verifySize() 144 canvas.drawRect(0, 0, TEST_WIDTH, TEST_HEIGHT, paint); in drawPicture() 160 for (int y = 1; y < TEST_HEIGHT; y++) { in verifyBitmap()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewFadingEdgeTests.java | 139 child.setFadingEdgeLength(TEST_HEIGHT / 2); in testCreateTopFade() 145 new Point(0, TEST_HEIGHT / 4), in testCreateTopFade() 146 new Point(0, TEST_HEIGHT / 2), in testCreateTopFade() 147 new Point(0, TEST_HEIGHT - 1) in testCreateTopFade() 162 child.setFadingEdgeLength(TEST_HEIGHT / 2); in testCreateBottomFade() 168 new Point(0, TEST_HEIGHT / 2), in testCreateBottomFade() 169 new Point(0, (TEST_HEIGHT / 4) * 3), in testCreateBottomFade() 170 new Point(0, TEST_HEIGHT - 1) in testCreateBottomFade()
|
D | HardwareRendererTests.kt | 53 const val TEST_HEIGHT = ActivityTestBase.TEST_HEIGHT in <lambda>() constant 71 TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, 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() 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() 230 assertEquals(TEST_HEIGHT, bitmap.height) in testBasicDrawGpuConsumer() 257 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testSetStopped() 282 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testNoSurface() [all …]
|
D | LayerTests.java | 129 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testLayerPaintAlphaChanged() 432 webview.getLayoutParams().height = TEST_HEIGHT - 20; in testWebViewWithOffsetLayer() 435 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithOffsetLayer() 458 webview.getLayoutParams().height = TEST_HEIGHT - 20; in testWebViewWithParentLayer() 462 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithParentLayer() 548 new Point(0, TEST_HEIGHT - 1), in testWebViewWithUnclippedLayer() 550 new Point(0, TEST_HEIGHT - 10), in testWebViewWithUnclippedLayer() 551 new Point(0, TEST_HEIGHT - 5) in testWebViewWithUnclippedLayer() 565 testPoints[2].y = TEST_HEIGHT - verticalFadingEdgeLength * 10 / 42; in testWebViewWithUnclippedLayer() 566 testPoints[3].y = TEST_HEIGHT - verticalFadingEdgeLength * 5 / 42; in testWebViewWithUnclippedLayer() [all …]
|
D | BlendModeColorFilterTest.java | 44 private static final int TOP_Y = TEST_HEIGHT / 4; 45 private static final int BOTTOM_Y = TEST_HEIGHT * 3 / 4; 64 TEST_HEIGHT, Bitmap.Config.ARGB_8888); in BlendModeColorFilterClient() 67 TEST_HEIGHT / 2, Bitmap.Config.ARGB_8888); in BlendModeColorFilterClient()
|
D | BitmapBlendModeTest.java | 39 new Point(0, TEST_HEIGHT - 1), 40 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1), 41 new Point(TEST_WIDTH / 2, TEST_HEIGHT / 2)
|
D | SweepTests.java | 60 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 72 canvas.drawCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, TEST_HEIGHT / 2, paint);
|
D | BitmapTests.java | 188 ActivityTestBase.TEST_HEIGHT / 2)); in testChangeDuringUiAnimation() 192 mAnimator = ValueAnimator.ofInt(0, ActivityTestBase.TEST_HEIGHT / 2); in testChangeDuringUiAnimation() 229 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 239 assertEquals(TEST_HEIGHT, bitmap.getHeight()); in testCreateFromPicture()
|
D | AutofillHighlightTests.java | 42 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testHighlightedFrameLayout() 56 ActivityTestBase.TEST_HEIGHT); in testHighlightedFrameLayout()
|
D | BlendModeTest.java | 45 private static final int TOP_Y = TEST_HEIGHT / 4; 46 private static final int BOTTOM_Y = TEST_HEIGHT * 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 | 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()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | RectShapeTest.java | 44 private static final int TEST_HEIGHT = 200; 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() 108 assertEquals((float) TEST_HEIGHT, rect.bottom, 0.0f); in testRect()
|
D | ArcShapeTest.java | 41 private static final int TEST_HEIGHT = 200; 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 | 43 private static final int TEST_HEIGHT = 200; 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 | ShapeTest.java | 42 private static final int TEST_HEIGHT = 200; 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()
|
D | RoundRectShapeTest.java | 44 private static final int TEST_HEIGHT = 200; 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()
|
/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() 69 ActivityTestBase.TEST_HEIGHT); in onDraw() 71 ActivityTestBase.TEST_HEIGHT); 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() 69 ActivityTestBase.TEST_HEIGHT); in onDraw() 71 ActivityTestBase.TEST_HEIGHT); 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/testclasses/ |
D | BitmapBlendModeTest.java | 39 new Point(0, TEST_HEIGHT - 1), 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 | 67 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_LayoutParamsTest.java | 55 int TEST_HEIGHT = 25; in testConstructors() local 61 assertEquals(TEST_HEIGHT, layoutParams.height); in testConstructors()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointVerifier.java | 67 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|