/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 28 bool operator==(const MinikinExtent& o) const { 36 void extendBy(const MinikinExtent& e) { in extendBy() argument 43 inline std::ostream& operator<<(std::ostream& os, const MinikinExtent& e) {
|
D | LayoutCore.h | 57 const MinikinExtent& extent() const { return mExtent; } in extent() 69 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage() 83 MinikinExtent mExtent;
|
D | MeasuredText.h | 53 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 99 MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 140 MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent() 142 return MinikinExtent(); in getExtent() 198 MinikinExtent getExtent(const U16StringPiece& textBuf, const Range& range) const;
|
D | MinikinFont.h | 29 struct MinikinExtent; 54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 78 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 91 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 107 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 134 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST() 150 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST() 172 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 185 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 198 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 211 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 226 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() [all …]
|
D | MeasuredTextTest.cpp | 114 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST() 115 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST() 116 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST() 117 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST() 118 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, text.size()))); in TEST() 136 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST() 137 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST() 138 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST() 139 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST() 140 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(7, 7))); in TEST() [all …]
|
D | LineBreakerTestHelper.h | 70 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent()
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 255 const MinikinExtent& extent() const { return mExtent; } in extent() 258 MinikinExtent mExtent; 261 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent() 314 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent() 315 MinikinExtent extent; in getExtent() 321 MinikinExtent runExtent = in getExtent()
|
D | GreedyLineBreaker.cpp | 373 MinikinExtent extent = in getResult()
|
D | OptimalLineBreaker.cpp | 308 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal()
|
D | LayoutCore.cpp | 416 MinikinExtent verticalExtent; in LayoutPiece()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.h | 43 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
D | FreeTypeMinikinFontForTest.cpp | 110 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.h | 47 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
|
D | MinikinSkia.cpp | 91 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent()
|