Home
last modified time | relevance | path

Searched refs:ErrorCode (Results 1 – 25 of 217) sorted by relevance

123456789

/packages/modules/Bluetooth/system/main/shim/
Dhelpers.h147 inline tHCI_STATUS ToLegacyHciErrorCode(const hci::ErrorCode& reason) { in ToLegacyHciErrorCode()
149 case hci::ErrorCode::SUCCESS: in ToLegacyHciErrorCode()
151 case hci::ErrorCode::UNKNOWN_HCI_COMMAND: in ToLegacyHciErrorCode()
153 case hci::ErrorCode::UNKNOWN_CONNECTION: in ToLegacyHciErrorCode()
155 case hci::ErrorCode::HARDWARE_FAILURE: in ToLegacyHciErrorCode()
157 case hci::ErrorCode::PAGE_TIMEOUT: in ToLegacyHciErrorCode()
159 case hci::ErrorCode::AUTHENTICATION_FAILURE: in ToLegacyHciErrorCode()
161 case hci::ErrorCode::PIN_OR_KEY_MISSING: in ToLegacyHciErrorCode()
163 case hci::ErrorCode::MEMORY_CAPACITY_EXCEEDED: in ToLegacyHciErrorCode()
165 case hci::ErrorCode::CONNECTION_TIMEOUT: in ToLegacyHciErrorCode()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dle_advertiser.cc51 ErrorCode LinkLayerController::LeSetAdvertisingParameters( in LeSetAdvertisingParameters()
63 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingParameters()
82 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingParameters()
92 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetAdvertisingParameters()
107 return ErrorCode::UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE; in LeSetAdvertisingParameters()
117 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetAdvertisingParameters()
130 return ErrorCode::SUCCESS; in LeSetAdvertisingParameters()
134 ErrorCode LinkLayerController::LeSetAdvertisingData( in LeSetAdvertisingData()
142 return ErrorCode::COMMAND_DISALLOWED; in LeSetAdvertisingData()
146 return ErrorCode::SUCCESS; in LeSetAdvertisingData()
[all …]
Dlink_layer_controller.h48 using ::bluetooth::hci::ErrorCode;
68 ErrorCode SendCommandToRemoteByAddress(
71 ErrorCode SendLeCommandToRemoteByAddress(OpCode opcode,
74 ErrorCode SendCommandToRemoteByHandle(
76 ErrorCode SendScoToRemote(bluetooth::hci::ScoView sco_packet);
77 ErrorCode SendAclToRemote(bluetooth::hci::AclView acl_packet);
87 ErrorCode LinkKeyRequestReply(const Address& address,
89 ErrorCode LinkKeyRequestNegativeReply(const Address& address);
90 ErrorCode IoCapabilityRequestReply(const Address& peer, uint8_t io_capability,
93 ErrorCode IoCapabilityRequestNegativeReply(const Address& peer,
[all …]
Dlink_layer_controller.cc244 ErrorCode LinkLayerController::LeSetRandomAddress(Address random_address) { in LeSetRandomAddress()
251 return ErrorCode::COMMAND_DISALLOWED; in LeSetRandomAddress()
256 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetRandomAddress()
262 return ErrorCode::SUCCESS; in LeSetRandomAddress()
266 ErrorCode LinkLayerController::LeSetResolvablePrivateAddressTimeout( in LeSetResolvablePrivateAddressTimeout()
274 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetResolvablePrivateAddressTimeout()
278 return ErrorCode::SUCCESS; in LeSetResolvablePrivateAddressTimeout()
282 ErrorCode LinkLayerController::LeSetHostFeature(uint8_t bit_number, in LeSetHostFeature()
285 return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS; in LeSetHostFeature()
298 return ErrorCode::COMMAND_DISALLOWED; in LeSetHostFeature()
[all …]
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_acl_connection_test.cc57 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/
Dle_set_extended_advertising_enable_test.cc43 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 …]
Dle_set_extended_scan_response_data_test.cc48 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 …]
Dle_set_extended_advertising_data_test.cc48 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 …]
Dle_extended_create_connection_test.cc47 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 …]
Dle_create_connection_test.cc42 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 …]
Dle_set_extended_advertising_parameters_test.cc47 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 …]
Dle_set_extended_scan_enable_test.cc51 ErrorCode::SUCCESS); in TEST_F()
54 ErrorCode::SUCCESS); in TEST_F()
62 ErrorCode::SUCCESS); in TEST_F()
63 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F()
66 ErrorCode::SUCCESS); in TEST_F()
74 ErrorCode::SUCCESS); in TEST_F()
75 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F()
78 ErrorCode::SUCCESS); in TEST_F()
86 ErrorCode::SUCCESS); in TEST_F()
89 ErrorCode::SUCCESS); in TEST_F()
[all …]
Dle_add_device_to_resolving_list_test.cc45 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 …]
Dle_remove_device_from_resolving_list_test.cc45 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 …]
Dle_set_advertising_enable_test.cc42 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 …]
Dle_clear_resolving_list_test.cc45 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 …]
Dle_remove_device_from_filter_accept_list_test.cc44 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 …]
Dle_set_scan_enable_test.cc41 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 …]
Dle_clear_filter_accept_list_test.cc44 ErrorCode::SUCCESS); in TEST_F()
46 ASSERT_EQ(controller_.LeClearFilterAcceptList(), ErrorCode::SUCCESS); in TEST_F()
52 ErrorCode::SUCCESS); in TEST_F()
60 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
66 ErrorCode::SUCCESS); in TEST_F()
73 ErrorCode::SUCCESS); in TEST_F()
74 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F()
77 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
83 ErrorCode::SUCCESS); in TEST_F()
91 ErrorCode::SUCCESS); in TEST_F()
[all …]
Dle_set_address_resolution_enable_test.cc38 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F()
40 ErrorCode::SUCCESS); in TEST_F()
46 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
48 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
52 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F()
54 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
56 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
66 ErrorCode::SUCCESS); in TEST_F()
69 ErrorCode::SUCCESS); in TEST_F()
72 ErrorCode::COMMAND_DISALLOWED); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dacl_manager_test.cc129 …test_hci_layer_->IncomingEvent(LeSetRandomAddressCompleteBuilder::Create(0x01, ErrorCode::SUCCESS)… in SetUp()
216 MOCK_METHOD(void, OnConnectFail, (Address, ErrorCode reason), (override));
239 MOCK_METHOD(void, OnLeConnectFail, (AddressWithType, ErrorCode reason), (override));
269 …EXPECT_CALL(mock_connection_management_callbacks_, OnRoleChange(hci::ErrorCode::SUCCESS, Role::CEN… in SetUp()
273 …ConnectionCompleteBuilder::Create(ErrorCode::SUCCESS, handle_, remote, LinkType::ACL, Enable::DISA… in SetUp()
300 MOCK_METHOD1(OnAuthenticationComplete, void(hci::ErrorCode hci_status));
304 MOCK_METHOD3(OnModeChange, void(ErrorCode status, Mode current_mode, uint16_t interval));
308 ErrorCode status,
330 MOCK_METHOD2(OnRoleChange, void(ErrorCode hci_status, Role new_role));
331 MOCK_METHOD1(OnDisconnection, void(ErrorCode reason));
[all …]
Dhci_packets.pdl802 enum ErrorCode: 8 {
860 status : ErrorCode, // SUCCESS means PENDING
902 status : ErrorCode,
922 status : ErrorCode,
937 status : ErrorCode,
1006 status : ErrorCode,
1043 status : ErrorCode,
1052 status : ErrorCode,
1064 status : ErrorCode,
1073 status : ErrorCode,
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/intdefs/
DFastPairEventIntDefs.java47 ErrorCode.UNKNOWN_ERROR_CODE,
48 ErrorCode.OTHER_ERROR,
49 ErrorCode.TIMEOUT,
50 ErrorCode.INTERRUPTED,
51 ErrorCode.REFLECTIVE_OPERATION_EXCEPTION,
52 ErrorCode.EXECUTION_EXCEPTION,
53 ErrorCode.PARSE_EXCEPTION,
54 ErrorCode.MDH_REMOTE_EXCEPTION,
55 ErrorCode.SUCCESS_RETRY_GATT_ERROR,
56 ErrorCode.SUCCESS_RETRY_GATT_TIMEOUT,
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dfixed_channel_impl_test.cc90 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
92 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
95 fixed_channel_impl.OnClosed(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION); in TEST_F()
97 EXPECT_EQ(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION, my_status); in TEST_F()
114 fixed_channel_impl.OnClosed(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION); in TEST_F()
118 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
120 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
122 EXPECT_EQ(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION, my_status); in TEST_F()
140 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
142 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dfixed_channel_impl_test.cc96 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
98 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
101 fixed_channel_impl.OnClosed(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION); in TEST_F()
103 EXPECT_EQ(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION, my_status); in TEST_F()
124 fixed_channel_impl.OnClosed(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION); in TEST_F()
128 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
130 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
132 EXPECT_EQ(hci::ErrorCode::REMOTE_USER_TERMINATED_CONNECTION, my_status); in TEST_F()
155 hci::ErrorCode my_status = hci::ErrorCode::SUCCESS; in TEST_F()
157 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
[all …]

123456789