Lines Matching refs:hci

53 using ::bluetooth::hci::CommandBuilder;
54 using ::bluetooth::hci::CommandCompleteView;
55 using ::bluetooth::hci::CommandView;
56 using ::bluetooth::hci::ErrorCode;
57 using ::bluetooth::hci::EventView;
58 using ::bluetooth::hci::LeReadLocalSupportedFeaturesBuilder;
59 using ::bluetooth::hci::LeReadLocalSupportedFeaturesCompleteView;
60 using ::bluetooth::hci::LeReadNumberOfSupportedAdvertisingSetsBuilder;
61 using ::bluetooth::hci::LeReadNumberOfSupportedAdvertisingSetsCompleteView;
62 using ::bluetooth::hci::LeReadResolvingListSizeBuilder;
63 using ::bluetooth::hci::LeReadResolvingListSizeCompleteView;
64 using ::bluetooth::hci::LLFeaturesBits;
65 using ::bluetooth::hci::OpCode;
66 using ::bluetooth::hci::OpCodeText;
67 using ::bluetooth::hci::PacketView;
68 using ::bluetooth::hci::ReadLocalVersionInformationBuilder;
69 using ::bluetooth::hci::ReadLocalVersionInformationCompleteView;
163 hci = IBluetoothHci::fromBinder( in SetUp()
165 ASSERT_NE(hci, nullptr); in SetUp()
167 hci->isRemote() ? "remote" : "local"); in SetUp()
176 AIBinder_linkToDeath(hci->asBinder().get(), in SetUp()
194 ASSERT_TRUE(hci->initialize(hci_cb).isOk()); in SetUp()
205 ASSERT_TRUE(hci->close().isOk()); in TearDown()
376 std::shared_ptr<IBluetoothHci> hci; member in BluetoothAidlTest
404 auto complete_view = ::bluetooth::hci::CommandCompleteView::Create( in handle_no_ops()
405 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in handle_no_ops()
407 auto status_view = ::bluetooth::hci::CommandCompleteView::Create( in handle_no_ops()
408 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in handle_no_ops()
412 complete_view.GetCommandOpCode() == ::bluetooth::hci::OpCode::NONE; in handle_no_ops()
415 status_view.GetCommandOpCode() == ::bluetooth::hci::OpCode::NONE; in handle_no_ops()
430 ::bluetooth::hci::AclView::Create(::bluetooth::hci::PacketView<true>( in discard_qca_debugging()
464 auto complete_view = ::bluetooth::hci::CommandCompleteView::Create( in wait_for_command_complete_event()
465 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in wait_for_command_complete_event()
470 static_cast<uint8_t>(::bluetooth::hci::ErrorCode::SUCCESS)); in wait_for_command_complete_event()
474 ::bluetooth::hci::OpCode opCode) { in wait_and_validate_command_complete_event()
484 ::bluetooth::hci::ReadBufferSizeBuilder::Create()->Serialize(bi); in setBufferSizes()
485 hci->sendHciCommand(cmd); in setBufferSizes()
490 auto complete_view = ::bluetooth::hci::ReadBufferSizeCompleteView::Create( in setBufferSizes()
491 ::bluetooth::hci::CommandCompleteView::Create( in setBufferSizes()
492 ::bluetooth::hci::EventView::Create( in setBufferSizes()
493 ::bluetooth::hci::PacketView<true>( in setBufferSizes()
497 ASSERT_EQ(complete_view.GetStatus(), ::bluetooth::hci::ErrorCode::SUCCESS); in setBufferSizes()
514 ::bluetooth::hci::WriteSynchronousFlowControlEnableBuilder::Create( in setSynchronousFlowControlEnable()
515 ::bluetooth::hci::Enable::ENABLED) in setSynchronousFlowControlEnable()
517 hci->sendHciCommand(cmd); in setSynchronousFlowControlEnable()
520 ::bluetooth::hci::OpCode::WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE); in setSynchronousFlowControlEnable()
544 ::bluetooth::hci::WriteLocalNameBuilder::Create(name_array)->Serialize(bi); in sendAndCheckHci()
545 hci->sendHciCommand(write_name); in sendAndCheckHci()
552 auto event_view = ::bluetooth::hci::LoopbackCommandView::Create( in sendAndCheckHci()
553 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in sendAndCheckHci()
579 ::bluetooth::hci::ScoBuilder::Create( in sendAndCheckSco()
580 handle, ::bluetooth::hci::PacketStatusFlag::CORRECTLY_RECEIVED, payload) in sendAndCheckSco()
582 hci->sendScoData(sco_packet); in sendAndCheckSco()
611 ::bluetooth::hci::AclBuilder::Create( in sendAndCheckAcl()
613 ::bluetooth::hci::PacketBoundaryFlag::FIRST_AUTOMATICALLY_FLUSHABLE, in sendAndCheckAcl()
614 ::bluetooth::hci::BroadcastFlag::POINT_TO_POINT, std::move(payload)) in sendAndCheckAcl()
616 hci->sendAclData(acl_packet); in sendAndCheckAcl()
642 auto event_view = ::bluetooth::hci::NumberOfCompletedPacketsView::Create( in wait_for_completed_packets_event()
643 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in wait_for_completed_packets_event()
662 ::bluetooth::hci::WriteLoopbackModeBuilder::Create( in enterLoopbackMode()
663 bluetooth::hci::LoopbackMode::ENABLE_LOCAL) in enterLoopbackMode()
665 hci->sendHciCommand(cmd); in enterLoopbackMode()
681 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in enterLoopbackMode()
686 ::bluetooth::hci::EventCode::CONNECTION_COMPLETE) { in enterLoopbackMode()
688 ::bluetooth::hci::ConnectionCompleteView::Create(event_view); in enterLoopbackMode()
691 case ::bluetooth::hci::LinkType::ACL: in enterLoopbackMode()
694 case ::bluetooth::hci::LinkType::SCO: in enterLoopbackMode()
699 ::bluetooth::hci::LinkType::ACL); in enterLoopbackMode()
704 ::bluetooth::hci::WriteLoopbackModeCompleteView::Create( in enterLoopbackMode()
705 ::bluetooth::hci::CommandCompleteView::Create(event_view)); in enterLoopbackMode()
707 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, in enterLoopbackMode()
717 hci->sendHciCommand(cmd_bytes); in send_and_wait_for_cmd_complete()
751 ::bluetooth::hci::ResetBuilder::Create()->Serialize(bi); in TEST_P()
752 hci->sendHciCommand(reset); in TEST_P()
754 wait_and_validate_command_complete_event(::bluetooth::hci::OpCode::RESET); in TEST_P()
761 ::bluetooth::hci::ReadLocalVersionInformationBuilder::Create()->Serialize(bi); in TEST_P()
762 hci->sendHciCommand(cmd); in TEST_P()
769 ::bluetooth::hci::ReadLocalVersionInformationCompleteView::Create( in TEST_P()
770 ::bluetooth::hci::CommandCompleteView::Create( in TEST_P()
771 ::bluetooth::hci::EventView::Create( in TEST_P()
772 ::bluetooth::hci::PacketView<true>( in TEST_P()
775 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, complete_view.GetStatus()); in TEST_P()
777 ASSERT_LE(::bluetooth::hci::HciVersion::V_3_0, version.hci_version_); in TEST_P()
778 ASSERT_LE(::bluetooth::hci::LmpVersion::V_3_0, version.lmp_version_); in TEST_P()
785 ::bluetooth::hci::CommandBuilder::Create( in TEST_P()
786 static_cast<::bluetooth::hci::OpCode>(0x3cff), in TEST_P()
789 hci->sendHciCommand(cmd); in TEST_P()
796 ::bluetooth::hci::EventView::Create(::bluetooth::hci::PacketView<true>( in TEST_P()
801 case ::bluetooth::hci::EventCode::COMMAND_COMPLETE: { in TEST_P()
803 ::bluetooth::hci::CommandCompleteView::Create(event_view); in TEST_P()
807 ::bluetooth::hci::ErrorCode::UNKNOWN_HCI_COMMAND)); in TEST_P()
809 case ::bluetooth::hci::EventCode::COMMAND_STATUS: { in TEST_P()
811 ::bluetooth::hci::CommandStatusView::Create(event_view); in TEST_P()
814 ::bluetooth::hci::ErrorCode::UNKNOWN_HCI_COMMAND); in TEST_P()
929 ::bluetooth::hci::SetEventMaskBuilder::Create(full_mask)->Serialize(bi); in TEST_P()
930 hci->sendHciCommand(cmd); in TEST_P()
932 ::bluetooth::hci::OpCode::SET_EVENT_MASK); in TEST_P()
940 ::bluetooth::hci::LeSetEventMaskBuilder::Create(full_mask)->Serialize(bi); in TEST_P()
941 hci->sendHciCommand(cmd); in TEST_P()
943 ::bluetooth::hci::OpCode::LE_SET_EVENT_MASK); in TEST_P()
987 ASSERT_TRUE(hci->initialize(second_cb).isOk()); in TEST_P()
1000 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, version_view.GetStatus()); in TEST_P()
1002 if (version.hci_version_ < ::bluetooth::hci::HciVersion::V_5_0) { in TEST_P()
1017 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, le_features_view.GetStatus()); in TEST_P()
1035 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, num_adv_set_view.GetStatus()); in TEST_P()
1051 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, in TEST_P()
1076 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, version_view.GetStatus()); in TEST_P()
1080 static_cast<int>(::bluetooth::hci::HciVersion::V_4_2)); in TEST_P()
1082 static_cast<int>(::bluetooth::hci::LmpVersion::V_4_2)); in TEST_P()
1091 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, le_features_view.GetStatus()); in TEST_P()
1111 ASSERT_EQ(::bluetooth::hci::ErrorCode::SUCCESS, version_view.GetStatus()); in TEST_P()
1113 if (version.hci_version_ < ::bluetooth::hci::HciVersion::V_5_0) { in TEST_P()