/frameworks/minikin/tests/unittest/ |
D | LayoutCacheTest.cpp | 56 EndHyphenEdit::NO_EDIT, layout1); in TEST() 60 EndHyphenEdit::NO_EDIT, layout2); 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 | 65 EndHyphenEdit::NO_EDIT); in TEST_F() 83 EndHyphenEdit::NO_EDIT); in TEST_F() 101 EndHyphenEdit::NO_EDIT); in TEST_F() 119 EndHyphenEdit::NO_EDIT); in TEST_F() 149 EndHyphenEdit::NO_EDIT); in TEST_F() 167 EndHyphenEdit::NO_EDIT); in TEST_F() 186 EndHyphenEdit::NO_EDIT); in TEST_F() 206 EndHyphenEdit::NO_EDIT); in TEST_F() 239 EndHyphenEdit::NO_EDIT); in TEST_F() 257 EndHyphenEdit::NO_EDIT); in TEST_F() [all …]
|
D | MeasuredTextTest.cpp | 162 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() 166 EndHyphenEdit::NO_EDIT); in TEST() 177 EndHyphenEdit::NO_EDIT); in TEST() 191 EndHyphenEdit::NO_EDIT); in TEST() 202 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() 236 StartHyphenEdit::NO_EDIT, EndHyphenEdit::NO_EDIT); in TEST() 240 EndHyphenEdit::NO_EDIT); in TEST() 251 EndHyphenEdit::NO_EDIT); in TEST() 265 EndHyphenEdit::NO_EDIT); in TEST() 276 EndHyphenEdit::NO_EDIT); in TEST() [all …]
|
D | GreedyLineBreakerTest.cpp | 101 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 308 constexpr EndHyphenEdit END_HYPHEN = EndHyphenEdit::INSERT_HYPHEN; in TEST_F() 309 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 583 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 630 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 668 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 717 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 769 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 801 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 858 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() [all …]
|
D | LineBreakerTestHelper.h | 78 StartHyphenEdit start, EndHyphenEdit end, in measureHyphenPiece() 92 EndHyphenEdit, Layout*) const {} in appendLayout() argument 106 EndHyphenEdit mEndEdit; 184 const EndHyphenEdit endEdit = endHyphenEdit(edit); in toString()
|
D | OptimalLineBreakerTest.cpp | 110 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 111 constexpr EndHyphenEdit END_HYPHEN = EndHyphenEdit::INSERT_HYPHEN; in TEST_F() 845 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 896 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 935 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 982 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 1032 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 1103 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 1191 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::NO_EDIT; in TEST_F() 1322 constexpr EndHyphenEdit NO_END_HYPHEN = EndHyphenEdit::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 | 73 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 uint32_t*, size_t> getHyphenString(EndHyphenEdit hyph) { in getHyphenString() 149 case EndHyphenEdit::REPLACE_WITH_HYPHEN: // fall through in getHyphenString() [all …]
|
D | Layout.h | 69 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in Layout() 81 EndHyphenEdit endHyphen, float* advances); 111 const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen); 118 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 124 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, 130 EndHyphenEdit endHyphen);
|
D | MeasuredText.h | 59 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 73 EndHyphenEdit /* endHyphen */, in measureHyphenPiece() argument 104 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 110 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, 148 StartHyphenEdit /* startHyphen */, EndHyphenEdit /* endHyphen */, in appendLayout() argument 196 EndHyphenEdit endHyphen);
|
D | LayoutCache.h | 40 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen) in LayoutCacheKey() 100 EndHyphenEdit mEndHyphen; 137 bool dir, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, F& f) { in getOrCreate()
|
D | LayoutPieces.h | 90 EndHyphenEdit endEdit, uint32_t paintId, F& f) const { 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() 115 const EndHyphenEdit endEdit = in measureHyphenPiece() 116 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece() 181 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in appendLayout() 196 const EndHyphenEdit endEdit = in appendLayout() 197 range.getEnd() == piece.getEnd() ? endHyphen : EndHyphenEdit::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 | 58 EndHyphenEdit endHyphen) in BreakPoint() 74 float remainingNextSumOfCharWidths, EndHyphenEdit thisLineEndHyphen, 133 EndHyphenEdit thisLineEndHyphen, in breakLineAt() 158 mSumOfCharWidths - mSumOfCharWidthsAtPrevWordBoundary, EndHyphenEdit::NO_EDIT, in tryLineBreakWithWordBreak() 218 EndHyphenEdit::NO_EDIT, nullptr); in tryLineBreakWithHyphenation() 247 EndHyphenEdit::NO_EDIT, nullptr); 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() 356 breakLineAt(mPrevWordBoundsOffset, mLineWidth, 0, 0, EndHyphenEdit::NO_EDIT, in process()
|
D | Layout.cpp | 50 EndHyphenEdit endHyphen) { in doLayout() 62 EndHyphenEdit endHyphen, float* advances) { in measureText() 75 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, in doLayoutRunCached() 85 const EndHyphenEdit pieceEndHyphen = in doLayoutRunCached() 86 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in doLayoutRunCached() 130 StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout, in doLayoutWord()
|
D | Hyphenator.cpp | 158 EndHyphenEdit editForThisLine(HyphenationType type) { in editForThisLine() 161 return EndHyphenEdit::INSERT_HYPHEN; in editForThisLine() 163 return EndHyphenEdit::INSERT_ARMENIAN_HYPHEN; in editForThisLine() 165 return EndHyphenEdit::INSERT_MAQAF; in editForThisLine() 167 return EndHyphenEdit::INSERT_UCAS_HYPHEN; in editForThisLine() 169 return EndHyphenEdit::REPLACE_WITH_HYPHEN; in editForThisLine() 171 return EndHyphenEdit::INSERT_ZWJ_AND_HYPHEN; in editForThisLine() 174 return EndHyphenEdit::NO_EDIT; in editForThisLine()
|
D | LayoutCore.cpp | 246 StartHyphenEdit inStartHyphen, EndHyphenEdit inEndHyphen, in addToHbBuffer() 252 const EndHyphenEdit endHyphen = in addToHbBuffer() 253 (static_cast<size_t>(scriptRunEnd) == count) ? inEndHyphen : EndHyphenEdit::NO_EDIT; in addToHbBuffer() 300 if (endHyphen == EndHyphenEdit::NO_EDIT) { in addToHbBuffer() 344 EndHyphenEdit endHyphen) { in LayoutPiece()
|
D | LineBreakerUtil.h | 94 EndHyphenEdit::NO_EDIT /* end hyphen edit */, pieces); in populateHyphenationPoints()
|
/frameworks/base/libs/hwui/hwui/ |
D | Paint.h | 108 static_cast<minikin::EndHyphenEdit>(endHyphen)); in setEndHyphenEdit() 115 minikin::EndHyphenEdit getEndHyphenEdit() const { in getEndHyphenEdit()
|
D | MinikinUtils.cpp | 62 const minikin::EndHyphenEdit endHyphen = paint->getEndHyphenEdit(); in doLayout() 79 const minikin::EndHyphenEdit endHyphen = paint->getEndHyphenEdit(); in measureText()
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 79 EndHyphenEdit::NO_EDIT); in thread_main()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 401 public @interface EndHyphenEdit {} annotation in Paint 1945 public @EndHyphenEdit int getEndHyphenEdit() { in getEndHyphenEdit() 1998 public void setEndHyphenEdit(@EndHyphenEdit int endHyphen) { in setEndHyphenEdit()
|
/frameworks/base/core/java/android/text/ |
D | StaticLayout.java | 1264 @Paint.StartHyphenEdit int start, @Paint.EndHyphenEdit int end) { 1296 public @Paint.EndHyphenEdit int getEndHyphenEdit(int lineNumber) {
|
D | DynamicLayout.java | 1068 public @Paint.EndHyphenEdit int getEndHyphenEdit(int line) { in getEndHyphenEdit()
|
D | TextLine.java | 1023 private int adjustEndHyphenEdit(int limit, @Paint.EndHyphenEdit int endHyphenEdit) {
|