/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 36 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/ |
D | ActivityTestBase.java | 56 public static final int TEST_WIDTH = 90; field in ActivityTestBase 59 private int[] mHardwareArray = new int[TEST_HEIGHT * TEST_WIDTH]; 60 private int[] mSoftwareArray = new int[TEST_HEIGHT * TEST_WIDTH]; 130 return Bitmap.createBitmap(source, testOffset.x, testOffset.y, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot() 170 givenAllocation, 0, TEST_WIDTH, TEST_WIDTH, TEST_HEIGHT, mRenderScript); in assertBitmapsAreSimilar() 172 bitmap1.getPixels(mSoftwareArray, 0, TEST_WIDTH, 0, 0, TEST_WIDTH, TEST_HEIGHT); in assertBitmapsAreSimilar() 173 bitmap2.getPixels(mHardwareArray, 0, TEST_WIDTH, 0, 0, TEST_WIDTH, TEST_HEIGHT); in assertBitmapsAreSimilar() 174 success = comparer.verifySame(mSoftwareArray, mHardwareArray, 0, TEST_WIDTH, TEST_WIDTH, in assertBitmapsAreSimilar() 192 bitmap.getPixels(mSoftwareArray, 0, TEST_WIDTH, 0, 0, in assertBitmapIsVerified() 193 TEST_WIDTH, TEST_HEIGHT); in assertBitmapIsVerified() [all …]
|
D | CanvasClientView.java | 59 canvas.clipRect(0, 0, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw() 60 mCanvasClient.draw(canvas, ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in onDraw()
|
D | ResourceModifier.java | 59 int drawWidth = ActivityTestBase.TEST_WIDTH; in ResourceModifier()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | ArcShapeTest.java | 31 private static final int TEST_WIDTH = 100; field in ArcShapeTest 52 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 57 arcShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 61 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 63 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | RectShapeTest.java | 33 private static final int TEST_WIDTH = 100; field in RectShapeTest 54 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 59 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 62 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1); in testDraw() 66 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_2); in testDraw() 92 rectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testRect() 96 assertEquals((float) TEST_WIDTH, rect.right); in testRect()
|
D | OvalShapeTest.java | 32 private static final int TEST_WIDTH = 100; field in OvalShapeTest 46 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 51 ovalShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 55 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 57 final int SQUARE = Math.min(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
D | RoundRectShapeTest.java | 33 private static final int TEST_WIDTH = 100; field in RoundRectShapeTest 68 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 73 roundRectShape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw() 77 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw() 82 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
|
D | ShapeTest.java | 31 private static final int TEST_WIDTH = 100; field in ShapeTest 101 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw() 106 shape.resize(TEST_WIDTH, TEST_HEIGHT); in testDraw()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_LayoutParamsTest.java | 44 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/ |
D | GoldenImageVerifier.java | 28 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()
|
D | SamplePointVerifier.java | 66 mDifferenceBitmap = Bitmap.createBitmap(ActivityTestBase.TEST_WIDTH, in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
D | PerPixelBitmapVerifier.java | 80 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/ |
D | XfermodeTest.java | 142 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null); 152 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 161 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
|
D | ColorFilterAlphaTest.java | 103 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap() 108 final int blockWidth = TEST_WIDTH / blockCount; in createMultiRectBitmap()
|
D | SweepTests.java | 58 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 70 canvas.drawCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, TEST_HEIGHT / 2, paint);
|
D | PictureTest.java | 41 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in greenSquare()
|
D | BitmapFilterTests.java | 76 private static final int BIG_GRID_SIZE = TEST_WIDTH * 2;
|
D | ExactCanvasTests.java | 71 canvas.drawRect(0, 0, ActivityTestBase.TEST_WIDTH, in testBlackRectWithStroke()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 1586 const int TEST_WIDTH = 640; in Java_android_hardware_camera2_cts_NativeImageReaderTest_testJpegNative() local 1630 TEST_WIDTH, TEST_HEIGHT, AIMAGE_FORMAT_JPEG, NUM_TEST_IMAGES); in Java_android_hardware_camera2_cts_NativeImageReaderTest_testJpegNative() 1712 const int TEST_WIDTH = 640; in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative() local 1756 TEST_WIDTH, TEST_HEIGHT, AIMAGE_FORMAT_JPEG, NUM_TEST_IMAGES); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
|