Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DMinikinFont.h35 struct MinikinPaint { struct
36 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint() function
62 void copyFrom(const MinikinPaint& paint) { *this = paint; } in copyFrom() argument
64 MinikinPaint(MinikinPaint&&) = default;
65 MinikinPaint& operator=(MinikinPaint&&) = default; argument
67 inline bool operator==(const MinikinPaint& paint) {
77 MinikinPaint(const MinikinPaint&) = default;
78 MinikinPaint& operator=(const MinikinPaint&) = default; argument
130 virtual float GetHorizontalAdvance(uint32_t glyph_id, const MinikinPaint& paint,
133 virtual void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
[all …]
DLayout.h89 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
92 Bidi bidiFlags, const MinikinPaint& paint,
98 const MinikinPaint& paint,
102 const MinikinPaint& paint, StartHyphenEdit startHyphen,
164 const MinikinPaint& paint, size_t dstStart,
172 bool isRtl, const MinikinPaint& paint, size_t bufStart,
179 const MinikinPaint& paint, StartHyphenEdit startHyphen,
DMeasuredText.h59 virtual const MinikinPaint* getPaint() const { return nullptr; } in getPaint()
78 StyleRun(const Range& range, MinikinPaint&& paint, bool isRtl) in StyleRun()
98 const MinikinPaint* getPaint() const override { return &mPaint; } in getPaint()
109 MinikinPaint mPaint;
182 void buildLayout(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint,
209 void addStyleRun(int32_t start, int32_t end, MinikinPaint&& paint, bool isRtl) { in addStyleRun()
DLayoutPieces.h42 void insert(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, in insert()
54 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, in getOrCreate()
DLayoutCache.h32 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey()
75 void doLayout(Layout* layout, const MinikinPaint& paint) const { in doLayout()
138 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate()
DFontCollection.h43 void itemize(const uint16_t* string, size_t string_length, const MinikinPaint& paint,
/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp49 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
67 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in TEST()
124 MinikinPaint paint1(buildFontCollection("Ascii.ttf")); in TEST()
127 MinikinPaint paint2(buildFontCollection("Emoji.ttf")); in TEST()
135 MinikinPaint paint1(collection); in TEST()
139 MinikinPaint paint2(collection); in TEST()
148 MinikinPaint paint1(collection); in TEST()
152 MinikinPaint paint2(collection); in TEST()
161 MinikinPaint paint1(collection); in TEST()
165 MinikinPaint paint2(collection); in TEST()
[all …]
DLayoutTest.cpp47 static Layout doLayout(const std::string& text, const MinikinPaint& paint) { in doLayout()
56 static Layout doLayoutWithPrecomputedPieces(const std::string& text, const MinikinPaint& paint, in doLayoutWithPrecomputedPieces()
80 MinikinPaint paint(mCollection); in TEST_F()
174 MinikinPaint paint(mCollection); in TEST_F()
278 MinikinPaint paint(mCollection); in TEST_F()
380 MinikinPaint paint(mCollection); in TEST_F()
405 MinikinPaint paint(mCollection); in TEST_F()
437 MinikinPaint paint(mCollection); in TEST_F()
486 MinikinPaint paint(mCollection); in TEST_F()
517 MinikinPaint paint(fc); in TEST_F()
[all …]
DMeasuredTextTest.cpp37 MinikinPaint paint1(font); in TEST()
41 MinikinPaint paint2(font); in TEST()
DLineBreakerTestHelper.h66 virtual const MinikinPaint* getPaint() const { return &mPaint; } in getPaint()
82 MinikinPaint mPaint;
DFontCollectionItemizeTest.cpp66 MinikinPaint paint(collection); in itemize()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h37 float GetHorizontalAdvance(uint32_t glyph_id, const MinikinPaint& paint,
39 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
41 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp87 float FreeTypeMinikinFontForTest::GetHorizontalAdvance(uint32_t glyphId, const MinikinPaint& paint, in GetHorizontalAdvance()
94 const MinikinPaint& paint, in GetBounds()
108 const MinikinPaint& /* paint */, in GetFontExtent() argument
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h34 float GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint,
38 const minikin::MinikinPaint& paint,
41 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
DMinikinUtils.cpp30 minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, in prepareMinikinPaint()
34 minikin::MinikinPaint minikinPaint(resolvedFace->fFontCollection); in prepareMinikinPaint()
53 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in doLayout()
73 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in measureText()
DMinikinSkia.cpp37 const minikin::MinikinPaint& paint, in MinikinFontSkia_SetSkiaPaint()
48 float MinikinFontSkia::GetHorizontalAdvance(uint32_t glyph_id, const minikin::MinikinPaint& paint, in GetHorizontalAdvance()
62 const minikin::MinikinPaint& paint, in GetBounds()
76 const minikin::MinikinPaint& paint, in GetFontExtent()
DMinikinUtils.h42 ANDROID_API static minikin::MinikinPaint prepareMinikinPaint(const Paint* paint,
/frameworks/minikin/libs/minikin/
DLayout.cpp52 const MinikinPaint* paint;
229 const MinikinPaint& paint, StartHyphenEdit startHyphen, in doLayout()
244 Bidi bidiFlags, const MinikinPaint& paint, in doLayoutWithPrecomputedPieces()
261 const MinikinPaint& paint, in getBoundsWithPrecomputedPieces()
274 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText()
290 const MinikinPaint& paint, size_t dstStart, in doLayoutRunCached()
345 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in LayoutAppendFunctor()
388 const MinikinPaint& mPaint;
403 bool isRtl, const MinikinPaint& paint, size_t bufStart, in doLayoutWord()
579 bool isRtl, const MinikinPaint& paint, StartHyphenEdit startHyphen, in doLayoutRun()
DMeasuredText.cpp59 const MinikinPaint& paint, Bidi bidiFlags, in buildLayout()
DFontCollection.cpp371 void FontCollection::itemize(const uint16_t* string, size_t string_size, const MinikinPaint& paint, in itemize()
DOptimalLineBreaker.cpp132 const MinikinPaint* paint = run.getPaint(); in computePenalties()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp93 MinikinPaint paint(collection); in BM_FontCollection_itemize()
/frameworks/minikin/tests/stresstest/
DMultithreadTest.cpp71 MinikinPaint paint(buildFontCollection("Ascii.ttf")); in thread_main()
/frameworks/base/core/jni/
Dandroid_text_MeasuredParagraph.cpp75 minikin::MinikinPaint minikinPaint = MinikinUtils::prepareMinikinPaint(paint, typeface); in nAddStyleRun()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp1019 minikin::MinikinPaint leftMinikinPaint in equalsForTextMeasurement()
1021 minikin::MinikinPaint rightMinikinPaint in equalsForTextMeasurement()