/system/bt/gd/facade/ |
D | facade_main.cc | 117 auto port_number = arg.substr(arg_grpc_root_server_port.size()); in main() 121 auto port_number = arg.substr(arg_grpc_server_port.size()); in main() 125 auto port_number = arg.substr(arg_rootcanal_port.size()); in main() 129 auto btsnoop_path = arg.substr(arg_btsnoop_path.size()); in main() 135 auto btsnooz_path = arg.substr(arg_btsnooz_path.size()); in main() 139 auto btconfig_path = arg.substr(arg_btconfig_path.size()); in main() 143 auto port_number = arg.substr(arg_signal_port.size()); in main()
|
/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()
|
/system/tools/hidl/lint/lints/ |
D | methodVersions.cpp | 37 return (underscore == std::string::npos) ? method.name() : method.name().substr(0, underscore); in getSanitizedMethodName() 44 std::string version = method.name().substr(underscore + 1); // don't include _ in checkMethodVersion() 45 std::string nameWithoutVersion = method.name().substr(0, underscore); in checkMethodVersion() 66 if (!base::ParseUint(version.substr(0, underscore), &major)) { in checkMethodVersion() 73 if (!base::ParseUint(version.substr(underscore + 1), &minor)) { in checkMethodVersion()
|
/system/netd/server/ |
D | ControllersTest.cpp | 213 #define DELETE_SUBSTRING(substr, str) { \ in TEST_F() argument 214 size_t start = (str).find((substr)); \ in TEST_F() 216 (str).erase(start, strlen((substr))); \ in TEST_F() 217 ASSERT_EQ(std::string::npos, (str).find((substr))); \ in TEST_F()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_reader_test.cpp | 119 ASSERT_EQ(blob.substr(0, 100), base_blocks_[0].substr(kOffset, 100)); in TestByteReads() 120 ASSERT_EQ(blob.substr(kBlockSize - kOffset, kBlockSize), base_blocks_[4]); in TestByteReads() 121 ASSERT_EQ(blob.substr(kBlockSize * 2 - kOffset, 100), MakeNewBlockString().substr(0, 100)); in TestByteReads() 122 ASSERT_EQ(blob.substr(blob.size() - kOffset), base_blocks_[6].substr(0, kOffset)); in TestByteReads()
|
/system/tools/aidl/ |
D | comments.cpp | 51 return s.substr(prefix.size()); in ConsumePrefix() 56 return s.substr(0, s.size() - suffix.size()); in ConsumeSuffix() 85 const std::string& sanitized_line = line.substr(idx); in TrimmedLines() 97 lines.push_back(sanitized_line.substr(0, i)); in TrimmedLines() 143 tag = line.substr(idx, end_idx - idx); in BlockTags() 148 paragraph.push_back(line.substr(end_idx)); in BlockTags() 152 paragraph.push_back(line.substr(idx)); in BlockTags()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 126 copy = copy.substr(maxmatch.length()); in Tokenize() 199 in.substr(in.size() - suffix.size()) == suffix; in EndsWith() 204 in.substr(0, prefix.size()) == prefix; in StartsWith() 209 return in.substr(0, in.size() - suffix.size()); in RTrim() 217 return in.substr(prefix.size()); in LTrim() 230 copy = copy.substr(0, copy.size() - suffix.size()); in RTrimAll() 243 copy = copy.substr(prefix.size()); in LTrimAll() 256 components->push_back(s.substr(startPos, matchPos - startPos)); in SplitString() 261 components->push_back(s.substr(startPos)); in SplitString()
|
/system/media/audio_utils/fuzz/fdtostring_fuzzer/ |
D | fdtostring_fuzzer.cpp | 30 const std::string PREFIX{data_str.substr(0, 3)}; in LLVMFuzzerTestOneInput() 31 const std::string TEST_STRING{data_str.substr(3)+"\n"}; in LLVMFuzzerTestOneInput()
|
/system/core/fs_mgr/ |
D | fs_mgr_boot_config.cpp | 44 auto source = cmdline.substr(base, found - base); in fs_mgr_parse_cmdline() 54 result.emplace_back(piece.substr(0, equal_sign), piece.substr(equal_sign + 1)); in fs_mgr_parse_cmdline() 77 result.emplace_back(android::base::Trim(line.substr(0, equal_sign)), in fs_mgr_parse_proc_bootconfig() 78 android::base::Trim(line.substr(equal_sign + 1))); in fs_mgr_parse_proc_bootconfig()
|
/system/update_engine/payload_generator/ |
D | mapfile_filesystem.cc | 99 line.substr(delim + 1, last_delim - (delim + 1)).as_string(); in GetFiles() 105 base::StringToUint64(blocks.substr(0, dash), &block_start) && in GetFiles() 106 base::StringToUint64(blocks.substr(dash + 1), &block_end)) { in GetFiles() 136 mapped_file.name = line.substr(0, last_delim).as_string(); in GetFiles()
|
/system/libvintf/include-host/vintf/ |
D | Dirmap.h | 34 auto key = arg.substr(0, pos); in splitArgs() 35 auto value = pos == std::string::npos ? std::string{} : arg.substr(pos + 1); in splitArgs()
|
/system/extras/multinetwork/ |
D | httpurl.cpp | 62 parameters->host = std::string(args.arg1).substr(strlen(HTTP_PREFIX)); in parseUrl() 65 parameters->path = parameters->host.substr(first_slash); in parseUrl() 80 parameters->hostname = parameters->host.substr(1, closing_bracket - 1); in parseUrl() 88 parameters->port = parameters->host.substr(closing_bracket + 2); in parseUrl() 93 parameters->port = parameters->host.substr(first_colon + 1); in parseUrl() 94 parameters->hostname = parameters->host.substr(0, first_colon); in parseUrl()
|
/system/libvintf/libaidlvintf_test_helper/ |
D | Vintf.cpp | 27 const std::string package = descriptor.substr(0, lastDot); in getAidlHalInstanceNames() 28 const std::string iface = descriptor.substr(lastDot + 1); in getAidlHalInstanceNames()
|
/system/extras/simpleperf/ |
D | report_utils.cpp | 67 std::string_view original_classname = s.substr(0, arrow_pos); in AddProguardMappingFile() 68 std::string obfuscated_classname(s.substr(arrow_end_pos, colon_pos - arrow_end_pos)); in AddProguardMappingFile() 77 auto original_methodname = s.substr(space_pos + 1, left_brace_pos - space_pos - 1); in AddProguardMappingFile() 81 std::string obfuscated_methodname(s.substr(arrow_end_pos)); in AddProguardMappingFile() 225 std::string obfuscated_classname(name.substr(0, split_pos)); in DeObfuscateJavaMethods() 229 std::string obfuscated_methodname(name.substr(split_pos + 1)); in DeObfuscateJavaMethods()
|
D | read_apk.cpp | 136 return std::make_tuple(true, path.substr(0, pos), path.substr(pos + 2)); in SplitUrlInApk() 157 *entry_name = path.substr(entry_name_start, entry_name_end - entry_name_start); in ParseExtractedInMemoryPath() 158 *zip_path = path.substr(zip_path_start, zip_path_end - zip_path_start); in ParseExtractedInMemoryPath()
|
D | ProbeEvents.cpp | 85 symbol = args[1].substr(0, split_pos); in ParseKprobeEventName() 86 if (!ParseInt(args[1].substr(split_pos), &offset) || offset < 0) { in ParseKprobeEventName() 129 std::string function_name = event_name.substr(kKprobeEventPrefix.size()); in CreateProbeEventIfNotExist()
|
/system/bt/gd/packet/parser/ |
D | main.cc | 151 source_root = std::filesystem::path(arg.substr(arg_source_root.size())); in main() 158 out_dir = cwd / std::filesystem::path(arg.substr(arg_out.size())); in main() 160 include_dir = source_root / std::filesystem::path(arg.substr(arg_include.size())); in main() 162 root_namespace = arg.substr(arg_namespace.size()); in main() 164 num_shards = std::stoul(arg.substr(arg_num_shards.size())); in main()
|
/system/nfc/utils/ |
D | config.cc | 90 value_string_ = in.substr(1, in.length() - 2); in parseFromString() 97 return parseBytesString(in.substr(1, in.length() - 2), value_bytes_); in parseFromString() 135 string key(Trim(line.substr(0, search))); in parseFromString() 136 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
|
/system/libbase/ |
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() 91 return s.substr(0, prefix.size()) == prefix; in StartsWith() 103 return s.size() >= suffix.size() && s.substr(s.size() - suffix.size(), suffix.size()) == suffix; in EndsWith()
|
D | parsenetaddress.cpp | 42 *host = address.substr(1, (address.find("]:") - 1)); in ParseNetAddress() 43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress()
|
/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/bt/stack/btm/ |
D | btm_main.cc | 67 "%-6s %-25s: %s %s", tag.substr(0, kMaxLogHistoryTagLength).c_str(), in btm_log_history() 68 msg.substr(0, kMaxLogHistoryMsgLength).c_str(), addr, extra.c_str()); in btm_log_history()
|
/system/libvintf/ |
D | KernelConfigParser.cpp | 78 std::string key = mRemaining.substr(0, equalPos); in processRemaining() 79 std::string value = mRemaining.substr(equalPos + 1); in processRemaining() 83 mError << "Duplicated key in configs: " << mRemaining.substr(0, equalPos) << "\n"; in processRemaining()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils_test.cpp | 92 auto remainder = std::string_view(arg).substr(expected.size()); 108 return std::string_view(expected).substr(expected.size() - AVB_FOOTER_SIZE) == 109 std::string_view(arg).substr(arg.size() - AVB_FOOTER_SIZE); 300 EXPECT_THAT(new_content.substr(o, p), IsPadded(env->replace_content)); in TEST_P() 301 EXPECT_THAT(new_content.substr(o + p, q), IsPadded(env->dtb_content)); in TEST_P() 317 EXPECT_THAT(new_content.substr(o + p + q + r, s), IsPadded(env->bootconfig_content)); in TEST_P() 391 EXPECT_THAT(new_content.substr(o, p), IsPadded(expect_new_ramdisk_content)); in TEST_P() 392 EXPECT_THAT(new_content.substr(o + p, q), IsPadded(env->dtb_content)); in TEST_P() 412 EXPECT_THAT(new_content.substr(o + p + q + r, s), IsPadded(env->bootconfig_content)); in TEST_P()
|
/system/linkerconfig/modules/ |
D | stringutil.cc | 25 return s.substr(prefix.size()); in TrimPrefix()
|