/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 73 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 …]
|
D | Measurement.cpp | 213 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()
|
D | Layout.cpp | 255 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/ |
D | LayoutSplitterTest.cpp | 51 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/ |
D | LayoutPieces.h | 99 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()
|
D | LayoutCache.h | 166 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/ |
D | Util.cpp | 135 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/ |
D | runtime.proto | 33 // A piece of key / value debug information.
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser.cpp | 57 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/ |
D | TextUtils.java | 1804 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/ |
D | status-bar-data-pipeline.md | 55 View models should define the final piece of business logic mapping to UI logic.
|
D | scene.md | 13 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
|