/packages/modules/Bluetooth/system/bta/groups/ |
D | groups_test.cc | 90 ASSERT_TRUE(DeviceGroups::Get()); in TEST_F() 96 DeviceGroups* dev_groups_p = DeviceGroups::Get(); in TEST_F() 98 ASSERT_EQ(dev_groups_p, DeviceGroups::Get()); in TEST_F() 106 ASSERT_FALSE(DeviceGroups::Get()); in TEST_F() 111 ASSERT_FALSE(DeviceGroups::Get()); in TEST_F() 117 DeviceGroups::Get()->AddDevice(GetTestAddress(1), Uuid::kEmpty, 7); in TEST_F() 125 DeviceGroups::Get()->AddDevice(GetTestAddress(1), Uuid::kEmpty, 7); in TEST_F() 126 DeviceGroups::Get()->AddDevice(GetTestAddress(2), Uuid::kEmpty, 7); in TEST_F() 133 DeviceGroups::Get()->AddDevice(GetTestAddress(2), Uuid::kEmpty, 7); in TEST_F() 134 DeviceGroups::Get()->RemoveDevice(GetTestAddress(2)); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/common/ |
D | lru_unittest.cc | 40 EXPECT_TRUE(cache.Get(1, value)); in TEST() 42 EXPECT_TRUE(cache.Get(2, value)); in TEST() 44 EXPECT_TRUE(cache.Get(3, value)); in TEST() 50 EXPECT_FALSE(cache.Get(1, value)); in TEST() 51 EXPECT_TRUE(cache.Get(4, value)); in TEST() 53 EXPECT_TRUE(cache.Get(2, value)); in TEST() 55 EXPECT_TRUE(cache.Get(3, value)); in TEST() 66 EXPECT_FALSE(cache.Get(3, value)); in TEST() 67 EXPECT_FALSE(cache.Get(4, value)); in TEST() 68 EXPECT_TRUE(cache.Get(2, value)); in TEST() [all …]
|
D | metric_id_allocator.cc | 121 if (paired_device_cache_.Get(mac_address, &id)) { in AllocateId() 124 if (temporary_device_cache_.Get(mac_address, &id)) { in AllocateId() 153 if (paired_device_cache_.Get(mac_address, &id)) { in SaveDevice() 156 if (!temporary_device_cache_.Get(mac_address, &id)) { in SaveDevice() 184 if (!paired_device_cache_.Get(mac_address, &id)) { in ForgetDevice()
|
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | wakelock_manager_unittest.cc | 99 WakelockManager::Get().SetOsCallouts(&os_callouts, handler_); in TEST_F() 105 WakelockManager::Get().Acquire(); in TEST_F() 110 WakelockManager::Get().Acquire(); in TEST_F() 115 WakelockManager::Get().Release(); in TEST_F() 119 WakelockManager::Get().CleanUp(); in TEST_F() 125 WakelockManager::Get().SetOsCallouts(&os_callouts, handler_); in TEST_F() 131 WakelockManager::Get().Acquire(); in TEST_F() 136 WakelockManager::Get().Release(); in TEST_F() 142 WakelockManager::Get().Release(); in TEST_F() 146 WakelockManager::Get().CleanUp(); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/os/android/ |
D | wakelock_native_test.cc | 128 WakelockNative::Get().Initialize(); in SetUp() 162 WakelockNative::Get().CleanUp(); in TearDown() 174 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 181 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 192 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 199 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 206 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 217 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 224 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 231 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_vc.cc | 124 Unretained(VolumeControl::Get()), address)); in Connect() 136 Unretained(VolumeControl::Get()), address)); in Disconnect() 149 Unretained(VolumeControl::Get()), in SetVolume() 162 FROM_HERE, Bind(&VolumeControl::Mute, Unretained(VolumeControl::Get()), in Mute() 175 Unretained(VolumeControl::Get()), in Unmute() 191 Unretained(VolumeControl::Get()), address)); in RemoveDevice() 207 Unretained(VolumeControl::Get()), address, ext_output_id)); in GetExtAudioOutVolumeOffset() 222 Unretained(VolumeControl::Get()), address, in SetExtAudioOutVolumeOffset() 236 Unretained(VolumeControl::Get()), address, in GetExtAudioOutLocation() 250 Unretained(VolumeControl::Get()), address, in SetExtAudioOutLocation() [all …]
|
D | btif_le_audio.cc | 192 Unretained(LeAudioClient::Get()), address)); in RemoveDevice() 207 Unretained(LeAudioClient::Get()), address)); in Connect() 220 Unretained(LeAudioClient::Get()), address)); in Disconnect() 233 Unretained(LeAudioClient::Get()), address, enabled)); in SetEnableState() 246 Unretained(LeAudioClient::Get()), group_id, address)); in GroupAddNode() 259 Unretained(LeAudioClient::Get()), group_id, address)); in GroupRemoveNode() 272 Unretained(LeAudioClient::Get()), group_id)); in GroupSetActive() 286 Unretained(LeAudioClient::Get()), group_id, in SetCodecConfigPreference() 300 Unretained(LeAudioClient::Get()), ccid, context_type)); in SetCcidInformation() 313 Unretained(LeAudioClient::Get()), in_call)); in SetInCall() [all …]
|
D | btif_le_audio_broadcaster.cc | 58 Unretained(LeAudioBroadcaster::Get()), in CreateBroadcast() 71 Unretained(LeAudioBroadcaster::Get()), broadcast_id, in UpdateMetadata() 79 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in StartBroadcast() 85 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in StopBroadcast() 91 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in PauseBroadcast() 97 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in DestroyBroadcast() 103 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in GetBroadcastMetadata()
|
D | btif_has_client.cc | 63 Unretained(HasClient::Get()), addr)); in Connect() 71 Unretained(HasClient::Get()), addr)); in Disconnect() 81 Bind(&HasClient::SelectActivePreset, Unretained(HasClient::Get()), in SelectActivePreset() 88 Unretained(HasClient::Get()), in NextActivePreset() 95 Unretained(HasClient::Get()), in PreviousActivePreset() 101 FROM_HERE, Bind(&HasClient::GetPresetInfo, Unretained(HasClient::Get()), in GetPresetInfo() 108 FROM_HERE, Bind(&HasClient::SetPresetName, Unretained(HasClient::Get()), in SetPresetName() 117 Unretained(HasClient::Get()), addr)); in RemoveDevice()
|
D | btif_csis_client.cc | 72 Unretained(CsisClient::Get()), addr)); in Connect() 84 Unretained(CsisClient::Get()), addr)); in Disconnect() 99 Unretained(CsisClient::Get()), addr)); in RemoveDevice() 113 FROM_HERE, Bind(&CsisClient::LockGroup, Unretained(CsisClient::Get()), in LockGroup()
|
/packages/modules/Bluetooth/system/osi/test/ |
D | alarm_mock.h | 31 static inline AlarmMock* Get() { in Get() function 47 return AlarmMock::Get()->AlarmNewImpl(name); in alarm_new() 50 void alarm_free(alarm_t* alarm) { AlarmMock::Get()->AlarmFreeImpl(alarm); } in alarm_free() 54 AlarmMock::Get()->AlarmSetOnMloop(alarm, interval_ms, cb, data); in alarm_set_on_mloop() 59 AlarmMock::Get()->AlarmSet(alarm, interval_ms, cb, data); in alarm_set() 63 return AlarmMock::Get()->AlarmIsScheduled(alarm); in alarm_is_scheduled() 66 void alarm_cancel(alarm_t* alarm) { AlarmMock::Get()->AlarmCancel(alarm); } in alarm_cancel()
|
/packages/modules/Bluetooth/system/stack/test/ |
D | gatt_connection_manager_test.cc | 170 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 171 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F() 183 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 198 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 202 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)) in TEST_F() 214 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 226 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 227 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F() 235 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 272 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() [all …]
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | AudioJitterBufferTest.cpp | 149 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 169 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 218 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 238 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 287 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 308 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 357 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, in TEST_F() 378 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, getTime)) in TEST_F() 448 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, in TEST_F() 457 if (mJitterBuffer->Get(&subtype, &data, &size, ×tamp, &mark, &seq, in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | vc_test.cc | 346 VolumeControl::Get()->Connect(address); in TestConnect() 357 VolumeControl::Get()->Remove(address); in TestRemove() 367 VolumeControl::Get()->Disconnect(address); in TestDisconnect() 378 VolumeControl::Get()->AddFromStorage(address); in TestAddFromStorage() 524 ASSERT_DEATH(VolumeControl::Get(), ""); in TEST_F() 548 VolumeControl* volume_control_p = VolumeControl::Get(); in TEST_F() 550 ASSERT_EQ(volume_control_p, VolumeControl::Get()); in TEST_F() 599 VolumeControl::Get()->Connect(test_address); in TEST_F() 644 VolumeControl::Get()->Connect(test_address); in TEST_F() 1019 VolumeControl::Get()->SetVolume(test_address, 15); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_scanner.cc | 133 base::WeakPtr<BleScanningManager> BleScanningManager::Get() { in Get() function in BleScanningManager 147 if (BleScannerHciInterface::Get()) { in btm_ble_scanner_init() 148 BleScanningManager::Initialize(BleScannerHciInterface::Get()); in btm_ble_scanner_init() 152 if ((BleScannerHciInterface::Get()) && (BleScanningManager::Get())) { in btm_ble_scanner_init() 153 BleScannerHciInterface::Get()->SetScanEventObserver( in btm_ble_scanner_init() 154 (BleScanningManagerImpl*)BleScanningManager::Get().get()); in btm_ble_scanner_init()
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | config_cache_helper.h | 59 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 71 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 83 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 88 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 93 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 98 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 107 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function 121 std::optional<T> Get(const std::string& section, const std::string& property) { in Get() function
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | AudioJitterBuffer.cpp | 84 while (mDataQueue.Get(&entry)) in ClearBuffer() 266 bool AudioJitterBuffer::Get(ImsMediaSubType* psubtype, uint8_t** ppData, uint32_t* pnDataSize, in Get() function in AudioJitterBuffer 279 if (mDataQueue.Get(&pEntry) && pEntry->subtype == MEDIASUBTYPE_REFRESHED) // ssrc changed in Get() 284 if (!mWaiting && mDataQueue.Get(&pEntry)) // get next frame in Get() 301 if (!mWaiting && mDataQueue.Get(&pEntry) && pEntry->eDataType == MEDIASUBTYPE_AUDIO_SID && in Get() 344 else if (mDataQueue.Get(&pEntry) && mWaiting) in Get() 386 while (mDataQueue.Get(&pEntry) && mFirstFrameReceived && pEntry->nSeqNum == mLastPlayedSeqNum && in Get() 407 if (mDataQueue.Get(&pEntry) && pEntry->nTimestamp != mCurrPlayingTS && in Get() 417 while (mDataQueue.Get(&pEntry) && !USHORT_TS_ROUND_COMPARE(pEntry->nTimestamp, mCurrPlayingTS)) in Get() 462 if (mDataQueue.Get(&pEntry) && (pEntry->nTimestamp - mCurrPlayingTS) > TS_ROUND_QUARD) in Get() [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | state_machine_test.cc | 302 ON_CALL(mock_csis_client_module_, Get()) in SetUp() 424 LeAudioGroupStateMachine::Get()->ProcessHciNotifOnCigCreate( in ConfigureIsoManagerMock() 436 LeAudioGroupStateMachine::Get()->ProcessHciNotifOnCigRemove( in ConfigureIsoManagerMock() 461 LeAudioGroupStateMachine::Get()->ProcessHciNotifSetupIsoDataPath( in ConfigureIsoManagerMock() 486 LeAudioGroupStateMachine::Get()->ProcessHciNotifRemoveIsoDataPath( in ConfigureIsoManagerMock() 555 LeAudioGroupStateMachine::Get()->ProcessHciNotifCisEstablished( in ConfigureIsoManagerMock() 592 LeAudioGroupStateMachine::Get()->ProcessHciNotifCisDisconnected( in ConfigureIsoManagerMock() 617 return AudioSetConfigurationProvider::Get() in ConfigCodecManagerMock() 627 *bluetooth::le_audio::AudioSetConfigurationProvider::Get() in ConfigCodecManagerMock() 636 return AudioSetConfigurationProvider::Get() in ConfigCodecManagerMock() [all …]
|
D | le_audio_client_test.cc | 831 ON_CALL(mock_csis_client_module_, Get()) in SetUpMockGroups() 1619 *le_audio::AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 1628 return AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 1675 if (bluetooth::le_audio::AudioSetConfigurationProvider::Get()) in TearDown() 1851 base::Unretained(LeAudioClient::Get()), address)); in ConnectLeAudio() 1876 base::Unretained(LeAudioClient::Get()), address)); in DisconnectLeAudioWithGattClose() 1902 base::Unretained(LeAudioClient::Get()), address)); in DisconnectLeAudioWithAclClose() 1917 base::Unretained(LeAudioClient::Get()), address)); in DisconnectLeAudioNoDisconnectedEvtExpected() 1952 base::Unretained(LeAudioClient::Get()), in ConnectCsisDevice() 2966 ASSERT_NE(LeAudioClient::Get(), nullptr); in TEST_F() [all …]
|
D | devices_test.cc | 512 PublishedAudioCapabilities Get() { in Get() function in bluetooth::le_audio::internal::__anon1b30b59b0211::PublishedAudioCapabilitiesBuilder 550 ON_CALL(mock_csis_client_module_, Get()) in SetUp() 728 *bluetooth::le_audio::AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 738 return AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 764 return AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 770 return AudioSetConfigurationProvider::Get() in SetUpMockCodecManager() 930 data[i].device->snk_pacs_ = snk_pac_builder.Get(); in TestSingleAseConfiguration() 931 data[i].device->src_pacs_ = src_pac_builder.Get(); in TestSingleAseConfiguration() 985 dest_pacs = pac_builder.Get(); in TestGroupAseVendorConfiguration() 1015 ::bluetooth::le_audio::AudioSetConfigurationProvider::Get() in TestGroupAseConfiguration() [all …]
|
/packages/modules/Bluetooth/system/gd/ |
D | stack_manager.cc | 43 WakelockManager::Get().Acquire(); in StartUp() 53 WakelockManager::Get().Release(); in StartUp() 71 WakelockManager::Get().Acquire(); in ShutDown() 80 WakelockManager::Get().Release(); in ShutDown() 81 WakelockManager::Get().CleanUp(); in ShutDown()
|
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/ |
D | broadcaster_test.cc | 390 LeAudioBroadcaster::Get()->CreateAudioBroadcast( in InstantiateBroadcast() 438 ASSERT_NE(LeAudioBroadcaster::Get(), nullptr); in TEST_F() 443 LeAudioBroadcaster::Get()->SetStreamingPhy(1); in TEST_F() 444 ASSERT_EQ(LeAudioBroadcaster::Get()->GetStreamingPhy(), 1); in TEST_F() 445 LeAudioBroadcaster::Get()->SetStreamingPhy(2); in TEST_F() 446 ASSERT_EQ(LeAudioBroadcaster::Get()->GetStreamingPhy(), 2); in TEST_F() 488 LeAudioBroadcaster::Get()->StartAudioBroadcast(broadcast_id); in TEST_F() 499 LeAudioBroadcaster::Get()->SuspendAudioBroadcast(broadcast_id); in TEST_F() 516 LeAudioBroadcaster::Get()->StopAudioBroadcast(broadcast_id); in TEST_F() 526 LeAudioBroadcaster::Get()->StartAudioBroadcast(broadcast_id); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_connection_handler_test.cc | 112 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 136 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 160 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 189 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 235 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 275 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 307 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 345 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 404 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 426 connection_handler_ = ConnectionHandler::Get(); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/ |
D | le_audio_software_unittest.cc | 602 sink_ = LeAudioClientInterface::Get()->GetSink( in SetUp() 604 source_ = LeAudioClientInterface::Get()->GetSource( in SetUp() 608 ASSERT_TRUE(LeAudioClientInterface::Get()->IsBroadcastSinkAcquired()); in SetUp() 610 ASSERT_TRUE(LeAudioClientInterface::Get()->IsSourceAcquired()); in SetUp() 611 ASSERT_TRUE(LeAudioClientInterface::Get()->IsUnicastSinkAcquired()); in SetUp() 616 if (LeAudioClientInterface::Get()->IsUnicastSinkAcquired() || in TearDown() 617 LeAudioClientInterface::Get()->IsBroadcastSinkAcquired()) { in TearDown() 619 ASSERT_FALSE(LeAudioClientInterface::Get()->IsBroadcastSinkAcquired()); in TearDown() 621 LeAudioClientInterface::Get()->ReleaseSink(sink_); in TearDown() 622 ASSERT_FALSE(LeAudioClientInterface::Get()->IsUnicastSinkAcquired()); in TearDown() [all …]
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_client_test.cc | 536 CsisClient::Get()->Connect(address); in TestConnect() 549 CsisClient::Get()->Disconnect(address); in TestDisconnect() 724 ASSERT_DEATH(CsisClient::Get(), ""); in TEST_F() 735 CsisClient* csis_p = CsisClient::Get(); in TEST_F() 737 ASSERT_EQ(csis_p, CsisClient::Get()); in TEST_F() 794 CsisClient::Get()->RemoveDevice(test_address); in TEST_F() 799 CsisClient::Get()->Connect(test_address); in TEST_F() 896 CsisClient::Get()->LockGroup( in TEST_F() 918 int group_id = CsisClient::Get()->GetGroupId(test_address); in TEST_F() 1303 CsisClient::Get()->LockGroup( in TEST_F() [all …]
|