Home
last modified time | relevance | path

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

12

/frameworks/minikin/include/minikin/
DMinikinExtent.h25 struct MinikinExtent { struct
26 MinikinExtent() : ascent(0), descent(0) {} in MinikinExtent() function
27 MinikinExtent(float ascent, float descent) : ascent(ascent), descent(descent) {} in MinikinExtent() argument
29 void extendBy(const MinikinExtent& e) { in extendBy() argument
39 inline std::ostream& operator<<(std::ostream& os, const MinikinExtent& e) { argument
43 inline bool operator==(const MinikinExtent& l, const MinikinExtent& r) {
47 inline bool operator!=(const MinikinExtent& l, const MinikinExtent& r) {
DMeasuredText.h37 LineMetrics(const MinikinExtent& extent, const MinikinRect& bounds, float advance) in LineMetrics()
44 void append(const MinikinExtent& nextExtent, const MinikinRect& nextBounds, float nextAdvance) { in append()
50 MinikinExtent extent;
85 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
159 MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
211 MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent()
213 return MinikinExtent(); in getExtent()
DLayoutCore.h51 const MinikinExtent& extent() const { return mExtent; } in extent()
65 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage()
81 MinikinExtent mExtent;
DDebug.h27 struct MinikinExtent;
42 std::string toString(const MinikinExtent& extent);
DMinikinFont.h29 struct MinikinExtent;
54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DMeasurement.h40 MinikinExtent getFontExtent(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
DFontCollection.h170 MinikinExtent getReferenceExtentForLocale(const MinikinPaint& paint) const;
303 mutable android::LruCache<LocaleExtentKey, MinikinExtent> mExtentCacheForLocale
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp96 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
110 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
127 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
155 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST()
172 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST()
195 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
209 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
223 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
237 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
253 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
[all …]
DMeasuredTextTest.cpp176 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
177 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
178 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
179 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
180 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, text.size()))); in TEST()
204 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
205 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
206 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
207 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
208 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(7, 7))); in TEST()
[all …]
DLineBreakerTestHelper.h72 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent()
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp303 const MinikinExtent& extent() const { return mExtent; } in extent()
306 MinikinExtent mExtent;
309 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent()
391 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent()
392 MinikinExtent extent; in getExtent()
DMeasurement.cpp237 MinikinExtent extent;
240 MinikinExtent getFontExtent(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlag, in getFontExtent()
DDebug.cpp77 std::string toString(const MinikinExtent& extent) { in toString()
DFontCollection.cpp637 MinikinExtent FontCollection::getReferenceExtentForLocale(const MinikinPaint& paint) const { in getReferenceExtentForLocale()
648 MinikinExtent result(0, 0); in getReferenceExtentForLocale()
656 MinikinExtent extent(0, 0); in getReferenceExtentForLocale()
683 MinikinExtent extent(0, 0); in getReferenceExtentForLocale()
694 MinikinExtent extent(0, 0); in getReferenceExtentForLocale()
DGreedyLineBreaker.cpp521 MinikinExtent extent = mMeasuredText.getExtent(mTextBuf, range); in getResult()
532 MinikinExtent extent = in getResult()
DOptimalLineBreaker.cpp386 MinikinExtent extent = measured.getExtent(textBuf, range); in finishBreaksOptimal()
398 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal()
DLayoutCore.cpp349 MinikinExtent verticalExtent; in LayoutPiece()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h49 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp109 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h49 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
DMinikinUtils.h58 static minikin::MinikinExtent getFontExtent(const Paint* paint, minikin::Bidi bidiFlags,
DMinikinUtils.cpp116 minikin::MinikinExtent MinikinUtils::getFontExtent(const Paint* paint, minikin::Bidi bidiFlags, in getFontExtent()
DMinikinSkia.cpp95 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent()
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp143 minikin::MinikinExtent extent = toMeasuredParagraph(ptr)->getExtent(textBuffer, range); in nGetExtent()
DTextShaper.cpp61 minikin::MinikinExtent extent = {}; in shapeTextRun()

12