Home
last modified time | relevance | path

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

12

/system/bt/service/
Dgatt_server.cc338 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 …]
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.cc209 void RequestReadCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestReadCallback() argument
249 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestReadCallback()
252 void RequestWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestWriteCallback() argument
260 __func__, conn_id, addr.c_str(), trans_id, attr_handle, attribute_offset, in RequestWriteCallback()
305 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestWriteCallback()
308 void RequestExecWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestExecWriteCallback() argument
312 addr.c_str(), trans_id, exec_write); in RequestExecWriteCallback()
317 g_internal->gatt->server->send_response(conn_id, trans_id, 0, response); in RequestExecWriteCallback()
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc100 bt_status_t FakeSendResponse(int conn_id, int trans_id, int status, in FakeSendResponse() argument
103 return g_server_handler->SendResponse(conn_id, trans_id, status, response); in FakeSendResponse()
234 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadCharacteristicCallback() argument
237 observer.RequestReadCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestReadCharacteristicCallback()
243 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadDescriptorCallback() argument
246 observer.RequestReadDescriptorCallback(this, conn_id, trans_id, bda, in NotifyRequestReadDescriptorCallback()
252 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestWriteCharacteristicCallback() argument
255 observer.RequestWriteCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestWriteCharacteristicCallback()
262 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestWriteDescriptorCallback() argument
265 observer.RequestWriteDescriptorCallback(this, conn_id, trans_id, bda, in NotifyRequestWriteDescriptorCallback()
[all …]
Dfake_bluetooth_gatt_interface.h65 virtual bt_status_t SendResponse(int conn_id, int trans_id, int status,
109 void NotifyRequestReadCharacteristicCallback(int conn_id, int trans_id,
113 void NotifyRequestReadDescriptorCallback(int conn_id, int trans_id,
117 void NotifyRequestWriteCharacteristicCallback(int conn_id, int trans_id,
122 void NotifyRequestWriteDescriptorCallback(int conn_id, int trans_id,
127 void NotifyRequestExecWriteCallback(int conn_id, int trans_id,
Dbluetooth_gatt_interface.cc282 void RequestReadCharacteristicCallback(int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument
286 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadCharacteristicCallback()
292 g_interface, conn_id, trans_id, bda, attr_handle, offset, is_long)); in RequestReadCharacteristicCallback()
295 void RequestReadDescriptorCallback(int conn_id, int trans_id, in RequestReadDescriptorCallback() argument
299 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestReadDescriptorCallback()
305 g_interface, conn_id, trans_id, bda, attr_handle, offset, is_long)); in RequestReadDescriptorCallback()
308 void RequestWriteCharacteristicCallback(int conn_id, int trans_id, in RequestWriteCharacteristicCallback() argument
313 VLOG(2) << __func__ << " - conn_id: " << conn_id << " trans_id: " << trans_id in RequestWriteCharacteristicCallback()
320 g_interface, conn_id, trans_id, bda, attr_handle, offset, need_rsp, in RequestWriteCharacteristicCallback()
325 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,
171 bt_status_t (*send_response)(int conn_id, int trans_id, int status,
/system/bt/stack/gatt/
Dgatt_sr.cc63 uint32_t trans_id = 0; in gatt_sr_enqueue_cmd() local
72 trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
74 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
78 tcb.trans_id %= GATT_TRANS_ID_MAX; in gatt_sr_enqueue_cmd()
79 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd()
83 return trans_id; in gatt_sr_enqueue_cmd()
275 UNUSED_ATTR uint32_t trans_id, in gatt_sr_process_app_rsp() argument
339 uint32_t trans_id = 0; in gatt_process_exec_write_req() local
371 trans_id = gatt_sr_enqueue_cmd(tcb, cid, op_code, 0); in gatt_process_exec_write_req()
380 gatt_sr_send_req_callback(conn_id, trans_id, GATTS_REQ_TYPE_WRITE_EXEC, in gatt_process_exec_write_req()
[all …]
Dgatt_db.cc49 uint16_t offset, uint32_t trans_id, bt_gatt_db_attribute_type_t gatt_type);
271 uint32_t trans_id, uint16_t* p_cur_handle) { in gatts_db_read_attr_value_by_type() argument
291 0, trans_id, attr.gatt_type); in gatts_db_read_attr_value_by_type()
473 uint32_t trans_id) { in gatts_read_attr_value_by_handle() argument
484 offset, trans_id, p_attr->gatt_type); in gatts_read_attr_value_by_handle()
708 uint16_t offset, uint32_t trans_id, bt_gatt_db_attribute_type_t gatt_type) { in gatts_send_app_read_request() argument
712 if (trans_id == 0) { in gatts_send_app_read_request()
713 trans_id = gatt_sr_enqueue_cmd(tcb, cid, op_code, handle); in gatts_send_app_read_request()
717 if (trans_id != 0) { in gatts_send_app_read_request()
737 gatt_sr_send_req_callback(conn_id, trans_id, opcode, &sr_data); in gatts_send_app_read_request()
Dgatt_int.h221 uint32_t trans_id; member
291 uint32_t trans_id; member
538 uint32_t trans_id, uint8_t op_code,
545 extern void gatt_sr_send_req_callback(uint16_t conn_id, uint32_t trans_id,
576 uint32_t trans_id);
645 uint8_t key_size, uint32_t trans_id, uint16_t* p_cur_handle);
649 uint16_t mtu, tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id);
/system/bt/btif/src/
Dbtif_gatt_server.cc171 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback()
181 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback()
193 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback()
203 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback()
211 p_data->req_data.conn_id, p_data->req_data.trans_id, in btapp_gatts_handle_cback()
404 static void btif_gatts_send_response_impl(int conn_id, int trans_id, int status, in btif_gatts_send_response_impl() argument
409 BTA_GATTS_SendRsp(conn_id, trans_id, static_cast<tGATT_STATUS>(status), in btif_gatts_send_response_impl()
416 static bt_status_t btif_gatts_send_response(int conn_id, int trans_id, in btif_gatts_send_response() argument
421 trans_id, status, response)); in btif_gatts_send_response()
/system/bt/bta/gatt/
Dbta_gatts_api.cc272 void BTA_GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, tGATT_STATUS status, in BTA_GATTS_SendRsp() argument
279 p_buf->trans_id = trans_id; in BTA_GATTS_SendRsp()
Dbta_gatts_act.cc47 static void bta_gatts_send_request_cback(uint16_t conn_id, uint32_t trans_id,
353 if (GATTS_SendRsp(p_msg->api_rsp.hdr.layer_specific, p_msg->api_rsp.trans_id, in bta_gatts_send_rsp()
537 static void bta_gatts_send_request_cback(uint16_t conn_id, uint32_t trans_id, in bta_gatts_send_request_cback() argument
552 << ", trans_id=" << +trans_id << ", req_type=" << +req_type; in bta_gatts_send_request_cback()
562 cb_data.req_data.trans_id = trans_id; in bta_gatts_send_request_cback()
Dbta_gatts_int.h94 uint32_t trans_id; member
/system/bt/stack/test/common/
Dmock_eatt.cc65 uint32_t trans_id) { in FindEattChannelByTransId() argument
66 return pimpl_->FindEattChannelByTransId(bd_addr, trans_id); in FindEattChannelByTransId()
Dmock_eatt.h44 (const RawAddress& bd_addr, uint32_t trans_id));
/system/bt/test/mock/
Dmock_bta_gatts_api.cc74 void BTA_GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, tGATT_STATUS status, in BTA_GATTS_SendRsp() argument
/system/bt/stack/eatt/
Deatt.cc146 uint32_t trans_id) { in FindEattChannelByTransId() argument
147 return pimpl_->eatt_impl_->find_eatt_channel_by_transid(bd_addr, trans_id); in FindEattChannelByTransId()
Deatt_impl.h355 uint32_t trans_id) { in find_eatt_channel_by_transid()
361 [&trans_id]( in find_eatt_channel_by_transid()
363 return el.second->server_outstanding_cmd_.trans_id == trans_id; in find_eatt_channel_by_transid()
Deatt.h171 uint32_t trans_id);
/system/bt/stack/test/gatt/
Dgatt_sr_test.cc99 uint32_t trans_id, uint16_t* p_cur_handle) { in gatts_db_read_attr_value_by_type() argument
118 uint32_t trans_id) { in gatts_read_attr_value_by_handle() argument
156 void ApplicationRequestCallback(uint16_t conn_id, uint32_t trans_id, in ApplicationRequestCallback() argument
159 test_state_.application_request_callback.trans_id_ = trans_id; in ApplicationRequestCallback()
187 tcb_.trans_id = 0x12345677; in SetUp()
Dstack_gatt_test.cc55 void tGATT_REQ_CBACK(uint16_t conn_id, uint32_t trans_id, tGATTS_REQ_TYPE type, in tGATT_REQ_CBACK() argument

12