/system/tools/hidl/c2hal/ |
D | main.cpp | 52 auto package = val.substr(0, index); in addPackageRootToMap() 53 auto path = val.substr(index + 1); in addPackageRootToMap() 69 return prefix == base.substr(0, prefix.size()); in isPathPrefix() 80 auto packagePath = package.substr(0, index); in applyPackageRootPath() 81 auto packageVersion = package.substr(index + 1); in applyPackageRootPath() 89 packagePath = packagePath.substr(rootPackage.size() + 1); in applyPackageRootPath()
|
D | AST.cpp | 173 std::string path = mPackage.substr(0, mPackage.find_first_of('@')); in isolateGlobalInterface() 174 std::string name = path.substr(path.find_last_of('.') + 1); in isolateGlobalInterface() 321 std::string partial = path.substr(0, slashPos); in MakeParentHierarchy()
|
/system/tools/hidl/utils/ |
D | StringHelper.cpp | 91 copy = copy.substr(maxmatch.length()); in Tokenize() 162 in.substr(in.size() - suffix.size()) == suffix; in EndsWith() 167 in.substr(0, prefix.size()) == prefix; in StartsWith() 172 return in.substr(0, in.size() - suffix.size()); in RTrim() 180 return in.substr(prefix.size()); in LTrim() 189 copy = copy.substr(0, copy.size() - suffix.size()); in RTrimAll() 198 copy = copy.substr(prefix.size()); in LTrimAll() 211 components->push_back(s.substr(startPos, matchPos - startPos)); in SplitString() 216 components->push_back(s.substr(startPos)); in SplitString()
|
D | Formatter.cpp | 127 output(out.substr(start)); in operator <<() 140 output(out.substr(start, pos - start + 1)); in operator <<() 191 std::string newText = text.substr(0, matchPos); in output() 195 newText.append(text.substr(startPos, matchPos - startPos)); in output() 198 newText.append(text.substr(startPos)); in output()
|
/system/netd/server/ |
D | ControllersTest.cpp | 207 #define DELETE_SUBSTRING(substr, str) { \ in TEST_F() argument 208 size_t start = (str).find((substr)); \ in TEST_F() 210 (str).erase(start, strlen((substr))); \ in TEST_F() 211 ASSERT_EQ(std::string::npos, (str).find((substr))); \ in TEST_F()
|
/system/extras/multinetwork/ |
D | httpurl.cpp | 54 parameters->host = std::string(args.arg1).substr(strlen(HTTP_PREFIX)); in parseUrl() 57 parameters->path = parameters->host.substr(first_slash); in parseUrl() 72 parameters->hostname = parameters->host.substr(1, closing_bracket - 1); in parseUrl() 80 parameters->port = parameters->host.substr(closing_bracket + 2); in parseUrl() 85 parameters->port = parameters->host.substr(first_colon + 1); in parseUrl() 86 parameters->hostname = parameters->host.substr(0, first_colon); in parseUrl()
|
/system/update_engine/payload_generator/ |
D | mapfile_filesystem.cc | 100 line.substr(delim + 1, last_delim - (delim + 1)).as_string(); in GetFiles() 106 base::StringToUint64(blocks.substr(0, dash), &block_start) && in GetFiles() 107 base::StringToUint64(blocks.substr(dash + 1), &block_end)) { in GetFiles() 137 mapped_file.name = line.substr(0, last_delim).as_string(); in GetFiles()
|
/system/core/storaged/ |
D | storaged_info.cpp | 141 string str = buffer.substr(EXT_CSD_REV_IDX, 2); in report_debugfs() 150 str = buffer.substr(EXT_PRE_EOL_INFO_IDX, 2); in report_debugfs() 155 str = buffer.substr(EXT_DEVICE_LIFE_TIME_EST_A_IDX, 2); in report_debugfs() 160 str = buffer.substr(EXT_DEVICE_LIFE_TIME_EST_B_IDX, 2); in report_debugfs()
|
/system/extras/preopt2cachename/ |
D | preopt2cachename.cpp | 58 std::string apk_name = file_location.substr(file_location_start + 1, in ExtractAPKName() 78 cache_file += file_location.substr(initial_position, apk_position); in SystemBFilenameToCacheFile() 98 std::string extension(file_location.substr(pos)); in SystemBFilenameToCacheFile()
|
/system/libvintf/ |
D | KernelConfigParser.cpp | 79 std::string key = mRemaining.substr(0, equalPos); in processRemaining() 80 std::string value = mRemaining.substr(equalPos + 1); in processRemaining() 84 mError << "Duplicated key in configs: " << mRemaining.substr(0, equalPos) << "\n"; in processRemaining()
|
D | parse_string.cpp | 37 components.push_back(s.substr(startPos, matchPos - startPos)); in SplitString() 42 components.push_back(s.substr(startPos)); in SplitString() 148 return parseKernelConfigInt(s.substr(0, pos), &range->first) in parseRange() 149 && parseKernelConfigInt(s.substr(pos + 1), &range->second); in parseRange()
|
/system/tools/aidl/ |
D | options_unittest.cpp | 155 EXPECT_EQ(string{kCompileCommandIncludePath}.substr(2), in TEST() 157 EXPECT_EQ(string{kCompileDepFile}.substr(2), options->dep_file_name_); in TEST() 167 EXPECT_EQ(string{kCompileCommandIncludePath}.substr(2), in TEST() 169 EXPECT_EQ(string{kCompileDepFile}.substr(2), options->dep_file_name_); in TEST()
|
/system/core/base/ |
D | parsenetaddress.cpp | 42 *host = address.substr(1, (address.find("]:") - 1)); in ParseNetAddress() 43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress()
|
D | strings.cpp | 41 result.push_back(s.substr(base, found - base)); in Split() 80 return s.substr(start_index, end_index - start_index + 1); in Trim()
|
/system/extras/simpleperf/ |
D | tracing.cpp | 293 name = s.substr(start, i - start); in ParseTracingField() 296 value = s.substr(start, i - start); in ParseTracingField() 303 field.name = value.substr(0, pos); in ParseTracingField() 335 format.name = android::base::Trim(s.substr(pos + strlen("name:"))); in LoadTracingFormatsFromEventFiles() 342 strtoull(s.substr(pos + strlen("ID:")).c_str(), nullptr, 10); in LoadTracingFormatsFromEventFiles() 407 trace_type.system = type->name.substr(0, pos); in GetTracingData() 408 trace_type.name = type->name.substr(pos + 1); in GetTracingData()
|
D | read_apk.cpp | 171 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2)); in SplitUrlInApk()
|
D | event_type.cpp | 155 event_type_name = event_type_str.substr(0, comm_pos); in ParseEventType() 156 modifier = event_type_str.substr(comm_pos + 1); in ParseEventType()
|
/system/core/adb/ |
D | line_printer.cpp | 39 result = result.substr(0, elide_size) in ElideMiddle() 41 + result.substr(result.size() - elide_size, elide_size); in ElideMiddle()
|
/system/libhidl/transport/ |
D | ServiceManagement.cpp | 77 in.substr(in.size() - suffix.size()) == suffix; in endsWith() 82 in.substr(0, prefix.size()) == prefix; in startsWith() 95 cmdline = cmdline.substr(idx + 1); in binaryName() 116 std::string newName = processName.substr(secondDot + 1, in tryShortenProcessName() 244 auto libFileName = line.substr(spacePos + 1); in fetchPidsForPassthroughLibraries() 269 std::string packageAndVersion = fqName.substr(0, idx); in openLibs() 270 std::string ifaceName = fqName.substr(idx + strlen("::")); in openLibs()
|
/system/core/init/ |
D | devices.cpp | 76 *result = path.substr(start, length); in FindPciDevicePrefix() 100 *result = path.substr(start, length); in FindVbdDevicePrefix() 309 device = device.substr(devices_platform_prefix.length()); in GetBlockDeviceSymlinks() 311 device = device.substr(devices_prefix.length()); in GetBlockDeviceSymlinks() 344 links.emplace_back(link_path + "/" + uevent.path.substr(last_slash + 1)); in GetBlockDeviceSymlinks()
|
/system/extras/perfprofd/ |
D | perf_data_converter.cc | 85 if (dso_name.substr(0, kernel_name.length()) == kernel_name) { in RawPerfDataToAndroidPerfProfile() 149 if (build_id.size() == 40 && build_id.substr(32) == "00000000") { in RawPerfDataToAndroidPerfProfile() 150 load_module->set_build_id(build_id.substr(0, 32)); in RawPerfDataToAndroidPerfProfile()
|
D | configreader.cc | 281 std::string key(line.substr(0, efound)); in readFile() 282 std::string value(line.substr(efound+1, std::string::npos)); in readFile()
|
/system/security/keystore/ |
D | grant_store.cpp | 36 std::stringstream s(grantAlias.substr(pos + kKeystoreGrantInfixLength)); in parseGrantAlias() 37 std::string wrapped_alias = grantAlias.substr(0, pos); in parseGrantAlias()
|
/system/core/libunwindstack/ |
D | Maps.cpp | 86 if (map_info->name.substr(0, 5) == "/dev/" && map_info->name.substr(5, 7) != "ashmem/") { in ParseLine()
|
/system/update_engine/ |
D | test_http_server.cc | 103 headers.substr(0, headers.length() - strlen(EOL EOL)), EOL, &lines); in ParseRequest() 247 string partial = line.substr(start_modulo, remaining_len); in WritePayload() 262 string partial = line.substr(0, remaining_len); in WritePayload() 477 data.substr(start_offset) : "")); in HandleDefault() 490 terms = base::SplitString(url.substr(1), "/", base::KEEP_WHITESPACE, in UrlTerms()
|