Home
last modified time | relevance | path

Searched refs:Connection (Results 1 – 17 of 17) sorted by relevance

/system/core/adb/
Dtransport_benchmark.cpp41 std::unique_ptr<Connection> MakeConnection(unique_fd fd);
44 std::unique_ptr<Connection> MakeConnection<FdConnection>(unique_fd fd) { in MakeConnection()
50 std::unique_ptr<Connection> MakeConnection<NonblockingFdConnection>(unique_fd fd) { in MakeConnection()
51 return Connection::FromFd(std::move(fd)); in MakeConnection()
66 client->SetReadCallback([](Connection*, std::unique_ptr<apacket>) -> bool { return true; }); in BM_Connection_Unidirectional() argument
67 … server->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Unidirectional() argument
73 [](Connection*, const std::string& error) { LOG(INFO) << "client closed: " << error; }); in BM_Connection_Unidirectional() argument
75 [](Connection*, const std::string& error) { LOG(INFO) << "server closed: " << error; }); in BM_Connection_Unidirectional() argument
124 … client->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo() argument
129 static const auto handle_packet = [](Connection* connection, std::unique_ptr<apacket> packet) { in BM_Connection_Echo()
[all …]
Dtransport.h104 struct Connection { struct
105 Connection() = default;
106 virtual ~Connection() = default;
112 using ReadCallback = std::function<bool(Connection*, std::unique_ptr<apacket>)>; argument
119 using ErrorCallback = std::function<void(Connection*, const std::string&)>; argument
139 static std::unique_ptr<Connection> FromFd(unique_fd fd); argument
167 struct BlockingConnectionAdapter : public Connection {
291 void SetConnection(std::unique_ptr<Connection> connection);
292 std::shared_ptr<Connection> connection() { in connection()
409 std::shared_ptr<Connection> connection_ GUARDED_BY(mutex_);
Dtransport_fd.cpp46 struct NonblockingFdConnection : public Connection {
239 std::unique_ptr<Connection> Connection::FromFd(unique_fd fd) { in FromFd()
Dtransport.cpp274 void Connection::Reset() { in Reset()
796 t->connection()->SetReadCallback([t](Connection*, std::unique_ptr<apacket> p) { in transport_registration_func() argument
809 t->connection()->SetErrorCallback([t](Connection*, const std::string& error) { in transport_registration_func() argument
1124 void atransport::SetConnection(std::unique_ptr<Connection> connection) { in SetConnection()
1126 connection_ = std::shared_ptr<Connection>(std::move(connection)); in SetConnection()
Dadb.cpp324 ADB_LOG(Connection) << "received CNXN: version=" << p->msg.arg0 << ", maxdata = " << p->msg.arg1 in handle_new_connection()
/system/bt/service/
Dgatt_server.h171 struct Connection { struct
172 Connection(int conn_id, const RawAddress& bdaddr) in Connection() argument
174 Connection() : conn_id(-1) { memset(&bdaddr, 0, sizeof(bdaddr)); } in Connection() function
236 std::shared_ptr<Connection> GetConnection(int conn_id, const RawAddress& bda,
251 std::unordered_map<int, std::shared_ptr<Connection>> conn_id_map_;
252 std::unordered_map<std::string, std::vector<std::shared_ptr<Connection>>>
Dgatt_server.cc140 std::shared_ptr<Connection> connection; in SendResponse()
289 std::shared_ptr<Connection> connection(new Connection(conn_id, bda)); in ConnectionCallback()
545 std::shared_ptr<GattServer::Connection> GattServer::GetConnection( in GetConnection()
/system/core/adb/daemon/
Dlogging.cpp50 result[adb::LogType::Connection] = true; in ParseLogStatus()
56 result[adb::LogType::Connection] = true; in ParseLogStatus()
Dlogging.h23 Connection, enumerator
Dusb.cpp172 struct UsbFfsConnection : public Connection {
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dsimple_stack.py107 class Connection(object): class
136 self._connection = Connection(port)
Dsimple_link_layer_socket.py73 class Connection(object): class
103 self._connection = Connection(port)
Dsend_simple_commands.py87 class Connection(object): class
117 self._connection = Connection(port)
Dtest_channel.py62 class Connection(object): class
92 self._connection = Connection(port)
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc107 std::map<uint16_t, Connection>::iterator connection; \
261 class Connection : public LeConnectionManagementCallbacks { class in bluetooth::hci::facade::LeAclManagerFacadeService
263 Connection( in Connection() function in bluetooth::hci::facade::LeAclManagerFacadeService::Connection
301 std::map<uint16_t, Connection> acl_connections_;
Dacl_manager_facade.cc101 std::map<uint16_t, Connection>::iterator connection; \
368 class Connection : public ConnectionManagementCallbacks { class in bluetooth::hci::facade::AclManagerFacadeService
370 Connection( in Connection() function in bluetooth::hci::facade::AclManagerFacadeService::Connection
508 std::map<uint16_t, Connection> acl_connections_;
/system/bt/doc/
Dpts_guide.md36 - `PTS_DisableConnUpdates` disables LE Connection updates.