Home
last modified time | relevance | path

Searched defs:paint (Results 1 – 25 of 216) sorted by relevance

123456789

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java59 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()
150 public void drawLines(float[] pts, int offset, int count, Paint paint) { in drawLines()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DTextLineTest.java47 final TextPaint paint = new TextPaint(); in stretchesToFullWidth() local
100 private TextLine getTextLine(String str, TextPaint paint, TabStops tabStops) { in getTextLine()
112 private TextLine getTextLine(String str, TextPaint paint) { in getTextLine()
130 final TextPaint paint = new TextPaint(); in testMeasure_LTR() local
143 final TextPaint paint = new TextPaint(); in testMeasure_RTL() local
156 final TextPaint paint = new TextPaint(); in testMeasure_BiDi() local
173 final TextPaint paint = new TextPaint(); in testMeasure_BiDi2() local
186 final TextPaint paint = new TextPaint(); in testMeasure_BiDi3() local
201 final TextPaint paint = new TextPaint(); in testMeasure_Tab_LTR() local
216 final TextPaint paint = new TextPaint(); in testMeasure_Tab_RTL() local
[all …]
/frameworks/base/libs/hwui/utils/
DPaintUtils.h36 static inline GLenum getFilter(const SkPaint* paint) { in getFilter()
43 static bool isOpaquePaint(const SkPaint* paint) { in isOpaquePaint()
77 static inline bool getTextShadow(const SkPaint* paint, TextShadow* textShadow) { in getTextShadow()
91 static inline bool hasTextShadow(const SkPaint* paint) { return getTextShadow(paint, nullptr); } in hasTextShadow()
93 static inline SkBlendMode getBlendModeDirect(const SkPaint* paint) { in getBlendModeDirect()
97 static inline int getAlphaDirect(const SkPaint* paint) { in getAlphaDirect()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DPrecomputedTextMemoryUsageTest.java63 TextPaint paint = new TextPaint(); in testMemoryUsage_Latin_NoHyphenation() local
81 TextPaint paint = new TextPaint(); in testMemoryUsage_Latin_Hyphenation() local
99 TextPaint paint = new TextPaint(); in testMemoryUsage_CJK_NoHyphenation() local
117 TextPaint paint = new TextPaint(); in testMemoryUsage_CJK_Hyphenation() local
135 TextPaint paint = new TextPaint(); in testMemoryUsage_Arabic_NoHyphenation() local
154 TextPaint paint = new TextPaint(); in testMemoryUsage_Arabic_Hyphenation() local
172 TextPaint paint = new TextPaint(); in testMemoryUsage_Emoji() local
/frameworks/base/libs/hwui/
DRecordingCanvas.cpp111 SkPaint paint; member
188 SkPaint paint; member
194 SkPaint paint; member
201 SkPaint paint; member
208 SkPaint paint; member
215 SkPaint paint; member
222 SkPaint paint; member
238 SkPaint paint; member
247 SkPaint paint; member
255 SkPaint paint; member
[all …]
DSkiaCanvas.cpp172 int SkiaCanvas::saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, in saveLayer()
195 void SkiaCanvas::restoreUnclippedLayer(int restoreCount, const SkPaint& paint) { in restoreUnclippedLayer()
449 void SkiaCanvas::drawPaint(const SkPaint& paint) { in drawPaint()
457 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, in drawPoints()
470 void SkiaCanvas::drawPoint(float x, float y, const SkPaint& paint) { in drawPoint()
474 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints()
479 const SkPaint& paint) { in drawLine()
483 void SkiaCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines()
488 void SkiaCanvas::drawRect(float left, float top, float right, float bottom, const SkPaint& paint) { in drawRect()
493 void SkiaCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) { in drawRegion()
[all …]
DCanvasTransform.cpp68 static void applyColorTransform(ColorTransform transform, SkPaint& paint) { in applyColorTransform()
116 static BitmapPalette filterPalette(const SkPaint* paint, BitmapPalette palette) { in filterPalette()
126 bool transformPaint(ColorTransform transform, SkPaint* paint) { in transformPaint()
132 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette) { in transformPaint()
/frameworks/base/core/java/android/text/
DBoringLayout.java54 public static BoringLayout make(CharSequence source, TextPaint paint, int outerWidth, in make()
80 public static BoringLayout make(CharSequence source, TextPaint paint, int outerWidth, in make()
103 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, int outerwidth, in replaceOrMake()
137 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, int outerWidth, in replaceOrMake()
151 paint, outerWidth, align, spacingMult, spacingAdd); in replaceOrMake() local
157 init(getText(), paint, align, metrics, includePad, trust); in replaceOrMake() local
173 public BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, in BoringLayout()
202 public BoringLayout(CharSequence source, TextPaint paint, int outerWidth, Alignment align, in BoringLayout()
221 paint, outerWidth, align, spacingMult, spacingAdd); in BoringLayout() local
227 init(getText(), paint, align, metrics, includePad, trust); in BoringLayout() local
[all …]
/frameworks/base/graphics/java/android/graphics/
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 …]
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 …]
DLayerRasterizer.java31 public void addLayer(Paint paint, float dx, float dy) { } in addLayer()
33 public void addLayer(Paint paint) { } in addLayer()
/frameworks/base/libs/hwui/hwui/
DPaintImpl.cpp34 Paint::Paint(const Paint& paint) in Paint()
126 static uint32_t paintToLegacyFlags(const SkPaint& paint) { in paintToLegacyFlags()
146 static void applyLegacyFlagsToPaint(uint32_t flags, SkPaint* paint) { in applyLegacyFlagsToPaint()
171 uint32_t Paint::GetSkPaintJavaFlags(const SkPaint& paint) { in GetSkPaintJavaFlags()
175 void Paint::SetSkPaintJavaFlags(SkPaint* paint, uint32_t flags) { in SetSkPaintJavaFlags()
DMinikinUtils.cpp30 minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, in prepareMinikinPaint()
51 minikin::Layout MinikinUtils::doLayout(const Paint* paint, minikin::Bidi bidiFlags, in doLayout()
72 float MinikinUtils::measureText(const Paint* paint, minikin::Bidi bidiFlags, in measureText()
90 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const minikin::Layout& layout) { in xOffsetForTextAlign()
104 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const minikin::Layout& layout, in hOffsetForTextAlign()
DCanvas.cpp37 const SkPaint& paint, Canvas* canvas) { in drawStroke()
43 void Canvas::drawTextDecorations(float x, float y, float length, const Paint& paint) { 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()
144 const Paint& paint; member in android::DrawTextFunctor
155 Paint paint(origPaint); in drawText() local
180 float innerRy, const SkPaint& paint) { in drawDoubleRoundRectXY()
196 const float* innerRadii, const SkPaint& paint) { in drawDoubleRoundRectRadii()
215 float vOffset, const Paint& paint, const SkPath& path) in DrawTextOnPathFunctor()
232 const Paint& paint; member in android::DrawTextOnPathFunctor
[all …]
DMinikinSkia.cpp45 const minikin::MinikinPaint& paint, in MinikinFontSkia_SetSkiaFont()
55 float MinikinFontSkia::GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint, in GetHorizontalAdvance()
69 const minikin::MinikinPaint& paint, in GetHorizontalAdvances()
78 const minikin::MinikinPaint& paint, in GetBounds()
92 const minikin::MinikinPaint& paint, in GetFontExtent()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java225 final Paint paint = new Paint(); in testBuildSystemFallback_NamedFamily() local
273 final Paint paint = new Paint(); in testBuildSystemFallback_defaultFallback() local
320 final Paint paint = new Paint(); in testBuildSystemFallback_namedFallbackFamily() local
372 final Paint paint = new Paint(); in testBuildSystemFallback_namedFallbackFamily2() local
420 final Paint paint = new Paint(); in testBuildSystemFallback_ImplicitSansSerifFallback() local
461 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback() local
502 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback() local
552 final Paint paint = new Paint(); in testBuildSystemFallback_multiLingualFamilies() local
596 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback_missingFile() local
637 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback_missingFile2() local
[all …]
/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp65 MinikinPaint paint(font); in TEST() local
84 MinikinPaint paint(font); in TEST() local
108 MinikinPaint paint(font); in TEST() local
127 MinikinPaint paint(font); in TEST() local
152 MinikinPaint paint(font); in TEST() local
223 MinikinPaint paint(font); in TEST() local
299 MinikinPaint paint(font); in TEST() local
370 MinikinPaint paint(font); in TEST() local
DLayoutTest.cpp52 MinikinPaint paint(mCollection); in TEST_F() local
135 MinikinPaint paint(mCollection); in TEST_F() local
224 MinikinPaint paint(mCollection); in TEST_F() local
315 MinikinPaint paint(mCollection); in TEST_F() local
338 MinikinPaint paint(mCollection); in TEST_F() local
367 MinikinPaint paint(mCollection); in TEST_F() local
428 MinikinPaint paint(fc); in TEST_F() local
438 MinikinPaint paint(fc); in TEST_F() local
449 MinikinPaint paint(fc); in TEST_F() local
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.cpp71 uirenderer::CanvasPropertyPaint* paint) { in drawRoundRect()
80 uirenderer::CanvasPropertyPaint* paint) { in drawCircle()
164 SkiaCanvas::PaintCoW&& SkiaRecordingCanvas::filterBitmap(PaintCoW&& paint) { in filterBitmap()
188 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) { in drawBitmap()
199 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) { in drawBitmap()
212 float dstBottom, const SkPaint* paint) { in drawBitmap()
227 const SkPaint* paint) { in drawNinePatch()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp97 static void deletePaint(Paint* paint) { in deletePaint()
110 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint() local
115 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText()
151 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextC() local
180 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextS() local
190 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances()
225 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances___CIIIII_FI() local
237 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances__StringIIIII_FI() local
247 static jint doTextRunCursor(JNIEnv *env, Paint* paint, const Typeface* typeface, in doTextRunCursor()
261 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextRunCursor___C() local
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java36 public void draw(Canvas canvas, Paint paint) { in draw()
37 canvas.drawOval(rect(), paint); in draw() local
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java28 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/core/jni/
Dandroid_graphics_Canvas.cpp94 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer() local
110 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in restoreUnclippedLayer() local
243 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint() local
249 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint() local
265 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints() local
271 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine() local
287 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines() local
293 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect() local
301 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawDoubleRoundRectXY() local
311 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawDoubleRoundRectRadii() local
[all …]
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp90 float FreeTypeMinikinFontForTest::GetHorizontalAdvance(uint32_t glyphId, const MinikinPaint& paint, in GetHorizontalAdvance() argument
97 const MinikinPaint& paint, in GetBounds()
110 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent() argument

123456789