Lines Matching refs:Create
74 return AclBuilder::Create(handle, packet_boundary_flag, broadcast_flag, NextPayload(handle)); in NextAclPacket()
153 … return CommandView::Create(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())); in GetLastCommand()
157 return CommandView::Create(GetPacketView(std::move(last))); in GetLastCommand()
166 return ConnectionManagementCommandView::Create(AclCommandView::Create( in GetCommand()
167 … CommandView::Create(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())))); in GetCommand()
171 ConnectionManagementCommandView::Create(AclCommandView::Create(command_packet_view)); in GetCommand()
187 return ConnectionManagementCommandView::Create(AclCommandView::Create( in GetLastCommand()
188 … CommandView::Create(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())))); in GetLastCommand()
192 ConnectionManagementCommandView::Create(AclCommandView::Create(command_packet_view)); in GetLastCommand()
218 EventView event = EventView::Create(packet); in IncomingEvent()
227 EventView event = EventView::Create(packet); in IncomingLeMetaEvent()
228 LeMetaEventView meta_event_view = LeMetaEventView::Create(event); in IncomingLeMetaEvent()
244 AclView acl2 = AclView::Create(packet); in IncomingAclData()
260 CommandCompleteView complete_view = CommandCompleteView::Create(event); in CommandCompleteCallback()
267 CommandStatusView status_view = CommandStatusView::Create(event); in CommandStatusCallback()
340 auto set_random_address_packet = LeSetRandomAddressView::Create( in SetUp()
341 … LeAdvertisingCommandView::Create(test_hci_layer_->GetCommand(OpCode::LE_SET_RANDOM_ADDRESS))); in SetUp()
347 …test_hci_layer_->IncomingEvent(LeSetRandomAddressCompleteBuilder::Create(0x01, ErrorCode::SUCCESS)… in SetUp()
463 …ConnectionCompleteBuilder::Create(ErrorCode::SUCCESS, handle_, remote, LinkType::ACL, Enable::DISA… in SetUp()
539 ConnectionRequestBuilder::Create(remote, class_of_device, ConnectionRequestLinkType::ACL)); in TEST_F()
543 CommandView command = CommandView::Create(test_hci_layer_->GetLastCommand()); in TEST_F()
564 …ConnectionCompleteBuilder::Create(ErrorCode::SUCCESS, handle, remote, LinkType::ACL, Enable::DISAB… in TEST_F()
587 …ConnectionCompleteBuilder::Create(ErrorCode::PAGE_TIMEOUT, handle, remote, LinkType::ACL, Enable::… in TEST_F()
602 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in SetUp()
606 LeConnectionManagementCommandView::Create(AclCommandView::Create(packet)); in SetUp()
607 auto command_view = LeCreateConnectionView::Create(le_connection_management_command_view); in SetUp()
617 … test_hci_layer_->IncomingEvent(LeCreateConnectionStatusBuilder::Create(ErrorCode::SUCCESS, 0x01)); in SetUp()
621 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in SetUp()
634 …test_hci_layer_->IncomingEvent(LeRemoveDeviceFromConnectListCompleteBuilder::Create(0x01, ErrorCod… in SetUp()
691 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
695 LeConnectionManagementCommandView::Create(AclCommandView::Create(packet)); in TEST_F()
696 auto command_view = LeCreateConnectionView::Create(le_connection_management_command_view); in TEST_F()
705 test_hci_layer_->IncomingEvent(LeCreateConnectionStatusBuilder::Create(ErrorCode::SUCCESS, 0x01)); in TEST_F()
709 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
722 …_management_command_view = LeConnectionManagementCommandView::Create(AclCommandView::Create(packet… in TEST_F()
723 …auto remove_command_view = LeRemoveDeviceFromConnectListView::Create(le_connection_management_comm… in TEST_F()
725 …test_hci_layer_->IncomingEvent(LeRemoveDeviceFromConnectListCompleteBuilder::Create(0x01, ErrorCod… in TEST_F()
733 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
741 LeConnectionManagementCommandView::Create(AclCommandView::Create(packet)); in TEST_F()
742 auto command_view = LeCreateConnectionCancelView::Create(le_connection_management_command_view); in TEST_F()
745 …test_hci_layer_->IncomingEvent(LeCreateConnectionCancelCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
746 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
759 …_management_command_view = LeConnectionManagementCommandView::Create(AclCommandView::Create(packet… in TEST_F()
760 …auto remove_command_view = LeRemoveDeviceFromConnectListView::Create(le_connection_management_comm… in TEST_F()
763 …test_hci_layer_->IncomingEvent(LeRemoveDeviceFromConnectListCompleteBuilder::Create(0x01, ErrorCod… in TEST_F()
771 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
775 …LeCreateConnectionView::Create(LeConnectionManagementCommandView::Create(AclCommandView::Create(pa… in TEST_F()
779 test_hci_layer_->IncomingEvent(LeCreateConnectionStatusBuilder::Create(ErrorCode::SUCCESS, 0x01)); in TEST_F()
781 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
793 …test_hci_layer_->IncomingEvent(LeRemoveDeviceFromConnectListCompleteBuilder::Create(0x01, ErrorCod… in TEST_F()
803 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
807 …LeCreateConnectionView::Create(LeConnectionManagementCommandView::Create(AclCommandView::Create(pa… in TEST_F()
811 test_hci_layer_->IncomingEvent(LeCreateConnectionStatusBuilder::Create(ErrorCode::SUCCESS, 0x01)); in TEST_F()
813 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
825 …test_hci_layer_->IncomingEvent(LeRemoveDeviceFromConnectListCompleteBuilder::Create(0x01, ErrorCod… in TEST_F()
874 …LeConnectionUpdateView::Create(LeConnectionManagementCommandView::Create(AclCommandView::Create(up… in TEST_F()
880 test_hci_layer_->IncomingLeMetaEvent(LeConnectionUpdateCompleteBuilder::Create( in TEST_F()
948 auto command_view = DisconnectView::Create(packet); in TEST_F()
977 auto command_view = SwitchRoleView::Create(packet); in TEST_F()
984 RoleChangeBuilder::Create(ErrorCode::SUCCESS, connection_->GetAddress(), Role::PERIPHERAL)); in TEST_F()
992 auto command_view = WriteDefaultLinkPolicySettingsView::Create(packet); in TEST_F()
998 WriteDefaultLinkPolicySettingsCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS)); in TEST_F()
1007 auto command_view = AuthenticationRequestedView::Create(packet); in TEST_F()
1011 …test_hci_layer_->IncomingEvent(AuthenticationCompleteBuilder::Create(ErrorCode::SUCCESS, handle_)); in TEST_F()
1018 auto command_view = ReadClockOffsetView::Create(packet); in TEST_F()
1022 …test_hci_layer_->IncomingEvent(ReadClockOffsetCompleteBuilder::Create(ErrorCode::SUCCESS, handle_,… in TEST_F()
1029 auto command_view = HoldModeView::Create(packet); in TEST_F()
1035 …test_hci_layer_->IncomingEvent(ModeChangeBuilder::Create(ErrorCode::SUCCESS, handle_, Mode::HOLD, … in TEST_F()
1042 auto command_view = SniffModeView::Create(packet); in TEST_F()
1050 …test_hci_layer_->IncomingEvent(ModeChangeBuilder::Create(ErrorCode::SUCCESS, handle_, Mode::SNIFF,… in TEST_F()
1057 auto command_view = ExitSniffModeView::Create(packet); in TEST_F()
1061 …test_hci_layer_->IncomingEvent(ModeChangeBuilder::Create(ErrorCode::SUCCESS, handle_, Mode::ACTIVE… in TEST_F()
1068 auto command_view = QosSetupView::Create(packet); in TEST_F()
1078 …test_hci_layer_->IncomingEvent(QosSetupCompleteBuilder::Create(ErrorCode::SUCCESS, handle_, Servic… in TEST_F()
1087 auto command_view = FlowSpecificationView::Create(packet); in TEST_F()
1100 …FlowSpecificationCompleteBuilder::Create(ErrorCode::SUCCESS, handle_, FlowDirection::OUTGOING_FLOW, in TEST_F()
1108 auto command_view = FlushView::Create(packet); in TEST_F()
1112 test_hci_layer_->IncomingEvent(FlushOccurredBuilder::Create(handle_)); in TEST_F()
1119 auto command_view = RoleDiscoveryView::Create(packet); in TEST_F()
1125 … RoleDiscoveryCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, Role::CENTRAL)); in TEST_F()
1132 auto command_view = ReadLinkPolicySettingsView::Create(packet); in TEST_F()
1138 … ReadLinkPolicySettingsCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x07)); in TEST_F()
1145 auto command_view = WriteLinkPolicySettingsView::Create(packet); in TEST_F()
1151 WriteLinkPolicySettingsCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_)); in TEST_F()
1158 auto command_view = SniffSubratingView::Create(packet); in TEST_F()
1165 …test_hci_layer_->IncomingEvent(SniffSubratingCompleteBuilder::Create(num_packets, ErrorCode::SUCCE… in TEST_F()
1172 auto command_view = ReadAutomaticFlushTimeoutView::Create(packet); in TEST_F()
1178 …ReadAutomaticFlushTimeoutCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x07ff)… in TEST_F()
1185 auto command_view = WriteAutomaticFlushTimeoutView::Create(packet); in TEST_F()
1191 WriteAutomaticFlushTimeoutCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_)); in TEST_F()
1198 auto command_view = ReadTransmitPowerLevelView::Create(packet); in TEST_F()
1205 … ReadTransmitPowerLevelCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x07)); in TEST_F()
1212 auto command_view = ReadLinkSupervisionTimeoutView::Create(packet); in TEST_F()
1218 …ReadLinkSupervisionTimeoutCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x5677… in TEST_F()
1225 auto command_view = WriteLinkSupervisionTimeoutView::Create(packet); in TEST_F()
1231 WriteLinkSupervisionTimeoutCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_)); in TEST_F()
1238 auto command_view = ReadFailedContactCounterView::Create(packet); in TEST_F()
1244 … ReadFailedContactCounterCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x00)); in TEST_F()
1251 auto command_view = ResetFailedContactCounterView::Create(packet); in TEST_F()
1256 ResetFailedContactCounterCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_)); in TEST_F()
1263 auto command_view = ReadLinkQualityView::Create(packet); in TEST_F()
1269 ReadLinkQualityCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0xa9)); in TEST_F()
1276 auto command_view = ReadAfhChannelMapView::Create(packet); in TEST_F()
1283 …test_hci_layer_->IncomingEvent(ReadAfhChannelMapCompleteBuilder::Create(num_packets, ErrorCode::SU… in TEST_F()
1291 auto command_view = ReadRssiView::Create(packet); in TEST_F()
1296 …test_hci_layer_->IncomingEvent(ReadRssiCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, ha… in TEST_F()
1303 auto command_view = ReadClockView::Create(packet); in TEST_F()
1310 … ReadClockCompleteBuilder::Create(num_packets, ErrorCode::SUCCESS, handle_, 0x00002e6a, 0x0000)); in TEST_F()
1341 …test_hci_layer_->IncomingEvent(LeSetRandomAddressCompleteBuilder::Create(0x01, ErrorCode::SUCCESS)… in SetUp()
1353 …test_hci_layer_->IncomingEvent(LeSetRandomAddressCompleteBuilder::Create(0x01, ErrorCode::SUCCESS)… in TEST_F()
1358 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
1362 test_hci_layer_->IncomingEvent(LeCreateConnectionStatusBuilder::Create(ErrorCode::SUCCESS, 0x01)); in TEST_F()
1379 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
1393 LeCreateConnectionCancelCompleteBuilder::Create(0x01, ErrorCode::CONNECTION_ALREADY_EXISTS)); in TEST_F()
1397 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
1427 …ConnectionCompleteBuilder::Create(ErrorCode::SUCCESS, handle_, remote, LinkType::ACL, Enable::DISA… in TEST_F()
1444 ConnectionRequestBuilder::Create(remote, class_of_device, ConnectionRequestLinkType::ACL)); in TEST_F()
1456 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
1461 LeConnectionManagementCommandView::Create(AclCommandView::Create(packet)); in TEST_F()
1462 auto command_view = LeCreateConnectionView::Create(le_connection_management_command_view); in TEST_F()
1478 test_hci_layer_->IncomingLeMetaEvent(LeConnectionCompleteBuilder::Create( in TEST_F()
1498 …test_hci_layer_->IncomingEvent(LeAddDeviceToConnectListCompleteBuilder::Create(0x01, ErrorCode::SU… in TEST_F()
1503 LeConnectionManagementCommandView::Create(AclCommandView::Create(packet)); in TEST_F()
1504 auto command_view = LeCreateConnectionView::Create(le_connection_management_command_view); in TEST_F()
1520 test_hci_layer_->IncomingLeMetaEvent(LeEnhancedConnectionCompleteBuilder::Create( in TEST_F()
1543 ConnectionRequestBuilder::Create(remote, class_of_device, ConnectionRequestLinkType::SCO)); in TEST_F()
1555 ConnectionRequestBuilder::Create(remote, class_of_device, ConnectionRequestLinkType::ESCO)); in TEST_F()