Home
last modified time | relevance | path

Searched refs:lbStyle (Results 1 – 9 of 9) sorted by relevance

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp53 auto lbStyle = LineBreakStyle::None; in TEST() local
59 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
72 auto lbStyle = LineBreakStyle::None; in TEST() local
78 breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
86 auto lbStyle = LineBreakStyle::None; in TEST() local
92 EXPECT_EQ(4, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, in TEST()
104 auto lbStyle = LineBreakStyle::None; in TEST() local
112 breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
128 auto lbStyle = LineBreakStyle::None; in TEST() local
134 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
[all …]
DMeasuredTextTest.cpp35 int lbStyle = (int)LineBreakStyle::None; in TEST() local
42 builder.addStyleRun(0, 2, std::move(paint1), lbStyle, lbWordStyle, true /* can hyphenate */, in TEST()
47 builder.addStyleRun(4, 6, std::move(paint2), lbStyle, lbWordStyle, true /* can hyphenate */, in TEST()
68 int lbStyle = (int)LineBreakStyle::None; in TEST() local
74 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
90 int lbStyle = (int)LineBreakStyle::None; in TEST() local
96 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
108 int lbStyle = (int)LineBreakStyle::None; in TEST() local
114 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
127 int lbStyle = (int)LineBreakStyle::None; in TEST() local
[all …]
/frameworks/minikin/libs/minikin/
DWordBreaker.cpp36 LineBreakStyle lbStyle, in createNewIterator() argument
38 MINIKIN_ASSERT(lbStyle != LineBreakStyle::Auto, in createNewIterator()
44 if (lbStyle == LineBreakStyle::NoBreak) { in createNewIterator()
49 uloc_forLanguageTag(locale.getStringWithLineBreakOption(lbStyle, lbWordStyle).c_str(), in createNewIterator()
76 LineBreakStyle lbStyle, in acquire() argument
78 if (lbStyle == LineBreakStyle::Auto) { in acquire()
79 lbStyle = locale.supportsScript('J', 'p', 'a', 'n') ? LineBreakStyle::Strict in acquire()
86 if (i->localeId == id && i->lbStyle == lbStyle && i->lbWordStyle == lbWordStyle) { in acquire()
94 return {id, lbStyle, lbWordStyle, createNewIterator(locale, lbStyle, lbWordStyle)}; in acquire()
116 ssize_t WordBreaker::followingWithLocale(const Locale& locale, LineBreakStyle lbStyle, in followingWithLocale() argument
[all …]
DWordBreaker.h56 Slot(uint64_t localeId, LineBreakStyle lbStyle, LineBreakWordStyle lbWordStyle, in Slot()
59 lbStyle(lbStyle), in Slot()
71 LineBreakStyle lbStyle; member
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,
DLocale.cpp322 std::string Locale::getStringWithLineBreakOption(LineBreakStyle lbStyle, in getStringWithLineBreakOption() argument
328 if (lbStyle != LineBreakStyle::None || lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption()
333 if (lbStyle != LineBreakStyle::None) { in getStringWithLineBreakOption()
338 switch (lbStyle) { in getStringWithLineBreakOption()
DLocale.h130 std::string getStringWithLineBreakOption(LineBreakStyle lbStyle,
/frameworks/base/core/java/android/content/res/
DStringBlock.java387 int lbStyle = LineBreakConfig.LINE_BREAK_STYLE_UNSPECIFIED; in applyStyles() local
390 lbStyle = LineBreakConfig.LINE_BREAK_STYLE_NONE; in applyStyles()
392 lbStyle = LineBreakConfig.LINE_BREAK_STYLE_NORMAL; in applyStyles()
394 lbStyle = LineBreakConfig.LINE_BREAK_STYLE_LOOSE; in applyStyles()
396 lbStyle = LineBreakConfig.LINE_BREAK_STYLE_STRICT; in applyStyles()
415 if (lbStyle != LineBreakConfig.LINE_BREAK_STYLE_UNSPECIFIED in applyStyles()
418 new LineBreakConfig(lbStyle, lbWordStyle, in applyStyles()
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp65 jlong paintPtr, jint lbStyle, jint lbWordStyle, jboolean hyphenation, in nAddStyleRun() argument
71 ->addStyleRun(start, end, std::move(minikinPaint), lbStyle, lbWordStyle, hyphenation, in nAddStyleRun()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java316 int lbStyle = LineBreakConfig.getResolvedLineBreakStyle(lineBreakConfig); in appendStyleRun() local
320 nAddStyleRun(mNativePtr, paint.getNativeInstance(), lbStyle, lbWordStyle, hyphenation, in appendStyleRun()