Home
last modified time | relevance | path

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

12

/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp62 EndHyphenEdit::NO_EDIT, false, layout1); in TEST()
66 EndHyphenEdit::NO_EDIT, false, layout2); 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()
239 EndHyphenEdit::NO_EDIT); in TEST()
248 EndHyphenEdit::NO_EDIT, &rect); in TEST()
252 EndHyphenEdit::NO_EDIT); in TEST()
264 EndHyphenEdit::NO_EDIT, &rect); in TEST()
268 EndHyphenEdit::NO_EDIT); in TEST()
277 EndHyphenEdit::NO_EDIT, &rect); in TEST()
281 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST()
293 EndHyphenEdit::NO_EDIT, &rect); in TEST()
323 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST()
[all …]
DLayoutTest.cpp42 EndHyphenEdit::NO_EDIT, out); in getBounds()
72 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
91 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
110 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
129 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
160 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
179 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
199 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
220 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
254 EndHyphenEdit::NO_EDIT, RunFlag::NONE); in TEST_F()
[all …]
DGreedyLineBreakerTest.cpp248 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, nullptr, in TEST_F()
269 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
476 constexpr EndHyphenEdit END_HYPHEN = EndHyphenEdit::INSERT_HYPHEN; in TEST_F()
477 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
751 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
798 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
836 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
885 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
937 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
969 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
[all …]
DOptimalLineBreakerTest.cpp232 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
233 constexpr EndHyphenEdit END_HYPHEN = EndHyphenEdit::INSERT_HYPHEN; in TEST_F()
780 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
819 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
849 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
896 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
946 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
994 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
1082 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
1189 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F()
[all …]
DLineBreakerTestHelper.h86 StartHyphenEdit start, EndHyphenEdit end, in measureHyphenPiece()
100 EndHyphenEdit, Layout*) const {} in appendLayout() argument
122 EndHyphenEdit mEndEdit;
200 const EndHyphenEdit endEdit = endHyphenEdit(edit); in toString()
DLayoutLetterSpacingTest.cpp57 EndHyphenEdit::NO_EDIT, advances.data(), nullptr, nullptr, in LayoutTest()
62 EndHyphenEdit::NO_EDIT, nullptr, nullptr, nullptr, runFlag); in LayoutTest()
64 EndHyphenEdit::NO_EDIT, runFlag); in LayoutTest()
DLayoutCoreTest.cpp33 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayout()
40 EndHyphenEdit::NO_EDIT); in buildLayout()
55 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayoutAndBounds()
/frameworks/minikin/include/minikin/
DHyphenator.h73 enum class EndHyphenEdit : uint8_t { enum
100 inline HyphenEdit packHyphenEdit(StartHyphenEdit start, EndHyphenEdit end) { in packHyphenEdit()
104 inline EndHyphenEdit endHyphenEdit(HyphenEdit hyphenEdit) { in endHyphenEdit()
105 return static_cast<EndHyphenEdit>(hyphenEdit & MASK_END_OF_LINE); in endHyphenEdit()
112 inline bool isReplacement(EndHyphenEdit hyph) { in isReplacement()
113 return hyph == EndHyphenEdit::REPLACE_WITH_HYPHEN; in isReplacement()
120 inline bool isInsertion(EndHyphenEdit hyph) { in isInsertion()
121 return static_cast<uint8_t>(hyph) >= static_cast<uint8_t>(EndHyphenEdit::INSERT_HYPHEN); in isInsertion()
147 inline std::pair<const uint16_t*, size_t> getHyphenString(EndHyphenEdit hyph) { in getHyphenString()
149 case EndHyphenEdit::REPLACE_WITH_HYPHEN: // fall through in getHyphenString()
[all …]
DLayout.h90 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, uint32_t runFlag) in Layout()
98 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in Layout()
110 EndHyphenEdit endHyphen, float* advances) { in measureText()
118 EndHyphenEdit endHyphen, float* advances, MinikinRect* bounds, in measureText()
126 EndHyphenEdit endHyphen, float* advances, MinikinRect* bounds,
179 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
187 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
194 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout,
200 EndHyphenEdit endHyphen, MinikinRect* bounds, uint32_t* clusterCount);
DMeasuredText.h94 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
110 EndHyphenEdit /* endHyphen */, 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()
102 EndHyphenEdit mEndHyphen;
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/fuzz/hyphenator_fuzzer/
Dhyphenator_fuzzer.cpp35 const EndHyphenEdit EndHyphenEdits[] = {
36 EndHyphenEdit::NO_EDIT,
37 EndHyphenEdit::REPLACE_WITH_HYPHEN,
38 EndHyphenEdit::INSERT_HYPHEN,
39 EndHyphenEdit::INSERT_ARMENIAN_HYPHEN,
40 EndHyphenEdit::INSERT_MAQAF,
41 EndHyphenEdit::INSERT_UCAS_HYPHEN,
42 EndHyphenEdit::INSERT_ZWJ_AND_HYPHEN,
/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()
158 const EndHyphenEdit endEdit = in measureHyphenPiece()
159 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece()
228 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in appendLayout()
244 const EndHyphenEdit endEdit = in appendLayout()
245 range.getEnd() == piece.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in appendLayout()
286 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getBounds()
[all …]
DGreedyLineBreaker.cpp61 EndHyphenEdit endHyphen) in BreakPoint()
77 float remainingNextSumOfCharWidths, EndHyphenEdit thisLineEndHyphen,
145 EndHyphenEdit thisLineEndHyphen, in breakLineAt()
173 mSumOfCharWidths - mSumOfCharWidthsAtPrevWordBoundary, EndHyphenEdit::NO_EDIT, in tryLineBreakWithWordBreak()
237 EndHyphenEdit::NO_EDIT, nullptr); in tryLineBreakWithHyphenation()
266 EndHyphenEdit::NO_EDIT, nullptr); 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()
349 mSumOfCharWidths - preBreakWidth, EndHyphenEdit::NO_EDIT, in doLineBreakWithFallback()
364 mSumOfCharWidths - preBreakWidth, EndHyphenEdit::NO_EDIT, in doLineBreakWithFallback()
[all …]
DHyphenator.cpp212 EndHyphenEdit editForThisLine(HyphenationType type) { in editForThisLine()
215 return EndHyphenEdit::INSERT_HYPHEN; in editForThisLine()
217 return EndHyphenEdit::INSERT_ARMENIAN_HYPHEN; in editForThisLine()
219 return EndHyphenEdit::INSERT_MAQAF; in editForThisLine()
221 return EndHyphenEdit::INSERT_UCAS_HYPHEN; in editForThisLine()
223 return EndHyphenEdit::REPLACE_WITH_HYPHEN; in editForThisLine()
225 return EndHyphenEdit::INSERT_ZWJ_AND_HYPHEN; in editForThisLine()
228 return EndHyphenEdit::NO_EDIT; in editForThisLine()
DMeasurement.cpp209 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in getBounds()
216 const EndHyphenEdit pieceEndHyphen = in getBounds()
217 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in getBounds()
247 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, in getFontExtent()
DLayout.cpp195 EndHyphenEdit endHyphen, RunFlag runFlag) { in doLayout()
212 EndHyphenEdit endHyphen, float* advances, MinikinRect* bounds, in measureText()
247 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in doLayoutRunCached()
259 const EndHyphenEdit pieceEndHyphen = in doLayoutRunCached()
260 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in doLayoutRunCached()
318 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, in doLayoutWord()
DLineBreakerUtil.h108 EndHyphenEdit::NO_EDIT /* end hyphen edit */, pieces); in populateHyphenationPoints()
121 EndHyphenEdit endEdit = editForThisLine(hyph); in populateHyphenationPoints()
124 if (endEdit != EndHyphenEdit::NO_EDIT) { in populateHyphenationPoints()
DLayoutCore.cpp182 StartHyphenEdit inStartHyphen, EndHyphenEdit inEndHyphen, in addToHbBuffer()
188 const EndHyphenEdit endHyphen = in addToHbBuffer()
189 (static_cast<size_t>(scriptRunEnd) == count) ? inEndHyphen : EndHyphenEdit::NO_EDIT; in addToHbBuffer()
236 if (endHyphen == EndHyphenEdit::NO_EDIT) { in addToHbBuffer()
280 EndHyphenEdit endHyphen) { in LayoutPiece()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp74 const minikin::EndHyphenEdit endHyphen = paint->getEndHyphenEdit(); in doLayout()
93 const minikin::EndHyphenEdit endHyphen = paint->getEndHyphenEdit(); in getBounds()
107 const minikin::EndHyphenEdit endHyphen = paint->getEndHyphenEdit(); in measureText()
DPaint.h116 static_cast<minikin::EndHyphenEdit>(endHyphen)); in setEndHyphenEdit()
123 minikin::EndHyphenEdit getEndHyphenEdit() const { in getEndHyphenEdit()
/frameworks/minikin/tests/stresstest/
DMultithreadTest.cpp81 EndHyphenEdit::NO_EDIT); in thread_main()

12