Home
last modified time | relevance | path

Searched refs:U16StringPiece (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/minikin/include/minikin/
DU16StringPiece.h26 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()
DMeasuredText.h48 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 …]
DLayout.h88 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,
DHyphenator.h183 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;
DLayoutPieces.h42 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()
DLayoutCache.h32 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()
DLineBreaker.h121 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
DAndroidLineBreakerHelper.h95 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks()
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h42 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()
DMeasuredText.cpp27 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()
DOptimalLineBreaker.cpp207 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()
DLineBreakerUtil.cpp28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate()
40 const U16StringPiece word = str.substr(Range(wordStart, i)); in hyphenate()
DGreedyLineBreaker.h28 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured,
DOptimalLineBreaker.h26 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
DLineBreaker.cpp24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines()
DHyphenator.cpp120 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()
DLayout.cpp228 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()
DGreedyLineBreaker.cpp41 GreedyLineBreaker(const U16StringPiece& textBuf, const MeasuredText& measured, in GreedyLineBreaker()
118 const U16StringPiece& mTextBuf;
384 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
DBidiUtils.h47 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
DBidiUtils.cpp75 BidiText::BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags) in BidiText()
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h55 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/
Dandroid_text_MeasuredParagraph.cpp91 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/
DMinikinUtils.cpp56 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout()
74 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
/frameworks/minikin/tests/util/
DUnicodeUtils.h33 std::string utf16ToUtf8(const U16StringPiece& u16String);
DUnicodeUtils.cpp122 std::string utf16ToUtf8(const U16StringPiece& u16String) { in utf16ToUtf8()

12