Home
last modified time | relevance | path

Searched refs:httpProxy (Results 1 - 17 of 17) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dglobal_proxy_plugin_test.cpp59 NetManagerStandard::HttpProxy httpProxy; in HWTEST_F() local
60 httpProxy.SetPort(9090); in HWTEST_F()
61 httpProxy.SetHost("192.168.1.1"); in HWTEST_F()
63 httpProxy.SetExclusionList(list); in HWTEST_F()
64 ErrCode ret = plugin.OnSetPolicy(httpProxy); in HWTEST_F()
76 NetManagerStandard::HttpProxy httpProxy; in HWTEST_F() local
77 httpProxy.SetPort(1234); in HWTEST_F()
78 httpProxy.SetHost("any host"); in HWTEST_F()
80 httpProxy.SetExclusionList(list); in HWTEST_F()
81 ErrCode ret = plugin.OnSetPolicy(httpProxy); in HWTEST_F()
93 NetManagerStandard::HttpProxy httpProxy; HWTEST_F() local
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dglobal_proxy_plugin.cpp39 ErrCode GlobalProxyPlugin::OnSetPolicy(NetManagerStandard::HttpProxy &httpProxy) in OnSetPolicy() argument
41 int32_t ret = NetManagerStandard::NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in OnSetPolicy()
49 NetManagerStandard::HttpProxy httpProxy; in OnGetPolicy() local
50 int32_t ret = NetManagerStandard::NetConnClient::GetInstance().GetGlobalHttpProxy(httpProxy); in OnGetPolicy()
54 if (!httpProxy.Marshalling(reply)) { in OnGetPolicy()
55 EDMLOGE("GlobalProxyPlugin::httpProxy Marshalling error"); in OnGetPolicy()
/base/web/webview/ohos_adapter/net_proxy_adapter/src/
H A Dnet_proxy_adapter_impl.cpp258 std::function<void(const NetManagerStandard::HttpProxy& httpProxy)> callback = in StartListenAppProxy()
260 NetManagerStandard::HttpProxy httpProxy = receiveHttpProxy; in StartListenAppProxy()
262 httpProxy.GetHost().c_str(), httpProxy.GetPort()); in StartListenAppProxy()
264 host.assign(httpProxy.GetHost()); in StartListenAppProxy()
275 httpProxy = tempHttpProxy; in StartListenAppProxy()
276 host.assign(httpProxy.GetHost()); in StartListenAppProxy()
284 auto exclusion = httpProxy.GetExclusionList(); in StartListenAppProxy()
286 uint16_t port = httpProxy.GetPort(); in StartListenAppProxy()
327 NetManagerStandard::HttpProxy httpProxy; in OnReceiveEvent() local
359 NetManagerStandard::HttpProxy httpProxy; GetProperty() local
[all...]
/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/
H A Dnet_proxy_adapter_test.cpp203 HttpProxy httpProxy = {"tes.web.com", 0, {}}; in HWTEST_F() local
204 int32_t ret = NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in HWTEST_F()
251 NetManagerStandard::HttpProxy httpProxy; in HWTEST_F() local
252 httpProxy.SetHost(""); in HWTEST_F()
253 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy); in HWTEST_F()
254 httpProxy.SetHost("NONE"); in HWTEST_F()
255 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy); in HWTEST_F()
256 httpProxy.SetHost("test_web"); in HWTEST_F()
257 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy); in HWTEST_F()
285 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy); in HWTEST_F()
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Dhttp_proxy_serializer.cpp30 bool HttpProxySerializer::GetPolicy(MessageParcel &data, NetManagerStandard::HttpProxy &httpProxy) in GetPolicy() argument
32 return OHOS::NetManagerStandard::HttpProxy::Unmarshalling(data, httpProxy); in GetPolicy()
/base/request/request/services/src/cxx/
H A Dget_proxy.cpp78 OHOS::NetManagerStandard::HttpProxy httpProxy; in InitProxy() local
79 int32_t ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().GetDefaultHttpProxy(httpProxy); in InitProxy()
84 std::string host_res = httpProxy.GetHost(); in InitProxy()
90 for (const auto &s : httpProxy.GetExclusionList()) { in InitProxy()
101 std::string port_res = std::to_string(httpProxy.GetPort()); in InitProxy()
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/
H A Dnetwork_manager_proxy_test.cpp310 OHOS::NetManagerStandard::HttpProxy httpProxy; in HWTEST_F() local
311 httpProxy.SetHost("baidu.com"); in HWTEST_F()
312 httpProxy.SetPort(1234); in HWTEST_F()
314 httpProxy.SetExclusionList(list); in HWTEST_F()
315 int32_t ret = networkManagerProxy->SetGlobalHttpProxy(admin, httpProxy); in HWTEST_F()
329 OHOS::NetManagerStandard::HttpProxy httpProxy; in HWTEST_F() local
330 httpProxy.SetHost("baidu.com"); in HWTEST_F()
331 httpProxy.SetPort(1234); in HWTEST_F()
333 httpProxy.SetExclusionList(list); in HWTEST_F()
334 int32_t ret = networkManagerProxy->SetGlobalHttpProxy(admin, httpProxy); in HWTEST_F()
350 NetManagerStandard::HttpProxy httpProxy; HWTEST_F() local
365 NetManagerStandard::HttpProxy httpProxy; HWTEST_F() local
[all...]
/base/customization/enterprise_device_management/interfaces/inner_api/network_manager/include/
H A Dnetwork_manager_proxy.h52 int32_t SetGlobalHttpProxy(const AppExecFwk::ElementName &admin, const NetManagerStandard::HttpProxy &httpProxy);
53 int32_t GetGlobalHttpProxy(const AppExecFwk::ElementName *admin, NetManagerStandard::HttpProxy &httpProxy);
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Dglobal_proxy_plugin.h31 ErrCode OnSetPolicy(OHOS::NetManagerStandard::HttpProxy &httpProxy);
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
H A Dnetwork_manager_addon.cpp886 bool parseRet = ParseHttpProxyParam(env, argv[ARR_INDEX_ONE], asyncCallbackInfo->httpProxy); in SetGlobalHttpProxy()
904 bool NetworkManagerAddon::ParseHttpProxyParam(napi_env env, napi_value argv, NetManagerStandard::HttpProxy &httpProxy) in ParseHttpProxyParam() argument
937 httpProxy.SetHost(host.c_str()); in ParseHttpProxyParam()
938 httpProxy.SetPort(port); in ParseHttpProxyParam()
939 httpProxy.SetUserName(username); in ParseHttpProxyParam()
940 httpProxy.SetPassword(password); in ParseHttpProxyParam()
945 httpProxy.SetExclusionList(dataList); in ParseHttpProxyParam()
1006 asyncCallbackInfo->elementName, asyncCallbackInfo->httpProxy); in NativeSetGlobalHttpProxy()
1009 napi_value NetworkManagerAddon::ConvertHttpProxyToJS(napi_env env, const OHOS::NetManagerStandard::HttpProxy &httpProxy) in ConvertHttpProxyToJS() argument
1014 NAPI_CALL(env, napi_create_string_utf8(env, httpProxy in ConvertHttpProxyToJS()
1320 NetManagerStandard::HttpProxy httpProxy; SetGlobalHttpProxySync() local
1371 NetManagerStandard::HttpProxy httpProxy; GetGlobalHttpProxySync() local
[all...]
/base/customization/enterprise_device_management/interfaces/kits/network_manager/include/
H A Dnetwork_manager_addon.h58 OHOS::NetManagerStandard::HttpProxy httpProxy; member
104 static bool ParseHttpProxyParam(napi_env env, napi_value argv, NetManagerStandard::HttpProxy &httpProxy);
105 static napi_value ConvertHttpProxyToJS(napi_env env, const OHOS::NetManagerStandard::HttpProxy &httpProxy);
/base/telephony/sms_mms/services/mms/
H A Dmms_network_client.cpp115 int32_t MmsNetworkClient::GetMmsApnPorxy(NetStack::HttpClient::HttpProxy &httpProxy) in GetMmsApnPorxy() argument
133 httpProxy.host = proxy.substr(0, locate); in GetMmsApnPorxy()
139 httpProxy.port = std::stoi(port); in GetMmsApnPorxy()
251 NetStack::HttpClient::HttpProxy httpProxy; in HttpRequest() local
252 int32_t ret = GetMmsApnPorxy(httpProxy); in HttpRequest()
255 httpReq.SetHttpProxy(httpProxy); in HttpRequest()
/base/telephony/cellular_data/test/mock/
H A Dmock_net_conn_service.h68 MOCK_METHOD(int32_t, SetGlobalHttpProxy, (const HttpProxy &httpProxy));
69 MOCK_METHOD(int32_t, GetGlobalHttpProxy, (HttpProxy & httpProxy));
70 MOCK_METHOD(int32_t, GetDefaultHttpProxy, (int32_t bindNetId, HttpProxy &httpProxy));
/base/customization/enterprise_device_management/interfaces/inner_api/network_manager/src/
H A Dnetwork_manager_proxy.cpp344 const NetManagerStandard::HttpProxy &httpProxy) in SetGlobalHttpProxy()
353 if (!httpProxy.Marshalling(data)) { in SetGlobalHttpProxy()
363 NetManagerStandard::HttpProxy &httpProxy) in GetGlobalHttpProxy()
387 if (!NetManagerStandard::HttpProxy::Unmarshalling(reply, httpProxy)) { in GetGlobalHttpProxy()
343 SetGlobalHttpProxy(const AppExecFwk::ElementName &admin, const NetManagerStandard::HttpProxy &httpProxy) SetGlobalHttpProxy() argument
362 GetGlobalHttpProxy(const AppExecFwk::ElementName *admin, NetManagerStandard::HttpProxy &httpProxy) GetGlobalHttpProxy() argument
/base/telephony/sms_mms/services/mms/include/
H A Dmms_network_client.h47 int32_t GetMmsApnPorxy(NetStack::HttpClient::HttpProxy &httpProxy);
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/mock/src/
H A Denterprise_device_mgr_stub_mock.cpp212 OHOS::NetManagerStandard::HttpProxy httpProxy; in InvokeHttpProxySendRequestGetPolicy() local
214 httpProxy.Marshalling(reply); in InvokeHttpProxySendRequestGetPolicy()
/base/telephony/cellular_data/services/src/state_machine/
H A Dcellular_data_state_machine.cpp303 HttpProxy httpProxy = { host, port, {} }; in UpdateHttpProxy() local
304 netLinkInfo_->httpProxy_ = httpProxy; in UpdateHttpProxy()

Completed in 10 milliseconds