Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DDisplayModifier.java23 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/
DPaintImpl.cpp25 Paint::Paint() : SkPaint(), in Paint() function in android::Paint
29 Paint::Paint(const Paint& paint) : SkPaint(paint), in Paint() function in android::Paint
34 Paint::~Paint() { in ~Paint()
37 Paint& Paint::operator=(const Paint& other) { in operator =()
46 bool operator==(const Paint& a, const Paint& b) { in operator ==()
DPaint.cpp64 static void defaultSettingsForAndroid(Paint* paint) { in defaultSettingsForAndroid()
66 paint->setTextEncoding(Paint::kGlyphID_TextEncoding); in defaultSettingsForAndroid()
76 Paint* obj = reinterpret_cast<Paint*>(objHandle); in finalizer()
81 Paint* obj = new Paint(); in init()
87 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint()
88 Paint* obj = new Paint(*paint); in initWithPaint()
93 Paint* obj = reinterpret_cast<Paint*>(objHandle); in reset()
99 Paint* dst = reinterpret_cast<Paint*>(dstPaintHandle); in assign()
100 const Paint* src = reinterpret_cast<Paint*>(srcPaintHandle); in assign()
109 Paint* nativePaint = GraphicsJNI::getNativePaint(env, paint); in getFlags()
[all …]
DPaint.h27 class Paint : public SkPaint {
29 Paint();
30 Paint(const Paint& paint);
31 ~Paint();
33 Paint& operator=(const Paint& other);
35 friend bool operator==(const Paint& a, const Paint& b);
36 friend bool operator!=(const Paint& a, const Paint& b) {
DMinikinUtils.cpp41 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typefa… in doLayout()
66 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const Layout& layout) { in xOffsetForTextAlign()
68 case Paint::kCenter_Align: in xOffsetForTextAlign()
71 case Paint::kRight_Align: in xOffsetForTextAlign()
80 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) { in hOffsetForTextAlign()
83 case Paint::kCenter_Align: in hOffsetForTextAlign()
86 case Paint::kRight_Align: in hOffsetForTextAlign()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextActivity.java22 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 …]
DPathDestructionActivity.java22 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()
DPathsActivity.java25 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 …]
DScaledTextActivity.java23 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 …]
DLinesActivity.java26 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 …]
DShapesActivity.java22 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()
DTextOnPathActivity.java22 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()
DColorFiltersActivity.java27 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()
DPosTextActivity.java22 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()
DPaintDrawFilterActivity.java22 import android.graphics.Paint;
37 private final Paint mMediumPaint;
43 mMediumPaint = new Paint(); in CustomTextView()
50 Paint.FAKE_BOLD_TEXT_FLAG, Paint.UNDERLINE_TEXT_FLAG); in CustomTextView()
DScaledPathsActivity.java22 import android.graphics.Paint;
38 private final Paint mPathPaint;
45 mPathPaint = new Paint(); in PathsView()
49 mPathPaint.setStyle(Paint.Style.FILL); in PathsView()
66 mPathPaint.setStyle(Paint.Style.FILL); in onDraw()
75 mPathPaint.setStyle(Paint.Style.STROKE); in onDraw()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java25 import android.graphics.Paint.FontMetrics;
26 import android.graphics.Paint.FontMetricsInt;
85 private int mHintingMode = Paint.HINTING_ON;
115 return (mFlags & Paint.ANTI_ALIAS_FLAG) != 0; in isAntiAliased()
119 return (mFlags & Paint.FILTER_BITMAP_FLAG) != 0; in isFilterBitmap()
158 switch (Paint.sCapArray[mCap]) { in getJavaCap()
170 switch (Paint.sJoinArray[mJoin]) { in getJavaJoin()
252 /*package*/ static int getFlags(Paint thisPaint) { in getFlags()
265 /*package*/ static void setFlags(Paint thisPaint, int flags) { in setFlags()
276 /*package*/ static void setFilterBitmap(Paint thisPaint, boolean filter) { in setFilterBitmap()
[all …]
/frameworks/base/core/java/android/text/
DGraphicsOperations.java20 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/core/jni/
Dandroid_graphics_Canvas.cpp79 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer()
194 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint()
200 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint()
216 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints()
222 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine()
238 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines()
244 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect()
250 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRoundRect()
256 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawCircle()
262 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawOval()
[all …]
Dandroid_view_GLES20Canvas.cpp211 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_saveLayer()
218 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_saveLayerClip()
354 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawBitmap()
370 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawBitmapRect()
381 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawBitmapMatrix()
410 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawBitmapData()
430 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawBitmapMesh()
444 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawPatch()
459 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawRect()
467 Paint* paint = reinterpret_cast<Paint*>(paintPtr); in android_view_GLES20Canvas_drawRoundRect()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DLoadAverageService.java23 import android.graphics.Paint;
41 private final Paint mPaint;
43 CpuTracker(Paint paint) { in CpuTracker()
75 private Paint mLoadPaint;
76 private Paint mAddedPaint;
77 private Paint mRemovedPaint;
78 private Paint mShadowPaint;
79 private Paint mShadow2Paint;
80 private Paint mIrqPaint;
81 private Paint mSystemPaint;
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java4 import android.graphics.Paint;
15 private final Paint mWorkPaint = new Paint();
27 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { in setupFontMetrics()
44 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { in getSize()
51 int y, int bottom, Paint paint) { in draw()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java22 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()
202 final Paint paint = mFillPaint; in drawFrame()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java27 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/base/graphics/java/android/graphics/
DCanvas.java458 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { in saveLayer()
468 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { in saveLayer()
475 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer()
485 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer()
1033 public void drawPaint(@NonNull Paint paint) { in drawPaint()
1053 public void drawPoints(float[] pts, int offset, int count, @NonNull Paint paint) { in drawPoints()
1060 public void drawPoints(@NonNull float[] pts, @NonNull Paint paint) { in drawPoints()
1067 public void drawPoint(float x, float y, @NonNull Paint paint) { in drawPoint()
1084 @NonNull Paint paint) { in drawLine()
1103 public void drawLines(float[] pts, int offset, int count, Paint paint) { in drawLines()
[all …]

12345678910>>...12