/system/core/fastboot/ |
D | protocol.cpp | 59 static int64_t check_response(Transport* transport, uint32_t size, char* response) { in check_response() argument 63 int r = transport->Read(status, 64); in check_response() 66 transport->Close(); in check_response() 73 transport->Close(); in check_response() 102 transport->Close(); in check_response() 109 transport->Close(); in check_response() 116 static int64_t _command_start(Transport* transport, const char* cmd, uint32_t size, char* response)… in _command_start() argument 127 if (transport->Write(cmd, cmdsize) != static_cast<int>(cmdsize)) { in _command_start() 129 transport->Close(); in _command_start() 133 return check_response(transport, size, response); in _command_start() [all …]
|
D | fastboot.cpp | 245 static Transport* transport = nullptr; in open_device() local 248 if (transport != nullptr) { in open_device() 249 return transport; in open_device() 282 transport = tcp::Connect(host, port, &error).release(); in open_device() 284 transport = udp::Connect(host, port, &error).release(); in open_device() 287 if (transport == nullptr && announce) { in open_device() 291 transport = usb_open(match_fastboot); in open_device() 294 if (transport != nullptr) { in open_device() 295 return transport; in open_device() 766 static int64_t get_target_sparse_limit(Transport* transport) { in get_target_sparse_limit() argument [all …]
|
D | fastboot.h | 42 int fb_command(Transport* transport, const char* cmd); 43 int fb_command_response(Transport* transport, const char* cmd, char* response); 44 int64_t fb_download_data(Transport* transport, const void* data, uint32_t size); 45 int64_t fb_download_data_fd(Transport* transport, int fd, uint32_t size); 46 int fb_download_data_sparse(Transport* transport, struct sparse_file* s); 47 int64_t fb_upload_data(Transport* transport, const char* outfile); 54 bool fb_getvar(Transport* transport, const std::string& key, std::string* value); 72 int64_t fb_execute_queue(Transport* transport);
|
D | engine.cpp | 79 bool fb_getvar(Transport* transport, const std::string& key, std::string* value) { in fb_getvar() argument 85 if (fb_command_response(transport, cmd.c_str(), buf)) { in fb_getvar() 363 int64_t fb_execute_queue(Transport* transport) in fb_execute_queue() argument 383 status = fb_download_data(transport, a->data, a->size); in fb_execute_queue() 387 status = fb_download_data_fd(transport, a->fd, a->size); in fb_execute_queue() 391 status = fb_command(transport, a->cmd); in fb_execute_queue() 395 status = fb_command_response(transport, a->cmd, resp); in fb_execute_queue() 401 status = fb_download_data_sparse(transport, reinterpret_cast<sparse_file*>(a->data)); in fb_execute_queue() 405 transport->WaitForDisconnect(); in fb_execute_queue() 407 status = fb_upload_data(transport, reinterpret_cast<char*>(a->data)); in fb_execute_queue()
|
/system/core/liblog/ |
D | config_write.c | 30 struct listnode* list, struct android_log_transport_write* transport) { in __android_log_add_transport() argument 38 if (!transport->available || ((*transport->available)(i) >= 0)) { in __android_log_add_transport() 39 list_add_tail(list, &transport->node); in __android_log_add_transport() 48 (!transport->available || ((*transport->available)(i) >= 0))) { in __android_log_add_transport() 49 list_add_tail(list, &transport->node); in __android_log_add_transport() 107 struct android_log_transport_write* transport; in __android_log_config_write_close() local 110 write_transport_for_each_safe(transport, n, &__android_log_transport_write) { in __android_log_config_write_close() 111 transport->logMask = 0; in __android_log_config_write_close() 112 list_remove(&transport->node); in __android_log_config_write_close() 114 write_transport_for_each_safe(transport, n, &__android_log_persist_write) { in __android_log_config_write_close() [all …]
|
D | config_read.c | 30 struct listnode* list, struct android_log_transport_read* transport) { in __android_log_add_transport() argument 38 if (!transport->available || ((*transport->available)(i) >= 0)) { in __android_log_add_transport() 39 list_add_tail(list, &transport->node); in __android_log_add_transport() 48 (!transport->available || ((*transport->available)(i) >= 0))) { in __android_log_add_transport() 49 list_add_tail(list, &transport->node); in __android_log_add_transport() 77 struct android_log_transport_read* transport; in __android_log_config_read_close() local 80 read_transport_for_each_safe(transport, n, &__android_log_transport_read) { in __android_log_config_read_close() 81 list_remove(&transport->node); in __android_log_config_read_close() 83 read_transport_for_each_safe(transport, n, &__android_log_persist_read) { in __android_log_config_read_close() 84 list_remove(&transport->node); in __android_log_config_read_close()
|
D | logger_read.c | 57 struct android_log_transport_read* transport; in init_transport_context() local 68 if (!list_empty(&logger_list->transport)) { in init_transport_context() 84 read_transport_for_each(transport, node) { in init_transport_context() 95 if (transport->read && in init_transport_context() 96 (!transport->available || (transport->available(logId) >= 0))) { in init_transport_context() 108 transp->transport = transport; in init_transport_context() 111 list_add_tail(&logger_list->transport, &transp->node); in init_transport_context() 113 if (list_empty(&logger_list->transport)) { in init_transport_context() 136 transp->transport && transp->transport->func) { \ 138 (transp->transport->func)(logger_internal, transp, ##args); \ [all …]
|
D | logger_write.c | 137 struct android_log_transport_write* transport; in __android_log_close() local 156 write_transport_for_each(transport, &__android_log_persist_write) { in __android_log_close() 157 if (transport->close) { in __android_log_close() 158 (*transport->close)(); in __android_log_close() 162 write_transport_for_each(transport, &__android_log_transport_write) { in __android_log_close() 163 if (transport->close) { in __android_log_close() 164 (*transport->close)(); in __android_log_close() 195 struct android_log_transport_write* transport; in __write_to_log_initialize() local 200 write_transport_for_each_safe(transport, n, &__android_log_transport_write) { in __write_to_log_initialize() 201 __android_log_cache_available(transport); in __write_to_log_initialize() [all …]
|
/system/core/adb/ |
D | adb_listeners.cpp | 49 atransport* transport = nullptr; member in alistener 64 if (transport) { in ~alistener() 65 transport->RemoveDisconnect(&disconnect); in ~alistener() 106 s->transport = listener->transport; in listener_event_func() 120 (*iter)->transport = nullptr; in listener_disconnect() 139 l->transport->serial ? l->transport->serial : "(reverse)", in format_listeners() 145 InstallStatus remove_listener(const char* local_name, atransport* transport) in remove_listener() argument 179 atransport* transport, int no_rebind, int* resolved_tcp_port, in install_listener() argument 197 if (l->transport != transport) { in install_listener() 198 l->transport->RemoveDisconnect(&l->disconnect); in install_listener() [all …]
|
D | transport_test.cpp | 23 TEST(transport, kick_transport) { in TEST() argument 44 TEST(transport, RunDisconnects) { in TEST() argument 68 TEST(transport, SetFeatures) { in TEST() argument 96 TEST(transport, parse_banner_no_features) { in TEST() argument 110 TEST(transport, parse_banner_product_features) { in TEST() argument 126 TEST(transport, parse_banner_features) { in TEST() argument 145 TEST(transport, test_matches_target) { in TEST() argument 176 TEST(transport, test_matches_target_local) { in TEST() argument
|
D | sockets.cpp | 118 if (s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets() 402 asocket* create_local_service_socket(const char* name, const atransport* transport) { in create_local_service_socket() argument 411 int fd = service_to_fd(name, transport); in create_local_service_socket() 454 send_packet(p, s->transport); in remote_socket_enqueue() 464 send_packet(p, s->transport); in remote_socket_ready() 476 send_packet(p, s->transport); in remote_socket_shutdown() 509 s->transport = t; in create_remote_socket() 529 send_packet(p, s->transport); in connect_to_remote() 794 if (s->transport == nullptr) { in smart_socket_enqueue() 796 s->transport = acquire_one_transport(kTransportAny, nullptr, 0, nullptr, &error_msg); in smart_socket_enqueue() [all …]
|
D | adb_listeners.h | 36 atransport* transport, int no_rebind, int* resolved_tcp_port, 41 InstallStatus remove_listener(const char* local_name, atransport* transport);
|
/system/bt/stack/l2cap/ |
D | l2c_link.cc | 274 UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, in l2c_link_sec_comp() argument 276 l2c_link_sec_comp2(*p_bda, transport, p_ref_data, status); in l2c_link_sec_comp() 280 UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, in l2c_link_sec_comp2() argument 296 p_lcb = l2cu_find_lcb_by_bd_addr(p_bda, transport); in l2c_link_sec_comp2() 346 tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR; in l2c_link_hci_disc_comp() local 366 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_hci_disc_comp() 386 if (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_hci_disc_comp() 399 transport = p_lcb->transport; in l2c_link_hci_disc_comp() 402 if (p_lcb->transport == BT_TRANSPORT_LE) { in l2c_link_hci_disc_comp() 404 btm_acl_removed(p_lcb->remote_bd_addr, p_lcb->transport); in l2c_link_hci_disc_comp() [all …]
|
/system/bt/bta/gatt/ |
D | bta_gattc_utils.cc | 154 tBTA_TRANSPORT transport) { in bta_gattc_find_clcb_by_cif() argument 160 p_clcb->transport == transport && p_clcb->bda == remote_bda) in bta_gattc_find_clcb_by_cif() 195 tBTA_TRANSPORT transport) { in bta_gattc_clcb_alloc() argument 208 p_clcb->transport = transport; in bta_gattc_clcb_alloc() 241 tBTA_TRANSPORT transport) { in bta_gattc_find_alloc_clcb() argument 244 p_clcb = bta_gattc_find_clcb_by_cif(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb() 246 p_clcb = bta_gattc_clcb_alloc(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb() 447 tGATT_TRANSPORT transport; in bta_gattc_clear_notif_registration() local 450 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration() 567 tBTA_TRANSPORT transport, uint16_t mtu) { in bta_gattc_send_open_cback() argument [all …]
|
D | bta_gatts_act.cc | 48 tGATT_TRANSPORT transport); 377 tBTA_TRANSPORT transport; in bta_gatts_indicate_handle() local 385 &gatt_if, remote_bda, &transport)) { in bta_gatts_indicate_handle() 399 if (transport == BTA_TRANSPORT_BR_EDR) { in bta_gatts_indicate_handle() 439 p_msg->api_open.is_direct, p_msg->api_open.transport, in bta_gatts_open() 444 &conn_id, p_msg->api_open.transport)) { in bta_gatts_open() 498 tBTA_GATT_TRANSPORT transport; in bta_gatts_close() local 501 &transport)) { in bta_gatts_close() 512 if (transport == BTA_TRANSPORT_BR_EDR) in bta_gatts_close() 537 tBTA_GATT_TRANSPORT transport; in bta_gatts_send_request_cback() local [all …]
|
/system/bt/stack/gatt/ |
D | gatt_attr.cc | 52 tBT_TRANSPORT transport); 121 const RawAddress& bda, tBT_TRANSPORT transport) { in gatt_profile_find_clcb_by_bd_addr() argument 127 if (p_clcb->in_use && p_clcb->transport == transport && p_clcb->connected && in gatt_profile_find_clcb_by_bd_addr() 158 p_clcb->transport = tranport; in gatt_profile_clcb_alloc() 242 tBT_TRANSPORT transport) { in gatt_connect_cback() argument 248 gatt_profile_find_clcb_by_bd_addr(bda, transport); in gatt_connect_cback() 439 tBT_TRANSPORT transport) { in GATT_ConfigServiceChangeCCC() argument 441 gatt_profile_find_clcb_by_bd_addr(remote_bda, transport); in GATT_ConfigServiceChangeCCC() 444 p_clcb = gatt_profile_clcb_alloc(0, remote_bda, transport); in GATT_ConfigServiceChangeCCC() 449 transport)) { in GATT_ConfigServiceChangeCCC() [all …]
|
D | gatt_main.cc | 52 tBT_TRANSPORT transport); 194 tBT_TRANSPORT transport, uint8_t initiating_phys) { in gatt_connect() argument 200 if (transport == BT_TRANSPORT_LE) { in gatt_connect() 316 (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() 334 p_tcb->transport); in gatt_update_app_use_link_flag() 349 tBT_TRANSPORT transport, bool opportunistic, in gatt_act_connect() argument 355 p_tcb = gatt_find_tcb_by_addr(bd_addr, transport); in gatt_act_connect() 362 transport == BT_TRANSPORT_LE) { in gatt_act_connect() 363 if (!gatt_connect(bd_addr, p_tcb, transport, initiating_phys)) in gatt_act_connect() [all …]
|
/system/tools/hidl/test/vendor/1.0/ |
D | Android.mk | 32 -randroid.hidl:system/libhidl/transport \ 52 -randroid.hidl:system/libhidl/transport \ 72 -randroid.hidl:system/libhidl/transport \ 92 -randroid.hidl:system/libhidl/transport \ 129 -randroid.hidl:system/libhidl/transport \ 149 -randroid.hidl:system/libhidl/transport \ 169 -randroid.hidl:system/libhidl/transport \ 189 -randroid.hidl:system/libhidl/transport \ 220 -randroid.hidl:system/libhidl/transport \
|
/system/tools/hidl/ |
D | README.md | 29 … -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware… 30 … -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware… 31 … -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware… 32 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport a…
|
/system/bt/stack/btm/ |
D | btm_acl.cc | 93 tACL_CONN* btm_bda_to_acl(const RawAddress& bda, tBT_TRANSPORT transport) { in btm_bda_to_acl() argument 97 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl() 190 tBT_TRANSPORT transport) { in btm_acl_created() argument 196 hci_handle, link_role, transport); in btm_acl_created() 198 p = btm_bda_to_acl(bda, transport); in btm_acl_created() 202 p->transport = transport; in btm_acl_created() 217 p->transport = transport; in btm_acl_created() 219 if (transport == BT_TRANSPORT_LE) in btm_acl_created() 237 if (transport == BT_TRANSPORT_BR_EDR) { in btm_acl_created() 247 if (p_dev_rec && !(transport == BT_TRANSPORT_LE)) { in btm_acl_created() [all …]
|
/system/bt/stack/smp/ |
D | smp_l2c.cc | 37 tBT_TRANSPORT transport); 43 tBT_TRANSPORT transport); 93 tBT_TRANSPORT transport) { in smp_connect_callback() argument 99 if (transport == BT_TRANSPORT_BR_EDR || bd_addr.IsEmpty()) return; in smp_connect_callback() 227 tBT_TRANSPORT transport) { in smp_br_connect_callback() argument 233 if (transport != BT_TRANSPORT_BR_EDR) { in smp_br_connect_callback() 235 transport); in smp_br_connect_callback()
|
/system/libvintf/ |
D | TransportArch.cpp | 24 return transport == Transport::EMPTY && arch == Arch::ARCH_EMPTY; in empty() 28 switch (transport) { in isValid()
|
/system/tools/hidl/test/hash_test/ |
D | Android.bp | 7 " -r android.hidl:system/libhidl/transport" + 12 " -r android.hidl:system/libhidl/transport" + 17 " -r android.hidl:system/libhidl/transport" +
|
/system/bt/stack/gap/ |
D | gap_conn.cc | 69 tBT_TRANSPORT transport; /* Transport channel BR/EDR or BLE */ member 166 tGAP_CONN_CALLBACK* p_cb, tBT_TRANSPORT transport) { in GAP_ConnOpen() argument 177 p_ccb->transport = transport; in GAP_ConnOpen() 205 if (transport == BT_TRANSPORT_LE) { in GAP_ConnOpen() 220 if (transport == BT_TRANSPORT_BR_EDR) { in GAP_ConnOpen() 231 if (transport == BT_TRANSPORT_LE) { in GAP_ConnOpen() 288 if (p_rem_bda && (transport == BT_TRANSPORT_BR_EDR)) { in GAP_ConnOpen() 296 if (p_rem_bda && (transport == BT_TRANSPORT_LE)) { in GAP_ConnOpen() 721 if (p_ccb->transport == BT_TRANSPORT_BR_EDR) in gap_connect_ind() 729 if (p_ccb->transport == BT_TRANSPORT_BR_EDR) in gap_connect_ind() [all …]
|
/system/libhidl/ |
D | update-makefiles.sh | 14 hidl-gen -Lmakefile -r android.hidl:system/libhidl/transport $package 15 hidl-gen -Landroidbp -r android.hidl:system/libhidl/transport $package
|