Home
last modified time | relevance | path

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

12345678

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
DSegmentFormatter.java20 import android.graphics.Paint;
33 private Paint innerEdgePaint;
34 private Paint outerEdgePaint;
35 private Paint radialEdgePaint;
36 private Paint fillPaint;
38 private Paint labelPaint;
39 private Paint labelMarkerPaint;
42 setFillPaint(new Paint()); in setFillPaint() argument
44 setOuterEdgePaint(new Paint()); in setOuterEdgePaint() argument
45 getOuterEdgePaint().setStyle(Paint.Style.STROKE);
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPaintTest.java9 import android.graphics.Paint;
20 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsDitherInfo()
29 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsAntiAlias()
40 assertThat(new Paint(Paint.ANTI_ALIAS_FLAG).isAntiAlias()).isTrue(); in testCtor()
41 assertThat(new Paint(0).isAntiAlias()).isFalse(); in testCtor()
46 Paint paint = new Paint(); in testCtorWithPaint()
51 Paint other = new Paint(paint); in testCtorWithPaint()
59 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetAndSetTextAlignment()
60 assertThat(paint.getTextAlign()).isEqualTo(Paint.Align.LEFT); in shouldGetAndSetTextAlignment()
61 paint.setTextAlign(Paint.Align.CENTER); in shouldGetAndSetTextAlignment()
[all …]
DShadowCanvasTest.java13 import android.graphics.Paint;
37 canvas.drawBitmap(imageBitmap, 1, 2, new Paint()); in shouldDescribeBitmapDrawing()
38 canvas.drawBitmap(imageBitmap, 100, 200, new Paint()); in shouldDescribeBitmapDrawing()
50 canvas.drawBitmap(imageBitmap, new Rect(1,2,3,4), new Rect(5,6,7,8), new Paint()); in shouldDescribeBitmapDrawing_withDestinationRect()
58 canvas.drawBitmap(imageBitmap, new Rect(1,2,3,4), new RectF(5.0f,6.0f,7.5f,8.5f), new Paint()); in shouldDescribeBitmapDrawing_withDestinationRectF()
66 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in shouldDescribeBitmapDrawing_WithMatrix()
67 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in shouldDescribeBitmapDrawing_WithMatrix()
79 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in visualize_shouldReturnDescription()
80 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in visualize_shouldReturnDescription()
103 Paint paint = new Paint(); in drawPath_shouldRecordThePathAndThePaint()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYGraphWidget.java82 private Paint gridBackgroundPaint;
83 private Paint rangeGridLinePaint;
84 private Paint rangeSubGridLinePaint;
85 private Paint domainGridLinePaint;
86 private Paint domainSubGridLinePaint;
87 private Paint domainLabelPaint;
88 private Paint rangeLabelPaint;
89 private Paint domainCursorPaint;
90 private Paint rangeCursorPaint;
91 private Paint cursorLabelPaint;
[all …]
DBarFormatter.java18 import android.graphics.Paint;
23 public Paint getFillPaint() { in getFillPaint()
27 public void setFillPaint(Paint fillPaint) { in setFillPaint()
31 public Paint getBorderPaint() { in getBorderPaint()
35 public void setBorderPaint(Paint borderPaint) { in setBorderPaint()
39 private Paint fillPaint;
40 private Paint borderPaint;
43 fillPaint = new Paint();
45 fillPaint.setStyle(Paint.Style.FILL);
47 borderPaint = new Paint();
[all …]
DLineAndPointFormatter.java21 import android.graphics.Paint;
57 protected Paint linePaint;
58 protected Paint vertexPaint;
59 protected Paint fillPaint;
99 linePaint = new Paint(); in initLinePaint()
103 linePaint.setStyle(Paint.Style.STROKE); in initLinePaint()
111 vertexPaint = new Paint(); in initVertexPaint()
115 vertexPaint.setStrokeCap(Paint.Cap.ROUND); in initVertexPaint()
123 fillPaint = new Paint(); in initFillPaint()
143 public Paint getLinePaint() { in getLinePaint()
[all …]
DValueMarker.java20 import android.graphics.Paint;
42 private Paint linePaint;
43 private Paint textPaint;
51 linePaint = new Paint();
54 linePaint.setStyle(Paint.Style.STROKE);
55 textPaint = new Paint();
78 …rker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint)… in ValueMarker()
100 public Paint getLinePaint() { in getLinePaint()
104 public void setLinePaint(Paint linePaint) { in setLinePaint()
108 public Paint getTextPaint() { in getTextPaint()
[all …]
DPointLabelFormatter.java21 import android.graphics.Paint;
29 private Paint textPaint;
55 public Paint getTextPaint() { in getTextPaint()
59 public void setTextPaint(Paint textPaint) { in setTextPaint()
67 setTextPaint(new Paint()); in initTextPaint()
70 getTextPaint().setTextAlign(Paint.Align.CENTER); in initTextPaint()
DXYRegionFormatter.java20 import android.graphics.Paint;
29 private Paint paint = new Paint();
32 paint.setStyle(Paint.Style.FILL);
70 public Paint getPaint() { in getPaint()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPaint.java6 import android.graphics.Paint;
17 @Implements(Paint.class)
21 private Paint.Style style;
22 private Paint.Cap cap;
23 private Paint.Join join;
37 @RealObject Paint paint;
40 private Paint.Align textAlign = Paint.Align.LEFT;
43 protected void __constructor__(Paint otherPaint) { in __constructor__()
62 Shadow.invokeConstructor(Paint.class, paint, ClassParameter.from(Paint.class, otherPaint)); in __constructor__()
112 protected void setStyle(Paint.Style style) { in setStyle()
[all …]
DShadowCanvas.java9 import android.graphics.Paint;
36 private Paint drawnPaint;
77 protected void drawText(String text, float x, float y, Paint paint) { in drawText()
82 protected void drawText(CharSequence text, int start, int end, float x, float y, Paint paint) { in drawText()
88 protected void drawText(char[] text, int index, int count, float x, float y, Paint paint) { in drawText()
93 protected void drawText(String text, int start, int end, float x, float y, Paint paint) { in drawText()
116 protected void drawPaint(Paint paint) { in drawPaint()
126 protected void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { in drawBitmap()
141 protected void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { in drawBitmap()
157 protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { in drawBitmap()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
DLayoutManager.java30 private Paint anchorPaint;
32 private Paint outlinePaint;
34 private Paint outlineShadowPaint;
36 private Paint marginPaint;
38 private Paint paddingPaint;
46 anchorPaint = new Paint();
47 anchorPaint.setStyle(Paint.Style.FILL);
49 outlinePaint = new Paint();
51 outlinePaint.setStyle(Paint.Style.STROKE);
52 marginPaint = new Paint();
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DGlitchAndCallbackHeatMapView.java23 import android.graphics.Paint;
94 canvas.drawBitmap(bmpResult, tmpCanvas.getMatrix(), new Paint(Paint.ANTI_ALIAS_FLAG)); in onDraw()
106 final Paint heatPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in fillCanvas()
107 heatPaint.setStyle(Paint.Style.FILL); in fillCanvas()
109 final Paint textPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in fillCanvas()
112 textPaint.setTextAlign(Paint.Align.CENTER); in fillCanvas()
114 final Paint titlePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in fillCanvas()
116 titlePaint.setTextAlign(Paint.Align.CENTER); in fillCanvas()
119 final Paint linePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in fillCanvas()
121 linePaint.setStyle(Paint.Style.STROKE); in fillCanvas()
[all …]
DHistogramView.java22 import android.graphics.Paint;
37 private Paint mHistPaint;
38 private Paint mTextPaint;
39 private Paint mLinePaint;
40 private Paint mXLabelPaint;
67 mHistPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in initPaints()
68 mHistPaint.setStyle(Paint.Style.FILL); in initPaints()
71 mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in initPaints()
75 mXLabelPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in initPaints()
79 mLinePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in initPaints()
[all …]
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/
DMusicKeyboardView.java21 import android.graphics.Paint;
79 private Paint mShadowPaint;
80 private Paint mBlackOnKeyPaint;
81 private Paint mBlackOffKeyPaint;
82 private Paint mWhiteOnKeyPaint;
83 private Paint mWhiteOffKeyPaint;
106 mShadowPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
107 mShadowPaint.setStyle(Paint.Style.FILL); in init()
110 mBlackOnKeyPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
111 mBlackOnKeyPaint.setStyle(Paint.Style.FILL); in init()
[all …]
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DVolumeBarView.java24 import android.graphics.Paint;
30 private Paint mBarPaint;
33 private Paint mBackgroundPaint;
44 mBarPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
46 mBarPaint.setStyle(Paint.Style.FILL); in init()
48 mBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
50 mBackgroundPaint.setStyle(Paint.Style.FILL); in init()
DWaveformView.java24 import android.graphics.Paint;
34 private Paint mWavePaint;
37 private Paint mBackgroundPaint;
44 private Paint mCursorPaint;
56 mWavePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
61 mCursorPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
65 mBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
67 mBackgroundPaint.setStyle(Paint.Style.FILL); in init()
/external/fonttools/Tests/colorLib/
Dbuilder_test.py457 gradient = _build(ot.Paint, (fmt, color_line, *c0, r0, *c1, r1))
466 ot.Paint,
538 ot.Paint,
550 assert layer.Paint.Format == ot.PaintFormat.PaintSolid
551 assert layer.Paint.Color.PaletteIndex == 2
554 ot.Paint,
564 assert layer.Paint.Format == ot.PaintFormat.PaintSolid
565 assert layer.Paint.Color.PaletteIndex == 3
566 assert layer.Paint.Color.Alpha == 0.9
571 ot.Paint,
[all …]
/external/skia/experimental/skrive/src/
DPaint.cpp20 size_t parse_node<Paint>(StreamReader* sr, Paint* node) { in parse_node()
28 void parse_fill_stroke(StreamReader* sr, Paint* node) { in parse_fill_stroke()
55 static constexpr Paint::StrokeTrim gTrimMap[] = { in parse_fill_stroke()
56 Paint::StrokeTrim::kOff, // 0 in parse_fill_stroke()
57 Paint::StrokeTrim::kSequential, // 1 in parse_fill_stroke()
58 Paint::StrokeTrim::kSynced, // 2 in parse_fill_stroke()
63 if (node->getStrokeTrim() != Paint::StrokeTrim::kOff) { in parse_fill_stroke()
73 void Paint::onApply(SkPaint* paint) const { in onApply()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/
DShapeStroke.java3 import android.graphics.Paint;
22 public Paint.Cap toPaintCap() { in toPaintCap()
25 return Paint.Cap.BUTT; in toPaintCap()
27 return Paint.Cap.ROUND; in toPaintCap()
30 return Paint.Cap.SQUARE; in toPaintCap()
40 public Paint.Join toPaintJoin() { in toPaintJoin()
43 return Paint.Join.BEVEL; in toPaintJoin()
45 return Paint.Join.MITER; in toPaintJoin()
47 return Paint.Join.ROUND; in toPaintJoin()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/
DDrawManager.java26 import android.graphics.Paint;
113 Paint p = new Paint(); in drawCircle()
132 Paint p = new Paint(); in drawAnimatedRoundRect()
148 Paint p = new Paint(); in drawRect()
165 Paint p = new Paint(); in drawText()
215 Paint p = new Paint(); in drawFingerPainting()
216 p.setStyle(Paint.Style.STROKE); in drawFingerPainting()
273 Paint p = new Paint(); in drawPointCloud()
275 p.setStrokeCap(Paint.Cap.SQUARE); in drawPointCloud()
335 Paint p = new Paint(); in drawPlaneOutline()
[all …]
/external/skqp/experimental/go-skia/
Dskia.go101 func (c *Canvas) DrawPaint(paint *Paint) {
105 func (c *Canvas) DrawOval(rect *Rect, paint *Paint) {
110 func (c *Canvas) DrawRect(rect *Rect, paint *Paint) {
115 func (c *Canvas) DrawPath(path *Path, paint *Paint) {
123 type Paint struct { struct
127 func NewPaint() *Paint {
128 ret := &Paint{ptr: C.sk_paint_new()}
129 runtime.SetFinalizer(ret, func(p *Paint) {
135 func (p *Paint) SetColor(color Color) { argument
139 func (p *Paint) SetAntiAlias(antiAlias bool) { argument
[all …]
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DBorderedText.java20 import android.graphics.Paint;
21 import android.graphics.Paint.Align;
22 import android.graphics.Paint.Style;
31 private final Paint interiorPaint;
32 private final Paint exteriorPaint;
55 interiorPaint = new Paint(); in BorderedText()
62 exteriorPaint = new Paint(); in BorderedText()
/external/skia/modules/canvaskit/tests/
Dcanvas.spec.js18 const paint = new CanvasKit.Paint();
46 const paint = new CanvasKit.Paint();
48 const textPaint = new CanvasKit.Paint();
77 const paint = new CanvasKit.Paint();
121 const paint = new CanvasKit.Paint();
144 const paint = new CanvasKit.Paint();
172 const paint = new CanvasKit.Paint();
197 const paint = new CanvasKit.Paint();
225 const paint = new CanvasKit.Paint();
244 const paint = new CanvasKit.Paint();
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DFontUtils.java19 import android.graphics.Paint;
29 public static float getFontHeight(Paint paint) { in getFontHeight()
30 Paint.FontMetrics metrics = paint.getFontMetrics(); in getFontHeight()
41 public static Rect getPackedStringDimensions(String text, Paint paint) { in getPackedStringDimensions()
55 public static Rect getStringDimensions(String text, Paint paint) { in getStringDimensions()

12345678