/frameworks/minikin/include/minikin/ |
D | MinikinExtent.h | 25 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) {
|
D | MeasuredText.h | 37 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()
|
D | LayoutCore.h | 51 const MinikinExtent& extent() const { return mExtent; } in extent() 65 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage() 81 MinikinExtent mExtent;
|
D | Debug.h | 27 struct MinikinExtent; 42 std::string toString(const MinikinExtent& extent);
|
D | MinikinFont.h | 29 struct MinikinExtent; 54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
D | Measurement.h | 40 MinikinExtent getFontExtent(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
|
D | FontCollection.h | 170 MinikinExtent getReferenceExtentForLocale(const MinikinPaint& paint) const; 303 mutable android::LruCache<LocaleExtentKey, MinikinExtent> mExtentCacheForLocale
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 96 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 …]
|
D | MeasuredTextTest.cpp | 176 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 …]
|
D | LineBreakerTestHelper.h | 72 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent()
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 303 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()
|
D | Measurement.cpp | 237 MinikinExtent extent; 240 MinikinExtent getFontExtent(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlag, in getFontExtent()
|
D | Debug.cpp | 77 std::string toString(const MinikinExtent& extent) { in toString()
|
D | FontCollection.cpp | 637 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()
|
D | GreedyLineBreaker.cpp | 521 MinikinExtent extent = mMeasuredText.getExtent(mTextBuf, range); in getResult() 532 MinikinExtent extent = in getResult()
|
D | OptimalLineBreaker.cpp | 386 MinikinExtent extent = measured.getExtent(textBuf, range); in finishBreaksOptimal() 398 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal()
|
D | LayoutCore.cpp | 349 MinikinExtent verticalExtent; in LayoutPiece()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.h | 49 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
D | FreeTypeMinikinFontForTest.cpp | 109 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.h | 49 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
|
D | MinikinUtils.h | 58 static minikin::MinikinExtent getFontExtent(const Paint* paint, minikin::Bidi bidiFlags,
|
D | MinikinUtils.cpp | 116 minikin::MinikinExtent MinikinUtils::getFontExtent(const Paint* paint, minikin::Bidi bidiFlags, in getFontExtent()
|
D | MinikinSkia.cpp | 95 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent()
|
/frameworks/base/libs/hwui/jni/text/ |
D | MeasuredText.cpp | 143 minikin::MinikinExtent extent = toMeasuredParagraph(ptr)->getExtent(textBuffer, range); in nGetExtent()
|
D | TextShaper.cpp | 61 minikin::MinikinExtent extent = {}; in shapeTextRun()
|