Home
last modified time | relevance | path

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

/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
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) {
DLayoutCore.h57 const MinikinExtent& extent() const { return mExtent; } in extent()
69 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage()
83 MinikinExtent mExtent;
DMeasuredText.h53 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;
DMinikinFont.h29 struct MinikinExtent;
54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp78 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 …]
DMeasuredTextTest.cpp114 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 …]
DLineBreakerTestHelper.h70 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent()
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp255 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()
DGreedyLineBreaker.cpp373 MinikinExtent extent = in getResult()
DOptimalLineBreaker.cpp308 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal()
DLayoutCore.cpp416 MinikinExtent verticalExtent; in LayoutPiece()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h43 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp110 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h47 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
DMinikinSkia.cpp91 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent()