/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_gatt_api.h | 106 static tGATT_STATUS return_value; 107 std::function<tGATT_STATUS(uint16_t conn_id, uint16_t mtu)> body{ 109 tGATT_STATUS operator()(uint16_t conn_id, uint16_t mtu) { in operator() 119 static tGATT_STATUS return_value; 120 std::function<tGATT_STATUS(uint16_t conn_id, tGATT_DISC_TYPE disc_type, 125 tGATT_STATUS operator()(uint16_t conn_id, tGATT_DISC_TYPE disc_type, in operator() 136 static tGATT_STATUS return_value; 137 std::function<tGATT_STATUS(uint16_t conn_id, bool is_execute)> body{ 141 tGATT_STATUS operator()(uint16_t conn_id, bool is_execute) { in operator() 151 static tGATT_STATUS return_value; [all …]
|
D | mock_stack_gatt_api.cc | 83 tGATT_STATUS GATTC_ConfigureMTU::return_value = GATT_SUCCESS; 84 tGATT_STATUS GATTC_Discover::return_value = GATT_SUCCESS; 85 tGATT_STATUS GATTC_ExecuteWrite::return_value = GATT_SUCCESS; 86 tGATT_STATUS GATTC_Read::return_value = GATT_SUCCESS; 87 tGATT_STATUS GATTC_SendHandleValueConfirm::return_value = GATT_SUCCESS; 88 tGATT_STATUS GATTC_Write::return_value = GATT_SUCCESS; 89 tGATT_STATUS GATTS_AddService::return_value = GATT_SUCCESS; 91 tGATT_STATUS GATTS_HandleValueIndication::return_value = GATT_SUCCESS; 92 tGATT_STATUS GATTS_HandleValueNotification::return_value = GATT_SUCCESS; 94 tGATT_STATUS GATTS_SendRsp::return_value = GATT_SUCCESS; [all …]
|
D | mock_stack_gatt_attr.cc | 52 tGATT_STATUS proc_read_req(uint16_t /* conn_id */, tGATTS_REQ_TYPE, in proc_read_req() 58 tGATT_STATUS proc_write_req(uint16_t /* conn_id */, tGATTS_REQ_TYPE, in proc_write_req() 63 tGATT_STATUS read_attr_value(uint16_t /* conn_id */, uint16_t /* handle */, in read_attr_value() 85 base::OnceCallback<void(tGATT_STATUS status, const RawAddress&, in gatt_cl_read_sirk_req()
|
D | mock_stack_srvc_dis.cc | 54 tGATT_STATUS* /* p_status */) { in dis_read_attr_value() argument 59 tGATT_STATUS* /* p_status */) { in dis_write_attr_value() argument 64 tGATT_STATUS /* status */, in dis_c_cmpl_cback() argument
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_gatt_api.h | 130 tGATT_STATUS status; 136 tGATT_STATUS status; 144 tGATT_STATUS status; 150 tGATT_STATUS status; 155 tGATT_STATUS status; 165 tGATT_STATUS status; 170 tGATT_STATUS status; 180 tGATT_STATUS status; 202 tGATT_STATUS status; 218 tGATT_STATUS status; [all …]
|
D | bta_gatt_queue.h | 79 static void gatt_read_op_finished(uint16_t conn_id, tGATT_STATUS status, 82 static void gatt_write_op_finished(uint16_t conn_id, tGATT_STATUS status, 86 tGATT_STATUS status, void* data); 87 static void gatt_read_multi_op_finished(uint16_t conn_id, tGATT_STATUS status,
|
/packages/modules/Bluetooth/system/stack/include/ |
D | gatt_api.h | 93 } tGATT_STATUS; typedef 95 inline std::string gatt_status_text(const tGATT_STATUS& status) { in gatt_status_text() 709 tGATT_STATUS status); 714 tGATT_STATUS status, tGATT_CL_COMPLETE* p_data); 735 tGATT_STATUS status); 740 uint16_t timeout, tGATT_STATUS status); 746 tGATT_STATUS status); 855 [[nodiscard]] tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, 906 [[nodiscard]] tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, 926 [[nodiscard]] tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, [all …]
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_int.h | 333 tGATT_STATUS gatt_status; 369 tGATT_STATUS status; /* operation status */ 502 base::OnceCallback<void(tGATT_STATUS status, const RawAddress&, 512 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid); 513 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, 517 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg); 518 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t cid, 541 tGATT_STATUS gatt_send_error_rsp(tGATT_TCB& tcb, uint16_t cid, uint8_t err_code, 569 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, 571 tGATT_STATUS status, tGATTS_RSP* p_msg, [all …]
|
D | gatt_db.cc | 43 static tGATT_STATUS gatts_send_app_read_request( 78 static tGATT_STATUS gatts_check_attr_readability(const tGATT_ATTR& attr, in gatts_check_attr_readability() 170 static tGATT_STATUS read_attr_value(tGATT_ATTR& attr16, uint16_t offset, in read_attr_value() 179 tGATT_STATUS status = gatts_check_attr_readability(attr16, offset, read_long, in read_attr_value() 276 tGATT_STATUS gatts_db_read_attr_value_by_type( in gatts_db_read_attr_value_by_type() 281 tGATT_STATUS status = GATT_NOT_FOUND; in gatts_db_read_attr_value_by_type() 474 tGATT_STATUS gatts_read_attr_value_by_handle( in gatts_read_attr_value_by_handle() 483 tGATT_STATUS status = read_attr_value(*p_attr, offset, &pp, in gatts_read_attr_value_by_handle() 513 tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long, in gatts_read_attr_perm_check() 541 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() [all …]
|
D | gatt_attr.cc | 59 tGATT_STATUS status, const RawAddress&, uint8_t sirk_type, Octet16& sirk)>; 78 tGATT_STATUS status); 80 tGATT_STATUS status, 91 base::OnceCallback<void(tGATT_STATUS status, const RawAddress&, 95 static tGATT_STATUS gatt_sr_read_db_hash(uint16_t conn_id, 97 static tGATT_STATUS gatt_sr_read_cl_supp_feat(uint16_t conn_id, 99 static tGATT_STATUS gatt_sr_write_cl_supp_feat(uint16_t conn_id, 238 tGATT_STATUS read_attr_value(uint16_t conn_id, uint16_t handle, in read_attr_value() 274 tGATT_STATUS proc_read_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_read_req() 285 tGATT_STATUS proc_write_req(uint16_t conn_id, tGATTS_REQ_TYPE, in proc_write_req() [all …]
|
D | gatt_api.cc | 169 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService() 446 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication() 456 return (tGATT_STATUS)GATT_INVALID_CONN_ID; in GATTS_HandleValueIndication() 486 tGATT_STATUS cmd_status = attp_send_sr_msg(*p_tcb, cid, p_msg); in GATTS_HandleValueIndication() 495 static tGATT_STATUS GATTS_HandleMultipleValueNotification( in GATTS_HandleMultipleValueNotification() 541 tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id, in GATTS_HandleValueNotification() 559 return (tGATT_STATUS)GATT_INVALID_CONN_ID; in GATTS_HandleValueNotification() 609 tGATT_STATUS cmd_sent; in GATTS_HandleValueNotification() 640 tGATT_STATUS GATTS_SendRsp(uint16_t conn_id, uint32_t trans_id, in GATTS_SendRsp() 641 tGATT_STATUS status, tGATTS_RSP* p_msg) { in GATTS_SendRsp() [all …]
|
D | gatt_sr.cc | 263 static bool process_read_multi_rsp(tGATT_SR_CMD* p_cmd, tGATT_STATUS status, in process_read_multi_rsp() 305 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp() 307 tGATT_STATUS status, tGATTS_RSP* p_msg, in gatt_sr_process_app_rsp() 309 tGATT_STATUS ret_code = GATT_SUCCESS; in gatt_sr_process_app_rsp() 436 tGATT_STATUS err = GATT_SUCCESS; in gatt_process_read_multi_req() 545 static tGATT_STATUS gatt_build_primary_service_rsp( in gatt_build_primary_service_rsp() 548 tGATT_STATUS status = GATT_NOT_FOUND; in gatt_build_primary_service_rsp() 614 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SRV_LIST_ELEM& el, in gatt_build_find_info_rsp() 662 static tGATT_STATUS read_handles(uint16_t& len, uint8_t*& p, uint16_t& s_hdl, in read_handles() 679 static tGATT_STATUS gatts_validate_packet_format(uint8_t op_code, uint16_t& len, in gatts_validate_packet_format() [all …]
|
D | gatt_cl.cc | 135 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery() 153 tGATT_STATUS rt = GATT_INTERNAL_ERROR; in gatt_act_read() 241 tGATT_STATUS rt = gatt_send_write_msg(tcb, p_clcb, op_code, attr.handle, in gatt_act_write() 257 tGATT_STATUS rt = gatt_send_write_msg( in gatt_act_write() 295 tGATT_STATUS rt; in gatt_send_queue_write_cancel() 368 tGATT_STATUS rt = gatt_send_write_msg( in gatt_send_prepare_write() 494 tGATT_STATUS status = (tGATT_STATUS)reason; in gatt_proc_disc_error_rsp() 546 reason = static_cast<tGATT_STATUS>(0x7f); in gatt_process_error_rsp() 555 static_cast<tGATT_STATUS>(reason)); in gatt_process_error_rsp() 561 p_clcb->status = static_cast<tGATT_STATUS>(reason); in gatt_process_error_rsp() [all …]
|
D | att_protocol.cc | 375 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t lcid, in attp_send_msg_to_l2cap() 457 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg() 480 static tGATT_STATUS attp_cl_send_cmd(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_cl_send_cmd() 500 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, p_clcb->cid, p_cmd); in attp_cl_send_cmd() 539 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg() 546 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, cid, p_cmd); in attp_send_cl_confirmation_msg() 570 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg()
|
/packages/modules/Bluetooth/system/stack/srvc/ |
D | srvc_eng.cc | 40 tGATT_STATUS status, 58 tGATT_STATUS status, 192 tGATT_STATUS* p_status) { in srvc_eng_process_read_req() 193 tGATT_STATUS status = GATT_NOT_FOUND; in srvc_eng_process_read_req() 213 tGATT_STATUS* p_status) { in srvc_eng_process_write_req() 236 tGATT_STATUS status = GATT_INVALID_PDU; in srvc_eng_s_request_cback() 297 tGATT_STATUS status, in srvc_eng_c_cmpl_cback() 391 tGATT_STATUS srvc_eng_init(void) { in srvc_eng_init()
|
D | srvc_dis_int.h | 59 tGATT_STATUS* p_status); 60 uint8_t dis_write_attr_value(tGATT_WRITE_REQ* p_data, tGATT_STATUS* p_status); 62 void dis_c_cmpl_cback(tSRVC_CLCB* p_clcb, tGATTC_OPTYPE op, tGATT_STATUS status,
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | bta_gatts_act.cc | 59 tGATT_STATUS status); 62 uint16_t timeout, tGATT_STATUS status); 66 uint16_t timeout, tGATT_STATUS status); 175 tGATT_STATUS status = GATT_SUCCESS; in bta_gatts_register() 257 tGATT_STATUS status = GATT_ERROR; in bta_gatts_deregister() 366 tGATT_STATUS status = GATT_ILLEGAL_PARAMETER; in bta_gatts_indicate_handle() 424 tGATT_STATUS status = GATT_ERROR; in bta_gatts_open() 471 tGATT_STATUS status = GATT_ERROR; in bta_gatts_cancel_open() 502 tGATT_STATUS status = GATT_ERROR; in bta_gatts_close() 627 tGATT_STATUS status) { in bta_gatts_phy_update_cback() [all …]
|
D | bta_gattc_int.h | 171 tGATT_STATUS status; 309 tGATT_STATUS status; 418 void bta_gattc_send_open_cback(tBTA_GATTC_RCB* p_clreg, tGATT_STATUS status, 460 tGATT_STATUS status, tGATT_CL_COMPLETE* p_data); 479 tGATT_STATUS status); 480 tGATT_STATUS bta_gattc_discover_pri_service(uint16_t conn_id, 511 void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb, tGATT_STATUS status);
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_gatt_test.cc | 34 tGATT_STATUS status; 41 void bta_gatt_read_complete_callback(uint16_t conn_id, tGATT_STATUS status, in bta_gatt_read_complete_callback() 55 tGATT_STATUS status; 63 void bta_gatt_write_complete_callback(uint16_t conn_id, tGATT_STATUS status, in bta_gatt_write_complete_callback() 77 tGATT_STATUS status; 83 tGATT_STATUS status, void* data) { in bta_gatt_configure_mtu_complete_callback()
|
/packages/modules/Bluetooth/system/bta/test/common/ |
D | bta_gatt_api_mock.h | 49 virtual tGATT_STATUS RegisterForNotifications(tGATT_IF client_if, 52 virtual tGATT_STATUS DeregisterForNotifications(tGATT_IF client_if, 86 MOCK_METHOD((tGATT_STATUS), RegisterForNotifications, 89 MOCK_METHOD((tGATT_STATUS), DeregisterForNotifications,
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | mock_gatt_utils_ref.cc | 38 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg() 41 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg() 45 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg()
|
D | gatt_sr_test.cc | 46 tGATT_STATUS return_status_{GATT_SUCCESS}; 70 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& tcb, uint16_t cid) { in attp_send_cl_confirmation_msg() 73 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, in attp_send_cl_msg() 77 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, uint16_t cid, BT_HDR* p_msg) { in attp_send_sr_msg() 84 tGATT_STATUS gatts_db_read_attr_value_by_type( in gatts_db_read_attr_value_by_type() 93 tGATT_STATUS GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_handle, in GATTS_HandleValueIndication() 97 tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long, in gatts_read_attr_perm_check() 103 tGATT_STATUS gatts_read_attr_value_by_handle( in gatts_read_attr_value_by_handle() 110 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check()
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | devices_test.cc | 485 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F() 487 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 512 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F() 514 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 561 auto chrc_read_cb = [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in TEST_F() 563 auto cccd_write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 580 GATT_WRITE_OP_CB write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 592 GATT_WRITE_OP_CB write_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 605 GATT_READ_OP_CB read_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() 614 GATT_READ_OP_CB read_cb = [](uint16_t conn_id, tGATT_STATUS status, in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/bta/ras/ |
D | ras_client.cc | 229 [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in OnGattServiceSearchComplete() 248 [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, uint16_t len, in OnGattServiceSearchComplete() 382 tGATT_STATUS status, in GattWriteCallbackForVendorSpecificData() 421 void GattWriteCallback(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in GattWriteCallback() 445 static void GattWriteCallback(uint16_t conn_id, tGATT_STATUS status, in GattWriteCallback() 475 tGATT_STATUS register_status = BTA_GATTC_RegisterForNotifications( in SubscribeCharacteristic() 492 [](uint16_t conn_id, tGATT_STATUS status, uint16_t handle, uint16_t len, in SubscribeCharacteristic() 501 void OnDescriptorWrite(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in OnDescriptorWrite() 539 void OnReadCharacteristicCallback(uint16_t conn_id, tGATT_STATUS status, in OnReadCharacteristicCallback()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_gatt_client.cc | 431 void read_char_cb(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in read_char_cb() 453 void read_using_char_uuid_cb(uint16_t conn_id, tGATT_STATUS status, in read_using_char_uuid_cb() 480 void read_desc_cb(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in read_desc_cb() 501 void write_char_cb(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in write_char_cb() 508 tGATT_STATUS status, uint16_t handle, in write_char_cb() 530 void write_descr_cb(uint16_t conn_id, tGATT_STATUS status, uint16_t handle, in write_descr_cb() 538 tGATT_STATUS status, uint16_t handle, in write_descr_cb() 569 tGATT_STATUS status = in btif_gattc_reg_for_notification_impl() 590 tGATT_STATUS status = in btif_gattc_dereg_for_notification_impl() 706 tGATT_STATUS status, in btif_test_command_complete_cback() [all …]
|