Home
last modified time | relevance | path

Searched refs:transport (Results 1 – 25 of 139) sorted by relevance

123456

/system/core/adb/client/
Dmdns_utils_test.cpp51 for (const std::string_view transport : {"._tcp", "._udp"}) { in TEST()
53 std::string str = android::base::StringPrintf("%s", transport.data()); in TEST()
58 std::string str = android::base::StringPrintf("%s.", transport.data()); in TEST()
63 std::string str = android::base::StringPrintf("service%s", transport.data()); in TEST()
68 std::string str = android::base::StringPrintf(".service%s", transport.data()); in TEST()
73 std::string str = android::base::StringPrintf("service.%s", transport.data()); in TEST()
78 std::string str = android::base::StringPrintf("my.service%s", transport.data()); in TEST()
83 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
86 std::string str = android::base::StringPrintf("my.service%s.", transport.data()); in TEST()
91 EXPECT_EQ(res->transport_type, transport.substr(1)); in TEST()
[all …]
Dmdns_utils.cpp43 std::string transport; in mdns_parse_instance_name() local
54 transport = t.substr(1); in mdns_parse_instance_name()
59 if (has_local_suffix && transport.empty()) { in mdns_parse_instance_name()
64 if (!has_local_suffix && transport.empty()) { 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()
/system/libvintf/include/vintf/
DTransportArch.h28 Transport transport = Transport::EMPTY; member
32 TransportArch(Transport t, Arch a) : transport(t), arch(a) {} in TransportArch()
35 return transport == other.transport && arch == other.arch;
38 if (transport < other.transport) return true;
39 if (transport > other.transport) return false;
/system/core/adb/
Dadb_listeners.cpp50 atransport* transport = nullptr; member in alistener
65 if (transport) { in ~alistener()
66 transport->RemoveDisconnect(&disconnect); in ~alistener()
106 s->transport = listener->transport; in listener_event_func()
118 (*iter)->transport = nullptr; in listener_disconnect()
138 !l->transport->serial.empty() ? l->transport->serial.c_str() : "(reverse)", in format_listeners()
144 InstallStatus remove_listener(const char* local_name, atransport* transport) in remove_listener() argument
189 atransport* transport, int flags, int* resolved_tcp_port, in install_listener() argument
207 if (l->transport != transport) { in install_listener()
208 l->transport->RemoveDisconnect(&l->disconnect); in install_listener()
[all …]
Dtransport.cpp63 static void remove_transport(atransport* transport);
64 static void transport_destroy(atransport* transport);
107 void TrackTransport(atransport* transport);
118 atransport* transport; member
124 return reinterpret_cast<uintptr_t>(transport) < in operator <()
125 reinterpret_cast<uintptr_t>(rhs.transport); in operator <()
164 remove_transport(attempt.transport); in Stop()
168 void ReconnectHandler::TrackTransport(atransport* transport) { in TrackTransport() argument
176 ReconnectAttempt{transport, reconnect_time, ReconnectHandler::kMaxAttempts}); in TrackTransport()
208 if (it->transport->kicked()) { in Run()
[all …]
Dadb_listeners.h38 atransport* transport, int flags, int* resolved_tcp_port,
43 InstallStatus remove_listener(const char* local_name, atransport* transport);
Dadb.cpp469 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet()
471 t->serial.c_str(), s->peer->transport->serial.c_str()); in handle_packet()
952 bool handle_forward_request(const char* service, atransport* transport, int reply_fd) { in handle_forward_request() argument
953 return handle_forward_request(service, [transport](std::string*) { return transport; }, in handle_forward_request()
985 atransport* transport = transport_acquirer(&error); in handle_forward_request() local
986 if (!transport) { in handle_forward_request()
1023 r = remove_listener(pieces[0].c_str(), transport); in handle_forward_request()
1029 r = install_listener(pieces[0], pieces[1].c_str(), transport, flags, &resolved_tcp_port, in handle_forward_request()
1164 s->transport = t; in handle_host_request()
1191 close_usb_devices([&response](const atransport* transport) { in handle_host_request() argument
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp130 for (int i = 0; i < MAX_USB_TRIES && !transport; i++) { in SetUp()
133 transport = std::unique_ptr<TransportSniffer>( in SetUp()
139 ASSERT_TRUE(transport); // no nullptr in SetUp()
146 fb = std::unique_ptr<FastBootDriver>(new FastBootDriver(transport.get(), {}, true)); in SetUp()
160 if (transport) { in TearDown()
161 transport.reset(); in TearDown()
171 if (!transport) return; in TearDownSerial()
173 transport->ProcessSerial(); in TearDownSerial()
177 printf("%s", transport->CreateTrace().c_str()); in TearDownSerial()
185 for (int i = 0; i < MAX_TCP_TRIES && !transport; i++) { in ConnectTcpFastbootDevice()
[all …]
/system/bt/stack/l2cap/
Dl2c_link.cc285 UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, in l2c_link_sec_comp() argument
287 l2c_link_sec_comp2(*p_bda, transport, p_ref_data, status); in l2c_link_sec_comp()
291 UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, in l2c_link_sec_comp2() argument
308 p_lcb = l2cu_find_lcb_by_bd_addr(p_bda, transport); in l2c_link_sec_comp2()
358 tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR; in l2c_link_hci_disc_comp() local
378 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_hci_disc_comp()
397 if (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_hci_disc_comp()
416 transport = p_lcb->transport; in l2c_link_hci_disc_comp()
419 if (p_lcb->transport == BT_TRANSPORT_LE) { in l2c_link_hci_disc_comp()
420 btm_acl_removed(p_lcb->remote_bd_addr, p_lcb->transport); in l2c_link_hci_disc_comp()
[all …]
Dl2c_api.cc518 if (!p_lcb->in_use || p_lcb->transport != BT_TRANSPORT_LE) continue; in L2CA_DeregisterLECoc()
605 if (p_ccb->p_lcb->transport == BT_TRANSPORT_LE) { in L2CA_ConnectLECocReq()
1078 tBT_TRANSPORT transport) { in L2CA_SetIdleTimeoutByBdAddr() argument
1081 transport); in L2CA_SetIdleTimeoutByBdAddr()
1087 p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, transport); in L2CA_SetIdleTimeoutByBdAddr()
1418 tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR; in L2CA_ConnectFixedChnl() local
1439 transport = BT_TRANSPORT_LE; in L2CA_ConnectFixedChnl()
1444 p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, transport); in L2CA_ConnectFixedChnl()
1449 if (transport == BT_TRANSPORT_LE) in L2CA_ConnectFixedChnl()
1477 fixed_cid, p_lcb->remote_bd_addr, true, 0, p_lcb->transport); in L2CA_ConnectFixedChnl()
[all …]
/system/bt/bta/gatt/
Dbta_gattc_utils.cc84 tBTA_TRANSPORT transport) { in bta_gattc_find_clcb_by_cif() argument
90 p_clcb->transport == transport && p_clcb->bda == remote_bda) in bta_gattc_find_clcb_by_cif()
125 tBTA_TRANSPORT transport) { in bta_gattc_clcb_alloc() argument
137 p_clcb->transport = transport; in bta_gattc_clcb_alloc()
170 tBTA_TRANSPORT transport) { in bta_gattc_find_alloc_clcb() argument
173 p_clcb = bta_gattc_find_clcb_by_cif(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
175 p_clcb = bta_gattc_clcb_alloc(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
372 tGATT_TRANSPORT transport; in bta_gattc_clear_notif_registration() local
375 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration()
492 tBTA_TRANSPORT transport, uint16_t mtu) { in bta_gattc_send_open_cback() argument
[all …]
Dbta_gatts_act.cc50 tGATT_TRANSPORT transport);
375 tBTA_TRANSPORT transport; in bta_gatts_indicate_handle() local
383 &gatt_if, remote_bda, &transport)) { in bta_gatts_indicate_handle()
397 if (transport == BTA_TRANSPORT_BR_EDR) { in bta_gatts_indicate_handle()
438 p_msg->api_open.is_direct, p_msg->api_open.transport, in bta_gatts_open()
443 &conn_id, p_msg->api_open.transport)) { in bta_gatts_open()
503 tGATT_TRANSPORT transport; in bta_gatts_close() local
506 &transport)) { in bta_gatts_close()
517 if (transport == BTA_TRANSPORT_BR_EDR) in bta_gatts_close()
544 tGATT_TRANSPORT transport; in bta_gatts_send_request_cback() local
[all …]
/system/libvintf/
DTransportArch.cpp26 return transport == Transport::EMPTY && arch == Arch::ARCH_EMPTY; in empty()
34 switch (transport) { in isValid()
41 *error += "Transport " + to_string(transport) + " requires empty arch attribute"; in isValid()
/system/libhidl/
DAndroid.bp158 "transport/include",
185 "transport/HidlBinderSupport.cpp",
186 "transport/HidlLazyUtils.cpp",
187 "transport/HidlPassthroughSupport.cpp",
188 "transport/HidlTransportSupport.cpp",
189 "transport/HidlTransportUtils.cpp",
190 "transport/LegacySupport.cpp",
191 "transport/ServiceManagement.cpp",
192 "transport/Static.cpp",
/system/bt/stack/gatt/
Dgatt_main.cc53 tBT_TRANSPORT transport);
191 tBT_TRANSPORT transport, uint8_t initiating_phys, in gatt_connect() argument
196 if (transport != BT_TRANSPORT_LE) { in gatt_connect()
241 gatt_cleanup_upon_disc(p_tcb->peer_bda, HCI_ERR_CONN_CAUSE_LOCAL_HOST, p_tcb->transport); in gatt_disconnect()
317 (BTM_GetHCIConnHandle(p_tcb->peer_bda, p_tcb->transport) != in gatt_update_app_use_link_flag()
325 p_tcb->transport); in gatt_update_app_use_link_flag()
336 p_tcb->transport); in gatt_update_app_use_link_flag()
346 tBT_TRANSPORT transport, int8_t initiating_phys) { in gatt_act_connect() argument
347 tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(bd_addr, transport); in gatt_act_connect()
352 transport == BT_TRANSPORT_LE) { in gatt_act_connect()
[all …]
Dgatt_attr.cc58 tBT_TRANSPORT transport);
129 const RawAddress& bda, tBT_TRANSPORT transport) { in gatt_profile_find_clcb_by_bd_addr() argument
135 if (p_clcb->in_use && p_clcb->transport == transport && p_clcb->connected && in gatt_profile_find_clcb_by_bd_addr()
166 p_clcb->transport = tranport; in gatt_profile_clcb_alloc()
310 tBT_TRANSPORT transport) { in gatt_connect_cback() argument
315 gatt_profile_find_clcb_by_bd_addr(bda, transport); in gatt_connect_cback()
458 tBT_TRANSPORT transport; in gatt_attr_send_is_eatt_cb() local
460 GATT_GetConnectionInfor(conn_id, &gatt_if, bd_addr, &transport); in gatt_attr_send_is_eatt_cb()
638 tBT_TRANSPORT transport) { in GATT_ConfigServiceChangeCCC() argument
640 gatt_profile_find_clcb_by_bd_addr(remote_bda, transport); in GATT_ConfigServiceChangeCCC()
[all …]
/system/tools/hidl/test/hash_test/
DAndroid.bp7 " -r android.hidl:system/libhidl/transport" +
12 " -r android.hidl:system/libhidl/transport" +
17 " -r android.hidl:system/libhidl/transport" +
22 " -r android.hidl:system/libhidl/transport" +
/system/bt/stack/btm/
Dbtm_acl.cc98 tACL_CONN* btm_bda_to_acl(const RawAddress& bda, tBT_TRANSPORT transport) { in btm_bda_to_acl() argument
102 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl()
195 tBT_TRANSPORT transport) { in btm_acl_created() argument
202 transport); in btm_acl_created()
204 p = btm_bda_to_acl(bda, transport); in btm_acl_created()
208 p->transport = transport; in btm_acl_created()
223 p->transport = transport; in btm_acl_created()
225 if (transport == BT_TRANSPORT_LE) in btm_acl_created()
243 if (transport == BT_TRANSPORT_BR_EDR) { in btm_acl_created()
254 if (p_dev_rec && !(transport == BT_TRANSPORT_LE)) { in btm_acl_created()
[all …]
/system/bt/bta/dm/
Dbta_dm_api.cc214 tBTA_TRANSPORT transport, int device_type) { in BTA_DmBond() argument
216 transport, device_type)); in BTA_DmBond()
560 tBTA_TRANSPORT transport) { in bta_dm_discover_send_msg() argument
571 p_msg->transport = transport; in bta_dm_discover_send_msg()
605 tBTA_TRANSPORT transport) { in BTA_DmDiscoverByTransport() argument
606 bta_dm_discover_send_msg(bd_addr, p_services, p_cback, sdp_search, transport); in BTA_DmDiscoverByTransport()
701 void BTA_DmSetEncryption(const RawAddress& bd_addr, tBTA_TRANSPORT transport, in BTA_DmSetEncryption() argument
706 transport, p_callback, sec_act)); in BTA_DmSetEncryption()
723 tBTA_TRANSPORT transport) { in BTA_DmCloseACL() argument
725 FROM_HERE, base::Bind(bta_dm_close_acl, bd_addr, remove_dev, transport)); in BTA_DmCloseACL()
/system/bt/btif/src/
Dbtif_gatt_server.cc143 p_data->conn.transport); in btapp_gatts_handle_cback()
286 tGATT_TRANSPORT transport = GATT_TRANSPORT_LE; in btif_gatts_open_impl() local
296 transport = transport_param; in btif_gatts_open_impl()
300 transport = GATT_TRANSPORT_BR_EDR; in btif_gatts_open_impl()
304 transport = GATT_TRANSPORT_LE; in btif_gatts_open_impl()
309 transport = GATT_TRANSPORT_LE; in btif_gatts_open_impl()
311 transport = GATT_TRANSPORT_BR_EDR; in btif_gatts_open_impl()
317 BTA_GATTS_Open(server_if, address, is_direct, transport); in btif_gatts_open_impl()
321 bool is_direct, int transport) { in btif_gatts_open() argument
324 Bind(&btif_gatts_open_impl, server_if, bd_addr, is_direct, transport)); in btif_gatts_open()
/system/bt/stack/gap/
Dgap_conn.cc70 tBT_TRANSPORT transport; /* Transport channel BR/EDR or BLE */ member
173 tBT_TRANSPORT transport) { in GAP_ConnOpen() argument
184 p_ccb->transport = transport; in GAP_ConnOpen()
212 if (transport == BT_TRANSPORT_LE) { in GAP_ConnOpen()
250 if (transport == BT_TRANSPORT_BR_EDR) { in GAP_ConnOpen()
261 if (transport == BT_TRANSPORT_LE) { in GAP_ConnOpen()
304 if (p_rem_bda && (transport == BT_TRANSPORT_BR_EDR)) { in GAP_ConnOpen()
312 if (p_rem_bda && (transport == BT_TRANSPORT_LE)) { in GAP_ConnOpen()
741 if (p_ccb->transport == BT_TRANSPORT_BR_EDR) in gap_connect_ind()
749 if (p_ccb->transport == BT_TRANSPORT_BR_EDR) in gap_connect_ind()
[all …]
/system/bt/stack/smp/
Dsmp_l2c.cc39 tBT_TRANSPORT transport);
45 tBT_TRANSPORT transport);
89 tBT_TRANSPORT transport) { in smp_connect_callback() argument
97 if (transport == BT_TRANSPORT_BR_EDR || bd_addr.IsEmpty()) return; in smp_connect_callback()
241 tBT_TRANSPORT transport) { in smp_br_connect_callback() argument
247 if (transport != BT_TRANSPORT_BR_EDR) { in smp_br_connect_callback()
249 transport); in smp_br_connect_callback()
/system/core/adb/daemon/
Dservices.cpp66 unique_fd reverse_service(std::string_view command, atransport* transport) { in reverse_service() argument
76 if (!handle_forward_request(str.c_str(), transport, s[1])) { in reverse_service()
85 unique_fd ShellService(std::string_view args, const atransport* transport) { in ShellService() argument
263 unique_fd daemon_service_to_fd(std::string_view name, atransport* transport) { in daemon_service_to_fd() argument
264 ADB_LOG(Service) << "transport " << transport->serial_name() << " opening service " << name; in daemon_service_to_fd()
321 return ShellService(name, transport); in daemon_service_to_fd()
328 return reverse_service(name, transport); in daemon_service_to_fd()
331 "reconnect", std::bind(reconnect_service, std::placeholders::_1, transport)); in daemon_service_to_fd()
/system/bt/btif/include/
Dbtif_api.h255 bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport);
267 const RawAddress* bd_addr, int transport,
385 int transport);
/system/core/adb/coverage/
Dgen_coverage.sh21 TRANSPORT_ID=$(adb transport-id)
42 TRANSPORT_ID=$(adb transport-id)
67 TRANSPORT_ID=$(adb transport-id)
85 TRANSPORT_ID=$(adb transport-id)

123456