/packages/modules/Bluetooth/system/bta/groups/ |
D | groups_test.cc | 91 ASSERT_TRUE(DeviceGroups::Get()); in TEST_F() 97 DeviceGroups* dev_groups_p = DeviceGroups::Get(); in TEST_F() 99 ASSERT_EQ(dev_groups_p, DeviceGroups::Get()); in TEST_F() 107 ASSERT_FALSE(DeviceGroups::Get()); in TEST_F() 112 ASSERT_FALSE(DeviceGroups::Get()); in TEST_F() 118 DeviceGroups::Get()->AddDevice(GetTestAddress(1), Uuid::kEmpty, 7); in TEST_F() 126 DeviceGroups::Get()->AddDevice(GetTestAddress(1), Uuid::kEmpty, 7); in TEST_F() 127 DeviceGroups::Get()->AddDevice(GetTestAddress(2), Uuid::kEmpty, 7); in TEST_F() 134 DeviceGroups::Get()->AddDevice(GetTestAddress(2), Uuid::kEmpty, 7); in TEST_F() 135 DeviceGroups::Get()->RemoveDevice(GetTestAddress(2)); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/common/ |
D | lru_unittest.cc | 41 EXPECT_TRUE(cache.Get(1, value)); in TEST() 43 EXPECT_TRUE(cache.Get(2, value)); in TEST() 45 EXPECT_TRUE(cache.Get(3, value)); in TEST() 51 EXPECT_FALSE(cache.Get(1, value)); in TEST() 52 EXPECT_TRUE(cache.Get(4, value)); in TEST() 54 EXPECT_TRUE(cache.Get(2, value)); in TEST() 56 EXPECT_TRUE(cache.Get(3, value)); in TEST() 67 EXPECT_FALSE(cache.Get(3, value)); in TEST() 68 EXPECT_FALSE(cache.Get(4, value)); in TEST() 69 EXPECT_TRUE(cache.Get(2, value)); in TEST() [all …]
|
/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 | 127 WakelockNative::Get().Initialize(); in SetUp() 161 WakelockNative::Get().CleanUp(); in TearDown() 173 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 180 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 191 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 198 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 205 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 216 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F() 223 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() 230 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/ |
D | broadcaster_test.cc | 251 LeAudioBroadcaster::Get()->CreateAudioBroadcast(metadata, code); in InstantiateBroadcast() 263 ASSERT_NE(LeAudioBroadcaster::Get(), nullptr); in TEST_F() 268 LeAudioBroadcaster::Get()->SetStreamingPhy(1); in TEST_F() 269 ASSERT_EQ(LeAudioBroadcaster::Get()->GetStreamingPhy(), 1); in TEST_F() 270 LeAudioBroadcaster::Get()->SetStreamingPhy(2); in TEST_F() 271 ASSERT_EQ(LeAudioBroadcaster::Get()->GetStreamingPhy(), 2); in TEST_F() 291 LeAudioBroadcaster::Get()->StartAudioBroadcast(broadcast_id); in TEST_F() 298 LeAudioBroadcaster::Get()->SuspendAudioBroadcast(broadcast_id); in TEST_F() 303 LeAudioBroadcaster::Get()->StopAudioBroadcast(broadcast_id); in TEST_F() 313 LeAudioBroadcaster::Get()->StartAudioBroadcast(broadcast_id); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | ble_advertiser_test.cc | 201 BleAdvertisingManager::Get()->RegisterAdvertiser(Bind( in TEST_F() 208 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F() 217 BleAdvertisingManager::Get()->Unregister(5); in TEST_F() 221 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F() 230 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F() 242 BleAdvertisingManager::Get()->SetParameters( in TEST_F() 256 BleAdvertisingManager::Get()->SetData( in TEST_F() 272 BleAdvertisingManager::Get()->Enable( in TEST_F() 294 BleAdvertisingManager::Get()->Unregister(advertiser_id); in TEST_F() 304 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F() [all …]
|
D | gatt_connection_manager_test.cc | 183 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 184 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F() 197 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 213 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 217 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)) in TEST_F() 230 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 243 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() 244 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F() 253 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F() 291 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_vc.cc | 128 Unretained(VolumeControl::Get()), address)); in Connect() 135 Unretained(VolumeControl::Get()), address)); in Disconnect() 142 Unretained(VolumeControl::Get()), in SetVolume() 149 FROM_HERE, Bind(&VolumeControl::Mute, Unretained(VolumeControl::Get()), in Mute() 156 Unretained(VolumeControl::Get()), in Unmute() 167 Unretained(VolumeControl::Get()), address)); in RemoveDevice() 180 Unretained(VolumeControl::Get()), address, ext_output_id)); in GetExtAudioOutVolumeOffset() 191 Unretained(VolumeControl::Get()), address, in SetExtAudioOutVolumeOffset() 201 Unretained(VolumeControl::Get()), address, in GetExtAudioOutLocation() 211 Unretained(VolumeControl::Get()), address, in SetExtAudioOutLocation() [all …]
|
D | btif_ble_advertiser.cc | 107 BleAdvertisingManager::Get(), in RegisterAdvertiser() 121 BleAdvertisingManager::Get()->Unregister(advertiser_id); in Unregister() 130 BleAdvertisingManager::Get(), advertiser_id, in GetOwnAddress() 143 BleAdvertisingManager::Get(), in SetParameters() 153 Bind(&BleAdvertisingManager::SetData, BleAdvertisingManager::Get(), in SetData() 167 Bind(&BleAdvertisingManager::Enable, BleAdvertisingManager::Get(), in Enable() 186 BleAdvertisingManager::Get(), advertiser_id, in StartAdvertising() 212 BleAdvertisingManager::Get(), jni_thread_wrapper(FROM_HERE, cb), in StartAdvertisingSet() 231 BleAdvertisingManager::Get(), advertiser_id, in SetPeriodicAdvertisingParameters() 243 BleAdvertisingManager::Get(), advertiser_id, in SetPeriodicAdvertisingData() [all …]
|
D | btif_le_audio.cc | 142 Unretained(LeAudioClient::Get()), address)); in RemoveDevice() 151 Unretained(LeAudioClient::Get()), address)); in Connect() 158 Unretained(LeAudioClient::Get()), address)); in Disconnect() 166 Unretained(LeAudioClient::Get()), group_id, address)); in GroupAddNode() 174 Unretained(LeAudioClient::Get()), group_id, address)); in GroupRemoveNode() 181 Unretained(LeAudioClient::Get()), group_id)); in GroupSetActive() 190 Unretained(LeAudioClient::Get()), group_id, in SetCodecConfigPreference() 199 Unretained(LeAudioClient::Get()), ccid, context_type)); in SetCcidInformation() 206 Unretained(LeAudioClient::Get()), in_call)); in SetInCall()
|
D | btif_le_audio_broadcaster.cc | 58 Unretained(LeAudioBroadcaster::Get()), in CreateBroadcast() 66 Unretained(LeAudioBroadcaster::Get()), in UpdateMetadata() 74 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in StartBroadcast() 81 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in StopBroadcast() 88 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in PauseBroadcast() 95 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in DestroyBroadcast() 102 Unretained(LeAudioBroadcaster::Get()), broadcast_id)); in GetBroadcastMetadata()
|
D | btif_has_client.cc | 69 Unretained(HasClient::Get()), addr)); in Connect() 78 Unretained(HasClient::Get()), addr)); in Disconnect() 90 Bind(&HasClient::SelectActivePreset, Unretained(HasClient::Get()), in SelectActivePreset() 99 Unretained(HasClient::Get()), in NextActivePreset() 108 Unretained(HasClient::Get()), in PreviousActivePreset() 117 FROM_HERE, Bind(&HasClient::GetPresetInfo, Unretained(HasClient::Get()), in GetPresetInfo() 127 FROM_HERE, Bind(&HasClient::SetPresetName, Unretained(HasClient::Get()), in SetPresetName() 138 Unretained(HasClient::Get()), addr)); in RemoveDevice()
|
/packages/modules/Bluetooth/system/service/ |
D | a2dp_sink.cc | 33 hal::BluetoothAvInterface::Get()->AddA2dpSinkObserver(this); in A2dpSink() 37 hal::BluetoothAvInterface::Get()->RemoveA2dpSinkObserver(this); in ~A2dpSink() 51 return hal::BluetoothAvInterface::Get()->A2dpSinkEnable(); in Enable() 56 hal::BluetoothAvInterface::Get()->A2dpSinkDisable(); in Disable() 68 hal::BluetoothAvInterface::Get()->GetA2dpSinkHALInterface()->connect( in Connect() 87 hal::BluetoothAvInterface::Get()->GetA2dpSinkHALInterface()->disconnect( in Disconnect() 99 hal::BluetoothAvInterface::Get() in SetAudioFocusState() 106 hal::BluetoothAvInterface::Get() in SetAudioTrackGain()
|
D | low_energy_scanner.cc | 81 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScanner() 83 hal::BluetoothGattInterface::Get()->GetScannerHALInterface()->Unregister( in ~LowEnergyScanner() 107 hal::BluetoothGattInterface::Get()->StartScan(scanner_id_); in StartScan() 124 hal::BluetoothGattInterface::Get()->StopScan(scanner_id_); in StopScan() 164 hal::BluetoothGattInterface::Get()->AddScannerObserver(this); in LowEnergyScannerFactory() 168 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScannerFactory() 183 hal::BluetoothGattInterface::Get()->GetScannerHALInterface(); in RegisterInstance() 216 hal::BluetoothGattInterface::Get()->AddScannerObserver(scanner.get()); in RegisterScannerCallback()
|
D | avrcp_target.cc | 100 hal::BluetoothAvrcpInterface::Get()->AddTargetObserver(this); in AvrcpTarget() 104 hal::BluetoothAvrcpInterface::Get()->RemoveTargetObserver(this); in ~AvrcpTarget() 118 return hal::BluetoothAvrcpInterface::Get()->AvrcpTargetEnable(); in Enable() 123 hal::BluetoothAvrcpInterface::Get()->AvrcpTargetDisable(); in Disable() 131 TRY_RET_FUNC(hal::BluetoothAvrcpInterface::Get() in GetPlayStatusResponse() 149 TRY_RET_FUNC(hal::BluetoothAvrcpInterface::Get() in ListPlayerAppAttrResponse() 172 TRY_RET_FUNC(hal::BluetoothAvrcpInterface::Get() in GetPlayerAppValueResponse() 183 TRY_RET_FUNC(hal::BluetoothAvrcpInterface::Get() in GetPlayerAppAttrTextResponse() 195 TRY_RET_FUNC(hal::BluetoothAvrcpInterface::Get() in GetPlayerAppValueTextResponse() 208 hal::BluetoothAvrcpInterface::Get() in GetElementAttrResponse() [all …]
|
D | adapter.cc | 205 hal::BluetoothInterface::Get()->AddObserver(this); in AdapterImpl() 215 hal::BluetoothInterface::Get()->GetHALInterface()->get_adapter_properties(); in AdapterImpl() 222 hal::BluetoothInterface::Get()->RemoveObserver(this); in ~AdapterImpl() 252 int status = hal::BluetoothInterface::Get()->GetHALInterface()->enable(); in Enable() 277 int status = hal::BluetoothInterface::Get()->GetHALInterface()->disable(); in Disable() 289 std::string GetName() const override { return name_.Get(); } in GetName() 315 std::string GetAddress() const override { return address_.Get(); } in GetAddress() 342 hal::BluetoothInterface::Get()->GetHALInterface()->start_discovery(); in SetScanEnable() 349 hal::BluetoothInterface::Get()->GetHALInterface()->cancel_discovery(); in SetScanEnable() 366 int status = hal::BluetoothInterface::Get()->GetHALInterface()->ssp_reply( in SspReply() [all …]
|
D | low_energy_client.cc | 48 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClient() 50 hal::BluetoothGattInterface::Get() in ~LowEnergyClient() 62 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->connect( in Connect() 89 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->disconnect( in Disconnect() 115 bt_status_t status = hal::BluetoothGattInterface::Get() in SetMtu() 201 hal::BluetoothGattInterface::Get()->AddClientObserver(this); in LowEnergyClientFactory() 205 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClientFactory() 220 hal::BluetoothGattInterface::Get()->GetClientHALInterface(); in RegisterInstance()
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | state_machine_test.cc | 194 ON_CALL(mock_csis_client_module_, Get()) in SetUp() 284 LeAudioGroupStateMachine::Get()->ProcessHciNotifOnCigCreate( in ConfigureIsoManagerMock() 296 LeAudioGroupStateMachine::Get()->ProcessHciNotifOnCigRemove( in ConfigureIsoManagerMock() 321 LeAudioGroupStateMachine::Get()->ProcessHciNotifSetupIsoDataPath( in ConfigureIsoManagerMock() 346 LeAudioGroupStateMachine::Get()->ProcessHciNotifRemoveIsoDataPath( in ConfigureIsoManagerMock() 394 LeAudioGroupStateMachine::Get()->ProcessHciNotifCisEstablished( in ConfigureIsoManagerMock() 431 LeAudioGroupStateMachine::Get()->ProcessHciNotifCisDisconnected( in ConfigureIsoManagerMock() 575 LeAudioGroupStateMachine::Get()->ProcessGattNotifEvent( in InjectAseStateNotification() 600 LeAudioGroupStateMachine::Get()->ProcessGattNotifEvent( in InjectAseStateNotification() 624 LeAudioGroupStateMachine::Get()->ProcessGattNotifEvent( in InjectAseStateNotification() [all …]
|
D | le_audio_client_test.cc | 591 ON_CALL(mock_csis_client_module_, Get()) in SetUpMockGroups() 1307 if (le_audio::AudioSetConfigurationProvider::Get()) in TearDown() 1463 base::Unretained(LeAudioClient::Get()), address)); in ConnectLeAudio() 1477 base::Unretained(LeAudioClient::Get()), address)); in DisconnectLeAudio() 1510 base::Unretained(LeAudioClient::Get()), group_id, addr)); in ConnectCsisDevice() 2315 ASSERT_NE(LeAudioClient::Get(), nullptr); in TEST_F() 2501 LeAudioClient::Get()->GetGroupDevices(group_id); in TEST_F() 2539 LeAudioClient::Get()->GetGroupDevices(group_id); in TEST_F() 2668 LeAudioClient::Get()->GetGroupDevices(group_id); in TEST_F() 2790 LeAudioClient::Get()->GetGroupDevices(group_id0); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/osi/test/ |
D | alarm_mock.h | 29 static inline AlarmMock* Get() { in Get() function 45 return AlarmMock::Get()->AlarmNewImpl(name); in alarm_new() 48 void alarm_free(alarm_t* alarm) { AlarmMock::Get()->AlarmFreeImpl(alarm); } in alarm_free() 52 AlarmMock::Get()->AlarmSetOnMloop(alarm, interval_ms, cb, data); in alarm_set_on_mloop() 56 return AlarmMock::Get()->AlarmIsScheduled(alarm); in alarm_is_scheduled() 59 void alarm_cancel(alarm_t* alarm) { AlarmMock::Get()->AlarmCancel(alarm); } in alarm_cancel()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_scanner.cc | 141 base::WeakPtr<BleScanningManager> BleScanningManager::Get() { in Get() function in BleScanningManager 155 if (BleScannerHciInterface::Get()) { in btm_ble_scanner_init() 156 BleScanningManager::Initialize(BleScannerHciInterface::Get()); in btm_ble_scanner_init() 160 if ((BleScannerHciInterface::Get()) && (BleScanningManager::Get())) { in btm_ble_scanner_init() 161 BleScannerHciInterface::Get()->SetScanEventObserver( in btm_ble_scanner_init() 162 (BleScanningManagerImpl*)BleScanningManager::Get().get()); in btm_ble_scanner_init()
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | vc_test.cc | 342 VolumeControl::Get()->Connect(address); in TestConnect() 352 VolumeControl::Get()->Disconnect(address); in TestDisconnect() 367 VolumeControl::Get()->AddFromStorage(address, auto_connect); in TestAddFromStorage() 511 ASSERT_DEATH(VolumeControl::Get(), ""); in TEST_F() 522 VolumeControl* volume_control_p = VolumeControl::Get(); in TEST_F() 524 ASSERT_EQ(volume_control_p, VolumeControl::Get()); in TEST_F() 590 VolumeControl::Get()->Connect(test_address); in TEST_F() 841 VolumeControl::Get()->SetVolume(test_address, 15); in TEST_F() 963 VolumeControl::Get()->GetExtAudioOutVolumeOffset(test_address, 1); in TEST_F() 973 VolumeControl::Get()->GetExtAudioOutLocation(test_address, 2); in TEST_F() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | pointertest.cpp | 607 TEST(Pointer, Get) { in TEST() argument 611 EXPECT_EQ(&d, Pointer("").Get(d)); in TEST() 612 EXPECT_EQ(&d["foo"], Pointer("/foo").Get(d)); in TEST() 613 EXPECT_EQ(&d["foo"][0], Pointer("/foo/0").Get(d)); in TEST() 614 EXPECT_EQ(&d[""], Pointer("/").Get(d)); in TEST() 615 EXPECT_EQ(&d["a/b"], Pointer("/a~1b").Get(d)); in TEST() 616 EXPECT_EQ(&d["c%d"], Pointer("/c%d").Get(d)); in TEST() 617 EXPECT_EQ(&d["e^f"], Pointer("/e^f").Get(d)); in TEST() 618 EXPECT_EQ(&d["g|h"], Pointer("/g|h").Get(d)); in TEST() 619 EXPECT_EQ(&d["i\\j"], Pointer("/i\\j").Get(d)); in TEST() [all …]
|
/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/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_connection_handler_test.cc | 104 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 128 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 152 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 179 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 223 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 261 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 293 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 329 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 388 connection_handler_ = ConnectionHandler::Get(); in TEST_F() 410 connection_handler_ = ConnectionHandler::Get(); in TEST_F() [all …]
|