Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 82) sorted by relevance

1234

/system/tools/hidl/c2hal/
Dmain.cpp52 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()
DAST.cpp173 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/
DStringHelper.cpp91 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()
DFormatter.cpp127 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/
DControllersTest.cpp207 #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/
Dhttpurl.cpp54 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/
Dmapfile_filesystem.cc100 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/
Dstoraged_info.cpp141 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/
Dpreopt2cachename.cpp58 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/
DKernelConfigParser.cpp79 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()
Dparse_string.cpp37 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/
Doptions_unittest.cpp155 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/
Dparsenetaddress.cpp42 *host = address.substr(1, (address.find("]:") - 1)); in ParseNetAddress()
43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress()
Dstrings.cpp41 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/
Dtracing.cpp293 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()
Dread_apk.cpp171 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2)); in SplitUrlInApk()
Devent_type.cpp155 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/
Dline_printer.cpp39 result = result.substr(0, elide_size) in ElideMiddle()
41 + result.substr(result.size() - elide_size, elide_size); in ElideMiddle()
/system/libhidl/transport/
DServiceManagement.cpp77 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/
Ddevices.cpp76 *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/
Dperf_data_converter.cc85 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()
Dconfigreader.cc281 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/
Dgrant_store.cpp36 std::stringstream s(grantAlias.substr(pos + kKeystoreGrantInfixLength)); in parseGrantAlias()
37 std::string wrapped_alias = grantAlias.substr(0, pos); in parseGrantAlias()
/system/core/libunwindstack/
DMaps.cpp86 if (map_info->name.substr(0, 5) == "/dev/" && map_info->name.substr(5, 7) != "ashmem/") { in ParseLine()
/system/update_engine/
Dtest_http_server.cc103 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()

1234