Home
last modified time | relevance | path

Searched refs:U16StringPiece (Results 1 – 25 of 50) 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.h79 virtual void getMetrics(const U16StringPiece& text, std::vector<float>* advances,
83 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
85 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
88 virtual LineMetrics getLineMetrics(const U16StringPiece& text, const Range& range,
91 virtual void appendLayout(const U16StringPiece& text, const Range& range,
97 virtual float measureText(const U16StringPiece& text) const = 0;
107 virtual float measureHyphenPiece(const U16StringPiece& /* text */, in measureHyphenPiece() argument
152 void getMetrics(const U16StringPiece& text, std::vector<float>* advances,
156 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
159 MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
[all …]
DLayout.h89 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout()
97 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout()
108 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, in measureText()
116 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, in measureText()
124 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
178 void doLayout(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
185 static float doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl,
DHyphenator.h183 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const = 0;
188 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate()
233 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const override;
238 void hyphenate(const U16StringPiece& word, std::vector<HyphenationType>* out) const { in hyphenate()
255 void hyphenateWithNoPatterns(const U16StringPiece& word, HyphenationType* out) const;
261 HyphenationType alphabetLookup(uint16_t* alpha_codes, const U16StringPiece& word) const;
DMeasurement.h36 void getBounds(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
40 MinikinExtent getFontExtent(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
DDebug.h31 class U16StringPiece; variable
37 std::string toUtf8(const U16StringPiece& text);
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h59 virtual void getMetrics(const U16StringPiece&, std::vector<float>* advances, in getMetrics() argument
66 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& /* text */, in getBounds() argument
72 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent() argument
77 virtual LineMetrics getLineMetrics(const U16StringPiece& text, const Range& range, in getLineMetrics()
85 virtual float measureHyphenPiece(const U16StringPiece&, const Range& range, in measureHyphenPiece() argument
98 virtual void appendLayout(const U16StringPiece&, const Range&, const Range&, in appendLayout() argument
102 virtual float measureText(const U16StringPiece&) const { return 0; } in measureText() argument
193 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString()
/frameworks/minikin/libs/minikin/
DScriptUtils.h40 ScriptText(const U16StringPiece& textBuf, uint32_t start, uint32_t end) in ScriptText()
43 explicit ScriptText(const U16StringPiece& textBuf) in ScriptText()
81 U16StringPiece mTextBuf;
84 static std::pair<uint32_t, hb_script_t> getScriptRun(U16StringPiece text, Range range,
DLineBreakerUtil.h44 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator);
60 inline Range trimTrailingLineEndSpaces(const U16StringPiece& textBuf, const Range& range) { in trimTrailingLineEndSpaces()
76 const U16StringPiece& textBuf, // A text buffer. in populateHyphenationPoints()
99 U16StringPiece firstText = textBuf.substr(hyphenPart.first); in populateHyphenationPoints()
100 U16StringPiece secondText = textBuf.substr(hyphenPart.second); in populateHyphenationPoints()
126 first += run.measureText(U16StringPiece(str, strSize)); in populateHyphenationPoints()
131 second += run.measureText(U16StringPiece(str, strSize)); in populateHyphenationPoints()
241 CharProcessor(const U16StringPiece& text) { breaker.setText(text.data(), text.size()); } in CharProcessor()
DLayoutUtils.h38 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset);
47 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset);
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.cpp65 void StyleRun::getMetrics(const U16StringPiece& textBuf, std::vector<float>* advances, in getMetrics()
106 float StyleRun::measureText(const U16StringPiece& textBuf) const { in measureText()
149 float StyleRun::measureHyphenPiece(const U16StringPiece& textBuf, const Range& range, in measureHyphenPiece()
170 void MeasuredText::measure(const U16StringPiece& textBuf, bool computeHyphenation, in measure()
225 void StyleRun::appendLayout(const U16StringPiece& textBuf, const Range& range, in appendLayout()
278 std::pair<float, MinikinRect> StyleRun::getBounds(const U16StringPiece& textBuf, const Range& range, in getBounds()
309 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent()
339 LineMetrics StyleRun::getLineMetrics(const U16StringPiece& textBuf, const Range& range, in getLineMetrics()
354 Layout MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, in buildLayout()
374 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) const { in getBounds()
[all …]
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.cpp58 uint32_t getPrevWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getPrevWordBreakForCache()
75 uint32_t getNextWordBreakForCache(const U16StringPiece& textBuf, uint32_t offset) { in getNextWordBreakForCache()
DLayout.cpp50 void adjustGlyphLetterSpacingEdge(const U16StringPiece& textBuf, const MinikinPaint& paint, in adjustGlyphLetterSpacingEdge()
99 float adjustAdvanceLetterSpacingEdge(const U16StringPiece& textBuf, const Range& range, in adjustAdvanceLetterSpacingEdge()
193 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout()
204 U16StringPiece substr = textBuf.substr(range); in doLayout()
210 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText()
245 float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, in doLayoutRunCached()
324 const U16StringPiece textBuf(buf, bufSize); in doLayoutWord()
DScriptUtils.cpp33 static hb_codepoint_t decodeUtf16(U16StringPiece text, Range range, uint32_t pos) { in decodeUtf16()
57 std::pair<uint32_t, hb_script_t> ScriptText::getScriptRun(U16StringPiece text, Range range, in getScriptRun()
DOptimalLineBreaker.cpp189 std::vector<DesperateBreak> populateDesperatePoints(const U16StringPiece& textBuf, in populateDesperatePoints()
263 OptimizeContext populateCandidates(const U16StringPiece& textBuf, const MeasuredText& measured, in populateCandidates()
350 LineBreakResult computeBreaks(const OptimizeContext& context, const U16StringPiece& textBuf,
361 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
369 const U16StringPiece& textBuf, const MeasuredText& measured, in finishBreaksOptimal()
414 const U16StringPiece& textBuf, in computeBreaks()
523 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,
DU16StringPiece.cpp25 uint32_t U16StringPiece::codePointAt(uint32_t pos) const { in codePointAt()
DLineBreaker.cpp24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines()
DHyphenator.cpp113 virtual void hyphenate(const U16StringPiece& word, HyphenationType* out) const override { in hyphenate()
173 void HyphenatorCXX::hyphenate(const U16StringPiece& word, HyphenationType* out) const { in hyphenate()
279 static inline HyphenationType getHyphTypeForArabic(const U16StringPiece& word, size_t location) { in getHyphTypeForArabic()
304 void HyphenatorCXX::hyphenateWithNoPatterns(const U16StringPiece& word, in hyphenateWithNoPatterns()
347 const U16StringPiece& word) const { in alphabetLookup()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp70 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout()
91 const minikin::U16StringPiece textBuf(buf, bufSize); in getBounds()
104 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
120 const minikin::U16StringPiece textBuf(buf, bufSize); in getFontExtent()
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp88 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nBuildMeasuredText()
120 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetBounds()
140 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetExtent()
/frameworks/minikin/fuzz/hyphenator_fuzzer/
Dhyphenator_fuzzer.cpp71 U16StringPiece generateStringPiece(FuzzedDataProvider* fdp) { in generateStringPiece()
84 return U16StringPiece(v); in generateStringPiece()

12