/frameworks/minikin/tests/unittest/ |
D | LayoutCacheTest.cpp | 55 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 …]
|
D | LayoutTest.cpp | 64 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 …]
|
D | MeasuredTextTest.cpp | 162 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 …]
|
D | GreedyLineBreakerTest.cpp | 100 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 …]
|
D | LineBreakerTestHelper.h | 78 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()
|
D | OptimalLineBreakerTest.cpp | 109 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 …]
|
D | LayoutCoreTest.cpp | 33 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in buildLayout()
|
/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 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);
|
D | Layout.h | 69 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,
|
D | MeasuredText.h | 59 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,
|
D | LayoutCache.h | 40 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in LayoutCacheKey() 99 StartHyphenEdit mStartHyphen; 137 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, F& f) { in getOrCreate()
|
D | LayoutCore.h | 48 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen);
|
D | LayoutPieces.h | 89 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in getOrCreate()
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 68 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 …]
|
D | GreedyLineBreaker.cpp | 57 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()
|
D | Layout.cpp | 49 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()
|
D | Hyphenator.cpp | 178 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()
|
D | LayoutCore.cpp | 246 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()
|
D | LineBreakerUtil.h | 89 StartHyphenEdit::NO_EDIT /* start hyphen edit */, in populateHyphenationPoints()
|
/frameworks/base/libs/hwui/hwui/ |
D | Paint.h | 95 static_cast<minikin::StartHyphenEdit>(startHyphen), in setStartHyphenEdit() 105 minikin::StartHyphenEdit getStartHyphenEdit() const { in getStartHyphenEdit()
|
D | MinikinUtils.cpp | 61 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in doLayout() 78 const minikin::StartHyphenEdit startHyphen = paint->getStartHyphenEdit(); in measureText()
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 78 Layout layout(text, Range(0, text.size()), Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in thread_main()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 373 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/ |
D | StaticLayout.java | 1264 @Paint.StartHyphenEdit int start, @Paint.EndHyphenEdit int end) { 1284 public @Paint.StartHyphenEdit int getStartHyphenEdit(int lineNumber) {
|
D | DynamicLayout.java | 1060 public @Paint.StartHyphenEdit int getStartHyphenEdit(int line) { in getStartHyphenEdit()
|