Home
last modified time | relevance | path

Searched refs:piece (Results 1 – 12 of 12) sorted by relevance

/frameworks/minikin/libs/minikin/
DMeasuredText.cpp73 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics()
74 compositor.setNextRange(piece, info.isRtl); in getMetrics()
77 textBuf.substr(context), piece - context.getStart(), mPaint, info.isRtl, in getMetrics()
81 precomputed->getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getMetrics()
111 for (const auto [context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureText()
112 layoutCache.getOrCreate(textBuf.substr(context), piece - context.getStart(), mPaint, in measureText()
155 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece()
157 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece()
159 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece()
161 compositor.setNextContext(piece, packHyphenEdit(startEdit, endEdit), info.isRtl); in measureHyphenPiece()
[all …]
DMeasurement.cpp213 for (const auto [context, piece] : LayoutSplitter(str, info.range, info.isRtl)) { in getBounds()
215 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in getBounds()
217 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in getBounds()
219 str.substr(context), piece - context.getStart(), paint, info.isRtl, in getBounds()
222 if (piece.getLength() == 1 && isWordSpace(str[piece.getStart()])) { in getBounds()
244 for (const auto [context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getFontExtent()
246 piece - context.getStart(), paint, info.isRtl, in getFontExtent()
DLayout.cpp255 for (const auto[context, piece] : LayoutSplitter(textBuf, range, isRtl)) { in doLayoutRunCached()
258 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in doLayoutRunCached()
260 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in doLayoutRunCached()
262 advances ? advances + (piece.getStart() - range.getStart()) : nullptr; in doLayoutRunCached()
265 textBuf.data() + context.getStart(), piece.getStart() - context.getStart(), in doLayoutRunCached()
266 piece.getLength(), context.getLength(), isRtl, paint, piece.getStart() - dstStart, in doLayoutRunCached()
/frameworks/minikin/tests/unittest/
DLayoutSplitterTest.cpp51 Range piece; in parseExpectString() local
62 piece.setStart(textPos); in parseExpectString()
65 piece.setEnd(textPos); in parseExpectString()
71 return std::make_pair(context, piece); in parseExpectString()
75 const Range& piece) { in buildDebugString() argument
82 if (i == piece.getStart()) { in buildDebugString()
85 if (i == piece.getEnd()) { in buildDebugString()
/frameworks/minikin/include/minikin/
DLayoutPieces.h99 const LayoutPiece& piece = it->second.mLayout; in getOrCreate() local
102 f(piece, paint, LayoutPiece::calculateBounds(piece, paint)); in getOrCreate()
104 f(piece, paint, bounds); in getOrCreate()
DLayoutCache.h166 LayoutPiece piece(text, range, dir, paint, startHyphen, endHyphen); in getOrCreate()
168 f(piece, paint, LayoutPiece::calculateBounds(piece, paint)); in getOrCreate()
170 f(piece, paint, MinikinRect::makeInvalid()); in getOrCreate()
/frameworks/base/tools/aapt2/util/
DUtil.cpp135 for (StringPiece piece : Tokenize(str, '.')) { in IsJavaNameImpl() local
137 if (!text::IsJavaIdentifier(piece)) { in IsJavaNameImpl()
154 for (StringPiece piece : Tokenize(str, '.')) { in IsAndroidNameImpl() local
155 if (piece.empty()) { in IsAndroidNameImpl()
159 const char first_character = piece.data()[0]; in IsAndroidNameImpl()
164 bool valid = std::all_of(piece.begin() + 1, piece.end(), [](const char c) -> bool { in IsAndroidNameImpl()
/frameworks/base/core/proto/android/service/
Druntime.proto33 // A piece of key / value debug information.
/frameworks/base/tools/aapt2/
DResourceParser.cpp57 static uint32_t ParseFormatTypeNoEnumsOrFlags(StringPiece piece) { in ParseFormatTypeNoEnumsOrFlags() argument
58 if (piece == "reference") { in ParseFormatTypeNoEnumsOrFlags()
60 } else if (piece == "string") { in ParseFormatTypeNoEnumsOrFlags()
62 } else if (piece == "integer") { in ParseFormatTypeNoEnumsOrFlags()
64 } else if (piece == "boolean") { in ParseFormatTypeNoEnumsOrFlags()
66 } else if (piece == "color") { in ParseFormatTypeNoEnumsOrFlags()
68 } else if (piece == "float") { in ParseFormatTypeNoEnumsOrFlags()
70 } else if (piece == "dimension") { in ParseFormatTypeNoEnumsOrFlags()
72 } else if (piece == "fraction") { in ParseFormatTypeNoEnumsOrFlags()
78 static uint32_t ParseFormatType(StringPiece piece) { in ParseFormatType() argument
[all …]
/frameworks/base/core/java/android/text/
DTextUtils.java1804 for (CharSequence piece : text) { in concat()
1805 if (piece instanceof Spanned) { in concat()
1813 for (CharSequence piece : text) { in concat()
1817 ssb.append(piece == null ? "null" : piece); in concat()
1822 for (CharSequence piece : text) { in concat()
1823 sb.append(piece); in concat()
/frameworks/base/packages/SystemUI/docs/
Dstatus-bar-data-pipeline.md55 View models should define the final piece of business logic mapping to UI logic.
Dscene.md13 1. Each scene is a standalone piece of UI; their code doesn't need to concern
49 * **Scene container** (or just "container") the root piece of UI (typically a