/frameworks/minikin/include/minikin/ |
D | U16StringPiece.h | 26 class U16StringPiece { 28 U16StringPiece() : mData(nullptr), mLength(0) {} in U16StringPiece() function 29 U16StringPiece(const uint16_t* data, uint32_t length) : mData(data), mLength(length) {} in U16StringPiece() function 30 U16StringPiece(const std::vector<uint16_t>& v) // Intentionally not explicit. in U16StringPiece() function 33 U16StringPiece(uint16_t const (&data)[length]) : mData(data), mLength(length) {} in U16StringPiece() function 35 U16StringPiece(const U16StringPiece&) = default; 36 U16StringPiece& operator=(const U16StringPiece&) = default; 46 inline U16StringPiece substr(const Range& range) const { in substr() 47 return U16StringPiece(mData + range.getStart(), range.getLength()); in substr()
|
D | MeasuredText.h | 48 virtual void getMetrics(const U16StringPiece& text, std::vector<float>* advances, 51 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, 53 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 56 virtual void appendLayout(const U16StringPiece& text, const Range& range, 70 virtual float measureHyphenPiece(const U16StringPiece& /* text */, in measureHyphenPiece() argument 93 void getMetrics(const U16StringPiece& text, std::vector<float>* advances, 96 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, 99 MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 102 void appendLayout(const U16StringPiece& text, const Range& range, const Range& contextRange, 109 float measureHyphenPiece(const U16StringPiece& text, const Range& range, [all …]
|
D | Layout.h | 68 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout() 79 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 110 void doLayout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 116 static float doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl,
|
D | Hyphenator.h | 183 void hyphenate(const U16StringPiece& word, HyphenationType* out) const; 188 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate() 221 void hyphenateWithNoPatterns(const U16StringPiece& word, HyphenationType* out) const; 227 HyphenationType alphabetLookup(uint16_t* alpha_codes, const U16StringPiece& word) const;
|
D | FontCollection.h | 45 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, 49 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, in itemize()
|
D | LayoutCache.h | 39 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey() 136 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate()
|
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 42 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator); 65 const U16StringPiece& textBuf, // A text buffer. in populateHyphenationPoints() 85 U16StringPiece firstText = textBuf.substr(hyphenPart.first); in populateHyphenationPoints() 86 U16StringPiece secondText = textBuf.substr(hyphenPart.second); in populateHyphenationPoints() 146 CharProcessor(const U16StringPiece& text) { breaker.setText(text.data(), text.size()); } in CharProcessor()
|
D | LayoutSplitter.h | 57 LayoutSplitter(const U16StringPiece& textBuf, const Range& range, bool isRtl) in LayoutSplitter() 71 const U16StringPiece& textBuf = mParent->mTextBuf; 93 const U16StringPiece& textBuf = mParent->mTextBuf; in iterator() 119 U16StringPiece mTextBuf;
|
D | MeasuredText.cpp | 56 void StyleRun::getMetrics(const U16StringPiece& textBuf, std::vector<float>* advances, in getMetrics() 106 float StyleRun::measureHyphenPiece(const U16StringPiece& textBuf, const Range& range, in measureHyphenPiece() 127 void MeasuredText::measure(const U16StringPiece& textBuf, bool computeHyphenation, in measure() 175 void StyleRun::appendLayout(const U16StringPiece& textBuf, const Range& range, in appendLayout() 228 std::pair<float, MinikinRect> StyleRun::getBounds(const U16StringPiece& textBuf, const Range& range, in getBounds() 258 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent() 273 Layout MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, in buildLayout() 293 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) const { in getBounds() 311 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent()
|
D | LayoutUtils.h | 38 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset); 47 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset);
|
D | LineBreakerUtil.cpp | 28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate() 40 const U16StringPiece word = str.substr(Range(wordStart, i)); in hyphenate()
|
D | LayoutUtils.cpp | 51 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getPrevWordBreakForCache() 68 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getNextWordBreakForCache()
|
D | Layout.cpp | 48 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout() 60 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText() 73 float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, in doLayoutRunCached() 135 const U16StringPiece textBuf(buf, bufSize); in doLayoutWord()
|
D | OptimalLineBreaker.cpp | 207 OptimizeContext populateCandidates(const U16StringPiece& textBuf, const MeasuredText& measured, in populateCandidates() 274 LineBreakResult computeBreaks(const OptimizeContext& context, const U16StringPiece& textBuf, 285 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, 292 const U16StringPiece& textBuf, const MeasuredText& measured, in finishBreaksOptimal() 318 const U16StringPiece& textBuf, in computeBreaks() 404 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineOptimal()
|
D | GreedyLineBreaker.h | 28 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured,
|
D | OptimalLineBreaker.h | 26 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
|
D | LineBreaker.cpp | 24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines()
|
D | Hyphenator.cpp | 120 void Hyphenator::hyphenate(const U16StringPiece& word, HyphenationType* out) const { in hyphenate() 225 static inline HyphenationType getHyphTypeForArabic(const U16StringPiece& word, size_t location) { in getHyphTypeForArabic() 250 void Hyphenator::hyphenateWithNoPatterns(const U16StringPiece& word, HyphenationType* out) const { in hyphenateWithNoPatterns() 292 const U16StringPiece& word) const { in alphabetLookup()
|
D | GreedyLineBreaker.cpp | 41 GreedyLineBreaker(const U16StringPiece& textBuf, const MeasuredText& measured, in GreedyLineBreaker() 119 const U16StringPiece& mTextBuf; 388 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
|
D | BidiUtils.h | 47 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 58 virtual void getMetrics(const U16StringPiece&, std::vector<float>* advances, LayoutPieces*, in getMetrics() argument 64 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds() argument 70 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent() argument 77 virtual float measureHyphenPiece(const U16StringPiece&, const Range& range, in measureHyphenPiece() argument 90 virtual void appendLayout(const U16StringPiece&, const Range&, const Range&, in appendLayout() argument 177 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString()
|
D | LayoutUtilsTest.cpp | 32 EXPECT_EQ(expected_breakpoint, getNextWordBreakForCache(U16StringPiece(buf, size), offset_in)) in ExpectNextWordBreakForCache() 43 EXPECT_EQ(expected_breakpoint, getPrevWordBreakForCache(U16StringPiece(buf, size), offset_in)) in ExpectPrevWordBreakForCache()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 58 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout() 76 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
|
/frameworks/minikin/tests/util/ |
D | UnicodeUtils.h | 33 std::string utf16ToUtf8(const U16StringPiece& u16String);
|
/frameworks/base/core/jni/android/graphics/text/ |
D | MeasuredText.cpp | 88 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nBuildMeasuredText() 118 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetBounds()
|