Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 122) sorted by relevance

12345

/packages/modules/adb/
Dsocket_spec.h27 bool is_socket_spec(std::string_view spec);
28 bool is_local_socket_spec(std::string_view spec);
30 bool socket_spec_connect(unique_fd* fd, std::string_view address, int* port, std::string* serial,
32 int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_tcp_port = nullptr);
34 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
37 int get_host_socket_spec_port(std::string_view spec, std::string* error);
Dadb_mdns.h63 std::optional<int> adb_DNSServiceIndexByName(std::string_view reg_type);
66 bool adb_DNSServiceShouldAutoConnect(std::string_view service_name, std::string_view instance_name);
78 MdnsInfo(std::string_view name, std::string_view type, std::string_view addr, uint16_t port) in MdnsInfo()
Dadb.h159 unique_fd service_to_fd(std::string_view name, atransport* transport);
161 unique_fd daemon_service_to_fd(std::string_view name, atransport* transport);
165 asocket* host_service_to_socket(std::string_view name, std::string_view serial,
170 asocket* daemon_service_to_socket(std::string_view name, atransport* transport);
174 unique_fd execute_abb_command(std::string_view command);
232 HostRequestResult handle_host_request(std::string_view service, TransportType type,
Dsocket.h146 asocket* create_local_service_socket(std::string_view destination, atransport* transport);
149 void connect_to_remote(asocket* s, std::string_view destination);
159 bool parse_host_service(std::string_view* out_serial, std::string_view* out_command,
160 std::string_view service);
Dadb_utils.h100 inline std::string_view StripTrailingNulls(std::string_view str) { in StripTrailingNulls()
115 inline bool ParseUint(T* result, std::string_view str, std::string_view* remaining = nullptr) {
125 *remaining = std::string_view(res.ptr, str.end() - res.ptr);
Dtransport.h309 void UpdateReverseConfig(std::string_view service_addr);
457 bool transport_server_owns_device(std::string_view serial);
460 bool transport_server_owns_device(std::string_view dev_path, std::string_view serial);
494 void kick_all_transports_by_auth_key(std::string_view auth_key);
533 unique_fd adb_listen(std::string_view addr, std::string* error);
534 void server_socket_thread(std::function<unique_fd(std::string_view, std::string*)> listen_func,
535 std::string_view addr);
Dsockets.cpp459 asocket* create_local_service_socket(std::string_view name, atransport* transport) { in create_local_service_socket()
560 void connect_to_remote(asocket* s, std::string_view destination) { in connect_to_remote()
662 bool parse_host_service(std::string_view* out_serial, std::string_view* out_command, in parse_host_service()
663 std::string_view full_service) { in parse_host_service()
668 std::string_view serial; in parse_host_service()
669 std::string_view command = full_service; in parse_host_service()
695 static constexpr std::string_view prefixes[] = { in parse_host_service()
697 for (std::string_view prefix : prefixes) { in parse_host_service()
767 std::string_view port = command.substr(0, next_colon); in parse_host_service()
785 std::string_view service; in smart_socket_enqueue()
[all …]
Dsocket_spec.cpp78 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec()
120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port()
155 static bool tcp_host_is_local(std::string_view hostname) { in tcp_host_is_local()
160 bool is_socket_spec(std::string_view spec) { in is_socket_spec()
170 bool is_local_socket_spec(std::string_view spec) { in is_local_socket_spec()
186 bool socket_spec_connect(unique_fd* fd, std::string_view address, int* port, std::string* serial, in socket_spec_connect()
339 int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_port) {
Dadb_mdns.cpp108 std::optional<int> adb_DNSServiceIndexByName(std::string_view reg_type) { in adb_DNSServiceIndexByName()
117 bool adb_DNSServiceShouldAutoConnect(std::string_view reg_type, std::string_view service_name) { in adb_DNSServiceShouldAutoConnect()
/packages/modules/adb/tls/
Dtls_connection.cpp40 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key,
44 bool AddTrustedCertificate(std::string_view cert) override;
53 bool WriteFully(std::string_view data) override;
55 static bssl::UniquePtr<EVP_PKEY> EvpPkeyFromPEM(std::string_view pem);
56 static bssl::UniquePtr<CRYPTO_BUFFER> BufferFromPEM(std::string_view pem);
85 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl()
110 bssl::UniquePtr<EVP_PKEY> TlsConnectionImpl::EvpPkeyFromPEM(std::string_view pem) { in EvpPkeyFromPEM()
116 bssl::UniquePtr<CRYPTO_BUFFER> TlsConnectionImpl::BufferFromPEM(std::string_view pem) { in BufferFromPEM()
155 bool TlsConnectionImpl::AddTrustedCertificate(std::string_view cert) { in AddTrustedCertificate()
342 bool TlsConnectionImpl::WriteFully(std::string_view data) { in WriteFully()
[all …]
/packages/modules/adb/tls/include/adb/tls/
Dtls_connection.h64 virtual bool AddTrustedCertificate(std::string_view cert) = 0;
110 virtual bool WriteFully(std::string_view data) = 0;
114 static std::unique_ptr<TlsConnection> Create(Role role, std::string_view cert,
115 std::string_view priv_key,
120 static bool SetCertAndKey(SSL* ssl, std::string_view cert_chain, std::string_view priv_key);
Dadb_ca_list.h32 bssl::UniquePtr<X509_NAME> CreateCAIssuerFromEncodedKey(std::string_view key);
40 std::string SHA256BitsToHexString(std::string_view sha256);
44 std::optional<std::string> SHA256HexStringToBits(std::string_view sha256_str);
/packages/modules/SdkExtensions/derive_classpath/
Dmain.cpp24 bool ArgumentMatches(std::string_view argument, std::string_view prefix, std::string_view* value) { in ArgumentMatches()
38 std::vector<std::string_view> positional_args; in ParseArgs()
40 const std::string_view arg = argv[i]; in ParseArgs()
41 std::string_view value; in ParseArgs()
/packages/modules/adb/client/
Dmdns_utils.h31 MdnsInstance(std::string_view inst, std::string_view serv, std::string_view trans) in MdnsInstance()
52 std::optional<MdnsInstance> mdns_parse_instance_name(std::string_view name);
/packages/modules/adb/daemon/
Dabb.cpp51 std::vector<std::string_view> parseCmdArgs(std::string_view args) { in parseCmdArgs()
52 std::vector<std::string_view> argv; in parseCmdArgs()
72 static int execCmd(std::string_view args, borrowed_fd in, borrowed_fd out, borrowed_fd err) { in execCmd()
96 std::string_view name = data; in main()
Dauth.cpp98 static void IteratePublicKeys(std::function<bool(std::string_view public_key)> f) { in IteratePublicKeys()
102 return (*static_cast<decltype(f)*>(opaque))(std::string_view(public_key, len)); in IteratePublicKeys()
114 IteratePublicKeys([&](std::string_view public_key) { in adbd_tls_client_ca_list()
146 std::string_view(reinterpret_cast<const char*>(&digest[0]), sizeof(digest))); in adbd_tls_client_ca_list()
161 IteratePublicKeys([&](std::string_view public_key) { in adbd_auth_verify()
239 std::string_view auth_key(public_key, len); in adbd_key_removed()
320 IteratePublicKeys([&](std::string_view public_key) { in adbd_tls_verify_cert()
Dabb_service.cpp28 unique_fd sendCommand(std::string_view command);
40 unique_fd AbbProcess::sendCommand(std::string_view command) { in sendCommand()
87 unique_fd execute_abb_command(std::string_view command) { in execute_abb_command()
Dtransport_local.cpp52 void server_socket_thread(std::function<unique_fd(std::string_view, std::string*)> listen_func, in server_socket_thread() argument
53 std::string_view addr) { in server_socket_thread()
91 unique_fd adb_listen(std::string_view addr, std::string* error) { in adb_listen()
/packages/services/Car/cpp/evs/manager/aidl/include/
DServiceNames.h23 inline constexpr std::string_view kManagedEnumeratorName = "default";
26 inline constexpr std::string_view kHardwareEnumeratorName = "hw/1";
30 inline constexpr std::string_view kMockEnumeratorName = "EvsEnumeratorHw-Mock";
/packages/modules/adb/tls/tests/
Dtls_connection_test.cpp303 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
313 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
329 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
337 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
356 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
364 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
387 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
395 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
505 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
513 std::string_view(reinterpret_cast<const char*>(msg_.data()), msg_.size()))); in TEST_F()
/packages/modules/Bluetooth/system/log/include/bluetooth/
Dlog.h58 fmt::string_view fmt, fmt::format_args vargs);
87 vlog(level, LOG_TAG, location, static_cast<fmt::string_view>(fmt),
156 static_cast<fmt::string_view>(fmt), fmt::make_format_args());
165 static_cast<fmt::string_view>(fmt),
175 static_cast<fmt::string_view>(fmt),
186 static_cast<fmt::string_view>(fmt),
199 static_cast<fmt::string_view>(fmt),
214 static_cast<fmt::string_view>(fmt),
/packages/modules/adb/pairing_connection/
Dpairing_connection.cpp102 bool WriteHeader(const PairingPacketHeader* header, std::string_view payload);
171 std::string_view(reinterpret_cast<const char*>(cert_.data()), cert_.size()), in SetupTlsConnection()
172 std::string_view(reinterpret_cast<const char*>(priv_key_.data()), priv_key_.size()), in SetupTlsConnection()
205 std::string_view payload) { in WriteHeader()
208 if (!tls_->WriteFully(std::string_view(reinterpret_cast<const char*>(&network_header), in WriteHeader()
305 std::string_view(reinterpret_cast<const char*>(msg.data()), msg.size()))) { in DoExchangeMsgs()
352 std::string_view(reinterpret_cast<const char*>(&out_header), sizeof(out_header)))) { in DoExchangePeerInfo()
359 std::string_view(reinterpret_cast<const char*>(outbuf.data()), outbuf.size()))) { in DoExchangePeerInfo()
/packages/services/Car/cpp/evs/manager/aidl/src/
Dservice.cpp37 void startService(const std::string_view& hardwareServiceName, in startService()
38 const std::string_view& managerServiceName) { in startService()
82 std::string_view evsHardwareServiceName = kHardwareEnumeratorName; in main()
/packages/modules/StatsD/lib/libkll/encoding/
Dencoder_test.cpp46 std::string_view expected(params.encoding, params.encoding_length); in TEST_P()
53 std::string_view suffix(params.encoding, params.encoding_length); in TEST_P()
99 std::string_view expected(params.encoding, params.encoding_length); in TEST_P()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dform_filler.h83 bool SetText(FPDF_PAGE page, const int annotation_index, const std::string_view text);
140 void SetFieldText(FPDF_PAGE page, std::string_view text);
146 void ReplaceSelectedText(FPDF_PAGE page, std::string_view replacement_text);

12345