Home
last modified time | relevance | path

Searched refs:mCanvas (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DCanvasTest.java32 Canvas mCanvas; field in CanvasTest
37 mCanvas = new Canvas(bm); in setup()
42 mCanvas.drawColor(Color.convert(Color.BLUE, ColorSpace.get(ColorSpace.Named.CIE_XYZ))); in testDrawColorXYZ()
47 mCanvas.drawColor(Color.convert(Color.BLUE, ColorSpace.get(ColorSpace.Named.CIE_LAB))); in testDrawColorLAB()
52 mCanvas.drawColor(-1L); in testDrawColorUnknown()
DSweepGradientTest.java55 private Canvas mCanvas; field in SweepGradientTest
63 mCanvas = new Canvas(mBitmap); in setup()
72 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in test2Colors()
82 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testColorArray()
94 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testMultiColor()
DBitmapTest.java1648 Canvas mCanvas = new Canvas(mMutableBitmap); in testGetScaledHeight3() local
1650 mCanvas.setDensity(DisplayMetrics.DENSITY_HIGH); in testGetScaledHeight3()
1652 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3()
1653 assertEquals(scaledHeight, ret.getScaledHeight(mCanvas)); in testGetScaledHeight3()
1678 Canvas mCanvas = new Canvas(mMutableBitmap); in testGetScaledWidth3() local
1680 mCanvas.setDensity(DisplayMetrics.DENSITY_HIGH); in testGetScaledWidth3()
1681 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledWidth3()
1682 assertEquals(scaledWidth, ret.getScaledWidth(mCanvas)); in testGetScaledWidth3()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceViewCtsActivity.java55 private Canvas mCanvas; field in SurfaceViewCtsActivity.MockSurfaceView
182 mCanvas = new Canvas(Bitmap.createBitmap( BITMAP_WIDTH, in surfaceCreated()
185 draw(mCanvas); in surfaceCreated()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DTransitionDrawableTest.java61 private Canvas mCanvas; field in TransitionDrawableTest
70 mCanvas = new Canvas(mBitmap); in setup()
197 mTransitionDrawable.draw(mCanvas); in verifyTransitionStart()
247 mTransitionDrawable.draw(mCanvas); in drawAfterDelaySync()
DVectorDrawableTest.java192 private Canvas mCanvas; field in VectorDrawableTest
201 mCanvas = new Canvas(mBitmap); in setup()
263 vectorDrawable.draw(mCanvas); in verifyVectorDrawables()