Home
last modified time | relevance | path

Searched refs:Get (Results 1 – 25 of 149) sorted by relevance

123456

/packages/modules/Bluetooth/system/bta/groups/
Dgroups_test.cc90 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/
Dlru_unittest.cc40 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 …]
Dmetric_id_allocator.cc121 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/
Dwakelock_manager_unittest.cc99 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/
Dwakelock_native_test.cc128 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/
Dbtif_vc.cc124 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 …]
Dbtif_le_audio.cc192 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 …]
Dbtif_le_audio_broadcaster.cc58 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()
Dbtif_has_client.cc63 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()
Dbtif_csis_client.cc72 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/
Dalarm_mock.h31 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/
Dgatt_connection_manager_test.cc170 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/
DAudioJitterBufferTest.cpp149 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
169 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
218 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
238 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
287 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
308 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
357 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, in TEST_F()
378 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
448 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, in TEST_F()
457 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, in TEST_F()
[all …]
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc346 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/
Dbtm_ble_scanner.cc133 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/
Dconfig_cache_helper.h59 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/
DAudioJitterBuffer.cpp84 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/
Dstate_machine_test.cc302 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 …]
Dle_audio_client_test.cc831 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 …]
Ddevices_test.cc512 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/
Dstack_manager.cc43 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/
Dbroadcaster_test.cc390 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/
Davrcp_connection_handler_test.cc112 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/
Dle_audio_software_unittest.cc602 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/
Dcsis_client_test.cc536 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 …]

123456