Home
last modified time | relevance | path

Searched refs:btm_interface (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/bta/test/common/
Dbtm_api_mock.cc30 static bluetooth::manager::MockBtmInterface* btm_interface = nullptr; variable
34 btm_interface = mock_btm_interface; in SetMockBtmInterface()
38 log::assert_that(btm_interface != nullptr, "Mock btm interface not set!"); in BTM_IsLinkKeyKnown()
39 return btm_interface->IsLinkKeyKnown(bd_addr, transport); in BTM_IsLinkKeyKnown()
43 return btm_interface->BTM_IsEncrypted(bd_addr, transport); in BTM_IsEncrypted()
50 return btm_interface->SetEncryption(bd_addr, transport, p_callback, in BTM_SetEncryption()
56 log::assert_that(btm_interface != nullptr, "Mock btm interface not set!"); in BTM_IsPhy2mSupported()
57 return btm_interface->IsPhy2mSupported(remote_bda, transport); in BTM_IsPhy2mSupported()
61 log::assert_that(btm_interface != nullptr, "Mock btm interface not set!"); in BTM_GetPeerSCA()
62 return btm_interface->GetPeerSCA(remote_bda, transport); in BTM_GetPeerSCA()
[all …]
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc244 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
251 ON_CALL(btm_interface, IsLinkKeyKnown(_, _)) in SetUp()
341 ON_CALL(btm_interface, BTM_IsEncrypted(address, _)) in TestConnect()
373 ON_CALL(btm_interface, BTM_IsEncrypted(address, _)) in TestAddFromStorage()
468 ON_CALL(btm_interface, BTM_IsEncrypted(address, _)) in SetEncryptionResult()
470 ON_CALL(btm_interface, IsLinkKeyKnown(address, _)) in SetEncryptionResult()
472 ON_CALL(btm_interface, SetEncryption(address, _, _, _, BTM_BLE_SEC_ENCRYPT)) in SetEncryptionResult()
484 EXPECT_CALL(btm_interface, in SetEncryptionResult()
514 bluetooth::manager::MockBtmInterface btm_interface; member in bluetooth::vc::internal::__anon509a00280111::VolumeControlTest
596 ON_CALL(btm_interface, IsLinkKeyKnown(_, _)) in TEST_F()
[all …]
Ddevices_test.cc221 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
332 bluetooth::manager::MockBtmInterface btm_interface; member in bluetooth::vc::internal::VolumeControlDeviceTest
570 ON_CALL(btm_interface, BTM_IsEncrypted(_, _)) in TEST_F()
574 ON_CALL(btm_interface, BTM_IsEncrypted(_, _)) in TEST_F()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client_test.cc430 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
437 ON_CALL(btm_interface, IsLinkKeyKnown(_, _)) in SetUp()
440 ON_CALL(btm_interface, BTM_IsEncrypted(_, _)) in SetUp()
530 ON_CALL(btm_interface, GetSecurityFlagsByTransport(address, NotNull(), _)) in TestConnect()
538 Mock::VerifyAndClearExpectations(&btm_interface); in TestConnect()
710 bluetooth::manager::MockBtmInterface btm_interface; member in bluetooth::csis::internal::__anon6ed6c0780111::CsisClientTest
798 ON_CALL(btm_interface, IsLinkKeyKnown(_, _)).WillByDefault(Return(false)); in TEST_F()
932 ON_CALL(btm_interface, BTM_IsEncrypted(test_address, _)) in TEST_F()
945 ON_CALL(btm_interface, BTM_IsEncrypted(test_address, _)) in TEST_F()
966 ON_CALL(btm_interface, BTM_IsEncrypted(test_address, _)) in TEST_F()
[all …]
/packages/modules/Bluetooth/system/bta/has/
Dhas_client_test.cc658 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
666 ON_CALL(btm_interface, IsLinkKeyKnown(_, _)) in SetUp()
669 ON_CALL(btm_interface, SetEncryption(_, _, _, _, _)) in SetUp()
792 ON_CALL(btm_interface, BTM_IsEncrypted(address, _)) in TestConnect()
802 Mock::VerifyAndClearExpectations(&btm_interface); in TestConnect()
903 ON_CALL(btm_interface, BTM_IsEncrypted(address, _)) in SetEncryptionResult()
906 ON_CALL(btm_interface, IsLinkKeyKnown(address, _)) in SetEncryptionResult()
1173 bluetooth::manager::MockBtmInterface btm_interface; member in bluetooth::has::internal::__anon0c88c72c0111::HasClientTestBase
1252 ON_CALL(btm_interface, IsLinkKeyKnown(test_address, _)) in TEST_F()
1340 ON_CALL(btm_interface, SetEncryption(_, _, _, _, _)) in TEST_F()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Ddevices_test.cc107 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
118 bluetooth::manager::MockBtmInterface btm_interface; member in bluetooth::le_audio::internal::__anon1b30b59b0111::LeAudioDevicesTest
Dstate_machine_test.cc276 bluetooth::manager::SetMockBtmInterface(&btm_interface); in SetUp()
313 ON_CALL(btm_interface, IsPhy2mSupported(_, _)).WillByDefault(Return(true)); in SetUp()
314 ON_CALL(btm_interface, GetHCIConnHandle(_, _)) in SetUp()
1603 NiceMock<bluetooth::manager::MockBtmInterface> btm_interface; member in bluetooth::le_audio::internal::StateMachineTestBase