/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 54 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 …]
|
D | MeasuredTextTest.cpp | 36 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/ |
D | WordBreaker.h | 56 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);
|
D | WordBreaker.cpp | 37 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()
|
D | LineBreakerUtil.h | 173 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()
|
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() 372 switch (lbWordStyle) { in getStringWithLineBreakOption()
|
D | GreedyLineBreaker.cpp | 475 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()
|
D | Locale.h | 131 LineBreakWordStyle lbWordStyle) const;
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 403 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/ |
D | MeasuredText.cpp | 65 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/ |
D | MeasuredText.java | 317 int lbWordStyle = LineBreakConfig.getResolvedLineBreakWordStyle(lineBreakConfig); in appendStyleRun() local 320 nAddStyleRun(mNativePtr, paint.getNativeInstance(), lbStyle, lbWordStyle, hyphenation, in appendStyleRun()
|