Home
last modified time | relevance | path

Searched refs:StartHyphenEdit (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp61 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 …]
DMeasuredTextTest.cpp235 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 …]
DLayoutTest.cpp41 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 …]
DGreedyLineBreakerTest.cpp248 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 …]
DOptimalLineBreakerTest.cpp231 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 …]
DLineBreakerTestHelper.h86 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()
DLayoutLetterSpacingTest.cpp56 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()
DLayoutCoreTest.cpp33 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/
DHyphenator.h86 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);
DLayout.h90 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,
DMeasuredText.h94 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
DLayoutCache.h39 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in LayoutCacheKey()
101 StartHyphenEdit mStartHyphen;
162 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in getOrCreate()
DMeasurement.h37 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
DLayoutCore.h42 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp78 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 …]
DGreedyLineBreaker.cpp60 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 …]
DMeasurement.cpp209 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()
DLayout.cpp194 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()
DLineBreakerUtil.h103 StartHyphenEdit::NO_EDIT /* start hyphen edit */, in populateHyphenationPoints()
122 StartHyphenEdit startEdit = editForNextLine(hyph); in populateHyphenationPoints()
129 if (startEdit != StartHyphenEdit::NO_EDIT) { in populateHyphenationPoints()
DLayoutCore.cpp182 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()
DHyphenator.cpp232 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/
Dhyphenator_fuzzer.cpp45 const StartHyphenEdit StartHyphenEdits[] = {
46 StartHyphenEdit::NO_EDIT,
47 StartHyphenEdit::INSERT_HYPHEN,
48 StartHyphenEdit::INSERT_ZWJ,
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp73 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()
DPaint.h109 static_cast<minikin::StartHyphenEdit>(startHyphen), in setStartHyphenEdit()
119 minikin::StartHyphenEdit getStartHyphenEdit() const { in getStartHyphenEdit()
/frameworks/minikin/tests/stresstest/
DMultithreadTest.cpp80 Layout layout(text, Range(0, text.size()), Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in thread_main()

12