Home
last modified time | relevance | path

Searched refs:hostName (Results 1 – 25 of 163) sorted by relevance

1234567

/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/
H A Dhdf_driver_manager_config.template5 hostName = "";
20 hostName = "platform_host";
23 hostName = "display_host";
26 hostName = "network_host";
29 hostName = "storage_host";
32 hostName = "media_host";
35 hostName = "common_host";
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Ddns_param_cache_test.cpp68 std::string hostName = "hoseName"; variable
72 dnsParCache.SetDnsCache(i, hostName.append(std::to_string(i)), addrInfo);
73 servers.emplace_back(hostName);
90 std::string hostName = "hoseName"; variable
91 dnsParCache.GetDnsCache(netId, hostName);
96 dnsParCache.SetDnsCache(i, hostName.append(std::to_string(i)), addrInfo);
97 servers.emplace_back(hostName.append(std::to_string(i)));
125 std::string hostName = "hostName"; variable
126 dnsParCache.SetCacheDelayed(netId, hostName);
128 dnsParCache.SetCacheDelayed(netId, hostName);
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/
H A Ddevhost.c161 const char *hostName = argv[DEVHOST_HOST_NAME_POS]; in main() local
162 HDF_LOGI("hdf device host %{public}s %{public}d start", hostName, hostId); in main()
163 SetProcTitle(argv, hostName); in main()
164 StartMemoryHook(hostName); in main()
173 struct IDevHostService *instance = DevHostServiceNewInstance(hostId, hostName); in main()
178 HDF_LOGD("create IDevHostService of %{public}s success", hostName); in main()
181 HDF_LOGD("%{public}s start device service begin", hostName); in main()
194 HDF_LOGI("%{public}s start loop", hostName); in main()
201 HDF_LOGI("hdf device host %{public}s %{public}d exit", hostName, hostId); in main()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/security/src/
H A Dhdf_security.c220 const char *hostName = NULL; in HdfRegisterAllDevSecId() local
221 HcsGetString(hostRoot, HDF_SEC_HOST_NAME, &hostName, NULL); in HdfRegisterAllDevSecId()
222 ret = HdfRegisterSecurityId(hostName, perms); in HdfRegisterAllDevSecId()
231 int32_t HdfSetCurrentHostSecurity(const char *hostName, int32_t procId) in HdfSetCurrentHostSecurity() argument
233 return HdfUpdateSecurityId(hostName, (uint64_t)procId, HDF_SECURE_SET_CUR_ID); in HdfSetCurrentHostSecurity()
236 void HdfDelSecurity(const char *hostName) in HdfDelSecurity() argument
238 if (hostName == NULL) { in HdfDelSecurity()
241 int32_t ret = HdfUpdateSecurityId(hostName, 0, HDF_SECURE_DEL_CUR_ID); in HdfDelSecurity()
243 HDF_LOGE("%{public}s delete %{public}s security failed", __func__, hostName); in HdfDelSecurity()
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_branch_test.cpp318 std::string hostName = "testHost"; variable
335 std::string hostName = "172.0.0.1"; variable
352 std::string hostName = "testHost"; variable
377 extern std::vector<std::string> SplitHostName(std::string &hostName);
380 std::string hostName = "www.example.com"; variable
590 std::string hostName = "192.168.1.1"; variable
595 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result);
603 std::string hostName = "192.168.1.3"; variable
618 std::string hostName = "www.test.com"; variable
631 std::string hostName = "testHost"; variable
[all …]
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_param_cache.cpp247 if (IsInterceptDomain(appUid, hostName)) { in SetDnsCache()
258 it->second.GetCache().Put(hostName, addrInfo); in SetDnsCache()
270 if (IsInterceptDomain(appUid, hostName)) { in GetDnsCache()
271 NotifyDomianIntercept(appUid, hostName); in GetDnsCache()
287 return it->second.GetCache().Get(hostName); in GetDnsCache()
303 it->second.SetCacheDelayed(hostName); in SetCacheDelayed()
434 if (hostName.empty()) { in checkEmpty4InterceptDomain()
448 if (checkEmpty4InterceptDomain(hostName)) { in IsInterceptDomain()
451 std::string host = hostName.substr(0, hostName.find(' ')); in IsInterceptDomain()
620 if (hostName.empty()) { in NotifyDomianIntercept()
[all …]
H A Ddns_resolv_config.cpp19 DnsResolvConfig::DelayedTaskWrapper::DelayedTaskWrapper(std::string hostName, in DelayedTaskWrapper() argument
21 : hostName_(std::move(hostName)), cache_(cache) in DelayedTaskWrapper()
110 void DnsResolvConfig::SetCacheDelayed(const std::string &hostName) in SetCacheDelayed() argument
112 auto wrapper = std::make_shared<DelayedTaskWrapper>(hostName, cache_); in SetCacheDelayed()
/ohos5.0/drivers/hdf_core/framework/core/manager/src/
H A Ddevmgr_service.c61 hostClnt->hostPid = installer->StartDeviceHost(hostClnt->hostId, hostClnt->hostName, dynamic); in DevmgrServiceStartHostProcess()
63 …HDF_LOGW("failed to start device host(%{public}s, %{public}u)", hostClnt->hostName, hostClnt->host… in DevmgrServiceStartHostProcess()
77 …HDF_LOGE("wait host(%{public}s, %{public}d) attach timeout", hostClnt->hostName, hostClnt->hostId); in DevmgrServiceStartHostProcess()
79 installer->StopDeviceHost(hostClnt->hostId, hostClnt->hostName); in DevmgrServiceStartHostProcess()
141 installer->StopDeviceHost(hostClnt->hostId, hostClnt->hostName); in DevmgrServiceStopHost()
177 HDF_LOGD("%{public}s host %{public}s devices is not empty", __func__, hostClnt->hostName); in DevmgrServiceUnloadDevice()
183 hostClnt->hostName); in DevmgrServiceUnloadDevice()
319 HDF_LOGW("failed to get device list for host %{public}s", hostClnt->hostName); in DevmgrServiceStartDeviceHost()
357 __func__, hostAttr->hostId, hostAttr->hostName); in DevmgrServiceStartDeviceHosts()
378 HdfSbufWriteString(reply, hostClnt->hostName); in DevmgrServiceListAllDevice()
[all …]
H A Ddevhost_service_clnt.c83 struct DevHostServiceClnt *DevHostServiceClntNewInstance(uint16_t hostId, const char *hostName) in DevHostServiceClntNewInstance() argument
90 hostClnt->hostName = hostName; in DevHostServiceClntNewInstance()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/radar/src/
H A Ddp_radar_helper.cpp106 "HOST_NAME", info.hostName); in ReportLoadDpSaCb()
118 "HOST_NAME", info.hostName, in ReportLoadDpSaCb()
174 "HOST_PKG", info.hostName, in ReportGetData()
189 "HOST_PKG", info.hostName, in ReportGetData()
214 "HOST_PKG", info.hostName, in ReportAddData()
228 "HOST_PKG", info.hostName, in ReportAddData()
252 "HOST_PKG", info.hostName, in ReportDeleteData()
267 "HOST_PKG", info.hostName, in ReportDeleteData()
344 "HOST_PKG", info.hostName, in ReportUnsbscribeData()
357 "HOST_PKG", info.hostName, in ReportUnsbscribeData()
[all …]
/ohos5.0/drivers/hdf_core/framework/core/common/src/
H A Dhdf_attribute.c51 if ((HcsGetString(hostNode, ATTR_HOST_NAME, &hostInfo->hostName, NULL) != HDF_SUCCESS) || in GetHostInfo()
52 (strcmp(hostInfo->hostName, "") == 0)) { in GetHostInfo()
117 const char *hostName = NULL; in GetHostNode() local
127 if (HcsGetString(hostNode, ATTR_HOST_NAME, &hostName, NULL) != HDF_SUCCESS) { in GetHostNode()
131 if (strcmp(hostName, inHostName) == 0) { in GetHostNode()
227 hostNode = GetHostNode(hostClnt->hostName); in HdfAttributeManagerGetDeviceList()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnetsys_client.c143 static bool MakeKey(const char *hostName, const char *serv, const struct addrinfo *hints, in MakeKey() argument
147 …return sprintf_s(key, MAX_KEY_LENGTH, "%s %s %d %d %d %d", hostName, serv, hints->ai_family, hints… in MakeKey()
152 …return sprintf_s(key, MAX_KEY_LENGTH, "%s %d %d %d %d", hostName, hints->ai_family, hints->ai_flag… in MakeKey()
157 return sprintf_s(key, MAX_KEY_LENGTH, "%s %s", hostName, serv) > 0; in MakeKey()
160 return sprintf_s(key, MAX_KEY_LENGTH, "%s", hostName) > 0; in MakeKey()
282 char *hostName = param.host; in NetSysGetResolvCache() local
283 if (hostName == NULL || strlen(hostName) == 0 || num == NULL) { in NetSysGetResolvCache()
385 char *hostName = param.host; in NetSysSetResolvCache() local
386 if (hostName == NULL || strlen(hostName) == 0 || res == NULL) { in NetSysSetResolvCache()
/ohos5.0/foundation/communication/netstack/frameworks/native/tls_socket/src/
H A Dtls_socket.cpp170 transform(hostName.begin(), hostName.end(), hostName.begin(), ::tolower); in SplitHostName()
171 return CommonUtils::Split(hostName, SPLIT_HOST_NAME); in SplitHostName()
386 hostName_ = hostName; in SetHostName()
1176 auto hostName = ConvertAddressToIp(host, family); in ExecSocketConnect() local
1588 if (IsIP(hostName)) { in CheckIpAndDnsName()
1596 std::string tempHostName = "" + hostName; in CheckIpAndDnsName()
1661 std::string hostname = " " + hostName; in CheckServerIdentityLegal()
1757 if (!ssl || hostName.empty()) { in CacheCertificates()
1802 auto hostName = options.GetHostName(); in StartShakingHands() local
1805 LoadCachedCaCert(hostName, ssl_); in StartShakingHands()
[all …]
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_dump.c43 static int32_t DevMgrDumpHostFindHost(const char *hostName, struct HdfSBuf *data, struct HdfSBuf *r… in DevMgrDumpHostFindHost() argument
55 … HDF_LOGI("%{public}s hostName:%{public}s %{public}s", __func__, hostClnt->hostName, hostName); in DevMgrDumpHostFindHost()
56 if (strcmp(hostClnt->hostName, hostName) != 0) { in DevMgrDumpHostFindHost()
77 const char *hostName = HdfSbufReadString(data); in DevMgrDumpHost() local
78 if (hostName == NULL) { in DevMgrDumpHost()
108 int32_t ret = DevMgrDumpHostFindHost(hostName, hostData, reply); in DevMgrDumpHost()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/security/include/
H A Dhdf_security.h28 int32_t HdfSetCurrentHostSecurity(const char *hostName, int32_t procId);
29 void HdfDelSecurity(const char *hostName);
/ohos5.0/foundation/distributedhardware/device_manager/radar/include/
H A Ddm_radar_helper.h119 std::string hostName; member
161 virtual void ReportCreatePinHolder(std::string hostName,
163 virtual void ReportDestroyPinHolder(std::string hostName,
192 void ReportCreatePinHolder(std::string hostName,
194 void ReportDestroyPinHolder(std::string hostName,
/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Ddevhost_service.c209 HDF_LOGD("host(%{public}s) set power state=%{public}u", hostService->hostName, state); in DevHostServicePmNotify()
273 struct IDevHostService *DevHostServiceNewInstance(uint16_t hostId, const char *hostName) in DevHostServiceNewInstance() argument
277 if (hostService != NULL && hostName != NULL) { in DevHostServiceNewInstance()
279 hostService->hostName = hostName; in DevHostServiceNewInstance()
/ohos5.0/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_macro.h77 if (strcmp(HCS_PROP(node, hostName), name) == 0) { \
78 (host)->devHostName = HCS_PROP(node, hostName); \
92 host->devHostName = HCS_PROP(node, hostName); \
/ohos5.0/drivers/hdf_core/framework/core/manager/include/
H A Ddevhost_service_clnt.h28 const char *hostName; member
33 struct DevHostServiceClnt *DevHostServiceClntNewInstance(uint16_t hostId, const char *hostName);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Ddns_param_cache.h60 void SetDnsCache(uint16_t netId, const std::string &hostName, const AddrInfo &addrInfo);
62 void SetCacheDelayed(uint16_t netId, const std::string &hostName);
64 std::vector<AddrInfo> GetDnsCache(uint16_t netId, const std::string &hostName);
149 bool checkEmpty4InterceptDomain(const std::string &hostName);
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_engine_impl.cpp197 void ArkWebEngineImpl::SetHostIP(const ArkWebString& hostName, const ArkWebString& address, int32_t… in SetHostIP() argument
199 …nweb_engine_->SetHostIP(ArkWebStringStructToClass(hostName), ArkWebStringStructToClass(address), a… in SetHostIP()
202 void ArkWebEngineImpl::ClearHostIP(const ArkWebString& hostName) in ClearHostIP() argument
204 nweb_engine_->ClearHostIP(ArkWebStringStructToClass(hostName)); in ClearHostIP()
/ohos5.0/drivers/hdf_core/framework/core/host/include/
H A Ddevhost_service.h24 const char *hostName; member
34 struct IDevHostService *DevHostServiceNewInstance(uint16_t hostId, const char *hostName);
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/src/
H A Ddevhost_service_stub.c27 static void DevHostSetCurrentSecurec(const char *hostName) in DevHostSetCurrentSecurec() argument
29 (void)hostName; in DevHostSetCurrentSecurec()
89 DevHostSetCurrentSecurec(serviceStub->super.super.hostName); in DevHostServiceStubDispatch()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_engine_wrapper.cpp218 void ArkWebEngineWrapper::SetHostIP(const std::string& hostName, const std::string& address, int32_… in SetHostIP() argument
220 …ark_web_engine_->SetHostIP(ArkWebStringClassToStruct(hostName), ArkWebStringClassToStruct(address)… in SetHostIP()
223 void ArkWebEngineWrapper::ClearHostIP(const std::string& hostName) in ClearHostIP() argument
225 ark_web_engine_->ClearHostIP(ArkWebStringClassToStruct(hostName)); in ClearHostIP()
/ohos5.0/foundation/distributedhardware/device_manager/radar/src/
H A Ddm_radar_helper.cpp43 "HOST_PKG", info.hostName, in ReportDiscoverRegCallback()
125 "HOST_PKG", info.hostName, in ReportDiscoverUserRes()
149 "HOST_PKG", info.hostName, in ReportDiscoverUserRes()
579 "HOST_PKG", info.hostName, in ReportDeleteTrustRelation()
596 void DmRadarHelper::ReportCreatePinHolder(std::string hostName, in ReportCreatePinHolder() argument
606 "HOST_PKG", hostName, in ReportCreatePinHolder()
626 "HOST_PKG", hostName, in ReportCreatePinHolder()
645 void DmRadarHelper::ReportDestroyPinHolder(std::string hostName, in ReportDestroyPinHolder() argument
655 "HOST_PKG", hostName, in ReportDestroyPinHolder()
673 "HOST_PKG", hostName, in ReportDestroyPinHolder()

1234567