Loading system/conf/bt_stack.conf +3 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,9 @@ TRC_HID_DEV=2 # Start EATT on unecrypted link #PTS_ConnectEattUnencrypted=true # Force EATT implementation to connect EATT as a peripheral for collision test case #PTS_EattPeripheralCollionSupport=true # Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors #PTS_DisableSDPOnLEPair=true Loading system/internal_include/stack_config.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ typedef struct { bool (*get_pts_connect_eatt_unconditionally)(void); bool (*get_pts_connect_eatt_before_encryption)(void); bool (*get_pts_unencrypt_broadcast)(void); bool (*get_pts_eatt_peripheral_collision_support)(void); config_t* (*get_all)(void); } stack_config_t; Loading system/main/stack_config.cc +8 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ const char* PTS_CONNECT_EATT_UNCONDITIONALLY = "PTS_ConnectEattUncondictionally"; const char* PTS_CONNECT_EATT_UNENCRYPTED = "PTS_ConnectEattUnencrypted"; const char* PTS_BROADCAST_UNENCRYPTED = "PTS_BroadcastUnencrypted"; const char* PTS_EATT_PERIPHERAL_COLLISION_SUPPORT = "PTS_EattPeripheralCollionSupport"; static std::unique_ptr<config_t> config; } // namespace Loading Loading @@ -135,6 +137,11 @@ static bool get_pts_unencrypt_broadcast(void) { PTS_BROADCAST_UNENCRYPTED, false); } static bool get_pts_eatt_peripheral_collision_support(void) { return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_EATT_PERIPHERAL_COLLISION_SUPPORT, false); } static config_t* get_all(void) { return config.get(); } const stack_config_t interface = {get_trace_config_enabled, Loading @@ -148,6 +155,7 @@ const stack_config_t interface = {get_trace_config_enabled, get_pts_connect_eatt_unconditionally, get_pts_connect_eatt_before_encryption, get_pts_unencrypt_broadcast, get_pts_eatt_peripheral_collision_support, get_all}; const stack_config_t* stack_config_get_interface(void) { return &interface; } system/profile/avrcp/tests/avrcp_device_fuzz/avrcp_device_fuzz.cc +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; void Callback(uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {} Loading system/profile/avrcp/tests/avrcp_device_test.cc +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; // TODO (apanicke): All the tests below are just basic positive unit tests. // Add more tests to increase code coverage. Loading Loading
system/conf/bt_stack.conf +3 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,9 @@ TRC_HID_DEV=2 # Start EATT on unecrypted link #PTS_ConnectEattUnencrypted=true # Force EATT implementation to connect EATT as a peripheral for collision test case #PTS_EattPeripheralCollionSupport=true # Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors #PTS_DisableSDPOnLEPair=true Loading
system/internal_include/stack_config.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ typedef struct { bool (*get_pts_connect_eatt_unconditionally)(void); bool (*get_pts_connect_eatt_before_encryption)(void); bool (*get_pts_unencrypt_broadcast)(void); bool (*get_pts_eatt_peripheral_collision_support)(void); config_t* (*get_all)(void); } stack_config_t; Loading
system/main/stack_config.cc +8 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ const char* PTS_CONNECT_EATT_UNCONDITIONALLY = "PTS_ConnectEattUncondictionally"; const char* PTS_CONNECT_EATT_UNENCRYPTED = "PTS_ConnectEattUnencrypted"; const char* PTS_BROADCAST_UNENCRYPTED = "PTS_BroadcastUnencrypted"; const char* PTS_EATT_PERIPHERAL_COLLISION_SUPPORT = "PTS_EattPeripheralCollionSupport"; static std::unique_ptr<config_t> config; } // namespace Loading Loading @@ -135,6 +137,11 @@ static bool get_pts_unencrypt_broadcast(void) { PTS_BROADCAST_UNENCRYPTED, false); } static bool get_pts_eatt_peripheral_collision_support(void) { return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_EATT_PERIPHERAL_COLLISION_SUPPORT, false); } static config_t* get_all(void) { return config.get(); } const stack_config_t interface = {get_trace_config_enabled, Loading @@ -148,6 +155,7 @@ const stack_config_t interface = {get_trace_config_enabled, get_pts_connect_eatt_unconditionally, get_pts_connect_eatt_before_encryption, get_pts_unencrypt_broadcast, get_pts_eatt_peripheral_collision_support, get_all}; const stack_config_t* stack_config_get_interface(void) { return &interface; }
system/profile/avrcp/tests/avrcp_device_fuzz/avrcp_device_fuzz.cc +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; void Callback(uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {} Loading
system/profile/avrcp/tests/avrcp_device_test.cc +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; // TODO (apanicke): All the tests below are just basic positive unit tests. // Add more tests to increase code coverage. Loading