/frameworks/minikin/tests/unittest/ |
D | LayoutCacheTest.cpp | 61 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST() 65 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST() 84 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout1); in TEST() 86 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout2); in TEST() 92 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout1); in TEST() 94 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout2); in TEST() 100 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout1); in TEST() 102 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout2); in TEST() 108 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout1); in TEST() 110 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, false, layout2); in TEST() [all …]
|
D | MeasuredTextTest.cpp | 235 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() 238 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 247 getBounds(text, Range(0, 1), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 251 layout = mt->buildLayout(text, Range(0, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 263 getBounds(text, Range(0, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 267 layout = mt->buildLayout(text, Range(1, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 276 getBounds(text, Range(1, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 281 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() 292 getBounds(text, Range(0, text.size()), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 323 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() [all …]
|
D | LayoutTest.cpp | 41 getBounds(text, Range(0, text.size()), bidiFlags, paint, StartHyphenEdit::NO_EDIT, in getBounds() 71 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 90 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 109 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 128 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 159 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 178 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 198 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 219 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 253 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() [all …]
|
D | GreedyLineBreakerTest.cpp | 248 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, nullptr, in TEST_F() 268 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 475 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 750 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 752 constexpr StartHyphenEdit START_HYPHEN = StartHyphenEdit::INSERT_HYPHEN; in TEST_F() 797 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 835 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 884 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 936 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 968 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() [all …]
|
D | OptimalLineBreakerTest.cpp | 231 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 779 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 781 constexpr StartHyphenEdit START_HYPHEN = StartHyphenEdit::INSERT_HYPHEN; in TEST_F() 818 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 848 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 895 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 945 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 993 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 1081 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() 1188 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F() [all …]
|
D | LineBreakerTestHelper.h | 86 StartHyphenEdit start, EndHyphenEdit end, in measureHyphenPiece() 99 const LayoutPieces&, const MinikinPaint&, uint32_t, StartHyphenEdit, in appendLayout() argument 121 StartHyphenEdit mStartEdit; 199 const StartHyphenEdit startEdit = startHyphenEdit(edit); in toString()
|
D | LayoutLetterSpacingTest.cpp | 56 float width = Layout::measureText(text, range, bidiFlag, *mPaint, StartHyphenEdit::NO_EDIT, in LayoutTest() 61 Layout::measureText(text, range, bidiFlag, *mPaint, StartHyphenEdit::NO_EDIT, in LayoutTest() 63 Layout layout(text, range, bidiFlag, *mPaint, StartHyphenEdit::NO_EDIT, in LayoutTest()
|
D | LayoutCoreTest.cpp | 33 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayout() 39 return LayoutPiece(utf16, range, false /* rtl */, paint, StartHyphenEdit::NO_EDIT, in buildLayout() 55 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayoutAndBounds()
|
/frameworks/minikin/include/minikin/ |
D | Hyphenator.h | 86 enum class StartHyphenEdit : uint8_t { enum 100 inline HyphenEdit packHyphenEdit(StartHyphenEdit start, EndHyphenEdit end) { in packHyphenEdit() 108 inline StartHyphenEdit startHyphenEdit(HyphenEdit hyphenEdit) { in startHyphenEdit() 109 return static_cast<StartHyphenEdit>(hyphenEdit >> START_BITS_SHIFT); in startHyphenEdit() 116 inline bool isInsertion(StartHyphenEdit hyph) { in isInsertion() 117 return hyph != StartHyphenEdit::NO_EDIT; in isInsertion() 137 inline std::pair<const uint16_t*, size_t> getHyphenString(StartHyphenEdit hyph) { in getHyphenString() 138 if (hyph == StartHyphenEdit::INSERT_ZWJ) { in getHyphenString() 140 } else if (hyph == StartHyphenEdit::INSERT_HYPHEN) { in getHyphenString() 168 StartHyphenEdit editForNextLine(HyphenationType type);
|
D | Layout.h | 90 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, uint32_t runFlag) in Layout() 98 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in Layout() 109 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText() 117 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText() 125 const MinikinPaint& paint, StartHyphenEdit startHyphen, 179 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 187 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 194 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, 199 const MinikinPaint& paint, StartHyphenEdit startHyphen,
|
D | MeasuredText.h | 94 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 109 StartHyphenEdit /* startHyphen */, in measureHyphenPiece() argument 167 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 173 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 224 StartHyphenEdit /* startHyphen */, EndHyphenEdit /* endHyphen */, in appendLayout() argument
|
D | LayoutCache.h | 39 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in LayoutCacheKey() 101 StartHyphenEdit mStartHyphen; 162 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in getOrCreate()
|
D | Measurement.h | 37 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
|
D | LayoutCore.h | 42 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 78 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, boundsCalculation, in getMetrics() 82 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getMetrics() 113 info.isRtl, StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, in measureText() 150 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in measureHyphenPiece() 156 const StartHyphenEdit startEdit = in measureHyphenPiece() 157 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece() 228 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in appendLayout() 242 const StartHyphenEdit startEdit = in appendLayout() 243 range.getStart() == piece.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in appendLayout() 286 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getBounds() [all …]
|
D | GreedyLineBreaker.cpp | 60 BreakPoint(uint32_t offset, float lineWidth, StartHyphenEdit startHyphen, in BreakPoint() 78 StartHyphenEdit nextLineStartHyphen); 116 StartHyphenEdit mStartHyphenEdit = StartHyphenEdit::NO_EDIT; 146 StartHyphenEdit nextLineStartHyphen) { in breakLineAt() 174 StartHyphenEdit::NO_EDIT); // No hyphen modification. in tryLineBreakWithWordBreak() 234 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 263 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation() 290 EndHyphenEdit::NO_EDIT, StartHyphenEdit::NO_EDIT); in doLineBreakWithGraphemeBounds() 302 breakLineAt(range.getEnd(), mLineWidth, 0, 0, EndHyphenEdit::NO_EDIT, StartHyphenEdit::NO_EDIT); in doLineBreakWithGraphemeBounds() 350 StartHyphenEdit::NO_EDIT); in doLineBreakWithFallback() [all …]
|
D | Measurement.cpp | 209 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in getBounds() 214 const StartHyphenEdit pieceStartHyphen = in getBounds() 215 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in getBounds() 247 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, in getFontExtent()
|
D | Layout.cpp | 194 const MinikinPaint& paint, StartHyphenEdit startHyphen, in doLayout() 211 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText() 247 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in doLayoutRunCached() 257 const StartHyphenEdit pieceStartHyphen = in doLayoutRunCached() 258 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in doLayoutRunCached() 318 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, in doLayoutWord()
|
D | LineBreakerUtil.h | 103 StartHyphenEdit::NO_EDIT /* start hyphen edit */, in populateHyphenationPoints() 122 StartHyphenEdit startEdit = editForNextLine(hyph); in populateHyphenationPoints() 129 if (startEdit != StartHyphenEdit::NO_EDIT) { in populateHyphenationPoints()
|
D | LayoutCore.cpp | 182 StartHyphenEdit inStartHyphen, EndHyphenEdit inEndHyphen, in addToHbBuffer() 185 const StartHyphenEdit startHyphen = in addToHbBuffer() 186 (scriptRunStart == 0) ? inStartHyphen : StartHyphenEdit::NO_EDIT; in addToHbBuffer() 225 if (startHyphen == StartHyphenEdit::NO_EDIT) { in addToHbBuffer() 279 const MinikinPaint& paint, StartHyphenEdit startHyphen, in LayoutPiece()
|
D | Hyphenator.cpp | 232 StartHyphenEdit editForNextLine(HyphenationType type) { in editForNextLine() 235 return StartHyphenEdit::INSERT_HYPHEN; in editForNextLine() 237 return StartHyphenEdit::INSERT_ZWJ; in editForNextLine() 240 return StartHyphenEdit::NO_EDIT; in editForNextLine()
|
/frameworks/minikin/fuzz/hyphenator_fuzzer/ |
D | hyphenator_fuzzer.cpp | 45 const StartHyphenEdit StartHyphenEdits[] = { 46 StartHyphenEdit::NO_EDIT, 47 StartHyphenEdit::INSERT_HYPHEN, 48 StartHyphenEdit::INSERT_ZWJ,
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 73 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in doLayout() 92 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in getBounds() 106 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in measureText()
|
D | Paint.h | 109 static_cast<minikin::StartHyphenEdit>(startHyphen), in setStartHyphenEdit() 119 minikin::StartHyphenEdit getStartHyphenEdit() const { in getStartHyphenEdit()
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 80 Layout layout(text, Range(0, text.size()), Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in thread_main()
|