/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 153 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString() local 154 cursor += substr.size(); in PseudolocalizeStyledString() 157 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString() 180 const StringPiece16 substr = text.substr(cursor, parent_span->last_char - cursor + 1); in PseudolocalizeStyledString() local 181 cursor += substr.size(); in PseudolocalizeStyledString() 184 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString() 202 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); in PseudolocalizeStyledString() 256 result += localizer_.Text(original_string.substr(start, len)); in Visit() 260 result += original_string.substr(section.start, section.end - section.start); in Visit() 267 result += localizer_.Text(original_string.substr(start, len)); in Visit()
|
/frameworks/minikin/tests/unittest/ |
D | StringPieceTest.cpp | 86 TEST(StringPieceTest, substr) { in TEST() argument 88 EXPECT_EQ("", s.substr(0, 0)); in TEST() 89 EXPECT_EQ("a", s.substr(0, 1)); in TEST() 90 EXPECT_EQ("abc", s.substr(0, 3)); in TEST() 91 EXPECT_EQ("cde", s.substr(2, 3)); in TEST() 92 EXPECT_EQ("", s.substr(2, 0)); in TEST() 93 EXPECT_EQ("", s.substr(5, 0)); in TEST()
|
/frameworks/compile/mclinker/lib/Support/ |
D | Path.cpp | 161 return Path(m_PathName.substr(0, end_pos)); in parent_path() 169 return Path(m_PathName.substr(pos)); in filename() 177 Path result_path(m_PathName.substr(begin_pos, end_pos - begin_pos)); in stem() 185 return Path(m_PathName.substr(pos)); in extension()
|
/frameworks/base/cmds/incident_helper/src/ |
D | ih_util.cpp | 38 return s.substr(head, tail - head + 1); in trim() 71 std::string word = (*func) (line.substr(base, found - base)); in split() 139 record.push_back(trimDefault(line.substr(lastIndex, idx - lastIndex))); in parseRecordByColumns() 151 record.push_back(trimDefault(line.substr(beginning, lineSize - beginning))); in parseRecordByColumns() 186 line->assign(trimDefault(line->substr(j))); in stripPrefix() 207 line->assign(trimDefault(line->substr(0, j+1))); in stripSuffix() 214 std::string head = line->substr(0); in behead() 218 std::string head = line->substr(0, found); in behead() 220 line->assign(line->substr(found)); in behead()
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2ParamUtils.cpp | 73 C2_LOG(VERBOSE) << name.substr(0, word_start) << "|" in camelCaseToDashed() 74 << name.substr(word_start, ix - word_start) << "[" in camelCaseToDashed() 75 << name.substr(ix, 1) << "]" << name.substr(ix + 1) in camelCaseToDashed()
|
/frameworks/base/tools/streaming_proto/ |
D | string_utils.cpp | 76 return str.substr(start, end-start); in file_base_name() 100 string part = str.substr(base, found - base); in split() 119 return str.substr(i); in stripPrefix()
|
/frameworks/native/cmds/installd/ |
D | system_properties.h | 40 std::string key = line.substr(0, equals_pos); in Load() 41 std::string value = line.substr(equals_pos + 1, in Load()
|
/frameworks/native/cmds/lshal/ |
D | utils.cpp | 33 components.push_back(s.substr(startPos, matchPos - startPos)); in split() 38 components.push_back(s.substr(startPos)); in split()
|
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 77 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator); in populateHyphenationPoints() 85 U16StringPiece firstText = textBuf.substr(hyphenPart.first); in populateHyphenationPoints() 86 U16StringPiece secondText = textBuf.substr(hyphenPart.second); in populateHyphenationPoints()
|
D | StringPiece.h | 40 inline StringPiece substr(size_t from, size_t length) const { in substr() function 100 return mString.substr(searchFrom, mCurrent - searchFrom); in next()
|
/frameworks/rs/script_api/ |
D | Scanner.cpp | 158 *documentation = s->substr(first, last - first); in parseDocumentation() 170 p->testOption = s.substr(optionStart + 2); in parseArgString() 187 p->name = s.substr(nameStart + 1); in parseArgString()
|
D | Utilities.cpp | 104 out += in.substr(start); in stripHtml() 107 out += in.substr(start, lt - start); in stripHtml() 173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma); in makeAttributeTag()
|
D | Specification.cpp | 130 const string trimmed = type.substr(0, last); in getVectorSizeAndBaseType() 190 minValue = testOption.substr(6, pComma - 6); in parseParameterDefinition() 191 maxValue = testOption.substr(pComma + 1, pParen - pComma - 1); in parseParameterDefinition() 198 smallerParameter = testOption.substr(6, pParen - 6); in parseParameterDefinition() 205 compatibleTypeIndex = findCType(testOption.substr(11, pParen - 11)); in parseParameterDefinition() 285 mDeprecatedMessage = value.substr(pComma + 2); in scanDocumentationTags() 566 mPrecisionLimit = value.substr(8, pParen - 8); in parseTest()
|
/frameworks/native/services/vr/performanced/ |
D | task.cpp | 105 return android::base::Trim(line.substr(offset + field.size() + 1)); in GetStatusField() 125 std::string key = line.substr(0, offset); in ReadStatusFields() 126 std::string value = android::base::Trim(line.substr(offset + 1)); in ReadStatusFields()
|
/frameworks/compile/mclinker/lib/LD/ |
D | Relocator.cpp | 59 sect_name = sect_name.substr(sect_name.find('.', /*pos=*/1)); in issueUndefRef() 68 if (sect_name.substr(0, 5) != ".text") { in issueUndefRef()
|
D | GNUArchiveReader.cpp | 172 member_name.assign(name_field.substr(0, pos).str()); in readMemberHeader() 179 name_field.substr(begin, end - begin).getAsInteger(10, name_offset); in readMemberHeader() 185 name_field.substr(begin, end - begin).getAsInteger(10, pNestedOffset); in readMemberHeader() 193 pArchiveRoot.getStrTable().substr(begin, end - begin - 1)); in readMemberHeader()
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil.cpp | 42 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace() 51 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
|
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
D | BackgroundDexOptServiceIntegrationTests.java | 170 final String substr = "[status="; in getCompilerFilter() local 172 int startIndex = line.indexOf(substr); in getCompilerFilter() 176 startIndex += substr.length(); in getCompilerFilter()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 62 BasicStringPiece<TChar> substr(size_t start, size_t len = npos) const; 63 BasicStringPiece<TChar> substr(BasicStringPiece<TChar>::const_iterator begin, 136 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr(size_t start, size_t len) const { in substr() function 148 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr( in substr() function
|
/frameworks/compile/libbcc/tools/bcc/ |
D | Main.cpp | 174 std::string name = plan.substr(0, found); in extractSourcesAndSlots() 178 std::istringstream iss(plan.substr(found + 1)); in extractSourcesAndSlots() 183 std::string sourceStr = s.substr(0, found); in extractSourcesAndSlots() 184 std::string slotStr = s.substr(found + 1); in extractSourcesAndSlots()
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.cpp | 83 char* substr = strtok(name, "_"); in parseFileName() local 84 while (substr != nullptr && index < 3) { in parseFileName() 85 result[index] = StrToInt64(substr); in parseFileName() 87 substr = strtok(nullptr, "_"); in parseFileName() 100 output->mIsHistory = (substr != nullptr && strcmp("history", substr) == 0); in parseFileName()
|
/frameworks/base/startop/view_compiler/ |
D | util.cc | 34 return filename.substr(start, end - start); in FindLayoutNameFromFilename()
|
/frameworks/base/tools/dump-coverage/ |
D | dump_coverage.cc | 156 command = options.substr(0, loc_delim); in SplitOnColon() 157 args = options.substr(loc_delim + 1, options.length()); in SplitOnColon()
|
/frameworks/base/tools/aapt2/filter/ |
D | AbiFilter.cpp | 47 const std::string& path_abi = path.substr(kLibPrefixLen, abi_end - kLibPrefixLen); in Keep()
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | SystemPropertiesParser.cpp | 190 line = line.substr(1, line.size() - 2); // trim [] in Parse() 196 name = line.substr(0, index); in Parse() 197 value = trim(line.substr(index + 4), DEFAULT_WHITESPACE); in Parse()
|