/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, float* advances, MinikinExtent* extents, 51 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, 62 virtual float measureHyphenPiece(const U16StringPiece& /* text */, in measureHyphenPiece() argument 85 void getMetrics(const U16StringPiece& text, float* advances, MinikinExtent* extents, in getMetrics() 92 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, in getBounds() 100 float measureHyphenPiece(const U16StringPiece& text, const Range& range, in measureHyphenPiece() 122 void getMetrics(const U16StringPiece& /* unused */, float* advances, in getMetrics() argument 128 std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds() argument 182 void buildLayout(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, 185 MinikinRect getBounds(const U16StringPiece& textBuf, const Range& range); [all …]
|
D | Layout.h | 88 void doLayout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 91 void doLayoutWithPrecomputedPieces(const U16StringPiece& str, const Range& range, 95 static std::pair<float, MinikinRect> getBoundsWithPrecomputedPieces(const U16StringPiece& str, 101 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 163 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 | LayoutPieces.h | 42 void insert(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, in insert() 54 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, in getOrCreate()
|
D | LayoutCache.h | 32 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey() 138 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate()
|
D | LineBreaker.h | 121 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
|
D | AndroidLineBreakerHelper.h | 95 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks()
|
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 42 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator); 70 const U16StringPiece& textBuf, // A text buffer. in populateHyphenationPoints() 90 U16StringPiece firstText = textBuf.substr(hyphenPart.first); in populateHyphenationPoints() 91 U16StringPiece secondText = textBuf.substr(hyphenPart.second); in populateHyphenationPoints() 151 CharProcessor(const U16StringPiece& text) { breaker.setText(text.data(), text.size()); } in CharProcessor()
|
D | MeasuredText.cpp | 27 void MeasuredText::measure(const U16StringPiece& textBuf, bool computeHyphenation, in measure() 58 void MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, in buildLayout() 66 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) { in getBounds()
|
D | OptimalLineBreaker.cpp | 207 OptimizeContext populateCandidates(const U16StringPiece& textBuf, const MeasuredText& measured, in populateCandidates() 273 LineBreakResult computeBreaks(const OptimizeContext& context, const U16StringPiece& textBuf, 284 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, 288 MinikinExtent computeMaxExtent(const U16StringPiece& textBuf, const MeasuredText& measured, 294 MinikinExtent LineBreakOptimizer::computeMaxExtent(const U16StringPiece& textBuf, in computeMaxExtent() 308 const U16StringPiece& textBuf, const MeasuredText& measured, in finishBreaksOptimal() 334 const U16StringPiece& textBuf, in computeBreaks() 420 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineOptimal()
|
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 | 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 | Layout.cpp | 228 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout() 243 void Layout::doLayoutWithPrecomputedPieces(const U16StringPiece& textBuf, const Range& range, in doLayoutWithPrecomputedPieces() 258 std::pair<float, MinikinRect> Layout::getBoundsWithPrecomputedPieces(const U16StringPiece& textBuf, in getBoundsWithPrecomputedPieces() 273 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText() 289 float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, in doLayoutRunCached() 344 LayoutAppendFunctor(const U16StringPiece& textBuf, const Range& range, in LayoutAppendFunctor() 386 const U16StringPiece& mTextBuf; 410 const U16StringPiece textBuf(buf, bufSize); in doLayoutWord()
|
D | GreedyLineBreaker.cpp | 41 GreedyLineBreaker(const U16StringPiece& textBuf, const MeasuredText& measured, in GreedyLineBreaker() 118 const U16StringPiece& mTextBuf; 384 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
|
D | BidiUtils.h | 47 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
|
D | BidiUtils.cpp | 75 BidiText::BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags) in BidiText()
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 55 virtual void getMetrics(const U16StringPiece&, float* advances, MinikinExtent*, in getMetrics() argument 60 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds() argument 68 virtual float measureHyphenPiece(const U16StringPiece&, const Range& range, in measureHyphenPiece() argument 157 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString()
|
/frameworks/base/core/jni/ |
D | android_text_MeasuredParagraph.cpp | 91 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nBuildNativeMeasuredParagraph() 117 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetBounds()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 56 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout() 74 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
|
/frameworks/minikin/tests/util/ |
D | UnicodeUtils.h | 33 std::string utf16ToUtf8(const U16StringPiece& u16String);
|
D | UnicodeUtils.cpp | 122 std::string utf16ToUtf8(const U16StringPiece& u16String) { in utf16ToUtf8()
|