Home
last modified time | relevance | path

Searched refs:MinikinRect (Results 1 – 19 of 19) sorted by relevance

/frameworks/minikin/include/minikin/
DMinikinRect.h24 struct MinikinRect { struct
25 MinikinRect() : mLeft(0), mTop(0), mRight(0), mBottom(0) {} in MinikinRect() argument
26 MinikinRect(float left, float top, float right, float bottom) in MinikinRect() function
28 bool operator==(const MinikinRect& o) const {
37 void set(const MinikinRect& r) { in set() argument
50 void join(const MinikinRect& r) { in join() argument
63 inline std::ostream& operator<<(std::ostream& os, const MinikinRect& r) {
DLayoutCore.h56 const MinikinRect& bounds() const { return mBounds; } in bounds()
69 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage()
82 MinikinRect mBounds;
DMeasuredText.h51 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
96 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
133 std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds()
137 return std::make_pair(mWidth, MinikinRect()); in getBounds()
197 MinikinRect getBounds(const U16StringPiece& textBuf, const Range& range) const;
DLayout.h95 void getBounds(MinikinRect* rect) const { rect->set(mBounds); } in getBounds()
96 const MinikinRect& getBounds() const { return mBounds; } in getBounds()
138 MinikinRect mBounds;
DMinikinFont.h31 struct MinikinRect;
51 virtual void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp71 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
72 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
73 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
74 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
75 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST()
93 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
94 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
95 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
96 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
97 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(7, 7))); in TEST()
[all …]
DLayoutCoreTest.cpp77 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST()
90 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), layout.bounds()); in TEST()
106 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 60.0f, 0.0f), layout.bounds()); in TEST()
133 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 30.0f, 0.0f), layout.bounds()); in TEST()
149 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 30.0f, 0.0f), layout.bounds()); in TEST()
171 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST()
184 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST()
197 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST()
210 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), layout.bounds()); in TEST()
225 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), layout.bounds()); in TEST()
[all …]
DLineBreakerTestHelper.h64 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds()
67 return std::make_pair(mWidth, MinikinRect()); in getBounds()
DLayoutTest.cpp54 MinikinRect rect; in TEST_F()
137 MinikinRect rect; in TEST_F()
226 MinikinRect rect; in TEST_F()
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp217 MinikinRect tmpBounds = layoutPiece.bounds(); in operator ()()
223 const MinikinRect& bounds() const { return mBounds; } in bounds()
228 MinikinRect mBounds;
231 std::pair<float, MinikinRect> StyleRun::getBounds(const U16StringPiece& textBuf, const Range& range, in getBounds()
296 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) const { in getBounds()
297 MinikinRect rect; in getBounds()
DLayout.cpp161 MinikinRect srcBounds(src.bounds()); in appendLayout()
DLayoutCore.cpp515 MinikinRect glyphBounds; in LayoutPiece()
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp87 float y, minikin::MinikinRect& bounds, float totalAdvance) in DrawTextFunctor()
147 minikin::MinikinRect& bounds;
162 minikin::MinikinRect bounds; in drawText()
DMinikinSkia.h43 void GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id,
DMinikinSkia.cpp77 void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, in GetBounds()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h41 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
DFreeTypeMinikinFontForTest.cpp96 void FreeTypeMinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t glyphId, in GetBounds()
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp121 minikin::MinikinRect rect = toMeasuredParagraph(ptr)->getBounds(textBuffer, range); in nGetBounds()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp367 minikin::MinikinRect rect; in doTextBounds()