Searched refs:piece (Results 1 – 7 of 7) sorted by relevance
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 63 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics() 64 compositor.setNextRange(piece, info.isRtl); in getMetrics() 67 textBuf.substr(context), piece - context.getStart(), mPaint, info.isRtl, in getMetrics() 70 precomputed->getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getMetrics() 112 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece() 114 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece() 116 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece() 118 compositor.setNextContext(piece, packHyphenEdit(startEdit, endEdit), info.isRtl); in measureHyphenPiece() 120 piece - context.getStart(), mPaint, info.isRtl, in measureHyphenPiece() 192 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in appendLayout() [all …]
|
D | Layout.cpp | 81 for (const auto[context, piece] : LayoutSplitter(textBuf, range, isRtl)) { in doLayoutRunCached() 84 (piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT; in doLayoutRunCached() 86 (piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT; in doLayoutRunCached() 88 advances ? advances + (piece.getStart() - range.getStart()) : nullptr; in doLayoutRunCached() 90 piece.getStart() - context.getStart(), piece.getLength(), in doLayoutRunCached() 91 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/base/tools/aapt2/util/ |
D | Util.cpp | 130 for (const StringPiece& piece : Tokenize(str, '.')) { in IsJavaNameImpl() local 132 if (!text::IsJavaIdentifier(piece)) { in IsJavaNameImpl() 149 for (const StringPiece& piece : Tokenize(str, '.')) { in IsAndroidNameImpl() local 150 if (piece.empty()) { in IsAndroidNameImpl() 154 const char first_character = piece.data()[0]; in IsAndroidNameImpl() 159 bool valid = std::all_of(piece.begin() + 1, piece.end(), [](const char c) -> bool { in IsAndroidNameImpl()
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser.cpp | 49 static uint32_t ParseFormatTypeNoEnumsOrFlags(const StringPiece& piece) { in ParseFormatTypeNoEnumsOrFlags() argument 50 if (piece == "reference") { in ParseFormatTypeNoEnumsOrFlags() 52 } else if (piece == "string") { in ParseFormatTypeNoEnumsOrFlags() 54 } else if (piece == "integer") { in ParseFormatTypeNoEnumsOrFlags() 56 } else if (piece == "boolean") { in ParseFormatTypeNoEnumsOrFlags() 58 } else if (piece == "color") { in ParseFormatTypeNoEnumsOrFlags() 60 } else if (piece == "float") { in ParseFormatTypeNoEnumsOrFlags() 62 } else if (piece == "dimension") { in ParseFormatTypeNoEnumsOrFlags() 64 } else if (piece == "fraction") { in ParseFormatTypeNoEnumsOrFlags() 70 static uint32_t ParseFormatType(const StringPiece& piece) { in ParseFormatType() argument [all …]
|
/frameworks/base/core/proto/android/service/ |
D | runtime.proto | 33 // A piece of key / value debug information.
|
/frameworks/base/core/java/android/text/ |
D | TextUtils.java | 1703 for (CharSequence piece : text) { in concat() 1704 if (piece instanceof Spanned) { in concat() 1712 for (CharSequence piece : text) { in concat() 1716 ssb.append(piece == null ? "null" : piece); in concat() 1721 for (CharSequence piece : text) { in concat() 1722 sb.append(piece); in concat()
|