Home
last modified time | relevance | path

Searched refs:LineBreakStyle (Results 1 – 15 of 15) sorted by relevance

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp38 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 …]
DMeasuredTextTest.cpp35 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 …]
DFontFamilyTest.cpp135 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()
DLineBreakerTestHelper.h104 virtual LineBreakStyle lineBreakStyle() const override { return LineBreakStyle::None; } in lineBreakStyle()
DGreedyLineBreakerTest.cpp95 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/
DLineBreakConfig.java194 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/
DWordBreaker.cpp36 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()
DWordBreaker.h56 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,
DLineBreakerUtil.h146 const LineBreakStyle newLineBreakStyle = run.lineBreakStyle(); in update()
163 LineBreakStyle getCurrentLineBreakStyle() const { return lineBreakStyle; } in getCurrentLineBreakStyle()
169 LineBreakStyle lineBreakStyle = LineBreakStyle::None;
DLocale.cpp322 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()
DLocale.h130 std::string getStringWithLineBreakOption(LineBreakStyle lbStyle,
/frameworks/minikin/include/minikin/
DMeasuredText.h70 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()
DLineBreakStyle.h24 enum class LineBreakStyle : uint8_t { enum
/frameworks/minikin/tests/perftests/
DWordBreaker.cpp31 wb.followingWithLocale(Locale("en-US"), LineBreakStyle::None, LineBreakWordStyle::None, 0); in BM_WordBreaker_English()
/frameworks/base/core/java/android/view/inputmethod/
DTextAppearanceInfo.java131 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()