/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 23 import android.graphics.Paint; 55 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer() 60 public int saveLayer(RectF bounds, Paint paint) { in saveLayer() 65 public int saveLayer(float left, float top, float right, float bottom, Paint paint, in saveLayer() 71 public int saveLayer(float left, float top, float right, float bottom, Paint paint) { in saveLayer() 126 public void drawPaint(Paint paint) { in drawPaint() 130 public void drawPoints(float[] pts, int offset, int count, Paint paint) { in drawPoints() 134 public void drawPoints(float[] pts, Paint paint) { in drawPoints() 138 public void drawPoint(float x, float y, Paint paint) { in drawPoint() 142 public void drawLine(float startX, float startY, float stopX, float stopY, Paint paint) { in drawLine() [all …]
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | DisplayModifier.java | 23 import android.graphics.Paint; 40 abstract public void modifyDrawing(Paint paint, Canvas canvas); in modifyDrawing() 85 public void modifyDrawing(Paint paint, Canvas canvas) { 91 public void modifyDrawing(Paint paint, Canvas canvas) { 101 public void modifyDrawing(Paint paint, Canvas canvas) { 102 paint.setStyle(Paint.Style.FILL); 107 public void modifyDrawing(Paint paint, Canvas canvas) { 108 paint.setStyle(Paint.Style.STROKE); 115 public void modifyDrawing(Paint paint, Canvas canvas) { 116 paint.setStyle(Paint.Style.FILL_AND_STROKE); [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 69 static void defaultSettingsForAndroid(Paint* paint) { in defaultSettingsForAndroid() 71 paint->setTextEncoding(Paint::kGlyphID_TextEncoding); in defaultSettingsForAndroid() 79 static void deletePaint(Paint* paint) { in deletePaint() 98 Paint* obj = new Paint(); in init() 104 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint() 105 Paint* obj = new Paint(*paint); in initWithPaint() 110 Paint* obj = reinterpret_cast<Paint*>(objHandle); in reset() 116 Paint* dst = reinterpret_cast<Paint*>(dstPaintHandle); in assign() 117 const Paint* src = reinterpret_cast<Paint*>(srcPaintHandle); in assign() 125 Paint* nativePaint = reinterpret_cast<Paint*>(paintHandle); in getFlags() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | PaintImpl.cpp | 21 Paint::Paint() : in Paint() function in android::Paint 26 Paint::Paint(const Paint& paint) : SkPaint(paint), in Paint() function in android::Paint 32 Paint::Paint(const SkPaint& paint) : SkPaint(paint), in Paint() function in android::Paint 37 Paint::~Paint() { in ~Paint() 40 Paint& Paint::operator=(const Paint& other) { in operator =() 50 bool operator==(const Paint& a, const Paint& b) { in operator ==()
|
D | Paint.h | 29 class ANDROID_API Paint : public SkPaint { 31 Paint(); 32 Paint(const Paint& paint); 33 Paint(const SkPaint& paint); 34 ~Paint(); 36 Paint& operator=(const Paint& other); 38 friend bool operator==(const Paint& a, const Paint& b); 39 friend bool operator!=(const Paint& a, const Paint& b) {
|
D | MinikinUtils.cpp | 28 const Paint* paint, Typeface* typeface) { in prepareMinikinPaint() 53 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, in doLayout() 63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, in measureText() 77 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const Layout& layout) { in xOffsetForTextAlign() 79 case Paint::kCenter_Align: in xOffsetForTextAlign() 82 case Paint::kRight_Align: in xOffsetForTextAlign() 91 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) { in hOffsetForTextAlign() 94 case Paint::kCenter_Align: in hOffsetForTextAlign() 97 case Paint::kRight_Align: in hOffsetForTextAlign()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextActivity.java | 22 import android.graphics.Paint; 37 private final Paint mMediumPaint; 38 private final Paint mLargePaint; 39 private final Paint mStrikePaint; 40 private final Paint mScaledPaint; 41 private final Paint mSkewPaint; 42 private final Paint mHugePaint; 48 mMediumPaint = new Paint(); in CustomTextView() 52 mLargePaint = new Paint(); in CustomTextView() 56 mStrikePaint = new Paint(); in CustomTextView() [all …]
|
D | PathDestructionActivity.java | 22 import android.graphics.Paint; 47 Paint strokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 48 Paint fillPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 49 Paint fillAndStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 53 strokePaint.setStyle(Paint.Style.STROKE); in MyView() 54 fillPaint.setStyle(Paint.Style.FILL); in MyView() 55 fillAndStrokePaint.setStyle(Paint.Style.FILL_AND_STROKE); in MyView()
|
D | PathsActivity.java | 25 import android.graphics.Paint; 42 private final Paint mSmallPaint; 43 private final Paint mMediumPaint; 44 private final Paint mLargePaint; 48 private final Paint mBoundsPaint; 51 private final Paint mLinePaint; 58 mSmallPaint = new Paint(); in PathsView() 62 mSmallPaint.setStyle(Paint.Style.STROKE); in PathsView() 64 mLinePaint = new Paint(); in PathsView() 68 mLinePaint.setStyle(Paint.Style.STROKE); in PathsView() [all …]
|
D | ScaledTextActivity.java | 23 import android.graphics.Paint; 49 private final Paint mPaint; 50 private final Paint mShadowPaint; 61 mPaint = new Paint(); in ScaledTextView() 65 mShadowPaint = new Paint(); in ScaledTextView() 98 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 100 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw() 106 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw() 110 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 112 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw() [all …]
|
D | LinesActivity.java | 26 import android.graphics.Paint; 59 private final Paint mSmallPaint; 60 private final Paint mMediumPaint; 61 private final Paint mLargePaint; 64 private final Paint mAlphaPaint; 65 private final Paint mHairLinePaint; 74 mSmallPaint = new Paint(); in LinesView() 79 mMediumPaint = new Paint(); in LinesView() 84 mLargePaint = new Paint(); in LinesView() 89 mAlphaPaint = new Paint(); in LinesView() [all …]
|
D | ShapesActivity.java | 22 import android.graphics.Paint; 38 private final Paint mNormalPaint; 39 private final Paint mStrokePaint; 40 private final Paint mFillPaint; 51 mNormalPaint = new Paint(); in ShapesView() 55 mNormalPaint.setStyle(Paint.Style.FILL_AND_STROKE); in ShapesView() 57 mStrokePaint = new Paint(); in ShapesView() 61 mStrokePaint.setStyle(Paint.Style.STROKE); in ShapesView() 63 mFillPaint = new Paint(); in ShapesView() 66 mFillPaint.setStyle(Paint.Style.FILL); in ShapesView()
|
D | TextOnPathActivity.java | 22 import android.graphics.Paint; 71 private final Paint mPaint; 72 private final Paint mPathPaint; 83 mPaint = new Paint(); in TextOnPathView() 87 mPathPaint = new Paint(); in TextOnPathView() 89 mPathPaint.setStyle(Paint.Style.STROKE); in TextOnPathView() 114 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw() 142 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 147 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw()
|
D | ColorFiltersActivity.java | 27 import android.graphics.Paint; 45 private final Paint mColorMatrixPaint; 46 private final Paint mLightingPaint; 47 private final Paint mBlendPaint; 55 mColorMatrixPaint = new Paint(); in BitmapsView() 60 mLightingPaint = new Paint(); in BitmapsView() 63 mBlendPaint = new Paint(); in BitmapsView()
|
D | PosTextActivity.java | 22 import android.graphics.Paint; 36 private final Paint mLargePaint; 50 mLargePaint = new Paint(); in CustomTextView() 65 mLargePaint.setTextAlign(Paint.Align.LEFT); in onDraw() 69 mLargePaint.setTextAlign(Paint.Align.CENTER); in onDraw() 73 mLargePaint.setTextAlign(Paint.Align.RIGHT); in onDraw()
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 94 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer() 215 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint() 221 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint() 237 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints() 243 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine() 259 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines() 265 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect() 272 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRegion() 278 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRoundRect() 284 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawCircle() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 27 import android.graphics.Paint.FontMetrics; 28 import android.graphics.Paint.FontMetricsInt; 90 private int mHintingMode = Paint.HINTING_ON; 123 return (mFlags & Paint.ANTI_ALIAS_FLAG) != 0; in isAntiAliased() 127 return (mFlags & Paint.FILTER_BITMAP_FLAG) != 0; in isFilterBitmap() 162 switch (Paint.sCapArray[mCap]) { in getJavaCap() 174 switch (Paint.sJoinArray[mJoin]) { in getJavaJoin() 264 /*package*/ static int nGetFlags(Paint thisPaint, long nativePaint) { in nGetFlags() 277 /*package*/ static void nSetFlags(Paint thisPaint, long nativePaint, int flags) { in nSetFlags() 288 /*package*/ static void nSetFilterBitmap(Paint thisPaint, long nativePaint, boolean filter) { in nSetFilterBitmap() [all …]
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 20 import android.graphics.Paint; 34 float x, float y, Paint p); in drawText() 41 float x, float y, boolean isRtl, Paint p); in drawTextRun() 46 float measureText(int start, int end, Paint p); in measureText() 51 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() 58 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances() 65 int cursorOpt, Paint p); in getTextRunCursor()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 22 import android.graphics.Paint; 47 mBluePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 49 mBluePaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 50 mGreenPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 52 mGreenPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 53 mYellowPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 55 mYellowPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 56 mRedPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 58 mRedPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 165 private Paint mBluePaint, mGreenPaint, mYellowPaint, mRedPaint;
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | PaintTest.java | 43 Paint p = new Paint(); in assertGetTextRunAdvances() 95 Paint p = new Paint(); in testGetTextRunAdvances_invalid() 167 Paint p = new Paint(); in testMeasureTextBidi() 170 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi() 172 p.setBidiFlags(Paint.BIDI_RTL); in testMeasureTextBidi() 174 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi() 180 p.setBidiFlags(Paint.BIDI_DEFAULT_LTR); in testMeasureTextBidi() 188 p.setBidiFlags(Paint.BIDI_FORCE_LTR); in testMeasureTextBidi() 196 p.setBidiFlags(Paint.BIDI_RTL); in testMeasureTextBidi() 198 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi() [all …]
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 22 import android.graphics.Paint; 59 private final Paint.FontMetrics mTextMetrics = new Paint.FontMetrics(); 77 private final Paint mFillPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 78 private final Paint mStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 79 private final TextPaint mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); 98 Paint paint = mFillPaint; in onCreate() 99 paint.setStyle(Paint.Style.FILL); in onCreate() 103 paint.setStrokeCap(Paint.Cap.ROUND); in onCreate() 104 paint.setStyle(Paint.Style.STROKE); in onCreate() 210 final Paint paint = mFillPaint; in drawFrame()
|
/frameworks/base/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 21 import android.graphics.Paint; 37 private final Paint mThumbPaint = new Paint(); 38 private final Paint mTrackPaint = new Paint(); 46 mThumbPaint.setStrokeCap(Paint.Cap.ROUND); in RoundScrollbarRenderer() 47 mThumbPaint.setStyle(Paint.Style.STROKE); in RoundScrollbarRenderer() 51 mTrackPaint.setStrokeCap(Paint.Cap.ROUND); in RoundScrollbarRenderer() 52 mTrackPaint.setStyle(Paint.Style.STROKE); in RoundScrollbarRenderer()
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 4 import android.graphics.Paint; 14 protected static final Paint sWorkPaint = new Paint(); 28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { in setupFontMetrics() 45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { in getSize() 52 int y, int bottom, Paint paint) { in draw()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 27 import android.graphics.Paint; 50 private final Paint mPaint = new Paint(); 51 private final Paint mBlurPaint = new Paint(); 52 private final Paint mGlowColorPressedPaint = new Paint(); 53 private final Paint mGlowColorFocusedPaint = new Paint(); 82 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconUtilities() 83 Paint.FILTER_BITMAP_FLAG)); in IconUtilities() 157 Paint debugPaint = new Paint(); in createIconBitmap()
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | Region.java | 23 import android.graphics.Paint; 77 Paint paint1 = new Paint(); in getSourceLocation() 78 Paint paint2 = new Paint(); in getSourceLocation() 81 paint1.setStyle(Paint.Style.STROKE); in getSourceLocation() 82 paint2.setStyle(Paint.Style.STROKE); in getSourceLocation() 129 Paint paint = new Paint(); in findMatch() 132 paint.setStyle(Paint.Style.STROKE); in findMatch()
|