/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 43 private static final int TEST_WIDTH = 4; // must be >= 2 field in PictureTest 57 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance() 79 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance() 96 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verifyBalance() 123 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 128 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 138 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 145 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 160 assertEquals(TEST_WIDTH, picture.getWidth()); in verifySize() 169 canvas.drawRect(0, 0, TEST_WIDTH, TEST_HEIGHT, paint); in drawPicture() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | RectShapeTest.java | 42 private static final int TEST_WIDTH = 100; field in RectShapeTest 64 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 69 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 72 verifyDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1); in testDraw() 76 verifyDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_2); in testDraw() 102 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testRect() 106 assertEquals((float) TEST_WIDTH, rect.right, 0.0f); in testRect()
|
D | ArcShapeTest.java | 39 private static final int TEST_WIDTH = 100; field in ArcShapeTest 72 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 77 arcShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 81 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 83 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | OvalShapeTest.java | 41 private static final int TEST_WIDTH = 100; field in OvalShapeTest 57 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 62 ovalShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 66 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 68 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | RoundRectShapeTest.java | 42 private static final int TEST_WIDTH = 100; field in RoundRectShapeTest 78 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 83 roundRectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 87 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw() 92 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
|
D | ShapeTest.java | 40 private static final int TEST_WIDTH = 100; field in ShapeTest 110 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 115 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()
|
D | ActivityTestBase.java | 54 public static final int TEST_WIDTH = 90; field in ActivityTestBase 125 TEST_WIDTH, TEST_HEIGHT, in takeScreenshot() 128 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot()
|
D | ResourceModifier.java | 59 int drawWidth = ActivityTestBase.TEST_WIDTH; in ResourceModifier()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_LayoutParamsTest.java | 53 int TEST_WIDTH = 25; in testConstructors() local 59 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors() 72 AbsListView.LayoutParams tmpParams = new AbsListView.LayoutParams(TEST_WIDTH, TEST_HEIGHT2); in testConstructors() 74 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | GoldenImageVerifier.java | 30 mGoldenBitmapArray = new int[ActivityTestBase.TEST_WIDTH * ActivityTestBase.TEST_HEIGHT]; in GoldenImageVerifier() 31 goldenBitmap.getPixels(mGoldenBitmapArray, 0, ActivityTestBase.TEST_WIDTH, 0, 0, in GoldenImageVerifier() 32 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in GoldenImageVerifier()
|
D | SamplePointVerifier.java | 66 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | AutofillHighlightTests.java | 40 Bitmap goldenBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in testHighlightedFrameLayout() 54 autofilledDrawable.setBounds(0, 0, ActivityTestBase.TEST_WIDTH, in testHighlightedFrameLayout()
|
D | XfermodeTest.java | 168 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null); 178 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 187 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
|
D | ColorFilterAlphaTest.java | 114 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap() 119 final int blockWidth = TEST_WIDTH / blockCount; in createMultiRectBitmap()
|
D | BitmapFilterTests.java | 84 private static final int BIG_GRID_SIZE = TEST_WIDTH * 2; 160 final Region whiteArea = new Region(0, 0, TEST_WIDTH, TEST_HEIGHT); in testDrawSnapped() 182 final Region whiteArea = new Region(0, 0, TEST_WIDTH, TEST_HEIGHT); in testDrawHalfPixelFiltered()
|
D | SurfaceViewTests.java | 116 TEST_WIDTH, TEST_HEIGHT); in testMovingWhiteSurfaceView() 137 TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in takeScreenshot() 138 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot()
|
D | SweepTests.java | 59 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 71 canvas.drawCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, TEST_HEIGHT / 2, paint);
|
D | LayerTests.java | 130 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testLayerPaintAlphaChanged() 432 webview.getLayoutParams().width = TEST_WIDTH - 20; in testWebViewWithOffsetLayer() 436 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithOffsetLayer() 458 webview.getLayoutParams().width = TEST_WIDTH - 20; in testWebViewWithParentLayer() 463 new Rect(10, 10, TEST_WIDTH - 10, TEST_HEIGHT - 10))); in testWebViewWithParentLayer() 598 new Point(TEST_WIDTH / 2 , 5), in testWebViewWithUnclippedLayerAndComplexClip() 600 new Point(TEST_WIDTH / 2, TEST_HEIGHT - 10), in testWebViewWithUnclippedLayerAndComplexClip() 601 new Point(TEST_WIDTH / 2, TEST_HEIGHT - 5) in testWebViewWithUnclippedLayerAndComplexClip()
|
D | BitmapTests.java | 186 child.setLayoutParams(new FrameLayout.LayoutParams(ActivityTestBase.TEST_WIDTH / 2, in testChangeDuringUiAnimation() 228 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 237 assertEquals(TEST_WIDTH, bitmap.getWidth()); in testCreateFromPicture()
|
D | PictureTest.java | 45 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in greenSquare()
|
D | PathClippingTests.java | 158 path.addCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, in testPathScale() 159 TEST_WIDTH / 4, Path.Direction.CW); in testPathScale()
|
D | HardwareBitmapTests.java | 90 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 98 assertEquals(TEST_WIDTH, hardwareBitmap.getWidth()); in testCreateFromPicture() 113 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPicture() 133 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPictureNoEndRecording()
|
D | VectorDrawableTests.java | 97 child.setLayoutParams(new FrameLayout.LayoutParams(ActivityTestBase.TEST_WIDTH, in testInvalidateCache()
|