/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_impl.cpp | 47 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); in PairDevice() local 48 *errCode = remoteDevice.StartPair(); in PairDevice() 59 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); in GetRemoteDeviceName() local 60 *errCode = remoteDevice.GetDeviceName(name); in GetRemoteDeviceName() 71 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); in GetRemoteDeviceClass() local 77 *errCode = remoteDevice.GetDeviceProductType(tmpCod, tmpMajorClass, tmpMajorMinorClass); in GetRemoteDeviceClass() 93 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(deviceId); in GetRemoteProfileUuids() local 94 *errCode = remoteDevice.GetDeviceUuids(uuids); in GetRemoteProfileUuids() 138 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); in GetPairState() local 140 *errCode = remoteDevice in GetPairState() 161 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); SetDevicePairingConfirmation() local 172 BluetoothRemoteDevice remoteDevice = Bluetooth::BluetoothRemoteDevice(deviceId); SetDevicePinCode() local 231 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(deviceId); SetRemoteDeviceName() local 244 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(deviceId); GetRemoteDeviceBatteryInfo() local [all...] |
H A D | bluetooth_connection_callback.cpp | 47 std::shared_ptr<BluetoothRemoteDevice> remoteDevice = std::make_shared<BluetoothRemoteDevice>(device); in OnDiscoveryResult() local 55 retValue[i] = MallocCString(remoteDevice->GetDeviceAddr()); in OnDiscoveryResult()
|
/foundation/CastEngine/castengine_cast_framework/common/include/private/ |
H A D | cast_service_common.h | 74 std::size_t operator()(const CastInnerRemoteDevice &remoteDevice) const in operator ()() 76 return std::hash<std::string>()(remoteDevice.deviceId) in operator ()() 77 ^ std::hash<std::string>()(remoteDevice.deviceName) in operator ()() 78 ^ std::hash<std::string>()(remoteDevice.bleMac) in operator ()() 79 ^ std::hash<std::string>()(remoteDevice.wifiIp) in operator ()() 80 ^ std::hash<uint16_t>()(remoteDevice.wifiPort) in operator ()() 81 ^ std::hash<std::string>()(remoteDevice.customData); in operator ()()
|
H A D | i_cast_session_impl.h | 50 virtual int32_t AddDevice(const CastRemoteDevice &remoteDevice) = 0; 62 virtual bool AddDevice(const CastInnerRemoteDevice &remoteDevice) in AddDevice() argument
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection_observer.cpp | 65 BluetoothRemoteDevice remoteDevice; in OnPairRequested() local 67 remoteDevice = BluetoothHost::GetDefaultHost().GetRemoteDevice(device.GetDeviceAddr(), BT_TRANSPORT_BREDR); in OnPairRequested() 69 remoteDevice = BluetoothHost::GetDefaultHost().GetRemoteDevice(device.GetDeviceAddr(), BT_TRANSPORT_BLE); in OnPairRequested() 71 remoteDevice.PairRequestReply(true); in OnPairRequested() 109 std::shared_ptr<BluetoothRemoteDevice> remoteDevice = std::make_shared<BluetoothRemoteDevice>(device); in OnDiscoveryResultCallBack() local 110 auto nativeObject = std::make_shared<NapiNativeDiscoveryResultArray>(remoteDevice); in OnDiscoveryResultCallBack() 117 std::shared_ptr<BluetoothRemoteDevice> remoteDevice = std::make_shared<BluetoothRemoteDevice>(device); in OnDiscoveryResultCallBack() local 119 std::make_shared<NapiNativeDiscoveryInfoResultArray>(remoteDevice, rssi, deviceName, deviceClass); in OnDiscoveryResultCallBack()
|
H A D | napi_bluetooth_connection.cpp | 194 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); in PairDevice() local 195 int32_t ret = remoteDevice.StartPair(); in PairDevice() 207 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); in CancelPairedDevice() local 209 int32_t ret = host->RemovePair(remoteDevice); in CancelPairedDevice() 225 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); in GetRemoteDeviceName() local 226 int32_t err = remoteDevice.GetDeviceName(name); in GetRemoteDeviceName() 239 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); in GetRemoteDeviceClass() local 243 int32_t err = remoteDevice.GetDeviceProductType(tmpCod, tmpMajorClass, tmpMajorMinorClass); in GetRemoteDeviceClass() 336 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); in SetDevicePairingConfirmation() local 339 ret = remoteDevice in SetDevicePairingConfirmation() 609 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); GetPairState() local 666 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr); GetRemoteProductId() local [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_hfp_hf.cpp | 46 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 47 observers_.ForEach([remoteDevice, state, cause](std::shared_ptr<HandsFreeUnitObserver> observer) { 48 observer->OnConnectionStateChanged(remoteDevice, state, cause); 55 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 56 observers_.ForEach([remoteDevice, state](std::shared_ptr<HandsFreeUnitObserver> observer) { 57 observer->OnScoStateChanged(remoteDevice, state); 65 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 76 observers_.ForEach([remoteDevice, tmpCall](std::shared_ptr<HandsFreeUnitObserver> observer) { 77 observer->OnCallChanged(remoteDevice, tmpCall); 84 BluetoothRemoteDevice remoteDevice(devic [all...] |
H A D | bluetooth_host.cpp | 152 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR); 153 host_.observers_.ForEach([remoteDevice, rssi, deviceName, deviceClass]( 155 observer->OnDiscoveryResult(remoteDevice, rssi, deviceName, deviceClass); 163 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport); 164 host_.observers_.ForEach([remoteDevice](std::shared_ptr<BluetoothHostObserver> observer) { 165 observer->OnPairRequested(remoteDevice); 173 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport); 174 host_.observers_.ForEach([remoteDevice, reqType, number](std::shared_ptr<BluetoothHostObserver> observer) { 175 observer->OnPairConfirmed(remoteDevice, reqType, number); 238 BluetoothRemoteDevice remoteDevice(devic [all...] |
H A D | bluetooth_hfp_ag.cpp | 49 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 50 observers_.ForEach([remoteDevice, state, cause](std::shared_ptr<HandsFreeAudioGatewayObserver> observer) { 51 observer->OnConnectionStateChanged(remoteDevice, state, cause); 59 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 60 observers_.ForEach([remoteDevice, state, reason](std::shared_ptr<HandsFreeAudioGatewayObserver> observer) { 61 observer->OnScoStateChanged(remoteDevice, state, reason); 68 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 69 observers_.ForEach([remoteDevice](std::shared_ptr<HandsFreeAudioGatewayObserver> observer) { 70 observer->OnActiveDeviceChanged(remoteDevice); 79 BluetoothRemoteDevice remoteDevice(devic [all...] |
H A D | bluetooth_pan.cpp | 46 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 1); 47 observers_.ForEach([remoteDevice, state, cause](std::shared_ptr<PanObserver> observer) { 48 observer->OnConnectionStateChanged(remoteDevice, state, cause); 81 BluetoothRemoteDevice remoteDevice(rawDevice.GetAddress(), 1); in GetDevicesByStates() 82 result.push_back(remoteDevice); in GetDevicesByStates()
|
H A D | bluetooth_hid_host.cpp | 48 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); 49 observers_.ForEach([remoteDevice, state, cause](std::shared_ptr<HidHostObserver> observer) { 50 observer->OnConnectionStateChanged(remoteDevice, state, cause); 81 BluetoothRemoteDevice remoteDevice(rawDevice.GetAddress(), 1); in GetDevicesByStates() 82 result.push_back(remoteDevice); in GetDevicesByStates()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/ |
H A D | cast_session_impl.cpp | 150 int32_t CastSessionImpl::AddDevice(const CastRemoteDevice &remoteDevice) in AddDevice() argument 153 auto remote = CastDeviceDataManager::GetInstance().GetDeviceByDeviceId(remoteDevice.deviceId); in AddDevice() 158 remote->subDeviceType = remoteDevice.subDeviceType; in AddDevice() 167 bool CastSessionImpl::AddDevice(const CastInnerRemoteDevice &remoteDevice) in AddDevice() argument 190 OtherAddDevice(remoteDevice); in AddDevice() 194 auto dmDevice = ConnectionManager::GetInstance().GetDmDeviceInfo(remoteDevice.deviceId); in AddDevice() 195 if (remoteDevice.deviceId.compare(dmDevice.deviceId) != 0) { in AddDevice() 200 if (!ConnectionManager::GetInstance().IsDeviceTrusted(remoteDevice.deviceId, networkId)) { in AddDevice() 204 if (!CastDeviceDataManager::GetInstance().AddDevice(remoteDevice, dmDevice)) { in AddDevice() 207 } else if (!CastDeviceDataManager::GetInstance().UpdateDevice(remoteDevice)) { in AddDevice() 223 OtherAddDevice(const CastInnerRemoteDevice &remoteDevice) OtherAddDevice() argument [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/ |
H A D | cast_session_impl.cpp | 150 int32_t CastSessionImpl::AddDevice(const CastRemoteDevice &remoteDevice) in AddDevice() argument 153 auto remote = CastDeviceDataManager::GetInstance().GetDeviceByDeviceId(remoteDevice.deviceId); in AddDevice() 158 remote->subDeviceType = remoteDevice.subDeviceType; in AddDevice() 167 bool CastSessionImpl::AddDevice(const CastInnerRemoteDevice &remoteDevice) in AddDevice() argument 190 OtherAddDevice(remoteDevice); in AddDevice() 194 auto dmDevice = ConnectionManager::GetInstance().GetDmDeviceInfo(remoteDevice.deviceId); in AddDevice() 195 if (remoteDevice.deviceId.compare(dmDevice.deviceId) != 0) { in AddDevice() 200 if (!ConnectionManager::GetInstance().IsDeviceTrusted(remoteDevice.deviceId, networkId)) { in AddDevice() 204 if (!CastDeviceDataManager::GetInstance().AddDevice(remoteDevice, dmDevice)) { in AddDevice() 207 } else if (!CastDeviceDataManager::GetInstance().UpdateDevice(remoteDevice)) { in AddDevice() 223 OtherAddDevice(const CastInnerRemoteDevice &remoteDevice) OtherAddDevice() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_adapter.cpp | 1003 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); in HandleInquiryResult() local 1005 if (cod != remoteDevice->GetDeviceClass()) { in HandleInquiryResult() 1006 remoteDevice->SetDeviceClass(cod); in HandleInquiryResult() 1010 remoteDevice->SetDeviceType(REMOTE_TYPE_BREDR); in HandleInquiryResult() 1011 remoteDevice->SetRssi(rssi); in HandleInquiryResult() 1013 ParserEirData(remoteDevice, eir); in HandleInquiryResult() 1015 if (remoteDevice->GetRemoteName().empty()) { in HandleInquiryResult() 1016 remoteDevice->SetNameNeedGet(true); in HandleInquiryResult() 1020 SendDiscoveryResult(device, rssi, remoteDevice->GetRemoteName(), cod); in HandleInquiryResult() 1025 std::shared_ptr<ClassicRemoteDevice> remoteDevice; in FindRemoteDevice() local 1108 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveRemoteName() local 1175 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); SSPConfirmReq() local 1194 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); PinCodeReq() local 1525 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveLinkKeyNotification() local 1554 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveSimplePairComplete() local 1582 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveAuthenticationComplete() local 1612 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveEncryptionChange() local 1714 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); SearchAttributeEnd() local 1809 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); StartPair() local 2037 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); ReceiveConnectionComplete() local 2143 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); SetLinkKey() local 2176 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(rawAddr); SetIoCapability() local 2207 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); SaveRemoteIoCapability() local 2413 std::shared_ptr<ClassicRemoteDevice> remoteDevice = FindRemoteDevice(device); IsHfpCodSupported() local [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/pbap/ |
H A D | napi_bluetooth_pbap_pse.cpp | 204 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in SetConnectionStrategy() 206 int32_t errorCode = profile->SetConnectionStrategy(remoteDevice, strategy);
in SetConnectionStrategy() 225 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in GetConnectionStrategy() 227 int32_t errorCode = profile->GetConnectionStrategy(remoteDevice, strategy);
in GetConnectionStrategy() 266 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in SetShareType() 268 int32_t errorCode = profile->SetShareType(remoteDevice, shareType);
in SetShareType() 287 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in GetShareType() 289 int32_t errorCode = profile->GetShareType(remoteDevice, shareType);
in GetShareType() 309 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in SetPhoneBookAccessAuthorization() 311 int32_t errorCode = profile->SetPhoneBookAccessAuthorization(remoteDevice, accessAuthorizatio in SetPhoneBookAccessAuthorization() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/map/ |
H A D | napi_bluetooth_map_mse.cpp | 171 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in SetConnectionStrategy() 173 int32_t errorCode = profile->SetConnectionStrategy(remoteDevice, strategy);
in SetConnectionStrategy() 192 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in GetConnectionStrategy() 194 int32_t errorCode = profile->GetConnectionStrategy(remoteDevice, strategy);
in GetConnectionStrategy() 213 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in SetMessageAccessAuthorization() 215 int32_t errorCode = profile->SetMessageAccessAuthorization(remoteDevice, accessAuthorization);
in SetMessageAccessAuthorization() 233 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR);
in GetMessageAccessAuthorization() 235 int32_t errorCode = profile->GetMessageAccessAuthorization(remoteDevice, accessAuthorization);
in GetMessageAccessAuthorization()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gap.cpp | 448 BluetoothRemoteDevice remoteDevice; in PairRequestReply() local 450 remoteDevice = g_BluetoothHost->GetRemoteDevice(strAddress, BT_TRANSPORT_BREDR); in PairRequestReply() 452 remoteDevice = g_BluetoothHost->GetRemoteDevice(strAddress, BT_TRANSPORT_BLE); in PairRequestReply() 457 bool ret = remoteDevice.PairRequestReply(accept); in PairRequestReply() 467 BluetoothRemoteDevice remoteDevice; in SetDevicePairingConfirmation() local 469 remoteDevice = g_BluetoothHost->GetRemoteDevice(strAddress, BT_TRANSPORT_BREDR); in SetDevicePairingConfirmation() 471 remoteDevice = g_BluetoothHost->GetRemoteDevice(strAddress, BT_TRANSPORT_BLE); in SetDevicePairingConfirmation() 477 int ret = remoteDevice.SetDevicePairingConfirmation(accept); in SetDevicePairingConfirmation()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/a2dp/ |
H A D | napi_bluetooth_a2dp_src.cpp | 191 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr, transport); in GetPlayingState() local 193 int32_t errorCode = profile->GetPlayingState(remoteDevice, state); in GetPlayingState() 208 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr, transport); in Connect() local 210 int32_t ret = profile->Connect(remoteDevice); in Connect() 224 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr, transport); in Disconnect() local 226 int32_t ret = profile->Disconnect(remoteDevice); in Disconnect() 414 BluetoothRemoteDevice remoteDevice(remoteAddr, transport); in SetConnectionStrategy() 416 int32_t err = profile->SetConnectStrategy(remoteDevice, strategy); in SetConnectionStrategy() 436 BluetoothRemoteDevice remoteDevice(remoteAddr, transport); in GetConnectionStrategy() 438 int32_t err = profile->GetConnectStrategy(remoteDevice, strateg in GetConnectionStrategy() 675 BluetoothRemoteDevice remoteDevice = BluetoothRemoteDevice(remoteAddr, transport); GetCurrentCodecInfo() local [all...] |
/foundation/CastEngine/castengine_cast_framework/client/src/ |
H A D | cast_session.cpp | 64 int32_t CastSession::AddDevice(const CastRemoteDevice &remoteDevice) in AddDevice() argument 66 if (remoteDevice.deviceId.empty()) { in AddDevice() 70 return proxy_ ? proxy_->AddDevice(remoteDevice) : CAST_ENGINE_ERROR; in AddDevice()
|
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | dm_adapter_test.cpp | 100 DmDeviceInfo remoteDevice; in HWTEST_F() local 101 auto ret = DMAdapter::GetInstance().GetRemoteDeviceInfo("", remoteDevice); in HWTEST_F()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/include/ |
H A D | cast_session_common.h | 30 CastInnerRemoteDevice remoteDevice; member
|
/foundation/CastEngine/castengine_cast_plus_stream/include/ |
H A D | cast_session_common.h | 30 CastInnerRemoteDevice remoteDevice; member
|
/foundation/communication/bluetooth/frameworks/js/napi/src/hid/ |
H A D | napi_bluetooth_hid_host.cpp | 209 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR); in SetConnectionStrategy() 211 int32_t err = profile->SetConnectStrategy(remoteDevice, strategy); in SetConnectionStrategy() 230 BluetoothRemoteDevice remoteDevice(remoteAddr, BT_TRANSPORT_BREDR); in GetConnectionStrategy() 232 int32_t err = profile->GetConnectStrategy(remoteDevice, strategy); in GetConnectionStrategy()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_gatt_server.cpp | 274 BluetoothRemoteDevice remoteDevice(rsp.deviceId, BTTransport::ADAPTER_BLE); in SendResponse() 275 HILOGI("Remote device address: %{public}s", GET_ENCRYPT_ADDR(remoteDevice)); in SendResponse() 276 int ret = server->SendResponse(remoteDevice, rsp.transId, rsp.status, rsp.offset, rsp.value.data(), in SendResponse() 338 BluetoothRemoteDevice remoteDevice(deviceId, BTTransport::ADAPTER_BLE); in NotifyCharacteristicChangedEx() 339 ret = server->NotifyCharacteristicChanged(remoteDevice, *character, notifyCharacter.confirm); in NotifyCharacteristicChangedEx() 388 BluetoothRemoteDevice remoteDevice(deviceId, BTTransport::ADAPTER_BLE); in NotifyCharacteristicChanged() 389 int ret = server->NotifyCharacteristicChanged(remoteDevice, *character, notifyCharacter.confirm); in NotifyCharacteristicChanged()
|
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/ |
H A D | avsession_remote_test.cpp | 109 OHOS::DistributedHardware::DmDeviceInfo remoteDevice; in MockGetTrustedDeviceList() local 110 memset_s(&remoteDevice, sizeof(remoteDevice), 0, sizeof(remoteDevice)); in MockGetTrustedDeviceList() 111 strcpy_s(remoteDevice.deviceId, sizeof(remoteDevice.deviceId) - 1, "<remoteDeviceId>"); in MockGetTrustedDeviceList() 112 strcpy_s(remoteDevice.deviceName, sizeof(remoteDevice.deviceName) - 1, "<remoteDeviceName>"); in MockGetTrustedDeviceList() 116 deviceList.push_back(remoteDevice); in MockGetTrustedDeviceList()
|