Home
last modified time | relevance | path

Searched refs:BITMAP_WIDTH (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DCornerPathEffectTest.java35 private static final int BITMAP_WIDTH = 100; field in CornerPathEffectTest
44 path.lineTo(BITMAP_WIDTH - PADDING, PADDING); in testCornerPathEffect()
45 path.lineTo(BITMAP_WIDTH - PADDING, BITMAP_HEIGHT); in testCornerPathEffect()
55 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testCornerPathEffect()
63 RectF oval = new RectF(BITMAP_WIDTH - PADDING - 2 * RADIUS, PADDING, in testCornerPathEffect()
64 BITMAP_WIDTH - PADDING, PADDING + 2 * RADIUS); in testCornerPathEffect()
67 expectedPath.lineTo(BITMAP_WIDTH - PADDING, BITMAP_HEIGHT); in testCornerPathEffect()
80 for (int x = 0; x < BITMAP_WIDTH; x++) { in testCornerPathEffect()
90 int straightLines = BITMAP_WIDTH - PADDING - RADIUS + BITMAP_HEIGHT - PADDING - RADIUS; in testCornerPathEffect()
DComposePathEffectTest.java32 private static final int BITMAP_WIDTH = 110; field in ComposePathEffectTest
35 private static final int END_X = BITMAP_WIDTH - 10;
53 Bitmap actual = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect()
59 Bitmap expected = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect()
66 for (int x = 0; x < BITMAP_WIDTH; x++) { in testComposePathEffect()
DEmbossMaskFilterTest.java32 private static final int BITMAP_WIDTH = 100; field in EmbossMaskFilterTest
35 private static final int END_X = BITMAP_WIDTH - START_X;
53 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testEmbossMaskFilter()
59 Rect top = new Rect(0, 0, BITMAP_WIDTH, CENTER_Y); in testEmbossMaskFilter()
60 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter()
62 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter()
DPaintFlagsDrawFilterTest.java36 private static final int BITMAP_WIDTH = 100; field in PaintFlagsDrawFilterTest
62 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in drawText()
71 Bitmap combinedBitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in delta()
75 for (int i = 0; i < BITMAP_WIDTH; i++) { in delta()
91 Rect rect = new Rect(BITMAP_WIDTH, BITMAP_HEIGHT, 0, 0); in assertUnderline()
93 for (int x = 0; x < BITMAP_WIDTH; x++) { in assertUnderline()
DDashPathEffectTest.java33 private static final int BITMAP_WIDTH = 200; field in DashPathEffectTest
36 private static final int END_X = BITMAP_WIDTH - START_X;
45 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testDashPathEffect()
63 for (int x = 0; x < BITMAP_WIDTH; x++) { in testDashPathEffect()
DDiscretePathEffectTest.java34 private static final int BITMAP_WIDTH = 200; field in DiscretePathEffectTest
37 private static final int END_X = BITMAP_WIDTH - START_X;
55 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testDiscretePathEffect()
79 for (int x = 0; x < BITMAP_WIDTH; x++) { in testDiscretePathEffect()
DAvoidXfermodeTest.java34 private static final int BITMAP_WIDTH = BASE_SIZE * 2; field in AvoidXfermodeTest
53 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testAvoidXfermode()
DBlurMaskFilterTest.java33 private static final int BITMAP_WIDTH = 100; field in BlurMaskFilterTest
42 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testBlurMaskFilter()
DCanvasTest.java49 private final static int BITMAP_WIDTH = 10; field in CanvasTest
83 mMutableBitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in setUp()
110 mMutableBitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testCanvas2()
134 mMutableBitmap = Bitmap.createBitmap(BITMAP_WIDTH, 31, Config.ARGB_8888); in testSetBitmap()
136 assertEquals(BITMAP_WIDTH, mCanvas.getWidth()); in testSetBitmap()
939 assertEquals(BITMAP_WIDTH, r.width()); in testGetClipBounds1()
946 assertEquals(BITMAP_WIDTH, r.width()); in testGetClipBounds2()
952 assertEquals(color, mMutableBitmap.getPixel(BITMAP_WIDTH / 2, BITMAP_HEIGHT / 2)); in checkDrewColor()
953 assertEquals(color, mMutableBitmap.getPixel(BITMAP_WIDTH - 1, BITMAP_HEIGHT - 1)); in checkDrewColor()
1173 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Config.ARGB_8888); in testDrawBitmap1()
[all …]
/cts/tests/src/android/view/cts/
DSurfaceViewStubActivity.java48 private static final int BITMAP_WIDTH = 100; field in SurfaceViewStubActivity.MockSurfaceView
174 mCanvas = new MockCanvas(Bitmap.createBitmap( BITMAP_WIDTH, in surfaceCreated()