Home
last modified time | relevance | path

Searched refs:address_ (Results 1 - 25 of 129) sorted by relevance

123456

/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_remote_device.cpp37 address_ = addr; in BluetoothRemoteDevice()
50 return hostProxy->GetDeviceType(transport_, address_); in GetDeviceType()
55 CHECK_AND_RETURN_LOG_RET(BluetoothHost::IsValidBluetoothAddr(address_), false, in IsValidBluetoothRemoteDevice()
56 "invalid bluetooth addr, address_: %{public}s", GetEncryptAddr(address_).c_str()); in IsValidBluetoothRemoteDevice()
76 return hostProxy->GetPhonebookPermission(address_); in GetPhonebookPermission()
85 return hostProxy->SetPhonebookPermission(address_, permission); in SetPhonebookPermission()
94 return hostProxy->GetMessagePermission(address_); in GetMessagePermission()
103 return hostProxy->SetMessagePermission(address_, permission); in SetMessagePermission()
112 return hostProxy->GetPowerMode(address_); in GetPowerMode()
[all...]
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_lan_management.cpp85 auto family = CommonUtils::GetAddrFamily(inetAddr.address_); in ReleaseLanNetLink()
90 inetAddr.address_, prefixLen); in ReleaseLanNetLink()
93 newNetLinkInfo.ifaceName_.c_str(), inetAddr.address_.c_str()); in ReleaseLanNetLink()
97 std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseLanNetLink()
99 route.gateway_.address_); in ReleaseLanNetLink()
102 route.iface_.c_str(), destAddress.c_str(), route.gateway_.address_.c_str()); in ReleaseLanNetLink()
114 CommonUtils::ToAnonymousIp(inetAddr.address_).c_str()); in SetIp()
117 auto family = CommonUtils::GetAddrFamily(inetAddr.address_); in SetIp()
122 inetAddr.address_, prefixLen); in SetIp()
137 CommonUtils::ToAnonymousIp(inetAddr.address_) in DelIp()
[all...]
H A Ddev_interface_state.cpp242 GetTargetNetAddrWithSameFamily(netAddr.address_, ifCfg_->ipStatic_.gatewayList_, route.gateway_); in UpdateLinkInfo()
276 GetRoutePrefixlen(netAddr.address_, ifCfg_->ipStatic_.netMaskList_, route.destination_); in UpdateLanLinkInfo()
277 GetTargetNetAddrWithSameFamily(netAddr.address_, ifCfg_->ipStatic_.gatewayList_, route.gateway_); in UpdateLanLinkInfo()
305 GetRoutePrefixlen(routeAddr.address_, config->netMaskList_, routeStc.destination_); in UpdateLanLinkInfo()
306 GetTargetNetAddrWithSameFamily(routeAddr.address_, config->gatewayList_, routeStc.gateway_); in UpdateLanLinkInfo()
336 GetTargetNetAddrWithSameFamily(routeAddr.address_, config->gatewayList_, routeStc.gateway_); in UpdateLinkInfo()
364 auto family = CommonUtils::GetAddrFamily(ipAddr.address_); in CreateLocalRoute()
365 std::string routeAddr = (family == AF_INET6) ? CommonUtils::GetIpv6Prefix(ipAddr.address_, ipAddr.prefixlen_) in CreateLocalRoute()
366 : GetIpv4Prefix(ipAddr.address_, netMaskList); in CreateLocalRoute()
370 localRoute.destination_.address_ in CreateLocalRoute()
[all...]
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H A Draw_address.cpp26 if (dst != nullptr && address_.length() == BT_ADDRESS_STR_LEN && size >= BT_ADDRESS_BYTE_LEN) { in ConvertToUint8()
29 std::size_t colonPosition = address_.find(':', startPostion); in ConvertToUint8()
31 token.push_back(address_.substr(startPostion, colonPosition - startPostion)); in ConvertToUint8()
33 colonPosition = address_.find(':', startPostion); in ConvertToUint8()
36 token.push_back(address_.substr(startPostion)); in ConvertToUint8()
70 return (address_.compare(rhs.address_) < 0); in operator <()
75 return (address_.compare(rhs.address_) == 0); in operator ==()
H A Draw_address.h61 explicit RawAddress(const std::string &address) : address_(address) {}; in RawAddress()
78 return address_; in GetAddress()
88 address_ = address; in SetAddress()
129 std::string address_ = ""; member in OHOS::bluetooth::RawAddress
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/
H A Dnet_address.cpp28 NetAddress::NetAddress(const NetAddress &other) : address_(other.address_), family_(other.family_), port_(other.port_) in NetAddress()
39 address_ = ConvertAddressToIp(address, AF_INET); in SetIpAddress()
41 address_ = ConvertAddressToIp(address, AF_INET6); in SetIpAddress()
60 address_ = address; in SetIpAddress()
66 address_ = address; in SetIpAddress()
82 address_ = inet_ntoa(addr); in SetIpAddressInner()
92 address_ = subAddr; in SetIpAddressInner()
100 address_ = address; in SetRawAddress()
108 address_ in SetAddress()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_system_event_processer.cpp27 :profile_(profile), address_(address) in HfpAgSystemEventProcesser()
127 HILOGI("[HFP AG] Answer call! address:%{public}s", GetEncryptAddr(address_).c_str()); in ProcessAnswerCallEvent()
128 systemInterface_.AnswerCall(address_); in ProcessAnswerCallEvent()
133 HILOGI("[HFP AG] Hang up call! address:%{public}s", GetEncryptAddr(address_).c_str()); in ProcessHangupCallEvent()
134 systemInterface_.HangupCall(address_); in ProcessHangupCallEvent()
140 if (HfpAgProfile::GetActiveDevice() != address_) { in ProcessHfVolumeChangedEvent()
181 if (service->DialOutCallByHf(address_)) { in ProcessDialOutCallEvent()
182 systemInterface_.DialOutCall(address_, dialNumber); in ProcessDialOutCallEvent()
194 systemInterface_.SendDtmf(dtmf, address_); in ProcessSendDtmfEvent()
317 service->SetResponseClccTimer(address_); in GetCurrentCalls()
[all...]
H A Dhfp_ag_profile.cpp98 HfpAgProfile::HfpAgProfile(const std::string &address) : address_(address) in HfpAgProfile()
104 dataConn_.SetRemoteAddr(address_); in Init()
105 audioConn_.SetRemoteAddr(address_); in Init()
115 return sdpClient_.DoDiscovery(address_, role); in DoServiceDiscovery()
121 if (!sdpClient_.FindAttributes(address_, role)) { in ServiceDiscoveryResult()
138 RawAddress rawAddr(address_); in EstablishDataConnection()
160 RawAddress rawAddress = RawAddress(address_); in ReadData()
163 if (HfpAgAudioConnection::IsAudioConnected(address_)) { in ReadData()
173 IPowerManager::GetInstance().StatusUpdate(RequestStatus::CONNECT_ON, PROFILE_NAME_HFP_AG, RawAddress(address_)); in ProcessSlcEstablished()
212 HfpAgProfileEventSender::GetInstance().SendRingAndClip(address_); in RingTimeout()
[all...]
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnetwork.cpp157 NetsysController::GetInstance().DelInterfaceAddress(netLinkInfo_.ifaceName_, inetAddr.address_, in ReleaseBasicNetwork()
161 if (route.destination_.address_ != LOCAL_ROUTE_NEXT_HOP && in ReleaseBasicNetwork()
162 route.destination_.address_ != LOCAL_ROUTE_IPV6_DESTINATION) { in ReleaseBasicNetwork()
163 auto family = GetAddrFamily(route.destination_.address_); in ReleaseBasicNetwork()
165 auto destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseBasicNetwork()
173 NetsysController::GetInstance().DelInterfaceAddress(netLinkInfo_.ifaceName_, inetAddr.address_, in ReleaseBasicNetwork()
178 auto destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseBasicNetwork()
180 route.gateway_.address_); in ReleaseBasicNetwork()
199 NetsysController::GetInstance().DelInterfaceAddress(netLinkInfo_.ifaceName_, inetAddr.address_, prefixLen); in ReleaseVirtualNetwork()
245 if (iter->destination_.address_ in GetNetLinkInfo()
[all...]
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dinet_addr.cpp32 out = out && (address_ == obj.address_); in operator ==()
50 if (!parcel.WriteString(address_)) { in Marshalling()
81 if (!parcel.ReadString(ptr->address_)) { in Unmarshalling()
114 if (!parcel.WriteString(object->address_)) { in Marshalling()
152 str.append(CommonUtils::ToAnonymousIp(address_)); in ToString()
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/
H A Droute_utils_test.cpp44 route.destination_.address_ = "192.168.2.10"; in GetRoute()
50 route.gateway_.address_ = "192.168.2.1"; in GetRoute()
67 route.destination_.address_ = "192.168.2.10"; in GetRoute2()
73 route.gateway_.address_ = "192.168.2.1"; in GetRoute2()
90 route.destination_.address_ = "192.168.2.10"; in GetRoute3()
96 route.gateway_.address_ = "192.168.2.1"; in GetRoute3()
113 route.destination_.address_ = "192168210"; in GetRoute4()
119 route.gateway_.address_ = "192.168.2.1"; in GetRoute4()
173 route.destination_.address_ = "192.168.2.10"; in HWTEST_F()
179 route.gateway_.address_ in HWTEST_F()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_agent.cpp289 netAddr->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.ipAddress);
300 netIpv6Addr->address_ = wifiIpV6Info.globalIpV6Address;
305 netIpv6Addr->address_ = wifiIpV6Info.randGlobalIpV6Address;
310 netIpv6Addr->address_ = wifiIpV6Info.uniqueLocalAddress1;
315 netIpv6Addr->address_ = wifiIpV6Info.uniqueLocalAddress2;
328 dns->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.primaryDns);
330 LOGI("SetNetLinkDnsInfo ipv4 address:%{public}s", IpAnonymize(dns->address_).c_str());
333 dns->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.secondDns);
335 LOGI("SetNetLinkDnsInfo ipv4 address:%{public}s", IpAnonymize(dns->address_).c_str());
341 ipv6dns->address_
[all...]
/foundation/communication/netstack/frameworks/js/napi/tls/src/context/
H A Dtls_bind_context.cpp44 address_.SetFamilyByJsValue(family); in ParseParams()
46 address_.SetRawAddress(addr); in ParseParams()
47 if (address_.GetAddress().empty()) { in ParseParams()
56 address_.SetPort(port); in ParseParams()
/foundation/communication/netstack/frameworks/js/napi/socket/options/include/
H A Dlocal_socket_options.h31 address_ = address; in SetAddress()
39 return address_; in GetAddress()
47 std::string address_; member in OHOS::NetStack::Socket::LocalSocketRemoteInfo
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dclat_manager.cpp80 std::forward_as_tuple(tunFd, readSock6, writeSock6, v6Iface, nat64PrefixStr, v4Addr.address_, v6Addr.address_)); in ClatStart()
83 ret = RouteManager::AddClatTunInterface(tunIface, DEFAULT_V4_ADDR, v4Addr.address_); in ClatStart()
111 FreeTunV4Addr(clatdTrackers_[v6Iface].v4Addr.address_); in ClatStop()
145 v4Addr.address_ = v4AddrStr; in GenerateClatSrcAddr()
155 v6Addr.address_ = v6AddrStr; in GenerateClatSrcAddr()
196 ifConfig.ipv4Addr = v4Addr.address_; in CreateAndConfigureTunIface()
202 ret = SetTunInterfaceAddress(tunIface, v4Addr.address_, v4AddrPrefixLen); in CreateAndConfigureTunIface()
244 ret = ConfigureReadSocket(readSock6, v6Addr.address_, v6IfIndex); in CreateAndConfigureClatSocket()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/
H A Dpan_statemachine.cpp22 : address_(address), panBnep_(address) in PanStateMachine()
74 return address_; in GetDeviceAdress()
231 event.dev_ = address_; in ProcessOpenEvent()
242 PanService::GetService()->CloseNetwork(address_); in ProcessCloseEvent()
253 PanService::GetService()->WriteNetworkData(address_, msg.ethernetHeader_, data, dataLength); in ProcessReciveData()
271 event.dev_ = address_; in ProcessOpenComplete()
298 event.dev_ = address_; in ConnectionTimeout()
317 event.dev_ = address_; in DisonnectionTimeout()
348 RawAddress device(address_); in NotifyStateTransitions()
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/
H A Dbluetooth_raw_address.cpp23 if (!parcel.WriteString(address_)) { in Marshalling()
46 if (!parcel.ReadString(address_)) { in ReadFromParcel()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
H A Dhid_host_l2cap_connection.cpp69 address_ = address; in HidHostL2capConnection()
81 RawAddress(address_).ConvertToUint8(btAddr.addr); in Connect()
86 event.dev_ = address_; in Connect()
126 RawAddress(address_).ConvertToUint8(btAddr.addr); in HidHostSecurityCheckTask()
140 event.dev_ = address_; in HidHostSecurityCheckTask()
150 event.dev_ = address_; in HidHostSecurityCheckTask()
182 RawAddress(address_).ConvertToUint8(btAddr.addr); in HidHostSecurityCheckDeviceConnectTask()
202 event.dev_ = address_; in HidHostSecurityCheckDeviceConnectTask()
213 event.dev_ = address_; in Disconnect()
228 event.dev_ = address_; in Disconnect()
[all...]
H A Dhid_host_uhid.cpp24 address_ = address; in HidHostUhid()
198 int uniqLength = snprintf_s(reinterpret_cast<char*>(ev.u.create.uniq), sizeof(ev.u.create.uniq), address_.length(), in SendHidInfo()
199 "%s", address_.c_str()); in SendHidInfo()
415 HidHostService::GetService()->HidHostSetReport(address_, HID_HOST_FEATURE_REPORT, ev.u.output.size, in ReadUhidOutPut()
418 HidHostService::GetService()->HidHostSetReport(address_, HID_HOST_OUTPUT_REPORT, ev.u.output.size, in ReadUhidOutPut()
421 HidHostService::GetService()->HidHostSetReport(address_, HID_HOST_INPUT_REPORT, ev.u.output.size, in ReadUhidOutPut()
431 HidHostService::GetService()->HidHostGetReport(address_, ev.u.feature.rnum, 0, in ReadUhidFeature()
434 HidHostService::GetService()->HidHostGetReport(address_, ev.u.feature.rnum, 0, in ReadUhidFeature()
437 HidHostService::GetService()->HidHostGetReport(address_, ev.u.feature.rnum, 0, in ReadUhidFeature()
449 HidHostService::GetService()->HidHostSetReport(address_, HID_HOST_FEATURE_REPOR in ReadUhidSetReport()
[all...]
H A Dhid_host_statemachine.cpp22 : address_(address), uhid_(address) in HidHostStateMachine()
56 if (std::find(devices.begin(), devices.end(), RawAddress(address_)) != devices.end()) { in SetDeviceType()
58 l2capConnection_ = std::make_unique<HidHostL2capConnection>(address_); in SetDeviceType()
59 sdpClient_ = std::make_unique<HidHostSdpClient>(address_); in SetDeviceType()
68 if (std::find(devices.begin(), devices.end(), RawAddress(address_)) != devices.end()) { in SetDeviceType()
70 hogp_ = std::make_unique<HidHostHogp>(address_); in SetDeviceType()
133 return address_; in GetDeviceAdress()
531 event.dev_ = address_; in ProcessStartSdp()
534 sdpClient_->DoDiscovery(address_); in ProcessStartSdp()
546 event.dev_ = address_; in ProcessOpenDevice()
[all...]
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dtcp_server_listen_context.cpp53 address_.SetFamilyByJsValue(family); in ParseParams()
55 address_.SetIpAddress(addr); in ParseParams()
56 if (address_.GetAddress().empty()) { in ParseParams()
65 address_.SetPort(port); in ParseParams()
H A Dbind_context.cpp52 address_.SetFamilyByJsValue(family); in ParseParams()
54 address_.SetIpAddress(addr); in ParseParams()
55 if (address_.GetAddress().empty()) { in ParseParams()
64 address_.SetPort(port); in ParseParams()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dethernet_service_proxy_test.cpp70 ipv4Addr.address_ = "172.17.5.234"; in GetIfaceConfig()
78 route.address_ = "0.0.0.0"; in GetIfaceConfig()
86 gateway.address_ = "172.17.4.1"; in GetIfaceConfig()
93 netMask.address_ = "255.255.255.0"; in GetIfaceConfig()
100 dns1.address_ = "8.8.8.8"; in GetIfaceConfig()
105 dns2.address_ = "114.114.114.114"; in GetIfaceConfig()
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_service_proxy_test.cpp70 ipv4Addr.address_ = "172.17.5.234"; in GetIfaceConfig()
78 route.address_ = "0.0.0.0"; in GetIfaceConfig()
86 gateway.address_ = "172.17.4.1"; in GetIfaceConfig()
93 netMask.address_ = "255.255.255.0"; in GetIfaceConfig()
100 dns1.address_ = "8.8.8.8"; in GetIfaceConfig()
105 dns2.address_ = "114.114.114.114"; in GetIfaceConfig()
/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/
H A Ddcamera_client_demo.h70 address_ = static_cast<char *>(buffer->GetVirAddr()); in OnBufferAvailable()
91 char *address_ = nullptr; member in OHOS::DistributedHardware::DemoDCameraBufferConsumerListener
112 if ((address_ == nullptr) || (dataSize_ <= 0)) {
125 ofs.write(address_, dataSize_);
143 if ((address_ == nullptr) || (actualSize_ <= 0)) {
157 ofs.write(address_, actualSize_);
175 if ((address_ == nullptr) || (actualSize_ <= 0)) {
189 ofs.write(address_, actualSize_);

Completed in 15 milliseconds

123456