Home
last modified time | relevance | path

Searched refs:macAddress (Results 1 - 25 of 88) sorted by relevance

1234

/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/
H A Daudio_bluetooth_manager.cpp140 int32_t AudioA2dpManager::SetActiveA2dpDevice(const std::string& macAddress) in SetActiveA2dpDevice() argument
144 GetEncryptAddr(macAddress).c_str(), GetEncryptAddr(activeA2dpDevice_.GetDeviceAddr()).c_str()); in SetActiveA2dpDevice()
148 if (macAddress != "") { in SetActiveA2dpDevice()
149 int32_t tmp = MediaBluetoothDeviceManager::GetConnectedA2dpBluetoothDevice(macAddress, device); in SetActiveA2dpDevice()
169 int32_t AudioA2dpManager::SetDeviceAbsVolume(const std::string& macAddress, int32_t volume) in SetDeviceAbsVolume() argument
172 int32_t ret = MediaBluetoothDeviceManager::GetConnectedA2dpBluetoothDevice(macAddress, device); in SetDeviceAbsVolume()
177 int32_t AudioA2dpManager::GetA2dpDeviceStreamInfo(const std::string& macAddress, in GetA2dpDeviceStreamInfo() argument
184 int32_t ret = MediaBluetoothDeviceManager::GetConnectedA2dpBluetoothDevice(macAddress, device); in GetA2dpDeviceStreamInfo()
281 for (auto &macAddress : virtualDevices) { in CheckA2dpDeviceReconnect()
282 AUDIO_PRERELEASE_LOGI("reconnect virtual a2dp device:%{public}s", GetEncryptAddr(macAddress) in CheckA2dpDeviceReconnect()
283 a2dpListener_->OnVirtualDeviceChanged(static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_ADD), macAddress); CheckA2dpDeviceReconnect() local
287 Connect(const std::string &macAddress) Connect() argument
350 OnVirtualDeviceChanged(int32_t action, std::string macAddress) OnVirtualDeviceChanged() argument
408 hfpListener_->OnVirtualDeviceChanged(static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_ADD), macAddress); CheckHfpDeviceReconnect() local
463 SetActiveHfpDevice(const std::string &macAddress) SetActiveHfpDevice() argument
619 Connect(const std::string &macAddress) Connect() argument
694 OnVirtualDeviceChanged(int32_t action, std::string macAddress) OnVirtualDeviceChanged() argument
[all...]
H A Daudio_bluetooth_manager.h43 virtual void OnVirtualDeviceChanged(int32_t action, std::string macAddress);
56 static int32_t SetActiveA2dpDevice(const std::string& macAddress);
58 static int32_t SetDeviceAbsVolume(const std::string& macAddress, int32_t volume);
59 static int32_t GetA2dpDeviceStreamInfo(const std::string& macAddress,
70 static int32_t Connect(const std::string &macAddress);
103 void OnVirtualDeviceChanged(int32_t action, std::string macAddress);
116 static int32_t SetActiveHfpDevice(const std::string &macAddress);
133 static int32_t Connect(const std::string &macAddress);
H A Dbluetooth_device_manager.h33 void SendUserSelectionEvent(AudioStandard::DeviceType devType, const std::string &macAddress, int32_t eventType);
62 static bool IsA2dpBluetoothDeviceExist(const std::string& macAddress);
63 static bool IsA2dpBluetoothDeviceConnecting(const std::string& macAddress);
64 static int32_t GetConnectedA2dpBluetoothDevice(const std::string& macAddress, BluetoothRemoteDevice &device);
112 static bool IsHfpBluetoothDeviceExist(const std::string& macAddress);
113 static bool IsHfpBluetoothDeviceConnecting(const std::string& macAddress);
117 static int32_t GetConnectedHfpBluetoothDevice(const std::string& macAddress, BluetoothRemoteDevice &device);
H A Dbluetooth_device_manager.cpp100 void SendUserSelectionEvent(AudioStandard::DeviceType devType, const std::string &macAddress, int32_t eventType) in SendUserSelectionEvent() argument
105 if (MediaBluetoothDeviceManager::GetConnectedA2dpBluetoothDevice(macAddress, device) != SUCCESS) { in SendUserSelectionEvent()
112 if (HfpBluetoothDeviceManager::GetConnectedHfpBluetoothDevice(macAddress, device) != SUCCESS) { in SendUserSelectionEvent()
481 bool MediaBluetoothDeviceManager::IsA2dpBluetoothDeviceExist(const std::string& macAddress) in IsA2dpBluetoothDeviceExist() argument
484 if (a2dpBluetoothDeviceMap_.find(macAddress) != a2dpBluetoothDeviceMap_.end()) { in IsA2dpBluetoothDeviceExist()
490 bool MediaBluetoothDeviceManager::IsA2dpBluetoothDeviceConnecting(const std::string& macAddress) in IsA2dpBluetoothDeviceConnecting() argument
494 [&macAddress] (BluetoothRemoteDevice &bluetoothRemoteDevice) { in IsA2dpBluetoothDeviceConnecting()
495 return macAddress == bluetoothRemoteDevice.GetDeviceAddr(); in IsA2dpBluetoothDeviceConnecting()
503 int32_t MediaBluetoothDeviceManager::GetConnectedA2dpBluetoothDevice(const std::string& macAddress, in GetConnectedA2dpBluetoothDevice() argument
507 auto deviceIter = a2dpBluetoothDeviceMap_.find(macAddress); in GetConnectedA2dpBluetoothDevice()
925 IsHfpBluetoothDeviceExist(const std::string& macAddress) IsHfpBluetoothDeviceExist() argument
934 IsHfpBluetoothDeviceConnecting(const std::string& macAddress) IsHfpBluetoothDeviceConnecting() argument
947 GetConnectedHfpBluetoothDevice(const std::string& macAddress, BluetoothRemoteDevice &device) GetConnectedHfpBluetoothDevice() argument
[all...]
/foundation/multimedia/audio_framework/test/fuzztest/audiobluetoothmanager_fuzzer/
H A Daudiobluetoothmanager_fuzzer.cpp45 std::string macAddress(reinterpret_cast<const char*>(rawData), size); in AudioBluetoothManagerFuzzTest()
55 .OnDeviceStatusUpdated(devType, isConnected, macAddress, deviceName, audioStreamInfo); in AudioBluetoothManagerFuzzTest()
58 .OnDeviceConfigurationChanged(devType, macAddress, deviceName, audioStreamInfo); in AudioBluetoothManagerFuzzTest()
66 std::string macAddress(reinterpret_cast<const char*>(rawData), size); in AudioA2dpManagerFuzzTest()
71 Bluetooth::AudioA2dpManager::SetDeviceAbsVolume(macAddress, volume); in AudioA2dpManagerFuzzTest()
83 std::string macAddress(reinterpret_cast<const char*>(rawData), size); in AudioHfpManagerFuzzTest()
85 Bluetooth::AudioHfpManager::SetActiveHfpDevice(macAddress); in AudioHfpManagerFuzzTest()
/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Daudio_spatialization_manager.cpp157 bool AudioSpatializationManager::IsHeadTrackingDataRequested(const std::string &macAddress) in IsHeadTrackingDataRequested() argument
159 return AudioPolicyManager::GetInstance().IsHeadTrackingDataRequested(macAddress); in IsHeadTrackingDataRequested()
162 int32_t AudioSpatializationManager::RegisterHeadTrackingDataRequestedEventListener(const std::string &macAddress, in RegisterHeadTrackingDataRequestedEventListener() argument
165 return AudioPolicyManager::GetInstance().RegisterHeadTrackingDataRequestedEventListener(macAddress, callback); in RegisterHeadTrackingDataRequestedEventListener()
168 int32_t AudioSpatializationManager::UnregisterHeadTrackingDataRequestedEventListener(const std::string &macAddress) in UnregisterHeadTrackingDataRequestedEventListener() argument
170 return AudioPolicyManager::GetInstance().UnregisterHeadTrackingDataRequestedEventListener(macAddress); in UnregisterHeadTrackingDataRequestedEventListener()
H A Daudio_device_descriptor.cpp192 void AudioDeviceDescriptor::SetDeviceInfo(std::string deviceName, std::string macAddress) in SetDeviceInfo() argument
195 macAddress_ = macAddress; in SetDeviceInfo()
212 deviceInfo.macAddress == macAddress_ && in isSameDevice()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dnetwork_parser_test.cpp203 std::string macAddress; in HWTEST_F() local
204 EXPECT_FALSE(m_networkXmlParser->IsRandomMacValid(macAddress)); in HWTEST_F()
206 macAddress = "02:00:00:00:00:00"; in HWTEST_F()
207 EXPECT_FALSE(m_networkXmlParser->IsRandomMacValid(macAddress)); in HWTEST_F()
209 macAddress = "02:00:00:00:00"; in HWTEST_F()
210 EXPECT_FALSE(m_networkXmlParser->IsRandomMacValid(macAddress)); in HWTEST_F()
212 macAddress = "01:02:03:04:05:06"; in HWTEST_F()
213 EXPECT_TRUE(m_networkXmlParser->IsRandomMacValid(macAddress)); in HWTEST_F()
331 config.macAddress = "00:11:22:33:44:55"; in HWTEST_F()
333 config.macAddress in HWTEST_F()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/
H A Didevice_status_observer.h27 const std::string &macAddress, const std::string &deviceName,
34 const std::string &macAddress, const std::string &deviceName,
39 virtual void OnForcedDeviceSelected(DeviceType devType, const std::string &macAddress) = 0;
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include/
H A Daudio_spatialization_manager.h275 bool IsHeadTrackingDataRequested(const std::string &macAddress);
284 int32_t RegisterHeadTrackingDataRequestedEventListener(const std::string &macAddress,
294 int32_t UnregisterHeadTrackingDataRequestedEventListener(const std::string &macAddress);
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_started_state.cpp151 std::string macAddress; in UpdatMacAddress() local
152 WifiRandomMacHelper::GenerateRandomMacAddress(macAddress); in UpdatMacAddress()
153 if (MacAddress::IsValidMac(macAddress.c_str())) { in UpdatMacAddress()
155 WifiConfigCenter::GetInstance().GetApIfaceName(), macAddress) != WIFI_HAL_OPT_OK) { in UpdatMacAddress()
156 LOGE("%{public}s: failed to set ap MAC address:%{private}s", __func__, macAddress.c_str()); in UpdatMacAddress()
160 LOGW("%{public}s: macAddress is invalid", __func__); in UpdatMacAddress()
432 std::string macAddress; in SetRandomMac() local
433 WifiRandomMacHelper::GenerateRandomMacAddress(macAddress); in SetRandomMac()
434 if (MacAddress::IsValidMac(macAddress.c_str())) { in SetRandomMac()
436 WifiConfigCenter::GetInstance().GetApIfaceName(), macAddress) ! in SetRandomMac()
[all...]
/foundation/communication/wifi_lite/interfaces/wifiservice/
H A Dstation_info.h54 unsigned char macAddress[WIFI_MAC_LEN]; member
/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dstation_info.h54 unsigned char macAddress[WIFI_MAC_LEN]; member
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_wifi_chip_hal_interface.h40 virtual WifiErrorNo GetChipIfaceFactoryMacAddress(const std::string &ifaceName, std::string &macAddress) = 0;
57 MOCK_METHOD2(GetChipIfaceFactoryMacAddress, WifiErrorNo(const std::string &ifaceName, std::string &macAddress));
H A Dmock_wifi_settings.h61 virtual int SetRealMacAddress(const std::string &macAddress, int instId = 0) = 0;
62 virtual int GetRealMacAddress(std::string &macAddress, int instId = 0) = 0;
138 MOCK_METHOD2(SetRealMacAddress, int(const std::string &macAddress, int));
139 MOCK_METHOD2(GetRealMacAddress, int(std::string &macAddress, int));
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/
H A Dmulti_gateway.cpp53 std::string macAddress; in GetGatewayAddr() local
54 WifiConfigCenter::GetInstance().GetMacAddress(macAddress, instId); in GetGatewayAddr()
67 arpChecker.Start(ifName, macAddress, ipAddress, m_gwIpAddr); in GetGatewayAddr()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dnetwork_parser.cpp339 wifiConfig.macAddress = GetStringValue(node); in ParseWifiConfig()
593 if (!IsRandomMacValid(cfgItem.macAddress)) { in FillupMacByConfig()
598 if (macItem.randomMac == cfgItem.macAddress) { in FillupMacByConfig()
609 wifiStoreRandomMac.randomMac = cfgItem.macAddress; in FillupMacByConfig()
672 bool NetworkXmlParser::IsRandomMacValid(const std::string &macAddress) in IsRandomMacValid() argument
675 if (macAddress.empty() || macAddress == DEFAULT_MAC_ADDRESS || macAddress.length() != macStringLength) { in IsRandomMacValid()
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/
H A Daudio_device_info.h426 std::string macAddress = ""; member in OHOS::AudioStandard::DeviceInfo
447 && parcel.WriteString(macAddress) in Marshalling()
492 || deviceType == DEVICE_TYPE_BLUETOOTH_SCO)) ? "" : macAddress) in Marshalling()
510 macAddress = parcel.ReadString(); in Unmarshalling()
525 macAddress == deviceInfo.macAddress && in IsSameDeviceInfo()
/foundation/communication/nfc/services/src/tag/
H A Dndef_bt_data_parser.cpp215 std::string macAddress = GetOrgBtMacFromPayload(payload, offset); in ParseBtRecord() local
216 if (macAddress.empty()) { in ParseBtRecord()
217 ErrorLog("NdefBtDataParser::ParseBtRecord, macAddress error, " in ParseBtRecord()
221 data->macAddrOrg_ = macAddress; in ParseBtRecord()
222 data->macAddress_ = FormatBtMacAddr(macAddress); in ParseBtRecord()
335 std::string macAddress = ""; in ParseBleRecord() local
350 ErrorLog("NdefBtDataParser::ParseBleRecord, macAddress error, " in ParseBleRecord()
354 macAddress = FormatBtMacAddr(mac); in ParseBleRecord()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/spatialization/
H A Daudio_spatialization_service.cpp378 void AudioSpatializationService::UpdateCurrentDevice(const std::string macAddress) in UpdateCurrentDevice() argument
382 if (!macAddress.empty()) { in UpdateCurrentDevice()
383 std::string deviceSpatialInfo = EncapsulateDeviceInfo(macAddress); in UpdateCurrentDevice()
384 UpdateDeviceSpatialMapInfo(macAddress, deviceSpatialInfo); in UpdateCurrentDevice()
385 WriteSpatializationStateToDb(WRITE_DEVICESPATIAL_INFO, macAddress); in UpdateCurrentDevice()
387 if (currentDeviceAddress_ == macAddress) { in UpdateCurrentDevice()
392 currentDeviceAddress_ = macAddress; in UpdateCurrentDevice()
434 bool AudioSpatializationService::IsHeadTrackingDataRequested(const std::string &macAddress) in IsHeadTrackingDataRequested() argument
438 if (macAddress != currentDeviceAddress_) { in IsHeadTrackingDataRequested()
456 spatializationRendererInfo.deviceMacAddress = it->outputDeviceInfo.macAddress; in UpdateRendererInfo()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/
H A Daudio_device_manager.h73 const std::string &macAddress);
74 void UpdateScoState(const std::string &macAddress, bool isConnnected);
78 const string &macAddress, const string &networkId, ConnectState connectState);
83 void OnReceiveBluetoothEvent(const std::string macAddress, const std::string deviceName);
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/spatialization/
H A Daudio_spatialization_service.h71 void UpdateCurrentDevice(const std::string macAddress);
74 bool IsHeadTrackingDataRequested(const std::string &macAddress);
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/Mock/
H A Dmock_wifi_settings.h56 virtual int SetMacAddress(const std::string &macAddress, int instId = 0) = 0;
57 virtual int GetMacAddress(std::string &macAddress, int instId = 0) = 0;
91 virtual int SetRealMacAddress(const std::string &macAddress, int instId = 0) = 0;
92 virtual int GetRealMacAddress(std::string &macAddress, int instId = 0) = 0;
228 MOCK_METHOD2(SetMacAddress, int(const std::string &macAddress, int));
229 MOCK_METHOD2(GetMacAddress, int(std::string &macAddress, int));
263 MOCK_METHOD2(SetRealMacAddress, int(const std::string &macAddress, int));
264 MOCK_METHOD2(GetRealMacAddress, int(std::string &macAddress, int));
/foundation/multimedia/audio_framework/services/audio_policy/client/src/proxy/
H A Daudio_policy_volume_proxy.cpp298 int32_t AudioPolicyProxy::SetDeviceAbsVolumeSupported(const std::string &macAddress, const bool support) in SetDeviceAbsVolumeSupported() argument
306 data.WriteString(macAddress); in SetDeviceAbsVolumeSupported()
331 int32_t AudioPolicyProxy::SetA2dpDeviceVolume(const std::string &macAddress, const int32_t volume, in SetA2dpDeviceVolume() argument
340 data.WriteString(macAddress); in SetA2dpDeviceVolume()
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/include/
H A Daudio_policy_manager.h307 int32_t SetDeviceAbsVolumeSupported(const std::string &macAddress, const bool support);
311 int32_t SetA2dpDeviceVolume(const std::string &macAddress, const int32_t volume, const bool updateUi);
402 bool IsHeadTrackingDataRequested(const std::string &macAddress);
404 int32_t RegisterHeadTrackingDataRequestedEventListener(const std::string &macAddress,
407 int32_t UnregisterHeadTrackingDataRequestedEventListener(const std::string &macAddress);

Completed in 15 milliseconds

1234