/packages/modules/Bluetooth/system/main/shim/ |
D | helpers.h | 152 inline tHCI_STATUS ToLegacyHciErrorCode(const hci::ErrorCode& reason) { in ToLegacyHciErrorCode() 154 case hci::ErrorCode::SUCCESS: in ToLegacyHciErrorCode() 156 case hci::ErrorCode::UNKNOWN_HCI_COMMAND: in ToLegacyHciErrorCode() 158 case hci::ErrorCode::UNKNOWN_CONNECTION: in ToLegacyHciErrorCode() 160 case hci::ErrorCode::HARDWARE_FAILURE: in ToLegacyHciErrorCode() 162 case hci::ErrorCode::PAGE_TIMEOUT: in ToLegacyHciErrorCode() 164 case hci::ErrorCode::AUTHENTICATION_FAILURE: in ToLegacyHciErrorCode() 166 case hci::ErrorCode::PIN_OR_KEY_MISSING: in ToLegacyHciErrorCode() 168 case hci::ErrorCode::MEMORY_CAPACITY_EXCEEDED: in ToLegacyHciErrorCode() 170 case hci::ErrorCode::CONNECTION_TIMEOUT: in ToLegacyHciErrorCode() [all …]
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | remote_name_request_test.cc | 133 impossibleCallback<ErrorCode>(), in TEST_F() 135 impossibleCallback<ErrorCode, std::array<uint8_t, 248>>()); in TEST_F() 150 auto promise = std::promise<ErrorCode>{}; in TEST_F() 158 capturingPromiseCallback<ErrorCode>(std::move(promise)), in TEST_F() 160 impossibleCallback<ErrorCode, std::array<uint8_t, 248>>()); in TEST_F() 164 RemoteNameRequestStatusBuilder::Create(ErrorCode::STATUS_UNKNOWN, 1)); in TEST_F() 167 EXPECT_THAT(future, IsSetWithValue(Eq(ErrorCode::STATUS_UNKNOWN))); in TEST_F() 171 auto promise = std::promise<ErrorCode>{}; in TEST_F() 179 capturingPromiseCallback<ErrorCode>(std::move(promise)), in TEST_F() 181 impossibleCallback<ErrorCode, std::array<uint8_t, 248>>()); in TEST_F() [all …]
|
D | hci_layer_unittest.cc | 173 hal_->InjectEvent(ResetCompleteBuilder::Create(1, ErrorCode::SUCCESS)); in TEST_F() 212 hal_->InjectEvent(ResetCompleteBuilder::Create(1, ErrorCode::SUCCESS)); in TEST_F() 220 hal_->InjectEvent(ResetCompleteBuilder::Create(1, ErrorCode::HARDWARE_FAILURE)); in TEST_F() 232 hal_->InjectEvent(ResetCompleteBuilder::Create(1, ErrorCode::SUCCESS)); in TEST_F() 244 ErrorCode::SUCCESS, in TEST_F() 290 hci_handler_->Bind([](uint16_t /* handle */, ErrorCode /* reason */) {}), in TEST_F() argument 292 hci_handler_->Bind([](hci::ErrorCode /* hci_status */, in TEST_F() 297 hal_->InjectEvent(ReadClockOffsetCompleteBuilder::Create(ErrorCode::SUCCESS, 0x0001, 0x0123)); in TEST_F() 304 hci_handler_->Bind([](uint16_t /* handle */, ErrorCode /* reason */) { in TEST_F() argument 308 hci_handler_->Bind([](hci::ErrorCode /* hci_status */, in TEST_F() argument [all …]
|
/packages/modules/Bluetooth/system/gd/hci/acl_manager/ |
D | classic_acl_connection_test.cc | 57 std::vector<hci::ErrorCode> error_code_vector = { 58 hci::ErrorCode::SUCCESS, 59 hci::ErrorCode::UNKNOWN_HCI_COMMAND, 60 hci::ErrorCode::UNKNOWN_CONNECTION, 61 hci::ErrorCode::HARDWARE_FAILURE, 62 hci::ErrorCode::PAGE_TIMEOUT, 63 hci::ErrorCode::AUTHENTICATION_FAILURE, 64 hci::ErrorCode::PIN_OR_KEY_MISSING, 65 hci::ErrorCode::MEMORY_CAPACITY_EXCEEDED, 66 hci::ErrorCode::CONNECTION_TIMEOUT, [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/ |
D | le_set_periodic_advertising_data_test.cc | 47 ErrorCode::SUCCESS); in TEST_F() 51 ErrorCode::SUCCESS); in TEST_F() 56 ErrorCode::SUCCESS); in TEST_F() 66 ErrorCode::SUCCESS); in TEST_F() 70 ErrorCode::SUCCESS); in TEST_F() 75 ErrorCode::SUCCESS); in TEST_F() 78 ErrorCode::SUCCESS); in TEST_F() 82 ErrorCode::SUCCESS); in TEST_F() 92 ErrorCode::SUCCESS); in TEST_F() 96 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_extended_advertising_enable_test.cc | 43 ErrorCode::SUCCESS); in TEST_F() 53 ErrorCode::SUCCESS); in TEST_F() 57 ErrorCode::SUCCESS); in TEST_F() 68 ErrorCode::SUCCESS); in TEST_F() 72 ErrorCode::SUCCESS); in TEST_F() 83 ErrorCode::SUCCESS); in TEST_F() 87 ErrorCode::SUCCESS); in TEST_F() 98 ErrorCode::SUCCESS); in TEST_F() 101 ErrorCode::SUCCESS); in TEST_F() 105 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_extended_scan_response_data_test.cc | 48 ErrorCode::SUCCESS); in TEST_F() 55 ErrorCode::SUCCESS); in TEST_F() 65 ErrorCode::SUCCESS); in TEST_F() 70 ErrorCode::SUCCESS); in TEST_F() 80 ErrorCode::SUCCESS); in TEST_F() 87 ErrorCode::SUCCESS); in TEST_F() 91 ErrorCode::SUCCESS); in TEST_F() 96 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 106 ErrorCode::SUCCESS); in TEST_F() 116 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_extended_advertising_data_test.cc | 48 ErrorCode::SUCCESS); in TEST_F() 54 ErrorCode::SUCCESS); in TEST_F() 64 ErrorCode::SUCCESS); in TEST_F() 70 ErrorCode::SUCCESS); in TEST_F() 74 ErrorCode::SUCCESS); in TEST_F() 79 ErrorCode::SUCCESS); in TEST_F() 89 ErrorCode::SUCCESS); in TEST_F() 99 ErrorCode::SUCCESS); in TEST_F() 105 ErrorCode::SUCCESS); in TEST_F() 111 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_extended_create_connection_test.cc | 47 ErrorCode::SUCCESS); in TEST_F() 51 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 59 ErrorCode::SUCCESS); in TEST_F() 63 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 71 ErrorCode::SUCCESS); in TEST_F() 82 ErrorCode::SUCCESS); in TEST_F() 91 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 100 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 111 ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE); in TEST_F() 120 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() [all …]
|
D | le_create_connection_test.cc | 42 ErrorCode::SUCCESS); in TEST_F() 46 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 52 ErrorCode::SUCCESS); in TEST_F() 56 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 62 ErrorCode::SUCCESS); in TEST_F() 71 ErrorCode::SUCCESS); in TEST_F() 78 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 87 ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE); in TEST_F() 94 ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE); in TEST_F() 103 ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE); in TEST_F() [all …]
|
D | le_set_extended_scan_enable_test.cc | 52 ErrorCode::SUCCESS); in TEST_F() 55 ErrorCode::SUCCESS); in TEST_F() 64 ErrorCode::SUCCESS); in TEST_F() 65 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 68 ErrorCode::SUCCESS); in TEST_F() 77 ErrorCode::SUCCESS); in TEST_F() 78 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 81 ErrorCode::SUCCESS); in TEST_F() 90 ErrorCode::SUCCESS); in TEST_F() 93 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_periodic_advertising_enable_test.cc | 44 ErrorCode::SUCCESS); in TEST_F() 48 ErrorCode::SUCCESS); in TEST_F() 53 ErrorCode::SUCCESS); in TEST_F() 56 ErrorCode::SUCCESS); in TEST_F() 66 ErrorCode::SUCCESS); in TEST_F() 70 ErrorCode::SUCCESS); in TEST_F() 73 ErrorCode::SUCCESS); in TEST_F() 78 ErrorCode::UNKNOWN_ADVERTISING_IDENTIFIER); in TEST_F() 81 ErrorCode::UNKNOWN_ADVERTISING_IDENTIFIER); in TEST_F() 91 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_periodic_advertising_parameters_test.cc | 44 ErrorCode::SUCCESS); in TEST_F() 48 ErrorCode::SUCCESS); in TEST_F() 54 ErrorCode::UNKNOWN_ADVERTISING_IDENTIFIER); in TEST_F() 64 ErrorCode::SUCCESS); in TEST_F() 68 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 72 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 84 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 95 ErrorCode::SUCCESS); in TEST_F() 99 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 107 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_extended_advertising_parameters_test.cc | 47 ErrorCode::SUCCESS); in TEST_F() 55 ErrorCode::SUCCESS); in TEST_F() 63 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 73 ErrorCode::SUCCESS); in TEST_F() 81 ErrorCode::SUCCESS); in TEST_F() 89 ErrorCode::MEMORY_CAPACITY_EXCEEDED); in TEST_F() 101 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() 112 ErrorCode::SUCCESS); in TEST_F() 118 ErrorCode::SUCCESS); in TEST_F() 127 ErrorCode::INVALID_HCI_COMMAND_PARAMETERS); in TEST_F() [all …]
|
D | le_add_device_to_resolving_list_test.cc | 45 ErrorCode::SUCCESS); in TEST_F() 50 ErrorCode::SUCCESS); in TEST_F() 57 ErrorCode::SUCCESS); in TEST_F() 62 ErrorCode::SUCCESS); in TEST_F() 67 ErrorCode::MEMORY_CAPACITY_EXCEEDED); in TEST_F() 71 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 77 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 81 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 82 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 87 ErrorCode::COMMAND_DISALLOWED); in TEST_F() [all …]
|
D | le_remove_device_from_resolving_list_test.cc | 45 ErrorCode::SUCCESS); in TEST_F() 49 ErrorCode::SUCCESS); in TEST_F() 56 ErrorCode::SUCCESS); in TEST_F() 60 ErrorCode::UNKNOWN_CONNECTION); in TEST_F() 67 ErrorCode::SUCCESS); in TEST_F() 69 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 74 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 81 ErrorCode::SUCCESS); in TEST_F() 83 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 84 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_advertising_enable_test.cc | 42 ErrorCode::SUCCESS); in TEST_F() 43 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 52 ErrorCode::SUCCESS); in TEST_F() 53 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 54 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 63 ErrorCode::SUCCESS); in TEST_F() 67 ErrorCode::SUCCESS); in TEST_F() 68 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 72 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 76 ASSERT_EQ(controller_.LeSetAdvertisingEnable(false), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_clear_resolving_list_test.cc | 45 ErrorCode::SUCCESS); in TEST_F() 47 ASSERT_EQ(controller_.LeClearResolvingList(), ErrorCode::SUCCESS); in TEST_F() 54 ErrorCode::SUCCESS); in TEST_F() 56 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 59 ASSERT_EQ(controller_.LeClearResolvingList(), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 66 ErrorCode::SUCCESS); in TEST_F() 68 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 69 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 71 ASSERT_EQ(controller_.LeClearResolvingList(), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 78 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_scan_enable_test.cc | 41 ErrorCode::SUCCESS); in TEST_F() 42 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 50 ErrorCode::SUCCESS); in TEST_F() 51 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 52 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 60 ErrorCode::SUCCESS); in TEST_F() 61 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 62 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 66 ASSERT_EQ(controller_.LeSetScanEnable(false, false), ErrorCode::SUCCESS); in TEST_F() 74 ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_remove_device_from_filter_accept_list_test.cc | 44 ErrorCode::SUCCESS); in TEST_F() 48 ErrorCode::SUCCESS); in TEST_F() 54 ErrorCode::SUCCESS); in TEST_F() 58 ErrorCode::SUCCESS); in TEST_F() 64 ErrorCode::SUCCESS); in TEST_F() 73 ErrorCode::COMMAND_DISALLOWED); in TEST_F() 79 ErrorCode::SUCCESS); in TEST_F() 86 ErrorCode::SUCCESS); in TEST_F() 87 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 91 ErrorCode::COMMAND_DISALLOWED); in TEST_F() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/ |
D | le_advertiser.cc | 64 ErrorCode LinkLayerController::LeSetAdvertisingParameters( in LeSetAdvertisingParameters() 76 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingParameters() 95 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingParameters() 105 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetAdvertisingParameters() 120 return ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE; in LeSetAdvertisingParameters() 130 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetAdvertisingParameters() 143 return ErrorCode::SUCCESS; in LeSetAdvertisingParameters() 147 ErrorCode LinkLayerController::LeSetAdvertisingData( in LeSetAdvertisingData() 155 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingData() 159 return ErrorCode::SUCCESS; in LeSetAdvertisingData() [all …]
|
D | link_layer_controller.h | 51 using ::bluetooth::hci::ErrorCode; 86 ErrorCode SendCommandToRemoteByAddress(OpCode opcode, pdl::packet::slice args, 89 ErrorCode SendLeCommandToRemoteByAddress(OpCode opcode, 92 ErrorCode SendCommandToRemoteByHandle(OpCode opcode, pdl::packet::slice args, 94 ErrorCode SendScoToRemote(bluetooth::hci::ScoView sco_packet); 95 ErrorCode SendAclToRemote(bluetooth::hci::AclView acl_packet); 103 ErrorCode AcceptConnectionRequest(const Address& addr, bool try_role_switch); 105 ErrorCode RejectConnectionRequest(const Address& addr, uint8_t reason); 109 ErrorCode CreateConnection(const Address& bd_addr, uint16_t packet_type, 117 ErrorCode Disconnect(uint16_t handle, ErrorCode host_reason, [all …]
|
D | link_layer_controller.cc | 291 ErrorCode LinkLayerController::ReadRssi(uint16_t connection_handle, in ReadRssi() 297 return ErrorCode::UNKNOWN_CONNECTION; in ReadRssi() 301 return ErrorCode::SUCCESS; in ReadRssi() 309 ErrorCode LinkLayerController::LeSetRandomAddress(Address random_address) { in LeSetRandomAddress() 316 return ErrorCode::COMMAND_DISALLOWED; in LeSetRandomAddress() 321 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetRandomAddress() 325 return ErrorCode::SUCCESS; in LeSetRandomAddress() 329 ErrorCode LinkLayerController::LeSetResolvablePrivateAddressTimeout( in LeSetResolvablePrivateAddressTimeout() 337 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetResolvablePrivateAddressTimeout() 341 return ErrorCode::SUCCESS; in LeSetResolvablePrivateAddressTimeout() [all …]
|
/packages/modules/Bluetooth/system/gd/metrics/chromeos/ |
D | metrics_event.cc | 142 switch ((hci::ErrorCode)fail_reason) { in FailReasonToPairingState() 143 case hci::ErrorCode::SUCCESS: in FailReasonToPairingState() 145 case hci::ErrorCode::UNKNOWN_HCI_COMMAND: in FailReasonToPairingState() 147 case hci::ErrorCode::UNKNOWN_CONNECTION: in FailReasonToPairingState() 149 case hci::ErrorCode::HARDWARE_FAILURE: in FailReasonToPairingState() 151 case hci::ErrorCode::PAGE_TIMEOUT: in FailReasonToPairingState() 153 case hci::ErrorCode::AUTHENTICATION_FAILURE: in FailReasonToPairingState() 155 case hci::ErrorCode::PIN_OR_KEY_MISSING: in FailReasonToPairingState() 157 case hci::ErrorCode::MEMORY_CAPACITY_EXCEEDED: in FailReasonToPairingState() 159 case hci::ErrorCode::CONNECTION_TIMEOUT: in FailReasonToPairingState() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/vendor_commands/ |
D | le_apcf.cc | 89 ErrorCode ApcfScanner::UpdateFilterList(std::vector<T>& filter_list, in UpdateFilterList() 94 return ErrorCode::UNKNOWN_CONNECTION; in UpdateFilterList() 100 return ErrorCode::MEMORY_CAPACITY_EXCEEDED; in UpdateFilterList() 104 return ErrorCode::SUCCESS; in UpdateFilterList() 112 return ErrorCode::SUCCESS; in UpdateFilterList() 121 return ErrorCode::SUCCESS; in UpdateFilterList() 127 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in UpdateFilterList() 153 ErrorCode LinkLayerController::LeApcfEnable(bool apcf_enable) { in LeApcfEnable() 155 return ErrorCode::SUCCESS; in LeApcfEnable() 158 ErrorCode LinkLayerController::LeApcfAddFilteringParameters( in LeApcfAddFilteringParameters() [all …]
|