/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 45 private static final int TEST_HEIGHT = 3; // must >= 2 field in PictureTest 58 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance() 80 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance() 97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verifyBalance() 124 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 129 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 139 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 146 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 155 assertEquals(TEST_HEIGHT, picture.getHeight()); in verifySize() 163 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 | 43 private static final int TEST_HEIGHT = 200; 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() 107 assertEquals((float) TEST_HEIGHT, rect.bottom, 0.0f); in testRect()
|
D | ArcShapeTest.java | 40 private static final int TEST_HEIGHT = 200; 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 | 42 private static final int TEST_HEIGHT = 200; 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 | ShapeTest.java | 41 private static final int TEST_HEIGHT = 200; 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()
|
D | RoundRectShapeTest.java | 43 private static final int TEST_HEIGHT = 200; 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()
|
/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()
|
D | ActivityTestBase.java | 57 public static final int TEST_HEIGHT = 90; field in ActivityTestBase 127 TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in takeScreenshot() 129 testOffset.x + TEST_WIDTH, testOffset.y + TEST_HEIGHT); in takeScreenshot()
|
D | ResourceModifier.java | 60 int drawHeight = ActivityTestBase.TEST_HEIGHT; in ResourceModifier()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | GoldenImageVerifier.java | 30 mGoldenBitmapArray = new int[ActivityTestBase.TEST_WIDTH * ActivityTestBase.TEST_HEIGHT]; in GoldenImageVerifier() 32 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in GoldenImageVerifier()
|
D | SamplePointVerifier.java | 67 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verify() 69 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
D | PerPixelBitmapVerifier.java | 81 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verify() 83 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in verify()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
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 | AutofillHighlightTests.java | 41 ActivityTestBase.TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testHighlightedFrameLayout() 55 ActivityTestBase.TEST_HEIGHT); in testHighlightedFrameLayout()
|
D | XfermodeTest.java | 164 int sc = canvas.saveLayer(0, 0, TEST_WIDTH, TEST_HEIGHT, null); 174 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 183 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
|
D | SurfaceViewTests.java | 116 return Bitmap.createBitmap(source, testOffset.x, testOffset.y, 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 | ColorFilterAlphaTest.java | 112 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap() 120 canvas.drawRect(i * blockWidth, 0, (i + 1) * blockWidth, TEST_HEIGHT, paint); in createMultiRectBitmap()
|
D | PictureTest.java | 45 ActivityTestBase.TEST_WIDTH, ActivityTestBase.TEST_HEIGHT); in greenSquare()
|
D | BitmapTests.java | 180 ActivityTestBase.TEST_HEIGHT / 2)); in testChangeDuringUiAnimation() 184 mAnimator = ValueAnimator.ofInt(0, ActivityTestBase.TEST_HEIGHT / 2); in testChangeDuringUiAnimation()
|
D | TextureViewTests.java | 96 texture.setDefaultBufferSize(TEST_WIDTH, TEST_HEIGHT); in createSurfaceTexture()
|
D | PathClippingTests.java | 158 path.addCircle(TEST_WIDTH / 2, TEST_HEIGHT / 2, in testPathScale()
|
D | ExactCanvasTests.java | 81 ActivityTestBase.TEST_HEIGHT, p); in testBlackRectWithStroke()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_LayoutParamsTest.java | 54 int TEST_HEIGHT = 25; in testConstructors() local 60 assertEquals(TEST_HEIGHT, layoutParams.height); in testConstructors()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 1587 const int TEST_HEIGHT = 480; 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() 1713 const int TEST_HEIGHT = 480; 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()
|