/frameworks/native/cmds/installd/ |
H A D | system_properties.h | 40 std::string key = line.substr(0, equals_pos); 41 std::string value = line.substr(equals_pos + 1,
|
/frameworks/native/cmds/lshal/ |
H A D | utils.cpp | 33 components.push_back(s.substr(startPos, matchPos - startPos)); 38 components.push_back(s.substr(startPos));
|
/frameworks/minikin/tests/unittest/ |
H A D | StringPieceTest.cpp | 86 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 D | PseudolocaleGenerator.cpp | 152 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 D | string_utils.cpp | 76 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 D | CommonHelpers.cpp | 36 SetTestDataPath(arg.substr(strlen("--testdata=")));
|
/frameworks/base/tools/aapt2/filter/ |
H A D | AbiFilter.cpp | 47 const std::string& path_abi = path.substr(kLibPrefixLen, abi_end - kLibPrefixLen);
|
/frameworks/base/tools/aapt2/text/ |
H A D | Printer.cpp | 50 const StringPiece str_to_copy = str.substr(remaining_str_begin, new_line_iter);
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | Path.cpp | 161 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 D | Demangle.cpp | 23 if (pName.substr(0, 2) != "_Z")
|
/frameworks/minikin/libs/minikin/ |
H A D | LineBreakerUtil.cpp | 40 const U16StringPiece word = str.substr(Range(wordStart, i));
|
H A D | LineBreakerUtil.h | 82 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator); 90 U16StringPiece firstText = textBuf.substr(hyphenPart.first); 91 U16StringPiece secondText = textBuf.substr(hyphenPart.second);
|
H A D | StringPiece.h | 40 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 D | Relocator.cpp | 59 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 D | task.cpp | 105 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 D | Scanner.cpp | 158 *documentation = s->substr(first, last - first); 170 p->testOption = s.substr(optionStart + 2); 187 p->name = s.substr(nameStart + 1);
|
H A D | Utilities.cpp | 104 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 D | XmlUtil.cpp | 42 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 D | NameMangler.h | 88 std::string new_name = out_name->substr(pivot + 1);
|
/frameworks/minikin/include/minikin/ |
H A D | U16StringPiece.h | 46 inline U16StringPiece substr(const Range& range) const { function in class:minikin::U16StringPiece
|
/frameworks/base/cmds/incident_helper/src/ |
H A D | ih_util.cpp | 38 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 D | procpartition.cpp | 76 std::string partition = (backslash != std::string::npos) ? path.substr(1, backslash - 1) : path;
|
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
H A D | BackgroundDexOptServiceIntegrationTests.java | 176 final String substr = "[status="; 178 int startIndex = line.indexOf(substr); 182 startIndex += substr.length();
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
H A D | SystemPropertiesParser.cpp | 190 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 D | StorageManager.cpp | 52 char* substr = strtok(name, "_"); local 53 while (substr != nullptr && index < 3) { 54 result[index] = StrToInt64(substr); 56 substr = strtok(nullptr, "_");
|