Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/system/gd/facade/
Dfacade_main.cc134 auto port_number = arg.substr(arg_grpc_root_server_port.size()); in main()
138 auto port_number = arg.substr(arg_grpc_server_port.size()); in main()
142 auto port_number = arg.substr(arg_rootcanal_port.size()); in main()
146 auto btsnoop_path = arg.substr(arg_btsnoop_path.size()); in main()
157 auto btsnooz_path = arg.substr(arg_btsnooz_path.size()); in main()
161 auto btconfig_path = arg.substr(arg_btconfig_path.size()); in main()
/packages/modules/DnsResolver/
DDnsQueryLog.cpp28 return hostname.substr(0, 1) + "***"; in maskHostname()
37 ret += ip.substr(0, pos + 1) + "***, "; in maskIps()
40 ret += ip.substr(0, pos + 1) + "***, "; in maskIps()
45 return ret.empty() ? "" : ret.substr(0, ret.length() - 2); in maskIps()
/packages/modules/adb/client/
Dmdns_utils_test.cpp83 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
91 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
99 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
107 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
147 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
156 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
Dmdns_utils.cpp54 transport = t.substr(1); in mdns_parse_instance_name()
74 return std::make_optional<MdnsInstance>(name.substr(0, pos), name.substr(pos + 1), transport); in mdns_parse_instance_name()
Dline_printer.cpp41 result = result.substr(0, elide_size) in ElideMiddle()
43 + result.substr(result.size() - elide_size, elide_size); in ElideMiddle()
Dbugreport.cpp153 int progress = std::stoi(line.substr(idx1, (idx2 - idx1))); in ProcessLine()
154 int total = std::stoi(line.substr(idx2 + 1)); in ProcessLine()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dmain.cc134 source_root = std::filesystem::path(arg.substr(arg_source_root.size())); in main()
141 out_dir = cwd / std::filesystem::path(arg.substr(arg_out.size())); in main()
143 include_dir = source_root / std::filesystem::path(arg.substr(arg_include.size())); in main()
145 root_namespace = arg.substr(arg_namespace.size()); in main()
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_log_history.cc45 s.substr(0, kMaxLogSize)); in Push()
119 tag.substr(0, kMaxLogHistoryTagLength).c_str(), group_id, in add_logs_history_common()
121 msg.substr(0, kMaxLogHistoryMsgLength).c_str(), in add_logs_history_common()
/packages/apps/Nfc/nci/jni/
DNfcDta.cpp79 (uint8_t)strtol(configParams.substr(index, 2).c_str(), NULL, 16)); in parseConfigParams()
83 (uint8_t)strtol(configParams.substr(index, 2).c_str(), NULL, 16); in parseConfigParams()
89 (uint8_t)strtol(configParams.substr(index, 2).c_str(), NULL, 16)); in parseConfigParams()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_main.cc77 "%-6s %-25s: %s %s", tag.substr(0, kMaxLogHistoryTagLength).c_str(), in btm_log_history()
78 msg.substr(0, kMaxLogHistoryMsgLength).c_str(), addr, extra.c_str()); in btm_log_history()
/packages/modules/DnsResolver/tests/
Dpbtxt2pb_converter_host.cpp75 pbtxtFile = filesystem::path(arg.substr(arg_in.size())); in main()
77 pbOutDir = filesystem::path(arg.substr(arg_out.size())); in main()
/packages/modules/StatsD/lib/libkll/encoding/
Dencoder_test.cpp58 EXPECT_EQ("thisisaprefix", with_prefix.substr(0, strlen("thisisaprefix"))); in TEST_P()
59 EXPECT_EQ(suffix, with_prefix.substr(strlen("thisisaprefix"))); in TEST_P()
/packages/providers/MediaProvider/jni/
Dnode.cpp30 segments.push_back(path.substr(segment_start, segment_end - segment_start)); in GetPathSegments()
35 segments.push_back(path.substr(segment_start)); in GetPathSegments()
DFuseUtils.cpp43 const string& path_suffix = path.substr(pos); in containsMount()
/packages/modules/adb/daemon/
Dservices.cpp95 std::string service_args(args.substr(0, delimiter_index)); in ShellService()
96 std::string command(args.substr(delimiter_index + 1)); in ShellService()
114 terminal_type = arg.substr(strlen("TERM=")); in ShellService()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp105 char* substr = strtok(name, "_"); in parseFileName() local
106 while (substr != nullptr && index < 3) { in parseFileName()
107 result[index] = StrToInt64(substr); in parseFileName()
109 substr = strtok(nullptr, "_"); in parseFileName()
122 output->mIsHistory = (substr != nullptr && strcmp("history", substr) == 0); in parseFileName()
/packages/services/Car/packages/ScriptExecutor/src/
DLuaEngine.cpp169 std::string error_msg = s.substr(0, dpos - 1); in run()
170 std::string stack_traceback = s.substr(dpos + delimiter.length() + 2); in run()
/packages/modules/Bluetooth/system/gd/common/
Dstrings.cc93 tokens.push_back(str.substr(starting_index, index_of_delim - starting_index)); in StringSplit()
99 tokens.push_back(str.substr(starting_index)); in StringSplit()
/packages/modules/Bluetooth/system/gd/packet/parser/fields/
Dvector_field.cc56 if (!size_modifier_.empty()) ret += "+ (" + size_modifier_.substr(1) + " * 8)"; in GetSize()
93 if (!size_modifier_.empty()) ret += "- (" + size_modifier_.substr(1) + " * 8)"; in GetStructSize()
Dpayload_field.cc47 dynamic_size += "- (" + size_modifier_.substr(1) + " * 8)"; in GetSize()
/packages/modules/UprobeStats/src/
DProcess.cpp42 entry.path().string().substr(entry.path().string().rfind("/") + 1); in getPid()
/packages/modules/Virtualization/microdroid/payload/
Dmetadata.cc46 content = content.substr(length_prefix_bytes, size); in ReadMetadata()
/packages/modules/Bluetooth/system/gd/dumpsys/bundler/
Dbundler.cc133 namespaces.push_back(ns_string.substr(start, end - start)); in WriteHeaderFile()
138 namespaces.push_back(ns_string.substr(start)); in WriteHeaderFile()
/packages/services/Car/tools/telemetry/lua-interpreter/
Dlua_engine.cc115 error.substr(error.find(' ')) + "\n"); in ConvertJsonToLuaTable()
156 error.substr(error.find(' ')) + "\n"); in ConvertJsonToLuaTable()
/packages/modules/Bluetooth/system/stack/mmc/
Dmain.cc48 message.substr(message_start).c_str()); in MessageHandler()

123