/ohos5.0/docs/zh-cn/application-dev/ipc/ |
H A D | ipc-rpc-overview.md | 21 > 在IPC Kit中也经常用Proxy表示服务请求方(客户端-Client),Stub表示服务提供方(服务端-Server),后续文档中对Proxy和Stub不再做过多描述。 23 IPC和RPC通常采用客户端-服务端(Client-Server)模型,在使用时,请求Client端进程可获取Server端所在进程的代理(Proxy),并通过此代理读写数据来实现进程间的数据通信,… 26 …中,SAMgr负责管理这些SA并向Client提供相关的接口。Client要和某个具体的SA通信,必须先从SAMgr中获取该SA的代理Proxy对象,然后使用代理Proxy对象和SA通信。在整个通… 37 - 不支持把跨设备的Proxy对象传递回该Proxy对象所指向的Stub对象所在的设备,即指向远端设备Stub的Proxy对象不能在本设备内进行二次跨进程传递。
|
H A D | subscribe-remote-state.md | 3 …Proxy对象。这种状态通知订阅需要调用特定接口完成,当不再需要订阅时也需要调用特定接口取消。使用这种订阅机制的用户,需要实现消亡通知接口DeathRecipient并实现onRemoteDied… 7 这种订阅机制适用于本地Proxy对象需要感知远端Stub对象所在进程消亡,或所在设备离开组网的场景。当Proxy感知到Stub端消亡后,可适当清理本地资源。此外,RPC目前不提供匿名Stub对象的消… 153 ## Stub感知Proxy消亡(匿名Stub的使用) 155 …Proxy感知Stub的状态,若想达到反向的死消亡通知,即Stub感知Proxy的状态,可以巧妙的利用正向消亡通知。如两个进程A(原Stub所在进程)和B(原Proxy所在进程),进程B在获取到进… 161 > 当匿名Stub对象没有被任何一个Proxy指向的时候,内核会自动回收。 166 // Proxy
|
H A D | ipc-rpc-development-guideline.md | 5 IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信,包括Proxy和Stub运行在不同设备的情况。 14 | IRemoteBroker | sptr<IRemoteObject> AsObject() | 返回通信对象。Stub端返回RemoteObject对象本身,Proxy端返回代理对… 15 …;data, MessageParcel &reply, MessageOption &option) | 请求处理方法,派生类需要重写该方法用来处理Proxy的请求并返回结果。 | 16 | IRemoteProxy | Remote()->SendRequest(code, data, reply, option) | 消息发送方法,业务的Proxy类需要从IRemoteProx… 50 SA接口继承IPC基类接口IRemoteBroker,接口里定义描述符、业务函数和消息码,其中业务函数在Proxy端和Stub端都需要实现。 115 该类是Proxy端实现,继承IRemoteProxy<ITestAbility>,调用SendRequest接口向Stub端发送请求,对外暴露服务端提供的能力。 176 sptr<TestAbilityProxy> proxy(new TestAbilityProxy(remoteObject)); // 直接构造具体Proxy
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/ |
H A D | settings.rs | 341 pub struct Proxy(proxy::Proxy); struct 343 impl Proxy { implementation 356 inner: proxy::Proxy::all(addr), in all() 373 inner: proxy::Proxy::http(addr), in http() 390 inner: proxy::Proxy::https(addr), in https() 394 pub(crate) fn inner(self) -> proxy::Proxy { in inner() argument 411 inner: Result<proxy::Proxy, HttpClientError>, 460 pub fn build(self) -> Result<Proxy, HttpClientError> { in build() argument 461 Ok(Proxy(self.inner?)) in build() 471 use crate::{Proxy, Redirect, Retry, SpeedLimit, Timeout}; [all …]
|
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/ |
H A D | config.rs | 211 pub struct Proxy(Option<reqwest::Proxy>); struct 213 impl Proxy { impl 239 reqwest::Proxy::http(url) in http() 256 reqwest::Proxy::https(url) in https() 273 reqwest::Proxy::all(url) in all() 278 pub(crate) fn inner(self) -> Option<reqwest::Proxy> { in inner() argument 294 pub struct ProxyBuilder(Result<reqwest::Proxy, HttpClientError>); 324 pub fn build(self) -> Result<Proxy, HttpClientError> { in build() argument 325 Ok(Proxy(Some(self.0?))) in build()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
H A D | proxy.rs | 29 list: Vec<Proxy>, 33 pub(crate) fn add_proxy(&mut self, proxy: Proxy) { in add_proxy() argument 37 pub(crate) fn match_proxy(&self, uri: &Uri) -> Option<&Proxy> { in match_proxy() argument 51 pub(crate) struct Proxy { struct 56 impl Proxy { impl 65 Ok(Proxy::new(Intercept::Http(ProxyInfo::new(uri)?))) in http() 69 Ok(Proxy::new(Intercept::Https(ProxyInfo::new(uri)?))) in https() 73 Ok(Proxy::new(Intercept::All(ProxyInfo::new(uri)?))) in all() 269 use crate::util::proxy::{Proxies, Proxy}; 279 let proxy = Proxy::http("http://www.example.com").unwrap(); in ut_via_proxy() [all …]
|
/ohos5.0/docs/en/device-dev/quick-start/ |
H A D | quickstart-pkg-common-proxy.md | 1 # Configuring the Proxy 4 ### Configuring the Python Proxy 17 index-url = http:// Proxy URL 23 ### Configuring the npm Proxy 34 registry=http:// Proxy URL 41 export NPM_REGISTRY=http:// Proxy URL
|
/ohos5.0/foundation/graphic/graphic_3d/kits/js/include/ |
H A D | ShaderJS.h | 25 class Proxy { 27 Proxy() = default; 28 virtual ~Proxy() = default; 47 BASE_NS::vector<BASE_NS::shared_ptr<Proxy>> proxies_;
|
/ohos5.0/foundation/ability/idl_tool/ |
H A D | README.md | 12 - 声明系统服务对外提供的服务接口,根据接口声明在编译时生成跨进程调用(IPC)或跨设备调用(RPC)的代理(Proxy)和桩(Stub)的C/C++代码或JS/TS代码。 14 - 声明Ability对外提供的服务接口,根据接口声明在编译时生成跨进程调用(IPC)或跨设备调用(RPC)的代理(Proxy)和桩(Stub)的C/C++代码或JS/TS代码。 31 | stub/proxy自动生成模块 | 根据IPC/RPC规格自动生成Stub服务端和Proxy客户端代码。 | 68 …IIdlTestServiceCpp/IIdlTestService.idl`,将会在执行环境的dir目录(即IIdlTestServiceCpp目录)中生成接口文件、Stub文件、Proxy文件。 249 ### TS Proxy与C++ Stub开发步骤 253 1. 如上所述C++开发步骤,开发者使用C++编程语言构建.idl文件,通过命令生成接口、Stub文件、Proxy文件。 289 #### TS端提供Proxy对象 291 如上所述TS开发步骤,开发者使用TS编程语言构建.idl文件,通过命令生成接口、Stub文件、Proxy文件。Proxy文件例如: 351 2. 构建TS Proxy对象,并把C++服务的远程对象传递给它 352 3. 此时开发者通过TS Proxy对象调用.idl声明的方法,实现TS Proxy与C++ Stub的互通,示例如下:
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___proxy_method.md | 6 注入的Proxy方法通用结构体。 21 …tProxyCallback](_web.md#arkweb_onjavascriptproxycallback) [callback](#callback) | Proxy方法执行的回调。 | 35 Proxy方法执行的回调。
|
H A D | arkweb__type_8h.md | 28 | struct [ArkWeb_ProxyMethod](_ark_web___proxy_method.md) | 注入的Proxy方法通用结构体。 | 29 | struct [ArkWeb_ProxyObject](_ark_web___proxy_object.md) | 注入的Proxy对象通用结构体。 | 52 …___java_script_bridge_data.md) \*dataArray, size_t arraySize, void \*userData) | Proxy方法被执行的回调。 |
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/common/ |
H A D | value_proxy.h | 111 …using Proxy = std::variant<std::monostate, int64_t, double, std::string, bool, Bytes, Asset, Asset… variable 138 Proxy value_; 235 static std::enable_if_t < CVT_INDEX<T, Proxy><MAX, Bucket> 240 …et.value_[key].value_ = static_cast<std::variant_alternative_t<CVT_INDEX<T, Proxy>, Proxy>>(value); 246 static std::enable_if_t < CVT_INDEX<T, Proxy><MAX, Values> 252 ….value_[i].value_ = static_cast<std::variant_alternative_t<CVT_INDEX<T, Proxy>, Proxy>>(values[i]);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/ |
H A D | v2_make_observed.ts | 35 ret = { proxy: new Proxy(target, RefInfo.arrayProxy) }; 38 ret = { proxy: new Proxy(target, RefInfo.setMapProxy) }; 40 ret = { proxy: new Proxy(target, RefInfo.objectProxy) };
|
/ohos5.0/base/request/request/services/src/task/ |
H A D | client.rs | 18 Certificate, HttpClientError, Proxy, PubKeyPins, Redirect, Timeout, TlsVersion, 123 fn build_task_proxy(config: &TaskConfig) -> Result<Option<Proxy>, Box<dyn Error + Send + Sync>> { in build_task_proxy() argument 129 Proxy::all(&config.proxy).build().map_err(Box::new), in build_task_proxy() 153 ) -> Result<Option<Proxy>, Box<dyn Error + Send + Sync>> { in build_system_proxy() argument 167 Proxy::all(&proxy_url) in build_system_proxy()
|
/ohos5.0/foundation/communication/ipc/ |
H A D | README_zh.md | 16 …Proxy),并通过此代理读写数据来实现进程间的数据通信。通常,系统能力(System Ability)Server侧会先注册到系统能力管理者(System Ability Manager,缩写S… 43 2. 不支持把跨设备的Proxy对象传递回该Proxy对象所指向的Stub对象所在的设备。 99 3. 实现服务请求端\(Proxy\) 101 Proxy继承IRemoteProxy\(Native\),封装业务函数,调用SendRequest将请求发送到Stub。 109 6. 通过SA的标识和设备NetworkId,从SAMgr获取Proxy,通过Proxy实现与Stub的跨进程通信。 177 …4016"><a name="p1188582414016"></a><a name="p1188582414016"></a>请求处理方法,派生类需要重写,处理Proxy的请求并返回结果。</p> 183 …"p688592413018"><a name="p688592413018"></a><a name="p688592413018"></a>业务Proxy类派生自IRemoteProxy类。<… 323 IPC接口继承IPC基类接口IRemoteBroker,接口里定义描述符、业务函数和消息码,其中业务函数在Proxy端和Stub端都需要实现。 386 该类是Proxy端实现,继承自IRemoteProxy<ITestAbility\>,调用SendRequest接口向Stub端发送请求,对外暴露服务端提供的能力。 460 // 获取其他设备注册的SA的Proxy [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/examples/ |
H A D | sync_proxy_http.rs | 18 use ylong_http_client::{EmptyBody, HttpClientError, Proxy, Request}; 23 .proxy(Proxy::http("https://proxy.example.com").build()?) in main()
|
H A D | async_proxy_http.rs | 19 use ylong_http_client::{HttpClientError, Proxy}; 25 .proxy(Proxy::all("http://proxy.example.com").build()?) in main()
|
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/proxy/include/ |
H A D | ams_mgr_proxy.h | 31 using Proxy = AAFwk::ExtensionManagerProxy; 53 sptr<Proxy> proxy_;
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | extension_mgr_proxy.h | 35 using Proxy = AAFwk::ExtensionManagerProxy; 56 sptr<Proxy> proxy_;
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
H A D | sdv_async_http_proxy.rs | 39 Proxy: true, in sdv_async_client_send_request() 61 ylong_http_client::Proxy::http( in sdv_async_client_send_request()
|
H A D | sdv_async_http_client_error.rs | 101 Proxy: false, in sdv_err_req_timeout() 178 Proxy: false, in sdv_err_redirect_wrong_location() 243 Proxy: false, in sdv_err_response_with_wrong_body_length()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-motion-des.md | 12 Motion驱动框架如图1所示,上层为Framework层,提供MSDP服务,通过UHDF(User Hardware Driver Foundation)层的Motion Proxy与Motion… 27 …服务层首先从Motion Proxy获取到Motion HDI接口服务实例。而Motion Proxy获取到的接口实例是由IService Manager进行分配。当MSDP服务层成功获取到Mot…
|
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/ |
H A D | mod.rs | 16 use crate::{Certificate, HttpClientError, Proxy, Redirect, Request, Timeout, TlsVersion}; 243 pub fn proxy(self, proxy: Proxy) -> Self { in proxy()
|
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | ShaderJS.cpp | 32 class TypeProxy : public Proxy { 72 class BitmapProxy : public Proxy { 149 class PropProxy : public Proxy { 297 BASE_NS::shared_ptr<Proxy> proxt; in BindToMaterial() 318 BASE_NS::shared_ptr<Proxy> proxt; in BindToMaterial()
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | share-data-by-silent-access.md | 52 …其中以"?"符号开始参数,以"&"符号连接参数,连续的多个符号会被视为一个。当前仅支持“Proxy”以及“appIndex”参数。当使用多个"?"符开始参数时,"?"后的参数需是"Proxy"参数… 54 - "Proxy"仅支持设置为true或false,true表示数据访问方采用静默数据访问方式,false则表示数据访问方采用非静默数据访问方式。 58 …式下,不支持非静默访问方式。故需要设置访问应用分身URI和参数时,请注意同步设置"Proxy"参数和"appIndex"参数。例如“datashareproxy://{bundleName}/{d…
|