/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 38 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), LineBreakStyle::None, in TEST() 53 auto lbStyle = LineBreakStyle::None; in TEST() 72 auto lbStyle = LineBreakStyle::None; in TEST() 86 auto lbStyle = LineBreakStyle::None; in TEST() 104 auto lbStyle = LineBreakStyle::None; in TEST() 128 auto lbStyle = LineBreakStyle::None; in TEST() 154 auto lbStyle = LineBreakStyle::None; in TEST() 180 auto lbStyle = LineBreakStyle::None; in TEST() 228 auto lbStyle = LineBreakStyle::None; in TEST() 255 auto lbStyle = LineBreakStyle::None; in TEST() [all …]
|
D | MeasuredTextTest.cpp | 35 int lbStyle = (int)LineBreakStyle::None; in TEST() 68 int lbStyle = (int)LineBreakStyle::None; in TEST() 90 int lbStyle = (int)LineBreakStyle::None; in TEST() 108 int lbStyle = (int)LineBreakStyle::None; in TEST() 127 int lbStyle = (int)LineBreakStyle::None; in TEST() 164 int lbStyle = (int)LineBreakStyle::None; in TEST() 187 int lbStyle = (int)LineBreakStyle::None; in TEST() 218 int lbStyle = (int)LineBreakStyle::None; in TEST() 302 int lbStyle = (int)LineBreakStyle::None; in TEST() 392 int lbStyle = (int)LineBreakStyle::None; in TEST() [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() 146 createLocale("en").getStringWithLineBreakOption(LineBreakStyle::Loose, in TEST() 149 createLocale("en").getStringWithLineBreakOption(LineBreakStyle::Normal, in TEST() 152 createLocale("en").getStringWithLineBreakOption(LineBreakStyle::Strict, in TEST()
|
D | LineBreakerTestHelper.h | 104 virtual LineBreakStyle lineBreakStyle() const override { return LineBreakStyle::None; } in lineBreakStyle()
|
D | GreedyLineBreakerTest.cpp | 95 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForJapanese() 116 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForKorean() 137 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, 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() 197 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForBounds() 220 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in doLineBreakForLetterSpacing() 251 builder.addStyleRun(0, textBuffer.size(), std::move(paint), (int)LineBreakStyle::None, in TEST_F()
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | LineBreakConfig.java | 194 public @interface LineBreakStyle {} annotation in LineBreakConfig 276 private @LineBreakStyle int mLineBreakStyle = LineBreakConfig.LINE_BREAK_STYLE_UNSPECIFIED; 369 public @NonNull Builder setLineBreakStyle(@LineBreakStyle int lineBreakStyle) { in setLineBreakStyle() 437 public static @NonNull LineBreakConfig getLineBreakConfig(@LineBreakStyle int lineBreakStyle, in getLineBreakConfig() 450 private final @LineBreakStyle int mLineBreakStyle; 461 public LineBreakConfig(@LineBreakStyle int lineBreakStyle, in LineBreakConfig() 474 public @LineBreakStyle int getLineBreakStyle() { in getLineBreakStyle() 486 public static @LineBreakStyle int getResolvedLineBreakStyle(@Nullable LineBreakConfig config) { in getResolvedLineBreakStyle()
|
/frameworks/minikin/libs/minikin/ |
D | WordBreaker.cpp | 36 LineBreakStyle lbStyle, in createNewIterator() 38 MINIKIN_ASSERT(lbStyle != LineBreakStyle::Auto, in createNewIterator() 44 if (lbStyle == LineBreakStyle::NoBreak) { in createNewIterator() 76 LineBreakStyle lbStyle, in acquire() 78 if (lbStyle == LineBreakStyle::Auto) { in acquire() 79 lbStyle = locale.supportsScript('J', 'p', 'a', 'n') ? LineBreakStyle::Strict in acquire() 80 : LineBreakStyle::None; in acquire() 116 ssize_t WordBreaker::followingWithLocale(const Locale& locale, LineBreakStyle lbStyle, in followingWithLocale()
|
D | WordBreaker.h | 56 Slot(uint64_t localeId, LineBreakStyle lbStyle, LineBreakWordStyle lbWordStyle, in Slot() 71 LineBreakStyle lbStyle; 76 virtual Slot acquire(const Locale& locale, LineBreakStyle lbStyle, 85 Slot acquire(const Locale& locale, LineBreakStyle lbStyle, 148 ssize_t followingWithLocale(const Locale& locale, LineBreakStyle lbStyle,
|
D | LineBreakerUtil.h | 146 const LineBreakStyle newLineBreakStyle = run.lineBreakStyle(); in update() 163 LineBreakStyle getCurrentLineBreakStyle() const { return lineBreakStyle; } in getCurrentLineBreakStyle() 169 LineBreakStyle lineBreakStyle = LineBreakStyle::None;
|
D | Locale.cpp | 322 std::string Locale::getStringWithLineBreakOption(LineBreakStyle lbStyle, in getStringWithLineBreakOption() 328 if (lbStyle != LineBreakStyle::None || lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption() 333 if (lbStyle != LineBreakStyle::None) { in getStringWithLineBreakOption() 339 case LineBreakStyle::Loose: in getStringWithLineBreakOption() 346 case LineBreakStyle::Normal: in getStringWithLineBreakOption() 354 case LineBreakStyle::Strict: in getStringWithLineBreakOption()
|
D | Locale.h | 130 std::string getStringWithLineBreakOption(LineBreakStyle lbStyle,
|
/frameworks/minikin/include/minikin/ |
D | MeasuredText.h | 70 virtual LineBreakStyle lineBreakStyle() const = 0; 142 LineBreakStyle lineBreakStyle() const override { in lineBreakStyle() 143 return static_cast<LineBreakStyle>(mLineBreakStyle); in lineBreakStyle() 193 LineBreakStyle lineBreakStyle() const override { return LineBreakStyle::None; } in lineBreakStyle()
|
D | LineBreakStyle.h | 24 enum class LineBreakStyle : 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 | 131 private final @LineBreakConfig.LineBreakStyle int mLineBreakStyle; 469 public @LineBreakConfig.LineBreakStyle int getLineBreakStyle() { in getLineBreakStyle() 609 @LineBreakConfig.LineBreakStyle 789 public Builder setLineBreakStyle(@LineBreakConfig.LineBreakStyle int lineBreakStyle) { in setLineBreakStyle()
|