Home
last modified time | relevance | path

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

12

/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp55 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST()
59 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST()
78 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout1); in TEST()
80 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout2); in TEST()
86 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout1); in TEST()
88 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout2); in TEST()
94 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout1); in TEST()
96 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout2); in TEST()
102 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout1); in TEST()
104 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, layout2); in TEST()
[all …]
DLayoutTest.cpp64 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
82 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
100 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
118 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
148 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
166 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
185 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
205 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
238 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
256 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
[all …]
DMeasuredTextTest.cpp162 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST()
165 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
176 layout = mt->buildLayout(text, Range(0, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
190 layout = mt->buildLayout(text, Range(1, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
202 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST()
236 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST()
239 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
250 layout = mt->buildLayout(text, Range(0, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
264 layout = mt->buildLayout(text, Range(1, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
275 layout = mt->buildLayout(text, Range(7, 7), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
[all …]
DGreedyLineBreakerTest.cpp100 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
307 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
582 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
584 constexpr StartHyphenEdit START_HYPHEN = StartHyphenEdit::INSERT_HYPHEN; in TEST_F()
629 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
667 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
716 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
768 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
800 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
857 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
[all …]
DLineBreakerTestHelper.h78 StartHyphenEdit start, EndHyphenEdit end, in measureHyphenPiece()
91 const LayoutPieces&, const MinikinPaint&, uint32_t, StartHyphenEdit, in appendLayout() argument
105 StartHyphenEdit mStartEdit;
183 const StartHyphenEdit startEdit = startHyphenEdit(edit); in toString()
DOptimalLineBreakerTest.cpp109 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
844 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
846 constexpr StartHyphenEdit START_HYPHEN = StartHyphenEdit::INSERT_HYPHEN; in TEST_F()
895 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
934 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
981 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
1031 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
1102 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
1190 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
1321 constexpr StartHyphenEdit NO_START_HYPHEN = StartHyphenEdit::NO_EDIT; in TEST_F()
[all …]
DLayoutCoreTest.cpp33 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayout()
/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 uint32_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.h69 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in Layout()
80 const MinikinPaint& paint, StartHyphenEdit startHyphen,
111 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
118 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
124 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout,
129 const MinikinPaint& paint, StartHyphenEdit startHyphen,
DMeasuredText.h59 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
72 StartHyphenEdit /* startHyphen */, in measureHyphenPiece() argument
104 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
110 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
148 StartHyphenEdit /* startHyphen */, EndHyphenEdit /* endHyphen */, in appendLayout() argument
195 const MinikinPaint& paint, StartHyphenEdit startHyphen,
DLayoutCache.h40 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in LayoutCacheKey()
99 StartHyphenEdit mStartHyphen;
137 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, F& f) { in getOrCreate()
DLayoutCore.h48 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
DLayoutPieces.h89 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in getOrCreate()
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp68 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, compositor); in getMetrics()
71 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getMetrics()
107 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in measureHyphenPiece()
113 const StartHyphenEdit startEdit = in measureHyphenPiece()
114 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece()
181 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in appendLayout()
194 const StartHyphenEdit startEdit = in appendLayout()
195 range.getStart() == piece.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in appendLayout()
239 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getBounds()
269 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT, paintId, in getExtent()
[all …]
DGreedyLineBreaker.cpp57 BreakPoint(uint32_t offset, float lineWidth, StartHyphenEdit startHyphen, in BreakPoint()
75 StartHyphenEdit nextLineStartHyphen);
107 StartHyphenEdit mStartHyphenEdit = StartHyphenEdit::NO_EDIT;
134 StartHyphenEdit nextLineStartHyphen) { in breakLineAt()
159 StartHyphenEdit::NO_EDIT); // No hyphen modification. in tryLineBreakWithWordBreak()
215 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation()
244 const StartHyphenEdit nextLineStartHyphenEdit = editForNextLine(hyph); in tryLineBreakWithHyphenation()
269 EndHyphenEdit::NO_EDIT, StartHyphenEdit::NO_EDIT); in doLineBreakWithGraphemeBounds()
281 breakLineAt(range.getEnd(), mLineWidth, 0, 0, EndHyphenEdit::NO_EDIT, StartHyphenEdit::NO_EDIT); in doLineBreakWithGraphemeBounds()
357 StartHyphenEdit::NO_EDIT); in process()
DLayout.cpp49 const MinikinPaint& paint, StartHyphenEdit startHyphen, in doLayout()
61 const MinikinPaint& paint, StartHyphenEdit startHyphen, in measureText()
75 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in doLayoutRunCached()
83 const StartHyphenEdit pieceStartHyphen = in doLayoutRunCached()
84 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in doLayoutRunCached()
130 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, in doLayoutWord()
DHyphenator.cpp178 StartHyphenEdit editForNextLine(HyphenationType type) { in editForNextLine()
181 return StartHyphenEdit::INSERT_HYPHEN; in editForNextLine()
183 return StartHyphenEdit::INSERT_ZWJ; in editForNextLine()
186 return StartHyphenEdit::NO_EDIT; in editForNextLine()
DLayoutCore.cpp246 StartHyphenEdit inStartHyphen, EndHyphenEdit inEndHyphen, in addToHbBuffer()
249 const StartHyphenEdit startHyphen = in addToHbBuffer()
250 (scriptRunStart == 0) ? inStartHyphen : StartHyphenEdit::NO_EDIT; in addToHbBuffer()
289 if (startHyphen == StartHyphenEdit::NO_EDIT) { in addToHbBuffer()
343 const MinikinPaint& paint, StartHyphenEdit startHyphen, in LayoutPiece()
DLineBreakerUtil.h89 StartHyphenEdit::NO_EDIT /* start hyphen edit */, in populateHyphenationPoints()
/frameworks/base/libs/hwui/hwui/
DPaint.h95 static_cast<minikin::StartHyphenEdit>(startHyphen), in setStartHyphenEdit()
105 minikin::StartHyphenEdit getStartHyphenEdit() const { in getStartHyphenEdit()
DMinikinUtils.cpp61 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in doLayout()
78 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in measureText()
/frameworks/minikin/tests/stresstest/
DMultithreadTest.cpp78 Layout layout(text, Range(0, text.size()), Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in thread_main()
/frameworks/base/graphics/java/android/graphics/
DPaint.java373 public @interface StartHyphenEdit {} annotation in Paint
1933 public @StartHyphenEdit int getStartHyphenEdit() { in getStartHyphenEdit()
1972 public void setStartHyphenEdit(@StartHyphenEdit int startHyphen) { in setStartHyphenEdit()
/frameworks/base/core/java/android/text/
DStaticLayout.java1264 @Paint.StartHyphenEdit int start, @Paint.EndHyphenEdit int end) {
1284 public @Paint.StartHyphenEdit int getStartHyphenEdit(int lineNumber) {
DDynamicLayout.java1060 public @Paint.StartHyphenEdit int getStartHyphenEdit(int line) { in getStartHyphenEdit()

12