/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPaintTest.java | 9 import android.graphics.Paint; 19 Paint paint = new Paint(0); in shouldGetIsDitherInfo() 28 Paint paint = new Paint(0); in shouldGetIsAntiAlias() 39 assertThat(new Paint(Paint.ANTI_ALIAS_FLAG).isAntiAlias()).isTrue(); in testCtor() 40 assertThat(new Paint(0).isAntiAlias()).isFalse(); in testCtor() 45 Paint paint = new Paint(); in testCtorWithPaint() 50 Paint other = new Paint(paint); in testCtorWithPaint() 58 Paint paint = new Paint(); in shouldGetAndSetTextAlignment() 59 assertThat(paint.getTextAlign()).isEqualTo(Paint.Align.LEFT); in shouldGetAndSetTextAlignment() 60 paint.setTextAlign(Paint.Align.CENTER); in shouldGetAndSetTextAlignment() [all …]
|
D | ShadowCanvasTest.java | 14 import android.graphics.Paint; 39 canvas.drawBitmap(imageBitmap, 1, 2, new Paint()); in shouldDescribeBitmapDrawing() 40 canvas.drawBitmap(imageBitmap, 100, 200, new Paint()); in shouldDescribeBitmapDrawing() 54 canvas.drawBitmap(imageBitmap, new Rect(1, 2, 3, 4), new Rect(5, 6, 7, 8), new Paint()); in shouldDescribeBitmapDrawing_withDestinationRect() 66 imageBitmap, new Rect(1, 2, 3, 4), new RectF(5.0f, 6.0f, 7.5f, 8.5f), new Paint()); in shouldDescribeBitmapDrawing_withDestinationRectF() 77 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in shouldDescribeBitmapDrawing_WithMatrix() 78 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in shouldDescribeBitmapDrawing_WithMatrix() 96 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in visualize_shouldReturnDescription() 97 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); in visualize_shouldReturnDescription() 122 Paint paint = new Paint(); in drawPath_shouldRecordThePathAndThePaint() [all …]
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/ |
D | SegmentFormatter.java | 20 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/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ |
D | ShadowNativePaintTest.java | 3 import static android.graphics.Paint.CURSOR_AFTER; 4 import static android.graphics.Paint.CURSOR_AT; 5 import static android.graphics.Paint.CURSOR_AT_OR_AFTER; 6 import static android.graphics.Paint.CURSOR_AT_OR_BEFORE; 7 import static android.graphics.Paint.CURSOR_BEFORE; 27 import android.graphics.Paint; 28 import android.graphics.Paint.Align; 29 import android.graphics.Paint.Cap; 30 import android.graphics.Paint.Join; 31 import android.graphics.Paint.Style; [all …]
|
D | ShadowNativeCanvasTest.java | 9 import android.graphics.Paint; 10 import android.graphics.Paint.Style; 33 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); in testDrawPaint() 46 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); in testSetBitmap() 58 Paint paint = new Paint(); in testDrawTextRunChars()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPaintTest.java | 9 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 …]
|
D | ShadowCanvasTest.java | 13 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/ |
D | XYGraphWidget.java | 82 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 …]
|
D | BarFormatter.java | 18 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 …]
|
D | LineAndPointFormatter.java | 21 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 …]
|
D | ValueMarker.java | 20 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 …]
|
D | PointLabelFormatter.java | 21 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()
|
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/ |
D | DataRenderer.java | 6 import android.graphics.Paint; 7 import android.graphics.Paint.Align; 8 import android.graphics.Paint.Style; 36 protected Paint mRenderPaint; 41 protected Paint mHighlightPaint; 43 protected Paint mDrawPaint; 49 protected Paint mValuePaint; 55 mRenderPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in DataRenderer() 58 mDrawPaint = new Paint(Paint.DITHER_FLAG); in DataRenderer() 60 mValuePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in DataRenderer() [all …]
|
D | AxisRenderer.java | 6 import android.graphics.Paint; 7 import android.graphics.Paint.Style; 31 protected Paint mGridPaint; 36 protected Paint mAxisLabelPaint; 41 protected Paint mAxisLinePaint; 46 protected Paint mLimitLinePaint; 56 mAxisLabelPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in AxisRenderer() 58 mGridPaint = new Paint(); in AxisRenderer() 64 mAxisLinePaint = new Paint(); in AxisRenderer() 69 mLimitLinePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in AxisRenderer() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowPaint.java | 6 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 …]
|
D | ShadowCanvas.java | 9 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/ |
D | LayoutManager.java | 30 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/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCanvas.java | 4 import android.graphics.Paint; 39 public abstract Paint getDrawnPathPaint(int i); in getDrawnPathPaint() 49 public abstract Paint getDrawnPaint(); in getDrawnPaint() 80 public Paint paint; 86 LinePaintHistoryEvent(float startX, float startY, float stopX, float stopY, Paint paint) { in LinePaintHistoryEvent() 87 this.paint = new Paint(paint); in LinePaintHistoryEvent() 99 public final Paint paint; 101 OvalPaintHistoryEvent(RectF oval, Paint paint) { in OvalPaintHistoryEvent() 103 this.paint = new Paint(paint); in OvalPaintHistoryEvent() 110 public final Paint paint; [all …]
|
D | ShadowPaint.java | 20 import android.graphics.Paint; 21 import android.graphics.Paint.FontMetricsInt; 34 @Implements(value = Paint.class, looseSignatures = true) 38 private Paint.Style style; 39 private Paint.Cap cap; 40 private Paint.Join join; 58 @RealObject Paint paint; 61 private Paint.Align textAlign = Paint.Align.LEFT; 64 protected void __constructor__(Paint otherPaint) { in __constructor__() 87 Shadow.invokeConstructor(Paint.class, paint, ClassParameter.from(Paint.class, otherPaint)); in __constructor__() [all …]
|
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/ |
D | VolumeBarView.java | 22 import android.graphics.Paint; 41 private Paint mBarPaint; 42 private Paint mTextPaint; 43 private Paint mBackgroundPaint; 56 mBarPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 58 mBarPaint.setStyle(Paint.Style.FILL); in init() 60 mBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 62 mBackgroundPaint.setStyle(Paint.Style.FILL); in init() 64 mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 66 mTextPaint.setStyle(Paint.Style.FILL); in init()
|
D | WaveformView.java | 24 import android.graphics.Paint; 33 private Paint mWavePaint; 34 private Paint mBackgroundPaint; 35 private Paint mMessagePaint; 45 private Paint mCursorPaint; 57 mWavePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 62 mCursorPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 66 mBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 68 mBackgroundPaint.setStyle(Paint.Style.FILL); in init() 70 mMessagePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
|
/external/skia/platform_tools/android/apps/jetski/src/main/java/org/skia/jetski/ |
D | Paint.java | 12 public class Paint { class 15 public Paint() { in Paint() method in Paint 19 public Paint setColor(Color c) { in setColor() 24 public Paint setColor(float r, float g, float b, float a) { in setColor() 29 public Paint setColorFilter(@Nullable ColorFilter filter) { in setColorFilter() 34 public Paint setShader(@Nullable Shader shader) { in setShader() 39 public Paint setImageFilter(@Nullable ImageFilter filter) { in setImageFilter() 44 public Paint setStroke(boolean stroke) { in setStroke() 49 public Paint setStrokeWidth(float w) { in setStrokeWidth() 64 public Paint setStrokeCap(Cap cap) { in setStrokeCap() [all …]
|
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/ |
D | MusicKeyboardView.java | 21 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/fonttools/Tests/colorLib/ |
D | builder_test.py | 440 gradient = _build(ot.Paint, tuple(source)) 462 gradient = _build(ot.Paint, source) 518 ot.Paint, 530 assert layer.Paint.Format == ot.PaintFormat.PaintSolid 531 assert layer.Paint.PaletteIndex == 2 534 ot.Paint, 541 assert layer.Paint.Format == ot.PaintFormat.PaintSolid 542 assert layer.Paint.PaletteIndex == 3 543 assert layer.Paint.Alpha == 0.9 548 ot.Paint, [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/ |
D | ShapeStroke.java | 3 import android.graphics.Paint; 23 public Paint.Cap toPaintCap() { in toPaintCap() 26 return Paint.Cap.BUTT; in toPaintCap() 28 return Paint.Cap.ROUND; in toPaintCap() 31 return Paint.Cap.SQUARE; in toPaintCap() 41 public Paint.Join toPaintJoin() { in toPaintJoin() 44 return Paint.Join.BEVEL; in toPaintJoin() 46 return Paint.Join.MITER; in toPaintJoin() 48 return Paint.Join.ROUND; in toPaintJoin()
|