/system/bt/service/ |
D | gatt_server.cc | 338 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument 344 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadCharacteristicCallback() 349 VLOG(1) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadCharacteristicCallback() 354 conn->request_id_to_handle[trans_id] = attribute_handle; in RequestReadCharacteristicCallback() 367 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback() 371 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadDescriptorCallback() argument 377 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadDescriptorCallback() 382 VLOG(1) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadDescriptorCallback() 387 conn->request_id_to_handle[trans_id] = attribute_handle; in RequestReadDescriptorCallback() 400 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback() [all …]
|
D | gatt_server.h | 205 hal::BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 209 int conn_id, int trans_id, 214 hal::BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 218 int conn_id, int trans_id, 223 int conn_id, int trans_id,
|
D | gatt_server_old.cc | 207 void RequestReadCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestReadCallback() argument 247 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestReadCallback() 250 void RequestWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestWriteCallback() argument 258 __func__, conn_id, addr.c_str(), trans_id, attr_handle, in RequestWriteCallback() 303 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestWriteCallback() 306 void RequestExecWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestExecWriteCallback() argument 310 conn_id, addr.c_str(), trans_id, exec_write); in RequestExecWriteCallback() 315 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestExecWriteCallback()
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.cc | 96 bt_status_t FakeSendResponse(int conn_id, int trans_id, int status, in FakeSendResponse() argument 99 return g_server_handler->SendResponse(conn_id, trans_id, status, response); in FakeSendResponse() 230 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadCharacteristicCallback() argument 233 observer.RequestReadCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestReadCharacteristicCallback() 239 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadDescriptorCallback() argument 242 observer.RequestReadDescriptorCallback(this, conn_id, trans_id, bda, in NotifyRequestReadDescriptorCallback() 248 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestWriteCharacteristicCallback() argument 251 observer.RequestWriteCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestWriteCharacteristicCallback() 258 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestWriteDescriptorCallback() argument 261 observer.RequestWriteDescriptorCallback(this, conn_id, trans_id, bda, in NotifyRequestWriteDescriptorCallback() [all …]
|
D | fake_bluetooth_gatt_interface.h | 62 virtual bt_status_t SendResponse(int conn_id, int trans_id, int status, 106 void NotifyRequestReadCharacteristicCallback(int conn_id, int trans_id, 110 void NotifyRequestReadDescriptorCallback(int conn_id, int trans_id, 114 void NotifyRequestWriteCharacteristicCallback(int conn_id, int trans_id, 119 void NotifyRequestWriteDescriptorCallback(int conn_id, int trans_id, 124 void NotifyRequestExecWriteCallback(int conn_id, int trans_id,
|
D | bluetooth_gatt_interface.cc | 281 void RequestReadCharacteristicCallback(int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument 285 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadCharacteristicCallback() 291 g_interface, conn_id, trans_id, bda, attr_handle, offset, is_long)); in RequestReadCharacteristicCallback() 294 void RequestReadDescriptorCallback(int conn_id, int trans_id, in RequestReadDescriptorCallback() argument 298 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadDescriptorCallback() 304 g_interface, conn_id, trans_id, bda, attr_handle, offset, is_long)); in RequestReadDescriptorCallback() 307 void RequestWriteCharacteristicCallback(int conn_id, int trans_id, in RequestWriteCharacteristicCallback() argument 312 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestWriteCharacteristicCallback() 319 g_interface, conn_id, trans_id, bda, attr_handle, offset, need_rsp, in RequestWriteCharacteristicCallback() 324 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in RequestWriteDescriptorCallback() argument [all …]
|
D | bluetooth_gatt_interface.h | 142 BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 146 BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 150 BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 156 BluetoothGattInterface* gatt_iface, int conn_id, int trans_id, 162 int conn_id, int trans_id,
|
/system/bt/stack/srvc/ |
D | srvc_eng.cc | 29 static void srvc_eng_s_request_cback(uint16_t conn_id, uint32_t trans_id, 244 static void srvc_eng_s_request_cback(uint16_t conn_id, uint32_t trans_id, in srvc_eng_s_request_cback() argument 257 srvc_eng_cb.clcb[clcb_idx].trans_id = trans_id; in srvc_eng_s_request_cback() 287 srvc_eng_cb.clcb[clcb_idx].trans_id = 0; in srvc_eng_s_request_cback() 289 if (act == SRVC_ACT_RSP) GATTS_SendRsp(conn_id, trans_id, status, &rsp_msg); in srvc_eng_s_request_cback() 417 if (srvc_eng_cb.clcb[clcb_idx].trans_id != 0) { in srvc_sr_rsp() 419 srvc_eng_cb.clcb[clcb_idx].trans_id, st, p_rsp); in srvc_sr_rsp() 421 srvc_eng_cb.clcb[clcb_idx].trans_id = 0; in srvc_sr_rsp()
|
D | srvc_eng_int.h | 41 uint32_t trans_id; member
|
/system/bt/include/hardware/ |
D | bt_gatt_server.h | 69 typedef void (*request_read_callback)(int conn_id, int trans_id, 77 typedef void (*request_write_callback)(int conn_id, int trans_id, 83 typedef void (*request_exec_write_callback)(int conn_id, int trans_id, 170 bt_status_t (*send_response)(int conn_id, int trans_id, int status,
|
/system/bt/stack/gatt/ |
D | gatt_sr.cc | 52 uint32_t trans_id = 0; in gatt_sr_enqueue_cmd() local 59 trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd() 61 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd() 65 tcb.trans_id %= GATT_TRANS_ID_MAX; in gatt_sr_enqueue_cmd() 66 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd() 70 return trans_id; in gatt_sr_enqueue_cmd() 230 UNUSED_ATTR uint32_t trans_id, in gatt_sr_process_app_rsp() argument 291 uint32_t trans_id = 0; in gatt_process_exec_write_req() local 322 trans_id = gatt_sr_enqueue_cmd(tcb, op_code, 0); in gatt_process_exec_write_req() 331 gatt_sr_send_req_callback(conn_id, trans_id, GATTS_REQ_TYPE_WRITE_EXEC, in gatt_process_exec_write_req() [all …]
|
D | gatt_db.cc | 47 uint32_t trans_id, bt_gatt_db_attribute_type_t gatt_type); 257 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id, in gatts_db_read_attr_value_by_type() argument 278 trans_id, attr.gatt_type); in gatts_db_read_attr_value_by_type() 445 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id) { in gatts_read_attr_value_by_handle() argument 456 trans_id, p_attr->gatt_type); in gatts_read_attr_value_by_handle() 680 uint32_t trans_id, bt_gatt_db_attribute_type_t gatt_type) { in gatts_send_app_read_request() argument 684 if (trans_id == 0) { in gatts_send_app_read_request() 685 trans_id = gatt_sr_enqueue_cmd(tcb, op_code, handle); in gatts_send_app_read_request() 689 if (trans_id != 0) { in gatts_send_app_read_request() 709 gatt_sr_send_req_callback(conn_id, trans_id, opcode, &sr_data); in gatts_send_app_read_request()
|
D | gatt_int.h | 219 uint32_t trans_id; member 271 uint32_t trans_id; member 477 uint32_t trans_id, uint8_t op_code, 482 extern void gatt_sr_send_req_callback(uint16_t conn_id, uint32_t trans_id, 561 uint32_t trans_id, uint16_t* p_cur_handle); 565 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id);
|
D | gatt_attr.cc | 47 static void gatt_request_cback(uint16_t conn_id, uint32_t trans_id, 194 static void gatt_request_cback(uint16_t conn_id, uint32_t trans_id, in gatt_request_cback() argument 229 if (!ignore) GATTS_SendRsp(conn_id, trans_id, status, &rsp_msg); in gatt_request_cback()
|
D | gatt_api.cc | 519 tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, in GATTS_SendRsp() argument 528 << ", trans_id=" << loghex(trans_id) << ", status=" << loghex(status); in GATTS_SendRsp() 535 if (p_tcb->sr_cmd.trans_id != trans_id) { in GATTS_SendRsp() 541 cmd_sent = gatt_sr_process_app_rsp(*p_tcb, gatt_if, trans_id, in GATTS_SendRsp()
|
D | gatt_utils.cc | 708 void gatt_sr_send_req_callback(uint16_t conn_id, uint32_t trans_id, in gatt_sr_send_req_callback() argument 719 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data); in gatt_sr_send_req_callback()
|
/system/bt/btif/src/ |
D | btif_gatt_server.cc | 170 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback() 180 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback() 192 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback() 202 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback() 210 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback() 402 static void btif_gatts_send_response_impl(int conn_id, int trans_id, int status, in btif_gatts_send_response_impl() argument 407 BTA_GATTS_SendRsp(conn_id, trans_id, status, &rsp_struct); in btif_gatts_send_response_impl() 413 static bt_status_t btif_gatts_send_response(int conn_id, int trans_id, in btif_gatts_send_response() argument 418 trans_id, status, response)); in btif_gatts_send_response()
|
/system/bt/bta/gatt/ |
D | bta_gatts_api.cc | 266 void BTA_GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, tGATT_STATUS status, in BTA_GATTS_SendRsp() argument 273 p_buf->trans_id = trans_id; in BTA_GATTS_SendRsp()
|
D | bta_gatts_act.cc | 51 static void bta_gatts_send_request_cback(uint16_t conn_id, uint32_t trans_id, 354 if (GATTS_SendRsp(p_msg->api_rsp.hdr.layer_specific, p_msg->api_rsp.trans_id, in bta_gatts_send_rsp() 538 static void bta_gatts_send_request_cback(uint16_t conn_id, uint32_t trans_id, in bta_gatts_send_request_cback() argument 553 << ", trans_id=" << +trans_id << ", req_type=" << +req_type; in bta_gatts_send_request_cback() 563 cb_data.req_data.trans_id = trans_id; in bta_gatts_send_request_cback()
|
D | bta_gatts_int.h | 91 uint32_t trans_id; member
|
/system/bt/bta/include/ |
D | bta_gatt_api.h | 278 uint32_t trans_id; member 911 extern void BTA_GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id,
|
/system/bt/stack/include/ |
D | gatt_api.h | 564 typedef void(tGATT_REQ_CBACK)(uint16_t conn_id, uint32_t trans_id, 789 extern tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id,
|
/system/bt/stack/gap/ |
D | gap_ble.cc | 191 void server_attr_request_cback(uint16_t conn_id, uint32_t trans_id, in server_attr_request_cback() argument 230 if (!ignore) GATTS_SendRsp(conn_id, trans_id, status, &rsp_msg); in server_attr_request_cback()
|