/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 147 const LineBreakWordStyle newLineBreakWordStyle = run.lineBreakWordStyle(); in update() 165 LineBreakWordStyle getCurrentLineBreakWordStyle() const { return lineBreakWordStyle; } in getCurrentLineBreakWordStyle() 170 LineBreakWordStyle lineBreakWordStyle = LineBreakWordStyle::None; 173 inline std::pair<LineBreakWordStyle, bool> resolveWordStyleAuto(LineBreakWordStyle lbWordStyle, in resolveWordStyleAuto() 176 if (lbWordStyle == LineBreakWordStyle::Auto) { in resolveWordStyleAuto() 178 return std::make_pair(LineBreakWordStyle::Phrase, false); in resolveWordStyleAuto() 180 return std::make_pair(LineBreakWordStyle::Phrase, false); in resolveWordStyleAuto() 182 return std::make_pair(LineBreakWordStyle::None, true); in resolveWordStyleAuto() 184 return std::make_pair(LineBreakWordStyle::None, false); in resolveWordStyleAuto() 250 LineBreakWordStyle lbWordStyle = wbTracker.getCurrentLineBreakWordStyle(); in updateLocaleIfNecessary()
|
D | WordBreaker.h | 56 Slot(uint64_t localeId, LineBreakStyle lbStyle, LineBreakWordStyle lbWordStyle, in Slot() 72 LineBreakWordStyle lbWordStyle; 77 LineBreakWordStyle lbWordStyle) = 0; 86 LineBreakWordStyle lbWordStyle) override; 149 LineBreakWordStyle lbWordStyle, size_t from);
|
D | WordBreaker.cpp | 37 LineBreakWordStyle lbWordStyle) { in createNewIterator() 40 MINIKIN_ASSERT(lbWordStyle != LineBreakWordStyle::Auto, in createNewIterator() 77 LineBreakWordStyle lbWordStyle) { in acquire() 117 LineBreakWordStyle lbWordStyle, size_t from) { in followingWithLocale()
|
D | Locale.cpp | 323 LineBreakWordStyle lbWordStyle) const { in getStringWithLineBreakOption() 328 if (lbStyle != LineBreakStyle::None || lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption() 367 if (lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption() 373 case LineBreakWordStyle::Phrase: in getStringWithLineBreakOption()
|
D | GreedyLineBreaker.cpp | 321 if (targetRun->lineBreakWordStyle() == LineBreakWordStyle::None) { in doLineBreakWithFallback() 328 targetRun->lineBreakStyle(), LineBreakWordStyle::None, in doLineBreakWithFallback() 475 LineBreakWordStyle lbWordStyle = wbTracker.getCurrentLineBreakWordStyle(); in process()
|
D | Locale.h | 131 LineBreakWordStyle lbWordStyle) const;
|
D | OptimalLineBreaker.cpp | 195 run.lineBreakWordStyle() == LineBreakWordStyle::None) { in populateDesperatePoints() 209 run.lineBreakStyle(), LineBreakWordStyle::None, in populateDesperatePoints()
|
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 39 LineBreakWordStyle::None, 0)); // after "hello " in TEST() 54 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 73 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 87 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 105 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 129 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 155 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 181 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 229 auto lbWordStyle = LineBreakWordStyle::None; in TEST() 256 auto lbWordStyle = LineBreakWordStyle::None; in TEST() [all …]
|
D | MeasuredTextTest.cpp | 36 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 69 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 91 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 109 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 128 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 165 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 188 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 219 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 303 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() 393 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() [all …]
|
D | GreedyLineBreakerTest.cpp | 86 LineBreakWordStyle lbwStyle, const std::string& lang, in doLineBreakForJapanese() 107 LineBreakWordStyle lbwStyle, const std::string& lang, in doLineBreakForKorean() 138 (int)LineBreakWordStyle::None, true, false); in doLineBreak() 160 (int)LineBreakStyle::None, (int)LineBreakWordStyle::None, in doLineBreakWithNoHyphenSpan() 167 (int)LineBreakStyle::None, (int)LineBreakWordStyle::None, in doLineBreakWithNoHyphenSpan() 174 (int)LineBreakStyle::None, (int)LineBreakWordStyle::None, in doLineBreakWithNoHyphenSpan() 198 (int)LineBreakWordStyle::None, true, false); in doLineBreakForBounds() 221 (int)LineBreakWordStyle::None, true, false); in doLineBreakForLetterSpacing() 252 (int)LineBreakWordStyle::None, true, false); in TEST_F() 1942 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() [all …]
|
D | FontFamilyTest.cpp | 135 LineBreakStyle::None, LineBreakWordStyle::None)); in TEST() 137 LineBreakStyle::Loose, LineBreakWordStyle::None)); in TEST() 139 LineBreakStyle::Normal, LineBreakWordStyle::None)); in TEST() 141 LineBreakStyle::Strict, LineBreakWordStyle::None)); in TEST() 144 LineBreakStyle::None, LineBreakWordStyle::Phrase)); in TEST() 147 LineBreakWordStyle::Phrase)); in TEST() 150 LineBreakWordStyle::Phrase)); in TEST() 153 LineBreakWordStyle::Phrase)); in TEST()
|
D | LineBreakerTestHelper.h | 106 virtual LineBreakWordStyle lineBreakWordStyle() const override { in lineBreakWordStyle() 107 return LineBreakWordStyle::None; in lineBreakWordStyle()
|
D | OptimalLineBreakerTest.cpp | 95 LineBreakWordStyle lbwStyle, const std::string& lang, in doLineBreakForJapanese() 2177 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2193 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2210 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2228 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2246 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2265 doLineBreakForJapanese(textBuf, LineBreakWordStyle::None, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2291 doLineBreakForJapanese(textBuf, LineBreakWordStyle::Phrase, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2307 doLineBreakForJapanese(textBuf, LineBreakWordStyle::Phrase, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() 2324 doLineBreakForJapanese(textBuf, LineBreakWordStyle::Phrase, "ja-JP", LINE_WIDTH); in TEST_F_WITH_FLAGS() [all …]
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | LineBreakConfig.java | 269 public @interface LineBreakWordStyle {} annotation in LineBreakConfig 279 private @LineBreakWordStyle int mLineBreakWordStyle = 389 public @NonNull Builder setLineBreakWordStyle(@LineBreakWordStyle int lineBreakWordStyle) { in setLineBreakWordStyle() 438 @LineBreakWordStyle int lineBreakWordStyle) { in getLineBreakConfig() 451 private final @LineBreakWordStyle int mLineBreakWordStyle; 462 @LineBreakWordStyle int lineBreakWordStyle, in LineBreakConfig() 508 public @LineBreakWordStyle int getLineBreakWordStyle() { in getLineBreakWordStyle() 520 public static @LineBreakWordStyle int getResolvedLineBreakWordStyle( in getResolvedLineBreakWordStyle()
|
/frameworks/minikin/include/minikin/ |
D | MeasuredText.h | 73 virtual LineBreakWordStyle lineBreakWordStyle() const = 0; 145 LineBreakWordStyle lineBreakWordStyle() const override { in lineBreakWordStyle() 146 return static_cast<LineBreakWordStyle>(mLineBreakWordStyle); in lineBreakWordStyle() 194 LineBreakWordStyle lineBreakWordStyle() const override { return LineBreakWordStyle::None; } in lineBreakWordStyle()
|
D | LineBreakStyle.h | 35 enum class LineBreakWordStyle : uint8_t { enum
|
/frameworks/minikin/tests/perftests/ |
D | WordBreaker.cpp | 31 wb.followingWithLocale(Locale("en-US"), LineBreakStyle::None, LineBreakWordStyle::None, 0); in BM_WordBreaker_English()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | TextAppearanceInfo.java | 136 private final @LineBreakConfig.LineBreakWordStyle int mLineBreakWordStyle; 478 public @LineBreakConfig.LineBreakWordStyle int getLineBreakWordStyle() { in getLineBreakWordStyle() 611 @LineBreakConfig.LineBreakWordStyle 801 @LineBreakConfig.LineBreakWordStyle int lineBreakWordStyle) { in setLineBreakWordStyle()
|