Home
last modified time | relevance | path

Searched refs:trans_id (Results 1 – 23 of 23) sorted by relevance

/system/bt/service/
Dgatt_server.cc340 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument
346 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadCharacteristicCallback()
351 VLOG(1) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadCharacteristicCallback()
356 conn->request_id_to_handle[trans_id] = attribute_handle; in RequestReadCharacteristicCallback()
369 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
373 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadDescriptorCallback() argument
379 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadDescriptorCallback()
384 VLOG(1) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadDescriptorCallback()
389 conn->request_id_to_handle[trans_id] = attribute_handle; in RequestReadDescriptorCallback()
402 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback()
[all …]
Dgatt_server.h205 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,
Dgatt_server_old.cc208 void RequestReadCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestReadCallback() argument
248 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestReadCallback()
251 void RequestWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestWriteCallback() argument
259 __func__, conn_id, addr.c_str(), trans_id, attr_handle, attribute_offset, in RequestWriteCallback()
304 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestWriteCallback()
307 void RequestExecWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestExecWriteCallback() argument
311 addr.c_str(), trans_id, exec_write); in RequestExecWriteCallback()
316 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestExecWriteCallback()
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc96 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 …]
Dfake_bluetooth_gatt_interface.h62 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,
Dbluetooth_gatt_interface.cc281 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 …]
Dbluetooth_gatt_interface.h142 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/
Dsrvc_eng.cc29 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()
Dsrvc_eng_int.h41 uint32_t trans_id; member
/system/bt/include/hardware/
Dbt_gatt_server.h69 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/
Dgatt_sr.cc52 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 …]
Dgatt_db.cc47 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()
Dgatt_int.h220 uint32_t trans_id; member
272 uint32_t trans_id; member
494 uint32_t trans_id, uint8_t op_code,
499 extern void gatt_sr_send_req_callback(uint16_t conn_id, uint32_t trans_id,
578 uint32_t trans_id, uint16_t* p_cur_handle);
582 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id);
Dgatt_attr.cc53 static void gatt_request_cback(uint16_t conn_id, uint32_t trans_id,
262 static void gatt_request_cback(uint16_t conn_id, uint32_t trans_id, in gatt_request_cback() argument
295 if (rsp_needed) GATTS_SendRsp(conn_id, trans_id, status, &rsp_msg); in gatt_request_cback()
Dgatt_api.cc519 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()
Dgatt_utils.cc708 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/
Dbtif_gatt_server.cc170 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/
Dbta_gatts_api.cc266 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()
Dbta_gatts_act.cc51 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()
Dbta_gatts_int.h91 uint32_t trans_id; member
/system/bt/bta/include/
Dbta_gatt_api.h278 uint32_t trans_id; member
911 extern void BTA_GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id,
/system/bt/stack/include/
Dgatt_api.h564 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/
Dgap_ble.cc191 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()