Searched refs:mCanvas (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CanvasTest.java | 68 private Canvas mCanvas; field in CanvasTest 85 mCanvas = new Canvas(mMutableBitmap); in setUp() 118 mCanvas.setBitmap(mImmutableBitmap); in testSetBitmap() 128 mCanvas.setBitmap(mMutableBitmap); in testSetBitmap() 136 mCanvas.setBitmap(mMutableBitmap); in testSetBitmap() 137 assertEquals(BITMAP_WIDTH, mCanvas.getWidth()); in testSetBitmap() 138 assertEquals(31, mCanvas.getHeight()); in testSetBitmap() 142 assertFalse(mCanvas.isOpaque()); in testIsOpaque() 148 mCanvas.restore(); in testRestore() 155 mCanvas.save(); in testRestore() [all …]
|
D | SweepGradientTest.java | 34 private Canvas mCanvas; field in SweepGradientTest 49 mCanvas = new Canvas(mBitmap); in setUp() 57 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in test2Colors() 66 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testColorArray() 77 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testMultiColor()
|
D | BitmapTest.java | 978 Canvas mCanvas = new Canvas(mMutableBitmap); in testGetScaledHeight3() local 980 mCanvas.setDensity(DisplayMetrics.DENSITY_HIGH); in testGetScaledHeight3() 982 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3() 983 assertEquals(scaledHeight, ret.getScaledHeight(mCanvas)); in testGetScaledHeight3() 1005 Canvas mCanvas = new Canvas(mMutableBitmap); in testGetScaledWidth3() local 1007 mCanvas.setDensity(DisplayMetrics.DENSITY_HIGH); in testGetScaledWidth3() 1008 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledWidth3() 1009 assertEquals(scaledWidth, ret.getScaledWidth(mCanvas)); in testGetScaledWidth3()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | SurfaceViewCtsActivity.java | 56 private MockCanvas mCanvas; field in SurfaceViewCtsActivity.MockSurfaceView 174 mCanvas = new MockCanvas(Bitmap.createBitmap( BITMAP_WIDTH, in surfaceCreated() 177 draw(mCanvas); in surfaceCreated() 233 if (mCanvas != null) { in isDrawColor() 234 return mCanvas.isDrawColor(); in isDrawColor() 245 if (mCanvas != null) { in setDrawColor() 246 mCanvas.setDrawColor(isDrawColor); in setDrawColor()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | TransitionDrawableTest.java | 42 private Canvas mCanvas; field in TransitionDrawableTest 52 mCanvas = new Canvas(mBitmap); in setUp() 181 mTransitionDrawable.draw(mCanvas); in assertTransitionStart() 232 mTransitionDrawable.draw(mCanvas); in drawAfterDelaySync()
|
D | AnimatedVectorDrawableTest.java | 50 private Canvas mCanvas; field in AnimatedVectorDrawableTest 63 mCanvas = new Canvas(mBitmap); in setUp() 120 mAnimatedVectorDrawable.draw(mCanvas); in testInflate()
|
D | VectorDrawableTest.java | 115 private Canvas mCanvas; field in VectorDrawableTest 124 mCanvas = new Canvas(mBitmap); in setUp() 154 mVectorDrawable.draw(mCanvas); in verifyVectorDrawables()
|