/system/nfc/src/nfc/nci/ |
D | nci_hrcv.cc | 55 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local 62 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp() 64 << StringPrintf("nci_proc_core_rsp opcode:0x%x", op_code); in nci_proc_core_rsp() 68 switch (op_code) { in nci_proc_core_rsp() 97 LOG(ERROR) << StringPrintf("unknown opcode:0x%x", op_code); in nci_proc_core_rsp() 115 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local 127 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_ntf() 129 << StringPrintf("nci_proc_core_ntf opcode:0x%x", op_code); in nci_proc_core_ntf() 133 switch (op_code) { in nci_proc_core_ntf() 155 LOG(ERROR) << StringPrintf("unknown opcode:0x%x", op_code); in nci_proc_core_ntf() [all …]
|
/system/bt/stack/gatt/ |
D | gatt_sr.cc | 51 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument 67 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 68 (op_code == GATT_HANDLE_VALUE_CONF)) /* no pending request */ in gatt_sr_enqueue_cmd() 70 if (op_code == GATT_CMD_WRITE || op_code == GATT_SIGN_CMD_WRITE || in gatt_sr_enqueue_cmd() 71 op_code == GATT_REQ_MTU || op_code == GATT_HANDLE_VALUE_CONF) { in gatt_sr_enqueue_cmd() 75 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 96 if (cid == tcb.att_lcid) return (tcb.sr_cmd.op_code == 0); in gatt_sr_cmd_empty() 101 return (channel->server_outstanding_cmd_.op_code == 0); in gatt_sr_cmd_empty() 276 uint8_t op_code, tGATT_STATUS status, in gatt_sr_process_app_rsp() argument 286 if ((op_code == GATT_REQ_READ_MULTI) || in gatt_sr_process_app_rsp() [all …]
|
D | att_protocol.cc | 49 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd() argument 55 UINT8_TO_STREAM(p, op_code); in attp_build_mtu_cmd() 72 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd() argument 81 UINT8_TO_STREAM(p, op_code); in attp_build_exec_write_cmd() 83 if (op_code == GATT_REQ_EXEC_WRITE) { in attp_build_exec_write_cmd() 128 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd() argument 141 UINT8_TO_STREAM(p, op_code); in attp_build_browse_cmd() 193 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument 204 UINT8_TO_STREAM(p, op_code); in attp_build_read_multi_cmd() 222 static BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd() argument [all …]
|
D | gatt_cl.cc | 87 uint8_t op_code = disc_type_to_att_opcode[p_clcb->op_subtype]; in gatt_act_discovery() local 129 tGATT_STATUS st = attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, op_code, &cl_req); in gatt_act_discovery() 149 uint8_t op_code = 0; in gatt_act_read() local 156 op_code = GATT_REQ_READ_BY_TYPE; in gatt_act_read() 169 op_code = GATT_REQ_READ; in gatt_act_read() 179 op_code = GATT_REQ_READ_BLOB; in gatt_act_read() 187 op_code = GATT_REQ_READ_BLOB; in gatt_act_read() 193 op_code = GATT_REQ_READ_MULTI; in gatt_act_read() 198 op_code = GATT_REQ_READ; in gatt_act_read() 208 if (op_code != 0) rt = attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_act_read() [all …]
|
D | gatt_db.cc | 48 tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, uint16_t handle, 268 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 290 status = gatts_send_app_read_request(tcb, cid, op_code, attr.handle, in gatts_db_read_attr_value_by_type() 470 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument 479 (bool)(op_code == GATT_REQ_READ_BLOB), in gatts_read_attr_value_by_handle() 483 status = gatts_send_app_read_request(tcb, cid, op_code, p_attr->handle, in gatts_read_attr_value_by_handle() 536 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument 544 __func__, op_code, handle, offset, len, sec_flag, key_size); in gatts_write_attr_perm_check() 557 if ((op_code == GATT_CMD_WRITE || op_code == GATT_REQ_WRITE) && in gatts_write_attr_perm_check() 577 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check() [all …]
|
D | gatt_int.h | 205 uint8_t op_code; member 225 uint8_t op_code; member 477 uint8_t op_code, tGATT_CL_MSG* p_msg); 478 extern BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, 486 extern uint8_t* gatt_dbg_op_name(uint8_t op_code); 507 uint8_t err_code, uint8_t op_code, 538 uint32_t trans_id, uint8_t op_code, 543 uint8_t op_code, uint16_t len, 546 uint8_t op_code, tGATTS_DATA* p_req_data); 548 uint8_t op_code, uint16_t handle); [all …]
|
D | gatt_main.cc | 804 uint8_t op_code, pseudo_op_code; in gatt_data_process() local 812 STREAM_TO_UINT8(op_code, p); in gatt_data_process() 815 pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK); in gatt_data_process() 821 << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code); in gatt_data_process() 822 gatt_send_error_rsp(tcb, cid, GATT_REQ_NOT_SUPPORTED, op_code, 0, false); in gatt_data_process() 826 if (op_code == GATT_SIGN_CMD_WRITE) { in gatt_data_process() 830 if ((op_code % 2) == 0) in gatt_data_process() 831 gatt_server_handle_client_req(tcb, cid, op_code, msg_len, p); in gatt_data_process() 833 gatt_client_handle_server_rsp(tcb, cid, op_code, msg_len, p); in gatt_data_process()
|
D | gatt_utils.cc | 804 uint8_t op_code, uint16_t handle, bool deq) { in gatt_send_error_rsp() argument 809 msg.error.cmd_code = op_code; in gatt_send_error_rsp() 1414 uint8_t op_code, BT_HDR* p_buf) { in gatt_cmd_enq() argument 1417 cmd.op_code = op_code; in gatt_cmd_enq() 1449 *p_op_code = cmd.op_code; in gatt_cmd_dequeue() 1458 uint8_t op_code, uint16_t handle, uint16_t len, in gatt_send_write_msg() argument 1467 return attp_send_cl_msg(tcb, p_clcb, op_code, &msg); in gatt_send_write_msg() 1596 uint8_t* gatt_dbg_op_name(uint8_t op_code) { in gatt_dbg_op_name() argument 1597 uint8_t pseduo_op_code_idx = op_code & (~GATT_WRITE_CMD_MASK); in gatt_dbg_op_name() 1599 if (op_code == GATT_CMD_WRITE) { in gatt_dbg_op_name() [all …]
|
D | gatt_auth.cc | 101 uint8_t op_code; in gatt_verify_signature() local 120 STREAM_TO_UINT8(op_code, p_orig); in gatt_verify_signature() 121 gatt_server_handle_client_req(tcb, cid, op_code, (uint16_t)(p_buf->len - 1), in gatt_verify_signature()
|
/system/bt/gd/hci/ |
D | hci_packets.pdl | 648 op_code : OpCode, 854 packet Inquiry : DiscoveryCommand (op_code = INQUIRY) { 871 packet InquiryCancel : DiscoveryCommand (op_code = INQUIRY_CANCEL) { 886 packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) { 906 packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) { 937 packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) { 960 packet Disconnect : AclCommand (op_code = DISCONNECT) { 969 packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) { 983 packet AcceptConnectionRequest : ConnectionManagementCommand (op_code = ACCEPT_CONNECTION_REQUEST) { 997 packet RejectConnectionRequest : ConnectionManagementCommand (op_code = REJECT_CONNECTION_REQUEST) { [all …]
|
D | hci_layer.cc | 56 static void abort_after_time_out(OpCode op_code) { in abort_after_time_out() argument 57 bluetooth::os::LogMetricHciTimeoutEvent(static_cast<uint32_t>(op_code)); in abort_after_time_out() 58 …ASSERT_LOG(false, "Done waiting for debug information after HCI timeout (%s)", OpCodeText(op_code)… in abort_after_time_out() 140 OpCode op_code = response_view.GetCommandOpCode(); in on_command_status() local 146 op_code, in on_command_status() 147 OpCodeText(op_code).c_str()); in on_command_status() 161 OpCode op_code = response_view.GetCommandOpCode(); in handle_command_response() local 162 if (op_code == OpCode::NONE) { in handle_command_response() 168 …ommand_queue_.empty(), "Unexpected %s event with OpCode 0x%02hx (%s)", logging_id.c_str(), op_code, in handle_command_response() 169 OpCodeText(op_code).c_str()); in handle_command_response() [all …]
|
D | hci_metrics_logging.cc | 60 OpCode op_code = command_view->GetOpCode(); in log_link_layer_connection_command_status() local 75 switch (op_code) { in log_link_layer_connection_command_status() 230 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_status() 240 OpCode op_code = command_complete_view.GetCommandOpCode(); in log_link_layer_connection_command_complete() local 257 switch (op_code) { in log_link_layer_connection_command_complete() 311 static_cast<uint32_t>(op_code), in log_link_layer_connection_command_complete() 526 OpCode op_code = command_view->GetOpCode(); in log_classic_pairing_command_status() local 548 switch (op_code) { in log_classic_pairing_command_status() 681 static_cast<uint32_t>(op_code), in log_classic_pairing_command_status() 693 OpCode op_code = command_complete_view.GetCommandOpCode(); in log_classic_pairing_command_complete() local [all …]
|
D | le_scanning_manager_test.cc | 52 bool IsSupported(OpCode op_code) const override { in IsSupported() 53 return supported_opcodes_.count(op_code) == 1; in IsSupported() 56 void AddSupported(OpCode op_code) { in AddSupported() argument 57 supported_opcodes_.insert(op_code); in AddSupported() 109 ConnectionManagementCommandView GetCommand(OpCode op_code) { in GetCommand() argument 113 EXPECT_EQ(command.GetOpCode(), op_code); in GetCommand()
|
D | controller_mock.h | 128 MOCK_METHOD(bool, IsSupported, (OpCode op_code), (const));
|
D | le_advertising_manager_test.cc | 53 bool IsSupported(OpCode op_code) const override { in IsSupported() 54 return supported_opcodes_.count(op_code) == 1; in IsSupported() 57 void AddSupported(OpCode op_code) { in AddSupported() argument 58 supported_opcodes_.insert(op_code); in AddSupported() 122 void SetCommandFuture(OpCode op_code = OpCode::NONE) { in SetCommandFuture() argument 124 command_op_code_ = op_code; in SetCommandFuture() 144 ConnectionManagementCommandView GetCommand(OpCode op_code) { in GetCommand() argument 156 …d_queue_.empty(), "Expecting command %s but command queue was empty", OpCodeText(op_code).c_str()); in GetCommand() 162 EXPECT_EQ(command.GetOpCode(), op_code); in GetCommand()
|
D | controller.h | 157 virtual bool IsSupported(OpCode op_code) const;
|
D | le_address_manager_test.cc | 73 CommandView GetCommand(OpCode op_code) { in GetCommand() argument 86 …d_queue_.empty(), "Expecting command %s but command queue was empty", OpCodeText(op_code).c_str()); in GetCommand() 89 EXPECT_EQ(command_packet_view.GetOpCode(), op_code); in GetCommand()
|
/system/bt/gd/hci/acl_manager/ |
D | event_checkers.h | 32 OpCode op_code = status_view.GetCommandOpCode(); in check_command_complete() local 35 …ERROR("Received command complete with error code %s, opcode 0x%02hx", error_code.c_str(), op_code); in check_command_complete() 49 OpCode op_code = status_view.GetCommandOpCode(); in check_command_status() local 52 …G_ERROR("Received command status with error code %s, opcode 0x%02hx", error_code.c_str(), op_code); in check_command_status()
|
/system/bt/stack/test/gatt/ |
D | mock_gatt_utils_ref.cc | 42 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg() argument 50 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 72 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code, in gatt_sr_enqueue_cmd() argument
|
D | gatt_sr_test.cc | 66 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg() argument 68 test_state_.attp_build_sr_msg.op_code_ = op_code; in attp_build_sr_msg() 75 uint8_t op_code, tGATT_CL_MSG* p_msg) { in attp_send_cl_msg() argument 96 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_db_read_attr_value_by_type() argument 115 tGATT_TCB& tcb, uint16_t cid, tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_read_attr_value_by_handle() argument 121 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument
|
/system/bt/bta/test/ |
D | bta_gatt_test.cc | 158 .op_code = GATTC_OPTYPE_READ, in TEST_F() 193 .op_code = GATTC_OPTYPE_WRITE, in TEST_F() 225 .op_code = GATTC_OPTYPE_CONFIG, in TEST_F() 255 .op_code = GATTC_OPTYPE_EXE_WRITE, in TEST_F() 287 .op_code = GATTC_OPTYPE_READ, in TEST_F()
|
/system/nfc/src/nfc/tags/ |
D | rw_t1t.cc | 96 ((p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RID) || in rw_t1t_data_cback() 97 (p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RALL) || in rw_t1t_data_cback() 103 p_t1t->prev_cmd_rsp_info.op_code, in rw_t1t_data_cback() 134 ((p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RID) || in rw_t1t_data_cback() 135 (p_t1t->prev_cmd_rsp_info.op_code == T1T_CMD_RALL) || in rw_t1t_data_cback() 140 p_t1t->prev_cmd_rsp_info.op_code, in rw_t1t_data_cback() 180 p_t1t->prev_cmd_rsp_info.op_code = p_cmd_rsp_info->opcode; in rw_t1t_data_cback() 619 p_t1t->prev_cmd_rsp_info.op_code = p_cmd_rsp_info->opcode; in rw_t1t_process_error()
|
/system/bt/stack/include/ |
D | ble_hci_link_interface.h | 35 extern void btm_ble_rand_enc_complete(uint8_t* p, uint16_t op_code,
|
/system/bt/main/shim/ |
D | hci_layer.cc | 388 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local 392 bluetooth::hci::CommandBuilder::Create(op_code, std::move(payload)); in transmit_command() 394 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command() 396 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command() 571 auto op_code = static_cast<const bluetooth::hci::OpCode>(command_op_code); in transmit_command() local 573 LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str()); in transmit_command() 575 if (bluetooth::hci::Checker::IsCommandStatusOpcode(op_code)) { in transmit_command()
|
/system/bt/profile/avrcp/ |
D | connection_handler.cc | 558 uint16_t op_code = (uint16_t)(::bluetooth::Packet::Specialize<Packet>(packet)->GetOpcode()); in SendMessage() local 559 if (!browse && (op_code == (uint16_t)(Opcode::VENDOR))) { in SendMessage() 560 pkt->event = op_code; in SendMessage()
|