Home
last modified time | relevance | path

Searched refs:U16StringPiece (Results 1 – 25 of 40) 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, 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 …]
DLayout.h68 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,
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;
DFontCollection.h45 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()
DLayoutCache.h39 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/
DLineBreakerUtil.h42 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()
DLayoutSplitter.h57 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;
DMeasuredText.cpp56 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()
DLayoutUtils.h38 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset);
47 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset);
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()
DLayoutUtils.cpp51 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getPrevWordBreakForCache()
68 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getNextWordBreakForCache()
DLayout.cpp48 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()
DOptimalLineBreaker.cpp207 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()
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()
DGreedyLineBreaker.cpp41 GreedyLineBreaker(const U16StringPiece& textBuf, const MeasuredText& measured, in GreedyLineBreaker()
119 const U16StringPiece& mTextBuf;
388 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
DBidiUtils.h47 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h58 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()
DLayoutUtilsTest.cpp32 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/
DMinikinUtils.cpp58 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout()
76 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
/frameworks/minikin/tests/util/
DUnicodeUtils.h33 std::string utf16ToUtf8(const U16StringPiece& u16String);
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp88 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nBuildMeasuredText()
118 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetBounds()

12