Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java23 import android.graphics.Paint;
59 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer()
64 public int saveLayer(RectF bounds, Paint paint) { in saveLayer()
69 public int saveLayer(float left, float top, float right, float bottom, Paint paint, in saveLayer()
75 public int saveLayer(float left, float top, float right, float bottom, Paint paint) { in saveLayer()
130 public void drawPaint(Paint paint) { in drawPaint()
134 public void drawPoints(float[] pts, int offset, int count, Paint paint) { in drawPoints()
138 public void drawPoints(float[] pts, Paint paint) { in drawPoints()
142 public void drawPoint(float x, float y, Paint paint) { in drawPoint()
146 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/
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/
DPaint.cpp97 static void deletePaint(Paint* paint) { in deletePaint()
106 return reinterpret_cast<jlong>(new Paint); in init()
110 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint()
111 Paint* obj = new Paint(*paint); in initWithPaint()
115 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText()
151 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextC()
180 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextS()
190 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances()
225 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances___CIIIII_FI()
237 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances__StringIIIII_FI()
[all …]
/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;
49 Paint strokePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
50 Paint fillPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
51 Paint fillAndStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
55 strokePaint.setStyle(Paint.Style.STROKE); in MyView()
56 fillPaint.setStyle(Paint.Style.FILL); in MyView()
57 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()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DPerfTimeline.java41 private Paint mPaintBaseLow;
42 private Paint mPaintBaseHigh;
43 private Paint mPaintValue;
82 mTextPaint.setFlags(Paint.ANTI_ALIAS_FLAG); in init()
83 mTextPaint.setTextAlign(Paint.Align.LEFT); in init()
88 mPaintBaseLow = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
89 mPaintBaseLow.setStyle(Paint.Style.FILL); in init()
92 mPaintBaseHigh = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
93 mPaintBaseHigh.setStyle(Paint.Style.FILL); in init()
96 mPaintValue = new Paint(Paint.ANTI_ALIAS_FLAG); in init()
[all …]
/frameworks/base/libs/hwui/hwui/
DPaintImpl.cpp21 Paint::Paint() in Paint() function in android::Paint
34 Paint::Paint(const Paint& paint) in Paint() function in android::Paint
50 Paint::~Paint() {} in ~Paint()
52 Paint& Paint::operator=(const Paint& other) { in operator =()
69 bool operator==(const Paint& a, const Paint& b) { in operator ==()
81 void Paint::reset() { in reset()
92 void Paint::setAntiAlias(bool aa) { in setAntiAlias()
171 uint32_t Paint::GetSkPaintJavaFlags(const SkPaint& paint) { in GetSkPaintJavaFlags()
175 void Paint::SetSkPaintJavaFlags(SkPaint* paint, uint32_t flags) { in SetSkPaintJavaFlags()
179 uint32_t Paint::getJavaFlags() const { in getJavaFlags()
[all …]
DPaint.h34 class ANDROID_API Paint : public SkPaint {
49 Paint();
50 Paint(const Paint& paint);
51 ~Paint();
53 Paint& operator=(const Paint& other);
55 friend bool operator==(const Paint& a, const Paint& b);
56 friend bool operator!=(const Paint& a, const Paint& b) { return !(a == b); }
DCanvas.cpp43 void Canvas::drawTextDecorations(float x, float y, float length, const Paint& paint) { in drawTextDecorations()
56 position = textSize * Paint::kStdUnderline_Top; in drawTextDecorations()
60 thickness = textSize * Paint::kStdUnderline_Thickness; in drawTextDecorations()
66 const float position = textSize * Paint::kStdStrikeThru_Top; in drawTextDecorations()
67 const SkScalar thickness = textSize * Paint::kStdStrikeThru_Thickness; in drawTextDecorations()
74 static void simplifyPaint(int color, Paint* paint) { in simplifyPaint()
86 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, const Paint& paint, float x, in DrawTextFunctor()
122 Paint outlinePaint(paint); in operator ()()
129 Paint innerPaint(paint); in operator ()()
144 const Paint& paint;
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java81 Paint paint = new Paint(); in testHintingWidth()
91 paint.setHinting(Paint.HINTING_OFF); in testHintingWidth()
96 paint.setHinting(Paint.HINTING_ON); in testHintingWidth()
124 Paint p = new Paint(); in testHasGlyph_variationSelectors()
186 Paint p = new Paint(); in assertGetTextRunAdvances()
222 Paint p = new Paint(); in testGetTextRunAdvances_invalid()
275 Paint p = new Paint(); in testMeasureTextBidi()
278 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi()
280 p.setBidiFlags(Paint.BIDI_RTL); in testMeasureTextBidi()
282 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi()
[all …]
/frameworks/base/core/java/android/text/
DGraphicsOperations.java21 import android.graphics.Paint;
34 float x, float y, Paint p); in drawText()
40 float x, float y, boolean isRtl, Paint p); in drawTextRun()
45 float measureText(int start, int end, Paint p); in measureText()
50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths()
56 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances()
62 int cursorOpt, Paint p); in getTextRunCursor()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp94 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer()
110 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in restoreUnclippedLayer()
243 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint()
249 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint()
265 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints()
271 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine()
287 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines()
293 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect()
301 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawDoubleRoundRectXY()
311 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawDoubleRoundRectRadii()
[all …]
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java22 import android.graphics.Paint;
23 import android.graphics.Paint.Align;
53 mBluePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView()
55 mBluePaint.setStyle(Paint.Style.FILL); in TouchLatencyView()
56 mGreenPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView()
58 mGreenPaint.setStyle(Paint.Style.FILL); in TouchLatencyView()
59 mYellowPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView()
61 mYellowPaint.setStyle(Paint.Style.FILL); in TouchLatencyView()
62 mRedPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView()
64 mRedPaint.setStyle(Paint.Style.FILL); in TouchLatencyView()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java4 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/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()
210 final Paint paint = mFillPaint; in drawFrame()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java515 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { in saveLayer()
550 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { in saveLayer()
567 public void restoreUnclippedLayer(int saveCount, Paint paint) { in restoreUnclippedLayer()
579 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer()
591 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer()
1476 @NonNull Paint paint) { in drawArc()
1505 float sweepAngle, boolean useCenter, @NonNull Paint paint) { in drawArc()
1539 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { in drawBitmap()
1563 @Nullable Paint paint) { in drawBitmap()
1587 @Nullable Paint paint) { in drawBitmap()
[all …]
DBaseCanvas.java95 float sweepAngle, boolean useCenter, @NonNull Paint paint) { in drawArc()
102 @NonNull Paint paint) { in drawArc()
112 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { in drawBitmap()
120 public void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) { in drawBitmap()
127 @Nullable Paint paint) { in drawBitmap()
153 @Nullable Paint paint) { in drawBitmap()
180 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap()
209 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap()
217 @Nullable Paint paint) { in drawBitmapMesh()
237 public void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle()
[all …]
DBaseRecordingCanvas.java49 float sweepAngle, boolean useCenter, @NonNull Paint paint) { in drawArc()
56 boolean useCenter, @NonNull Paint paint) { in drawArc()
68 @Nullable Paint paint) { in drawBitmap()
77 @Nullable Paint paint) { in drawBitmap()
84 @Nullable Paint paint) { in drawBitmap()
110 @Nullable Paint paint) { in drawBitmap()
138 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap()
168 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap()
177 @Nullable Paint paint) { in drawBitmapMesh()
197 public final void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle()
[all …]
/frameworks/base/core/java/android/view/
DRoundScrollbarRenderer.java21 import android.graphics.Paint;
37 private final Paint mThumbPaint = new Paint();
38 private final Paint mTrackPaint = new Paint();
47 mThumbPaint.setStrokeCap(Paint.Cap.ROUND); in RoundScrollbarRenderer()
48 mThumbPaint.setStyle(Paint.Style.STROKE); in RoundScrollbarRenderer()
52 mTrackPaint.setStrokeCap(Paint.Cap.ROUND); in RoundScrollbarRenderer()
53 mTrackPaint.setStyle(Paint.Style.STROKE); in RoundScrollbarRenderer()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java26 import android.graphics.Paint;
27 import android.graphics.Paint.Style;
48 protected final Paint mFramePaint;
49 protected final Paint mBatteryPaint;
50 protected final Paint mWarningTextPaint;
51 protected final Paint mTextPaint;
52 protected final Paint mBoltPaint;
53 protected final Paint mPlusPaint;
54 protected final Paint mPowersavePaint;
129 mFramePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in BatteryMeterDrawableBase()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSaveLayerInterleaveActivity.java21 import android.graphics.Paint;
39 private final Paint mBluePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in onCreate()
40 private final Paint mGreenPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in onCreate()

12345678910>>...15