/frameworks/minikin/include/minikin/ |
D | MinikinRect.h | 24 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) {
|
D | LayoutCore.h | 56 const MinikinRect& bounds() const { return mBounds; } in bounds() 69 sizeof(MinikinRect) + sizeof(MinikinExtent); in getMemoryUsage() 82 MinikinRect mBounds;
|
D | MeasuredText.h | 51 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;
|
D | Layout.h | 95 void getBounds(MinikinRect* rect) const { rect->set(mBounds); } in getBounds() 96 const MinikinRect& getBounds() const { return mBounds; } in getBounds() 138 MinikinRect mBounds;
|
D | MinikinFont.h | 31 struct MinikinRect; 51 virtual void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
|
/frameworks/minikin/tests/unittest/ |
D | MeasuredTextTest.cpp | 71 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 …]
|
D | LayoutCoreTest.cpp | 77 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 …]
|
D | LineBreakerTestHelper.h | 64 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds() 67 return std::make_pair(mWidth, MinikinRect()); in getBounds()
|
D | LayoutTest.cpp | 54 MinikinRect rect; in TEST_F() 137 MinikinRect rect; in TEST_F() 226 MinikinRect rect; in TEST_F()
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 217 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()
|
D | Layout.cpp | 161 MinikinRect srcBounds(src.bounds()); in appendLayout()
|
D | LayoutCore.cpp | 515 MinikinRect glyphBounds; in LayoutPiece()
|
/frameworks/base/libs/hwui/hwui/ |
D | Canvas.cpp | 87 float y, minikin::MinikinRect& bounds, float totalAdvance) in DrawTextFunctor() 147 minikin::MinikinRect& bounds; 162 minikin::MinikinRect bounds; in drawText()
|
D | MinikinSkia.h | 43 void GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id,
|
D | MinikinSkia.cpp | 77 void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, in GetBounds()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.h | 41 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
|
D | FreeTypeMinikinFontForTest.cpp | 96 void FreeTypeMinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t glyphId, in GetBounds()
|
/frameworks/base/core/jni/android/graphics/text/ |
D | MeasuredText.cpp | 121 minikin::MinikinRect rect = toMeasuredParagraph(ptr)->getBounds(textBuffer, range); in nGetBounds()
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 367 minikin::MinikinRect rect; in doTextBounds()
|