Home
last modified time | relevance | path

Searched refs:mPaint (Results 1 – 25 of 25) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveScopeView.java30 private final Paint mPaint = new Paint(); field in WaveScopeView
175 mPaint.setColor(mZeroColor); in drawChannelFloat()
177 cvs.drawLine(0, zeroY, endX, zeroY, mPaint); in drawChannelFloat()
208 mPaint.setColor(mTextColor); in drawChannelFloat()
209 mPaint.setTextSize(mDisplayFontSize); in drawChannelFloat()
210 cvs.drawText(String.format("%.2f", maxMagnitude), 0, zeroY, mPaint); in drawChannelFloat()
212 mPaint.setColor(mTraceColor); in drawChannelFloat()
213 cvs.drawLines(localPointsBuffer, mPaint); in drawChannelFloat()
226 mPaint.setColor(mTraceColor); in drawChannelFloat()
227 cvs.drawLines(localPointsBuffer, mPaint); in drawChannelFloat()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShaderTests.java51 Paint mPaint = new Paint(); in testSinglePixelBitmapShader()
54 if (mPaint.getShader() == null) { in testSinglePixelBitmapShader()
57 mPaint.setShader(new BitmapShader(shaderBitmap, in testSinglePixelBitmapShader()
60 canvas.drawRect(0, 0, width, height, mPaint); in testSinglePixelBitmapShader()
70 Paint mPaint = new Paint(); in testSinglePixelComposeShader()
74 if (mPaint.getShader() == null) { in testSinglePixelComposeShader()
88 mPaint.setShader(new ComposeShader( in testSinglePixelComposeShader()
91 canvas.drawRect(0, 0, width, height, mPaint); in testSinglePixelComposeShader()
111 Paint mPaint = new Paint(); in testComplexShaderUsage()
121 bitmapCanvas.drawCircle(width / 2, height / 2, radius, mPaint); in testComplexShaderUsage()
[all …]
DColorFilterAlphaTest.java141 final Paint mPaint = new Paint();
148 mPaint.setColorFilter(new PorterDuffColorFilter(FILTER_COLOR, mConfig.mode));
149 canvas.drawBitmap(mBitmap, 0, 0, mPaint);
DXfermodeTest.java159 final Paint mPaint = new Paint();
172 mPaint.setXfermode(new PorterDuffXfermode(mConfig.mode));
173 canvas.drawBitmap(mSrcBitmap, 0, 0, mPaint);
DRenderNodeTests.java663 private final Paint mPaint = new Paint(); field in RenderNodeTests.TestDrawable
667 mPaint.setColor(Color.WHITE); in draw()
670 canvas.drawRect(rect, mPaint); in draw()
671 mPaint.setColor(Color.BLUE); in draw()
678 mPaint in draw()
DBlendModeTest.java49 final Paint mPaint = new Paint(); field in BlendModeTest.BlendModeCanvasClient
68 mPaint.setBlendMode(mBlendmode); in draw()
70 canvas.drawBitmap(mSrcBitmap, 0, 0, mPaint); in draw()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java19 private Paint mPaint = new Paint(); field in CameraPreviewView
45 mPaint.setStyle(Paint.Style.STROKE); in onDraw()
46 mPaint.setColor(Color.GREEN); in onDraw()
47 mPaint.setStrokeWidth(3); in onDraw()
48 canvas.drawLine(centerX, 0, centerX, canvas.getHeight(), mPaint); in onDraw()
51 mPaint.setAlpha(GRID_ALPHA); in onDraw()
56 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); in onDraw()
58 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); in onDraw()
62 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); in onDraw()
64 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); in onDraw()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDaveyView.java37 private Paint mPaint; field in DaveyView
53 mPaint = new Paint(); in DaveyView()
54 mPaint.setColor(Color.BLACK); in DaveyView()
55 mPaint.setTextSize(20); in DaveyView()
56 FontMetrics metric = mPaint.getFontMetrics(); in DaveyView()
70 canvas.drawText("Davey!", 0, mTexty, mPaint); in onDraw()
74 canvas.drawText("No Davey", 0, mTexty, mPaint); in onDraw()
/cts/tests/tests/uirendering/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java34 private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); field in BitmapBlendModeCanvasClient
68 mPaint.setXfermode(new PorterDuffXfermode(mBitmapMode)); in draw()
69 canvas.drawBitmap(bitmap, 0.0f, 0.0f, mPaint); in draw()
71 mPaint.setXfermode(new PorterDuffXfermode(mMaskMode)); in draw()
72 mPaint.setColor(mMaskColor); in draw()
73 canvas.drawRect(0, 0, width, height, mPaint); in draw()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java34 private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); field in BitmapBlendModeCanvasClient
68 mPaint.setXfermode(new PorterDuffXfermode(mBitmapMode)); in draw()
69 canvas.drawBitmap(bitmap, 0.0f, 0.0f, mPaint); in draw()
71 mPaint.setXfermode(new PorterDuffXfermode(mMaskMode)); in draw()
72 mPaint.setColor(mMaskColor); in draw()
73 canvas.drawRect(0, 0, width, height, mPaint); in draw()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DAlphaTestView.java32 private Paint mPaint = new Paint(); field in AlphaTestView
54 mPaint.setColor(mStartColor); in setStartColor()
63 mPaint.setColor(blendColor(mStartColor, mEndColor, 1.0f - alpha / 255.0f)); in onSetAlpha()
69 canvas.drawRect(getLeft(), getTop(), getRight(), getBottom(), mPaint); in onDraw() local
73 return mPaint.getColor(); in getBlendedColor()
/cts/tests/tests/text/src/android/text/cts/
DLayoutClusterCountTest.kt49 private lateinit var mPaint: TextPaint variable in android.text.cts.LayoutClusterCountTest
52 mPaint = TextPaint() in setUp()
53 mPaint.textSize = 100f in setUp()
58 paint: TextPaint = mPaint, in getLayout()
76 paint: TextPaint = mPaint, in assertLetterSpacingUnit()
106 val noLigaturePaint = TextPaint(mPaint).apply { in testClusterCount_Ligature()
139 val desired = Layout.getDesiredWidth(sampleText, mPaint) in testClusterCount_Multiline()
140 val layout = getLayout(sampleText, mPaint, (desired / 3).toInt()) in testClusterCount_Multiline()
DStaticLayoutGetLineLeftRightTest.java63 final TextPaint mPaint; field in StaticLayoutGetLineLeftRightTest
109 mPaint = new TextPaint(); in StaticLayoutGetLineLeftRightTest()
111 mPaint.setTextSize(32); in StaticLayoutGetLineLeftRightTest()
113 mWidth = mLeadingMargin + (int) mPaint.measureText(mText, 0, mText.length()) / 10; in StaticLayoutGetLineLeftRightTest()
114 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mPaint, mWidth) in StaticLayoutGetLineLeftRightTest()
149 final float textWidth = mPaint.measureText(mText, start, end); in testGetLineLeft()
173 final float textWidth = mPaint.measureText(mText, start, end); in testGetLineRight()
DLayoutInterJustificationTest.kt52 private lateinit var mPaint: TextPaint in <lambda>() variable in android.text.cts.LayoutInterJustificationTest
61 mPaint = TextPaint() in <lambda>()
62 mPaint.textSize = 10f // Make 1em = 10px in <lambda>()
69 val paint = mPaint in <lambda>()
81 val paint = mPaint in <lambda>()
100 val paint = mPaint in <lambda>()
DBoringLayoutTest.java410 final TextPaint mPaint; field in BoringLayoutTest.LayoutParam
416 mPaint = new TextPaint(paint); in LayoutParam()
425 + "mPaint=" + textPaintToString(mPaint) + ", " in toString()
432 PrecomputedText.Params param = new PrecomputedText.Params.Builder(mPaint) in getPrecomputedText()
DStaticLayoutTest.java1381 final TextPaint mPaint;
1387 mPaint = new TextPaint(paint);
1396 + "mPaint=" + textPaintToString(mPaint) + ", "
1403 return StaticLayout.Builder.obtain(text, 0, text.length(), mPaint, width)
1409 PrecomputedText.Params param = new PrecomputedText.Params.Builder(mPaint)
1430 staticLayoutParam.mPaint, lineWidth)
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java162 private Paint mPaint = new Paint(); field in PixelCopyViewProducerActivity.ColoredGrid
179 mPaint.setColor(Color.RED); in onDraw()
180 canvas.drawRect(mRect, mPaint); in onDraw()
183 mPaint.setColor(Color.GREEN); in onDraw()
184 canvas.drawRect(mRect, mPaint); in onDraw()
187 mPaint.setColor(Color.BLUE); in onDraw()
188 canvas.drawRect(mRect, mPaint); in onDraw()
191 mPaint.setColor(Color.BLACK); in onDraw()
192 canvas.drawRect(mRect, mPaint); in onDraw()
DSurfaceOOMTestActivity.java56 private Paint mPaint; field in SurfaceOOMTestActivity
85 mPaint = new Paint(); in onCreate()
86 mPaint.setColor(0xFF00FF); in onCreate()
138 c.drawRect(0, 0, c.getWidth(), c.getHeight(), mPaint); in doFrame()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPointView.java47 Paint mPaint; field in TouchPointView
57 mPaint = new Paint(); in TouchPointView()
58 mPaint.setStyle(Paint.Style.FILL); in TouchPointView()
88 mPaint.setColor(color); in onDraw()
89 canvas.drawCircle(point.x, point.y, radius, mPaint); in onDraw()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java34 private Paint mPaint; field in ShapeHolder
37 mPaint = value; in setPaint()
41 return mPaint; in getPaint()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java54 private Paint mPaint; field in SweepGradientTest
60 mPaint = new Paint(); in setup()
71 mPaint.setShader(shader); in test2Colors()
72 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in test2Colors()
81 mPaint.setShader(shader); in testColorArray()
82 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testColorArray()
93 mPaint.setShader(shader); in testMultiColor()
94 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testMultiColor()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLocationOnScreenTests.java250 private Paint mPaint = new Paint(); field in LocationOnScreenTests.TestView
260 mPaint.setColor(TEST_COLOR_1); in onDraw()
261 canvas.drawRect(0, 0, 1, 1, mPaint); in onDraw()
262 mPaint.setColor(TEST_COLOR_2); in onDraw()
263 canvas.drawRect(1, 0, 2, 1, mPaint); in onDraw()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewSearchResultHighlightTest.java57 private Paint mPaint = new Paint(); field in TextViewSearchResultHighlightTest
62 mPaint.setColor(Color.BLACK); in setUp()
93 c.drawPath(path, mPaint); in drawToBitmap()
DTextViewHighlightTest.java58 private Paint mPaint = new Paint(); field in TextViewHighlightTest
63 mPaint.setColor(Color.BLACK); in setUp()
94 c.drawPath(path, mPaint); in drawToBitmap()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...