Searched refs:substr (Results 1 - 25 of 81) sorted by relevance

1234

/frameworks/native/cmds/installd/
H A Dsystem_properties.h40 std::string key = line.substr(0, equals_pos);
41 std::string value = line.substr(equals_pos + 1,
/frameworks/native/cmds/lshal/
H A Dutils.cpp33 components.push_back(s.substr(startPos, matchPos - startPos));
38 components.push_back(s.substr(startPos));
/frameworks/minikin/tests/unittest/
H A DStringPieceTest.cpp86 TEST(StringPieceTest, substr) {
88 EXPECT_EQ("", s.substr(0, 0));
89 EXPECT_EQ("a", s.substr(0, 1));
90 EXPECT_EQ("abc", s.substr(0, 3));
91 EXPECT_EQ("cde", s.substr(2, 3));
92 EXPECT_EQ("", s.substr(2, 0));
93 EXPECT_EQ("", s.substr(5, 0));
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp152 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); local
153 cursor += substr.size();
156 std::string new_substr = util::Utf16ToUtf8(substr);
179 const StringPiece16 substr = text.substr(cursor, parent_span->last_char - cursor + 1); local
180 cursor += substr.size();
183 std::string new_substr = util::Utf16ToUtf8(substr);
201 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor)));
255 result += localizer_.Text(original_string.substr(star
[all...]
/frameworks/base/tools/streaming_proto/
H A Dstring_utils.cpp76 return str.substr(start, end-start);
100 string part = str.substr(base, found - base);
119 return str.substr(i);
/frameworks/base/libs/androidfw/tests/
H A DCommonHelpers.cpp36 SetTestDataPath(arg.substr(strlen("--testdata=")));
/frameworks/base/tools/aapt2/filter/
H A DAbiFilter.cpp47 const std::string& path_abi = path.substr(kLibPrefixLen, abi_end - kLibPrefixLen);
/frameworks/base/tools/aapt2/text/
H A DPrinter.cpp50 const StringPiece str_to_copy = str.substr(remaining_str_begin, new_line_iter);
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp161 return Path(m_PathName.substr(0, end_pos));
169 return Path(m_PathName.substr(pos));
177 Path result_path(m_PathName.substr(begin_pos, end_pos - begin_pos));
185 return Path(m_PathName.substr(pos));
H A DDemangle.cpp23 if (pName.substr(0, 2) != "_Z")
/frameworks/minikin/libs/minikin/
H A DLineBreakerUtil.cpp40 const U16StringPiece word = str.substr(Range(wordStart, i));
H A DLineBreakerUtil.h82 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator);
90 U16StringPiece firstText = textBuf.substr(hyphenPart.first);
91 U16StringPiece secondText = textBuf.substr(hyphenPart.second);
H A DStringPiece.h40 inline StringPiece substr(size_t from, size_t length) const { function in class:minikin::StringPiece
100 return mString.substr(searchFrom, mCurrent - searchFrom);
/frameworks/compile/mclinker/lib/LD/
H A DRelocator.cpp59 sect_name = sect_name.substr(sect_name.find('.', /*pos=*/1));
68 if (sect_name.substr(0, 5) != ".text") {
/frameworks/native/services/vr/performanced/
H A Dtask.cpp105 return Trim(line.substr(offset + field.size() + 1));
125 std::string key = line.substr(0, offset);
126 std::string value = Trim(line.substr(offset + 1));
/frameworks/rs/script_api/
H A DScanner.cpp158 *documentation = s->substr(first, last - first);
170 p->testOption = s.substr(optionStart + 2);
187 p->name = s.substr(nameStart + 1);
H A DUtilities.cpp104 out += in.substr(start);
107 out += in.substr(start, lt - start);
173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma);
/frameworks/base/tools/aapt2/xml/
H A DXmlUtil.cpp42 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size());
51 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size());
/frameworks/base/tools/aapt2/
H A DNameMangler.h88 std::string new_name = out_name->substr(pivot + 1);
/frameworks/minikin/include/minikin/
H A DU16StringPiece.h46 inline U16StringPiece substr(const Range& range) const { function in class:minikin::U16StringPiece
/frameworks/base/cmds/incident_helper/src/
H A Dih_util.cpp38 return s.substr(head, tail - head + 1);
71 std::string word = (*func) (line.substr(base, found - base));
139 record.push_back(trimDefault(line.substr(lastIndex, idx - lastIndex)));
151 record.push_back(trimDefault(line.substr(beginning, lineSize - beginning)));
186 line->assign(trimDefault(line->substr(j)));
207 line->assign(trimDefault(line->substr(0, j+1)));
214 std::string head = line->substr(0);
218 std::string head = line->substr(0, found);
220 line->assign(line->substr(found));
/frameworks/native/cmds/lshal/libprocpartition/
H A Dprocpartition.cpp76 std::string partition = (backslash != std::string::npos) ? path.substr(1, backslash - 1) : path;
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
H A DBackgroundDexOptServiceIntegrationTests.java176 final String substr = "[status=";
178 int startIndex = line.indexOf(substr);
182 startIndex += substr.length();
/frameworks/base/cmds/incident_helper/src/parsers/
H A DSystemPropertiesParser.cpp190 line = line.substr(1, line.size() - 2); // trim []
196 name = line.substr(0, index);
197 value = trim(line.substr(index + 4), DEFAULT_WHITESPACE);
/frameworks/base/cmds/statsd/src/storage/
H A DStorageManager.cpp52 char* substr = strtok(name, "_"); local
53 while (substr != nullptr && index < 3) {
54 result[index] = StrToInt64(substr);
56 substr = strtok(nullptr, "_");

Completed in 2288 milliseconds

1234