Home
last modified time | relevance | path

Searched refs:TEST_WIDTH (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DPictureTest.java36 private static final int TEST_WIDTH = 4; // must be >= 2 field in PictureTest
49 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance()
71 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance()
88 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in checkBalance()
114 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture()
119 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture()
129 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture()
136 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture()
144 assertEquals(TEST_WIDTH, picture.getWidth()); in checkSize()
153 canvas.drawRect(0, 0, TEST_WIDTH, TEST_HEIGHT, paint); in drawPicture()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java49 public static final int TEST_WIDTH = 90; field in ActivityTestBase
54 private int[] mHardwareArray = new int[TEST_HEIGHT * TEST_WIDTH];
55 private int[] mSoftwareArray = new int[TEST_HEIGHT * TEST_WIDTH];
135 return Bitmap.createBitmap(source, testOffset.x, testOffset.y, TEST_WIDTH, TEST_HEIGHT); in takeScreenshotImpl()
184 givenAllocation, 0, TEST_WIDTH, TEST_WIDTH, TEST_HEIGHT, mRenderScript); in assertBitmapsAreSimilar()
186 bitmap1.getPixels(mSoftwareArray, 0, TEST_WIDTH, 0, 0, TEST_WIDTH, TEST_HEIGHT); in assertBitmapsAreSimilar()
187 bitmap2.getPixels(mHardwareArray, 0, TEST_WIDTH, 0, 0, TEST_WIDTH, TEST_HEIGHT); in assertBitmapsAreSimilar()
188 success = comparer.verifySame(mSoftwareArray, mHardwareArray, 0, TEST_WIDTH, TEST_WIDTH, in assertBitmapsAreSimilar()
206 bitmap.getPixels(mSoftwareArray, 0, TEST_WIDTH, 0, 0, in assertBitmapIsVerified()
207 TEST_WIDTH, TEST_HEIGHT); in assertBitmapIsVerified()
[all …]
DCanvasClientView.java59 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw()
60 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw()
DResourceModifier.java59 int drawWidth = ActivityTestBase.TEST_WIDTH; in ResourceModifier()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRectShapeTest.java31 private static final int TEST_WIDTH = 100; field in RectShapeTest
51 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
56 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
59 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1); in testDraw()
63 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_2); in testDraw()
86 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testRect()
90 assertEquals((float) TEST_WIDTH, rect.right); in testRect()
DArcShapeTest.java30 private static final int TEST_WIDTH = 100; field in ArcShapeTest
49 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
54 arcShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
58 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw()
60 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
DOvalShapeTest.java30 private static final int TEST_WIDTH = 100; field in OvalShapeTest
44 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
49 ovalShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
53 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw()
55 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
DRoundRectShapeTest.java31 private static final int TEST_WIDTH = 100; field in RoundRectShapeTest
66 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
71 roundRectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
75 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
80 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
DShapeTest.java32 private static final int TEST_WIDTH = 100; field in ShapeTest
97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
102 shape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsListView_LayoutParamsTest.java44 int TEST_WIDTH = 25; in testConstructors() local
50 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
63 AbsListView.LayoutParams tmpParams = new AbsListView.LayoutParams(TEST_WIDTH, TEST_HEIGHT2); in testConstructors()
65 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DGoldenImageVerifier.java28 mGoldenBitmapArray = new int[ActivityTestBase.TEST_WIDTH * ActivityTestBase.TEST_HEIGHT]; in GoldenImageVerifier()
29 goldenBitmap.getPixels(mGoldenBitmapArray, 0, ActivityTestBase.TEST_WIDTH, 0, 0, in GoldenImageVerifier()
30 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in GoldenImageVerifier()
DSamplePointVerifier.java60 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify()
63 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
DPerPixelBitmapVerifier.java80 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify()
83 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSweepTests.java133 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null);
142 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
151 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
247 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
252 final int blockWidth = TEST_WIDTH / blockCount;
277 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
289 canvas.drawCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, TEST_HEIGHT / 2, paint);
DPictureTest.java39 Canvas subcanvas = pic.beginRecording(ActivityTestBase.TEST_WIDTH, in greenSquare()
DBitmapFilterTests.java75 private static final int BIG_GRID_SIZE = TEST_WIDTH * 2;
DExactCanvasTests.java79 canvas.drawRect(0, 0, ActivityTestBase.TEST_WIDTH, in testBlackRectWithStroke()