Home
last modified time | relevance | path

Searched refs:tGATT_STATUS (Results 1 – 25 of 54) sorted by relevance

123

/system/bt/test/mock/
Dmock_stack_gatt.cc90 tGATT_STATUS GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) { in GATTC_ConfigureMTU()
94 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover()
99 tGATT_STATUS GATTC_Discover(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in GATTC_Discover()
105 tGATT_STATUS GATTC_ExecuteWrite(uint16_t conn_id, bool is_execute) { in GATTC_ExecuteWrite()
109 tGATT_STATUS GATTC_Read(uint16_t conn_id, tGATT_READ_TYPE type, in GATTC_Read()
114 tGATT_STATUS GATTC_SendHandleValueConfirm(uint16_t conn_id, uint16_t cid) { in GATTC_SendHandleValueConfirm()
118 tGATT_STATUS GATTC_Write(uint16_t conn_id, tGATT_WRITE_TYPE type, in GATTC_Write()
123 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService()
128 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication()
133 tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, in GATTS_HandleValueNotification()
[all …]
Dmock_stack_srvc_dis.cc59 tGATT_STATUS* p_status) { in dis_read_attr_value()
64 tGATT_STATUS* p_status) { in dis_write_attr_value()
68 void dis_c_cmpl_cback(tSRVC_CLCB* p_clcb, tGATTC_OPTYPE op, tGATT_STATUS status, in dis_c_cmpl_cback()
Dmock_stack_gatt_attr.cc56 tGATT_STATUS proc_read_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_read_req()
61 tGATT_STATUS proc_write_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_write_req()
66 tGATT_STATUS read_attr_value(uint16_t conn_id, uint16_t handle, in read_attr_value()
/system/bt/bta/include/
Dbta_gatt_api.h129 tGATT_STATUS status;
135 tGATT_STATUS status;
143 tGATT_STATUS status;
149 tGATT_STATUS status;
154 tGATT_STATUS status;
164 tGATT_STATUS status;
169 tGATT_STATUS status;
179 tGATT_STATUS status;
201 tGATT_STATUS status;
217 tGATT_STATUS status;
[all …]
Dbta_gatt_queue.h72 static void gatt_read_op_finished(uint16_t conn_id, tGATT_STATUS status,
75 static void gatt_write_op_finished(uint16_t conn_id, tGATT_STATUS status,
78 tGATT_STATUS status, void* data);
/system/bt/stack/include/
Dgatt_api.h83 } tGATT_STATUS; typedef
649 tGATT_STATUS status);
654 tGATT_STATUS status, tGATT_CL_COMPLETE* p_data);
675 tGATT_STATUS status);
680 uint16_t timeout, tGATT_STATUS status);
800 extern tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if,
849 extern tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id,
869 extern tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id,
888 extern tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id,
889 tGATT_STATUS status, tGATTS_RSP* p_msg);
[all …]
/system/bt/stack/srvc/
Dsrvc_dis_int.h59 tGATT_STATUS* p_status);
61 tGATT_STATUS* p_status);
64 tGATT_STATUS status, tGATT_CL_COMPLETE* p_data);
Dsrvc_eng.cc36 tGATT_STATUS status,
50 tGATT_STATUS status,
204 tGATTS_RSP* p_rsp, tGATT_STATUS* p_status) { in srvc_eng_process_read_req()
205 tGATT_STATUS status = GATT_NOT_FOUND; in srvc_eng_process_read_req()
224 tGATT_STATUS* p_status) { in srvc_eng_process_write_req()
247 tGATT_STATUS status = GATT_INVALID_PDU; in srvc_eng_s_request_cback()
302 tGATT_STATUS status, in srvc_eng_c_cmpl_cback()
394 tGATT_STATUS srvc_eng_init(void) { in srvc_eng_init()
416 void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp) { in srvc_sr_rsp()
/system/bt/bta/test/common/
Dbta_gatt_api_mock.h46 virtual tGATT_STATUS RegisterForNotifications(tGATT_IF client_if,
49 virtual tGATT_STATUS DeregisterForNotifications(tGATT_IF client_if,
79 MOCK_METHOD((tGATT_STATUS), RegisterForNotifications,
82 MOCK_METHOD((tGATT_STATUS), DeregisterForNotifications,
Dbta_gatt_api_mock.cc74 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications()
81 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
/system/bt/stack/gatt/
Dgatt_db.cc47 static tGATT_STATUS gatts_send_app_read_request(
83 static tGATT_STATUS gatts_check_attr_readability(const tGATT_ATTR& attr, in gatts_check_attr_readability()
165 static tGATT_STATUS read_attr_value(tGATT_ATTR& attr16, uint16_t offset, in read_attr_value()
175 tGATT_STATUS status = gatts_check_attr_readability(attr16, offset, read_long, in read_attr_value()
267 tGATT_STATUS gatts_db_read_attr_value_by_type( in gatts_db_read_attr_value_by_type()
272 tGATT_STATUS status = GATT_NOT_FOUND; in gatts_db_read_attr_value_by_type()
469 tGATT_STATUS gatts_read_attr_value_by_handle( in gatts_read_attr_value_by_handle()
478 tGATT_STATUS status = read_attr_value(*p_attr, offset, &pp, in gatts_read_attr_value_by_handle()
508 tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long, in gatts_read_attr_perm_check()
536 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check()
[all …]
Dgatt_int.h350 tGATT_STATUS status; /* operation status */
475 extern tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid);
476 extern tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb,
480 extern tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid,
482 extern tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t cid,
506 extern tGATT_STATUS gatt_send_error_rsp(tGATT_TCB& tcb, uint16_t cid,
537 extern tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if,
539 tGATT_STATUS status,
550 extern void gatt_notify_phy_updated(tGATT_STATUS status, uint16_t handle,
597 extern tGATT_STATUS gatt_send_write_msg(tGATT_TCB& p_tcb, tGATT_CLCB* p_clcb,
[all …]
Dgatt_attr.cc70 tGATT_STATUS status);
72 tGATT_STATUS status,
79 static tGATT_STATUS gatt_sr_read_db_hash(uint16_t conn_id,
81 static tGATT_STATUS gatt_sr_read_cl_supp_feat(uint16_t conn_id,
83 static tGATT_STATUS gatt_sr_write_cl_supp_feat(uint16_t conn_id,
208 tGATT_STATUS read_attr_value(uint16_t conn_id, uint16_t handle, in read_attr_value()
244 tGATT_STATUS proc_read_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_read_req()
255 tGATT_STATUS proc_write_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_write_req()
286 tGATT_STATUS status = GATT_INVALID_PDU; in gatt_request_cback()
485 tGATT_STATUS status) { in gatt_disc_cmpl_cback()
[all …]
Dgatt_api.cc170 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService()
437 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication()
447 return (tGATT_STATUS)GATT_INVALID_CONN_ID; in GATTS_HandleValueIndication()
475 tGATT_STATUS cmd_status = attp_send_sr_msg(*p_tcb, cid, p_msg); in GATTS_HandleValueIndication()
498 tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, in GATTS_HandleValueNotification()
511 return (tGATT_STATUS)GATT_INVALID_CONN_ID; in GATTS_HandleValueNotification()
524 tGATT_STATUS cmd_sent; in GATTS_HandleValueNotification()
553 tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, in GATTS_SendRsp()
554 tGATT_STATUS status, tGATTS_RSP* p_msg) { in GATTS_SendRsp()
566 return (tGATT_STATUS)GATT_INVALID_CONN_ID; in GATTS_SendRsp()
[all …]
Dgatt_sr.cc232 static bool process_read_multi_rsp(tGATT_SR_CMD* p_cmd, tGATT_STATUS status, in process_read_multi_rsp()
274 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp()
276 uint8_t op_code, tGATT_STATUS status, in gatt_sr_process_app_rsp()
279 tGATT_STATUS ret_code = GATT_SUCCESS; in gatt_sr_process_app_rsp()
407 tGATT_STATUS err = GATT_SUCCESS; in gatt_process_read_multi_req()
505 static tGATT_STATUS gatt_build_primary_service_rsp( in gatt_build_primary_service_rsp()
509 tGATT_STATUS status = GATT_NOT_FOUND; in gatt_build_primary_service_rsp()
575 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SRV_LIST_ELEM& el, in gatt_build_find_info_rsp()
623 static tGATT_STATUS read_handles(uint16_t& len, uint8_t*& p, uint16_t& s_hdl, in read_handles()
640 static tGATT_STATUS gatts_validate_packet_format(uint8_t op_code, uint16_t& len, in gatts_validate_packet_format()
[all …]
Datt_protocol.cc328 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t lcid, in attp_send_msg_to_l2cap()
404 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg()
427 static tGATT_STATUS attp_cl_send_cmd(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_cl_send_cmd()
441 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, p_clcb->cid, p_cmd); in attp_cl_send_cmd()
471 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg()
478 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, cid, p_cmd); in attp_send_cl_confirmation_msg()
502 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg()
Dgatt_cl.cc129 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery()
147 tGATT_STATUS rt = GATT_INTERNAL_ERROR; in gatt_act_read()
229 tGATT_STATUS rt = gatt_send_write_msg(tcb, p_clcb, op_code, attr.handle, in gatt_act_write()
245 tGATT_STATUS rt = gatt_send_write_msg( in gatt_act_write()
284 tGATT_STATUS rt; in gatt_send_queue_write_cancel()
357 tGATT_STATUS rt = gatt_send_write_msg( in gatt_send_prepare_write()
484 tGATT_STATUS status = (tGATT_STATUS)reason; in gatt_proc_disc_error_rsp()
538 reason = static_cast<tGATT_STATUS>(0x7f); in gatt_process_error_rsp()
547 static_cast<tGATT_STATUS>(reason)); in gatt_process_error_rsp()
553 p_clcb->status = static_cast<tGATT_STATUS>(reason); in gatt_process_error_rsp()
[all …]
/system/bt/bta/test/
Dbta_gatt_test.cc35 tGATT_STATUS status;
42 void bta_gatt_read_complete_callback(uint16_t conn_id, tGATT_STATUS status, in bta_gatt_read_complete_callback()
56 tGATT_STATUS status;
62 void bta_gatt_write_complete_callback(uint16_t conn_id, tGATT_STATUS status, in bta_gatt_write_complete_callback()
73 tGATT_STATUS status;
79 tGATT_STATUS status, void* data) { in bta_gatt_configure_mtu_complete_callback()
/system/bt/stack/test/gatt/
Dmock_gatt_utils_ref.cc46 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg()
49 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg()
53 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg()
Dstack_gatt_test.cc49 tGATT_STATUS status) {} in tGATT_DISC_CMPL_CB()
50 void tGATT_CMPL_CBACK(uint16_t conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, in tGATT_CMPL_CBACK()
60 uint8_t rx_phy, tGATT_STATUS status) {} in tGATT_PHY_UPDATE_CB()
63 tGATT_STATUS status) {} in tGATT_CONN_UPDATE_CB()
Dgatt_sr_test.cc50 tGATT_STATUS return_status_{GATT_SUCCESS};
71 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg()
74 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg()
78 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg()
95 tGATT_STATUS gatts_db_read_attr_value_by_type( in gatts_db_read_attr_value_by_type()
104 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication()
108 tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long, in gatts_read_attr_perm_check()
114 tGATT_STATUS gatts_read_attr_value_by_handle( in gatts_read_attr_value_by_handle()
121 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check()
/system/bt/bta/gatt/
Dbta_gatts_act.cc53 tGATT_STATUS status);
56 uint16_t timeout, tGATT_STATUS status);
178 tGATT_STATUS status = GATT_SUCCESS; in bta_gatts_register()
261 tGATT_STATUS status = GATT_ERROR; in bta_gatts_deregister()
371 tGATT_STATUS status = GATT_ILLEGAL_PARAMETER; in bta_gatts_indicate_handle()
430 tGATT_STATUS status = GATT_ERROR; in bta_gatts_open()
468 tGATT_STATUS status = GATT_ERROR; in bta_gatts_cancel_open()
499 tGATT_STATUS status = GATT_ERROR; in bta_gatts_close()
623 tGATT_STATUS status) { in bta_gatts_phy_update_cback()
641 uint16_t timeout, tGATT_STATUS status) { in bta_gatts_conn_update_cback()
Dbta_gattc_int.h139 tGATT_STATUS status;
270 tGATT_STATUS status;
395 tGATT_STATUS status,
448 tGATT_STATUS status);
449 extern tGATT_STATUS bta_gattc_discover_pri_service(uint16_t conn_id,
472 tGATT_STATUS status);
/system/bt/bta/vc/
Dvc.cc104 void OnGattConnected(tGATT_STATUS status, uint16_t connection_id, in OnGattConnected()
195 void OnServiceSearchComplete(uint16_t connection_id, tGATT_STATUS status) { in OnServiceSearchComplete()
225 void OnCharacteristicValueChanged(uint16_t conn_id, tGATT_STATUS status, in OnCharacteristicValueChanged()
296 void OnGattWriteCcc(uint16_t connection_id, tGATT_STATUS status, in OnGattWriteCcc()
321 static void OnGattWriteCccStatic(uint16_t connection_id, tGATT_STATUS status, in OnGattWriteCccStatic()
371 void OnWriteControlResponse(uint16_t connection_id, tGATT_STATUS status, in OnWriteControlResponse()
451 [](uint16_t connection_id, tGATT_STATUS status, uint16_t handle, in devices_control_point_helper()
519 static void chrc_read_callback_static(uint16_t conn_id, tGATT_STATUS status, in chrc_read_callback_static()
Ddevices_test.cc355 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F()
357 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F()
381 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F()
383 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F()
423 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F()
425 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F()
446 GATT_WRITE_OP_CB write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F()
457 GATT_WRITE_OP_CB write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F()

123