Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 82) sorted by relevance

1234

/system/core/libappfuse/tests/
DFuseBridgeLoopTest.cc64 void CheckNotImpl(uint32_t opcode) { in CheckNotImpl() argument
65 SCOPED_TRACE((std::ostringstream() << "opcode: " << opcode).str()); in CheckNotImpl()
68 request_.header.opcode = opcode; in CheckNotImpl()
78 void CheckProxy(uint32_t opcode) { in CheckProxy() argument
79 SCOPED_TRACE((std::ostringstream() << "opcode: " << opcode).str()); in CheckProxy()
82 request_.header.opcode = opcode; in CheckProxy()
83 request_.header.unique = opcode; // Use opcode as unique. in CheckProxy()
89 EXPECT_EQ(opcode, request_.header.opcode); in CheckProxy()
90 EXPECT_EQ(opcode, request_.header.unique); in CheckProxy()
94 response_.header.unique = opcode; // Use opcode as unique. in CheckProxy()
[all …]
/system/bt/stack/avrc/
Davrc_utils.cc185 uint8_t opcode = 0; in avrc_opcode_from_pdu() local
195 opcode = AVRC_OP_BROWSE; in avrc_opcode_from_pdu()
200 opcode = AVRC_OP_PASS_THRU; in avrc_opcode_from_pdu()
204 opcode = AVRC_OP_VENDOR; in avrc_opcode_from_pdu()
208 return opcode; in avrc_opcode_from_pdu()
220 bool avrc_is_valid_opcode(uint8_t opcode) { in avrc_is_valid_opcode() argument
222 switch (opcode) { in avrc_is_valid_opcode()
Davrc_bld_tg.cc750 uint8_t opcode = p_rsp->opcode; in avrc_bld_rejected_rsp() local
753 p_rsp->pdu, opcode); in avrc_bld_rejected_rsp()
755 if (opcode == AVRC_OP_BROWSE) { in avrc_bld_rejected_rsp()
767 AVRC_TRACE_DEBUG("%s pdu:x%x, Opcode:%x", __func__, *p_start, opcode); in avrc_bld_rejected_rsp()
1299 uint8_t opcode = avrc_opcode_from_pdu(p_rsp->pdu); in avrc_bld_init_rsp_buffer() local
1301 AVRC_TRACE_API("%s: pdu=%x, opcode=%x/%x", __func__, p_rsp->pdu, opcode, in avrc_bld_init_rsp_buffer()
1302 p_rsp->rsp.opcode); in avrc_bld_init_rsp_buffer()
1303 if (opcode != p_rsp->rsp.opcode && p_rsp->rsp.status != AVRC_STS_NO_ERROR && in avrc_bld_init_rsp_buffer()
1304 avrc_is_valid_opcode(p_rsp->rsp.opcode)) { in avrc_bld_init_rsp_buffer()
1305 opcode = p_rsp->rsp.opcode; in avrc_bld_init_rsp_buffer()
[all …]
Davrc_bld_ct.cc518 uint8_t opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer() local
520 opcode); in avrc_bld_init_cmd_buffer()
523 switch (opcode) { in avrc_bld_init_cmd_buffer()
543 p_pkt->event = opcode; in avrc_bld_init_cmd_buffer()
549 if (opcode != AVRC_OP_PASS_THRU) *p_data++ = p_cmd->pdu; in avrc_bld_init_cmd_buffer()
551 switch (opcode) { in avrc_bld_init_cmd_buffer()
562 p_cmd->cmd.opcode = opcode; in avrc_bld_init_cmd_buffer()
Davrc_pars_tg.cc392 switch (p_msg->hdr.opcode) { in AVRC_Ctrl_ParsCommand()
398 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_Ctrl_ParsCommand()
401 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_Ctrl_ParsCommand()
603 switch (p_msg->hdr.opcode) { in AVRC_ParsCommand()
621 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_ParsCommand()
624 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_ParsCommand()
Davrc_api.cc394 p_msg->hdr.opcode = in avrc_proc_vendor_command()
401 p_msg->hdr.opcode = AVRC_OP_DROP_N_FREE; in avrc_proc_vendor_command()
580 } else if (p_msg->hdr.opcode == AVRC_OP_DROP) { in avrc_proc_far_msg()
582 } else if (p_msg->hdr.opcode == AVRC_OP_DROP_N_FREE) in avrc_proc_far_msg()
623 uint8_t opcode; in avrc_msg_cback() local
661 opcode = AVRC_OP_BROWSE; in avrc_msg_cback()
680 opcode = p_data[2]; in avrc_msg_cback()
685 switch (opcode) { in avrc_msg_cback()
871 if (opcode != AVRC_OP_BROWSE) drop = true; in avrc_msg_cback()
891 msg.hdr.opcode = opcode; in avrc_msg_cback()
[all …]
/system/bt/stack/include/
Davrc_defs.h882 uint8_t opcode; /* Op Code (passthrough, vendor, etc) */ member
1100 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1108 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1116 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1125 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1134 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1143 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1153 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1162 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1170 uint8_t opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
[all …]
/system/bt/stack/btu/
Dbtu_hcif.cc519 static void btu_hcif_log_command_metrics(uint16_t opcode, uint8_t* p_cmd, in btu_hcif_log_command_metrics() argument
534 switch (opcode) { in btu_hcif_log_command_metrics()
541 android::bluetooth::LINK_TYPE_ACL, opcode, hci_event, kUnknownBleEvt, in btu_hcif_log_command_metrics()
549 android::bluetooth::LINK_TYPE_UNKNOWN, opcode, hci_event, in btu_hcif_log_command_metrics()
557 android::bluetooth::LINK_TYPE_UNKNOWN, opcode, hci_event, in btu_hcif_log_command_metrics()
567 android::bluetooth::LINK_TYPE_UNKNOWN, opcode, hci_event, in btu_hcif_log_command_metrics()
577 android::bluetooth::LINK_TYPE_UNKNOWN, opcode, hci_event, in btu_hcif_log_command_metrics()
613 android::bluetooth::LINK_TYPE_ACL, opcode, hci_event, in btu_hcif_log_command_metrics()
643 android::bluetooth::LINK_TYPE_ACL, opcode, hci_event, in btu_hcif_log_command_metrics()
655 android::bluetooth::LINK_TYPE_ACL, opcode, hci_event, in btu_hcif_log_command_metrics()
[all …]
/system/nfc/src/nfc/include/
Dtags_int.h34 uint8_t opcode; member
61 uint8_t opcode; member
74 extern const tT1T_CMD_RSP_INFO* t1t_cmd_to_rsp_info(uint8_t opcode);
82 extern const tT2T_CMD_RSP_INFO* t2t_cmd_to_rsp_info(uint8_t opcode);
/system/bt/hci/include/
Dvendor.h61 int (*send_command)(vendor_opcode_t opcode, void* param);
64 int (*send_async_command)(vendor_async_opcode_t opcode, void* param);
67 void (*set_callback)(vendor_async_opcode_t opcode, vendor_cb callback);
Dbt_vendor_lib.h320 typedef uint8_t (*cmd_xmit_cb)(uint16_t opcode, void* p_buf,
395 int (*op)(bt_vendor_opcode_t opcode, void* param);
/system/nfc/src/nfc/tags/
Dtags_int.cc107 const tT1T_CMD_RSP_INFO* t1t_cmd_to_rsp_info(uint8_t opcode) { in t1t_cmd_to_rsp_info() argument
112 if (opcode == p->opcode) { in t1t_cmd_to_rsp_info()
182 const tT2T_CMD_RSP_INFO* t2t_cmd_to_rsp_info(uint8_t opcode) { in t2t_cmd_to_rsp_info() argument
187 if (opcode == p->opcode) { in t2t_cmd_to_rsp_info()
Drw_t1t.cc121 ((p_cmd_rsp_info->opcode != T1T_CMD_RALL) && in rw_t1t_data_cback()
122 (p_cmd_rsp_info->opcode != T1T_CMD_RID) && (*p != p_t1t->addr))) in rw_t1t_data_cback()
149 rw_t1t_get_state_name(p_t1t->state).c_str(), p_cmd_rsp_info->opcode); in rw_t1t_data_cback()
161 p_cmd_rsp_info->opcode); in rw_t1t_data_cback()
175 p_t1t->prev_cmd_rsp_info.addr = ((p_cmd_rsp_info->opcode != T1T_CMD_RALL) && in rw_t1t_data_cback()
176 (p_cmd_rsp_info->opcode != T1T_CMD_RID)) in rw_t1t_data_cback()
180 p_t1t->prev_cmd_rsp_info.op_code = p_cmd_rsp_info->opcode; in rw_t1t_data_cback()
186 if (p_cmd_rsp_info->opcode == T1T_CMD_RID) { in rw_t1t_data_cback()
324 tNFC_STATUS rw_t1t_send_static_cmd(uint8_t opcode, uint8_t add, uint8_t dat) { in rw_t1t_send_static_cmd() argument
327 const tT1T_CMD_RSP_INFO* p_cmd_rsp_info = t1t_cmd_to_rsp_info(opcode); in rw_t1t_send_static_cmd()
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc56 void CheckedReceiveCommand(const char* payload, uint16_t opcode) { in CheckedReceiveCommand() argument
61 packet.push_back(opcode); in CheckedReceiveCommand()
62 packet.push_back(opcode >> 8); in CheckedReceiveCommand()
80 EXPECT_EQ(opcode, command->GetOpcode()); in CheckedReceiveCommand()
/system/bt/hci/src/
Dhci_packet_factory.cc33 static BT_HDR* make_command_no_params(uint16_t opcode);
34 static BT_HDR* make_command(uint16_t opcode, size_t parameter_size,
174 static BT_HDR* make_command_no_params(uint16_t opcode) { in make_command_no_params() argument
175 return make_command(opcode, 0, NULL); in make_command_no_params()
178 static BT_HDR* make_command(uint16_t opcode, size_t parameter_size, in make_command() argument
183 UINT16_TO_STREAM(stream, opcode); in make_command()
Dhci_layer.cc72 uint16_t opcode; member
128 static waiting_command_t* get_waiting_command(command_opcode_t opcode);
321 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command()
340 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command_futured()
500 __func__, wait_time_ms, wait_entry->opcode, in command_timed_out_log_info()
514 LOG_EVENT_INT(BT_HCI_TIMEOUT_TAG_NUM, wait_entry->opcode); in command_timed_out_log_info()
515 bluetooth::common::LogHciTimeoutEvent(wait_entry->opcode); in command_timed_out_log_info()
643 command_opcode_t opcode; in filter_incoming_event() local
650 STREAM_TO_UINT16(opcode, stream); in filter_incoming_event()
652 wait_entry = get_waiting_command(opcode); in filter_incoming_event()
[all …]
/system/core/libappfuse/
DFuseBridgeLoop.cc182 const uint32_t opcode = buffer_.request.header.opcode; in ReadFromDevice() local
184 LOG(VERBOSE) << "Read a fuse packet, opcode=" << opcode << " unique=" << unique; in ReadFromDevice()
188 switch (opcode) { in ReadFromDevice()
200 if (opcode == FUSE_OPEN || opcode == FUSE_RELEASE) { in ReadFromDevice()
201 opcode_map_.emplace(buffer_.request.header.unique, opcode); in ReadFromDevice()
219 if (opcode == FUSE_INIT) { in ReadFromDevice()
233 << " header.opcode=" << buffer_.request.header.opcode in WriteToProxy()
/system/bt/packet/avrcp/
Davrcp_packet.h37 CType cType, uint8_t subunit_type, uint8_t subunit_id, Opcode opcode,
56 Opcode opcode) in PacketBuilder() argument
60 opcode_(opcode){}; in PacketBuilder()
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dhci_socket.py103 bind_layers(HCI_Command_Hdr, HCI_Cmd_Inquiry, opcode=0x0401)
104 bind_layers(HCI_Command_Hdr, HCI_Cmd_Create_Connection, opcode=0x0405)
316 opcode=0x0405) / HCI_Cmd_Create_Connection(addr=address)
325 …_Hdr].code == 0xf and response[HCI_Event_Command_Status].opcode == connect[HCI_Command_Hdr].opcode:
389 opcode=0x200c) / HCI_Cmd_LE_Set_Scan_Enable(
403 opcode=0x0401) / HCI_Cmd_Inquiry(
/system/connectivity/wifilogd/
Dprotocol.h55 opcode = new_opcode; in set_opcode()
69 Opcode opcode; member
/system/core/trusty/storage/proxy/
Drpmb.c77 uint8_t opcode; member
145 cmd->opcode = MMC_WRITE_MULTIPLE_BLOCK; in send_mmc_rpmb_req()
151 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in send_mmc_rpmb_req()
161 cmd->opcode = MMC_WRITE_MULTIPLE_BLOCK; in send_mmc_rpmb_req()
167 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in send_mmc_rpmb_req()
177 cmd->opcode = MMC_READ_MULTIPLE_BLOCK; in send_mmc_rpmb_req()
182 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in send_mmc_rpmb_req()
/system/bt/profile/avrcp/
Davrcp_message_converter.h70 switch (m->hdr.opcode) { in Parse()
75 data.push_back(m->hdr.opcode); in Parse()
87 data.push_back(m->hdr.opcode); in Parse()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h54 inline std::string OpcodeText(const Opcode& opcode) { in OpcodeText() argument
55 switch (opcode) { in OpcodeText()
61 return "Unknown Opcode: " + loghex((uint8_t)opcode); in OpcodeText()
65 inline std::ostream& operator<<(std::ostream& os, const Opcode& opcode) {
66 return os << OpcodeText(opcode);
/system/bt/btif/include/
Dbtif_api.h420 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len);
431 bt_status_t btif_le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len);
/system/bt/btif/src/
Dbtif_rc.cc255 uint8_t status, uint8_t opcode);
951 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->code); in handle_rc_metamsg_cmd()
959 if (pmeta_msg->p_msg->hdr.opcode != AVRC_OP_VENDOR && in handle_rc_metamsg_cmd()
960 pmeta_msg->p_msg->hdr.opcode != AVRC_OP_BROWSE) { in handle_rc_metamsg_cmd()
961 BTIF_TRACE_WARNING("Invalid opcode: %x", pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
967 pmeta_msg->p_msg->hdr.opcode, pmeta_msg->len); in handle_rc_metamsg_cmd()
999 pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
1134 p_data->meta_msg.p_msg->hdr.opcode, in btif_rc_handler()
1139 switch (p_data->meta_msg.p_msg->hdr.opcode) { in btif_rc_handler()
1228 remote_cmd.hdr.opcode = AVRC_OP_PASS_THRU; in btif_rc_check_handle_pending_play()
[all …]

1234