Home
last modified time | relevance | path

Searched refs:lbWordStyle (Results 1 – 11 of 11) sorted by relevance

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp54 auto lbWordStyle = LineBreakWordStyle::None; in TEST() local
59 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
73 auto lbWordStyle = LineBreakWordStyle::None; in TEST() local
78 breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
87 auto lbWordStyle = LineBreakWordStyle::None; in TEST() local
92 EXPECT_EQ(4, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, in TEST()
105 auto lbWordStyle = LineBreakWordStyle::None; in TEST() local
112 breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
129 auto lbWordStyle = LineBreakWordStyle::None; in TEST() local
134 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), lbStyle, lbWordStyle, 0)); in TEST()
[all …]
DMeasuredTextTest.cpp36 int lbWordStyle = (int)LineBreakWordStyle::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()
69 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() local
74 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
91 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() local
96 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
109 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() local
114 builder.addStyleRun(0, text.size(), std::move(paint), lbStyle, lbWordStyle, in TEST()
128 int lbWordStyle = (int)LineBreakWordStyle::None; in TEST() local
[all …]
/frameworks/minikin/libs/minikin/
DWordBreaker.h56 Slot(uint64_t localeId, LineBreakStyle lbStyle, LineBreakWordStyle lbWordStyle, in Slot()
60 lbWordStyle(lbWordStyle), in Slot()
72 LineBreakWordStyle lbWordStyle; member
77 LineBreakWordStyle lbWordStyle) = 0;
86 LineBreakWordStyle lbWordStyle) override;
149 LineBreakWordStyle lbWordStyle, size_t from);
DWordBreaker.cpp37 LineBreakWordStyle lbWordStyle) { in createNewIterator() argument
40 MINIKIN_ASSERT(lbWordStyle != LineBreakWordStyle::Auto, in createNewIterator()
49 uloc_forLanguageTag(locale.getStringWithLineBreakOption(lbStyle, lbWordStyle).c_str(), in createNewIterator()
77 LineBreakWordStyle lbWordStyle) { in acquire() argument
86 if (i->localeId == id && i->lbStyle == lbStyle && i->lbWordStyle == lbWordStyle) { in acquire()
94 return {id, lbStyle, lbWordStyle, createNewIterator(locale, lbStyle, lbWordStyle)}; in acquire()
117 LineBreakWordStyle lbWordStyle, size_t from) { in followingWithLocale() argument
121 mIcuBreaker = mPool->acquire(locale, lbStyle, lbWordStyle); in followingWithLocale()
DLineBreakerUtil.h173 inline std::pair<LineBreakWordStyle, bool> resolveWordStyleAuto(LineBreakWordStyle lbWordStyle, in resolveWordStyleAuto() argument
176 if (lbWordStyle == LineBreakWordStyle::Auto) { in resolveWordStyleAuto()
187 return std::make_pair(lbWordStyle, false); in resolveWordStyleAuto()
250 LineBreakWordStyle lbWordStyle = wbTracker.getCurrentLineBreakWordStyle(); in updateLocaleIfNecessary() local
251 std::tie(lbWordStyle, retryWithPhraseWordBreak) = in updateLocaleIfNecessary()
252 resolveWordStyleAuto(lbWordStyle, localeList, forceWordStyleAutoToPhrase); in updateLocaleIfNecessary()
253 nextWordBreak = breaker.followingWithLocale(locale, run.lineBreakStyle(), lbWordStyle, in updateLocaleIfNecessary()
DLocale.cpp323 LineBreakWordStyle lbWordStyle) const { in getStringWithLineBreakOption()
328 if (lbStyle != LineBreakStyle::None || lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption()
367 if (lbWordStyle != LineBreakWordStyle::None) { in getStringWithLineBreakOption()
372 switch (lbWordStyle) { in getStringWithLineBreakOption()
DGreedyLineBreaker.cpp475 LineBreakWordStyle lbWordStyle = wbTracker.getCurrentLineBreakWordStyle(); in process() local
476 std::tie(lbWordStyle, retryWithPhraseWordBreak) = in process()
477 resolveWordStyleAuto(lbWordStyle, localeList, forceWordStyleAutoToPhrase); in process()
480 lbWordStyle, range.getStart()); in process()
DLocale.h131 LineBreakWordStyle lbWordStyle) const;
/frameworks/base/core/java/android/content/res/
DStringBlock.java403 int lbWordStyle = LineBreakConfig.LINE_BREAK_STYLE_UNSPECIFIED; in applyStyles() local
406 lbWordStyle = LineBreakConfig.LINE_BREAK_WORD_STYLE_NONE; in applyStyles()
408 lbWordStyle = LineBreakConfig.LINE_BREAK_WORD_STYLE_PHRASE; in applyStyles()
416 || lbWordStyle != LineBreakConfig.LINE_BREAK_WORD_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.java317 int lbWordStyle = LineBreakConfig.getResolvedLineBreakWordStyle(lineBreakConfig); in appendStyleRun() local
320 nAddStyleRun(mNativePtr, paint.getNativeInstance(), lbStyle, lbWordStyle, hyphenation, in appendStyleRun()