/ohos5.0/foundation/communication/ipc/services/dbinder/c/ipc_adapter/mini/ |
H A D | dbinder_ipc_adapter.c | 44 ProxyObject *proxyObject = (ProxyObject *)calloc(1, sizeof(ProxyObject)); in RpcGetSystemAbility() local 45 if (proxyObject == NULL) { in RpcGetSystemAbility() 48 proxyObject->proxy = (SvcIdentity *)malloc(sizeof(SvcIdentity)); in RpcGetSystemAbility() 49 if (proxyObject->proxy == NULL) { in RpcGetSystemAbility() 50 free(proxyObject); in RpcGetSystemAbility() 54 if (memcpy_s(proxyObject->proxy, sizeof(SvcIdentity), &target, sizeof(SvcIdentity)) != EOK) { in RpcGetSystemAbility() 55 free(proxyObject->proxy); in RpcGetSystemAbility() 56 free(proxyObject); in RpcGetSystemAbility() 60 return proxyObject; in RpcGetSystemAbility()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/ |
H A D | ipc_proxy_inner.c | 57 if (!WriteString(reply, proxyObject->sessionName)) { in MakeInvokerListenReply() 69 if (proxyObject == NULL) { in InvokerListenThread() 73 int32_t sessionNameLen = strlen(proxyObject->sessionName); in InvokerListenThread() 80 if (CreateTransServer(proxyObject->sessionName) != ERR_NONE) { in InvokerListenThread() 107 IpcObjectStub *cookie = (IpcObjectStub *)(proxyObject->proxy->cookie); in InvokerListenThread() 114 return MakeInvokerListenReply(proxyObject, stubIndex, reply, ptr); in InvokerListenThread() 117 int32_t GetPidAndUidInfo(ProxyObject *proxyObject) in GetPidAndUidInfo() argument 119 if (proxyObject == NULL) { in GetPidAndUidInfo() 130 proxyObject->sessionName = (char *)malloc(sessionNameLen + 1); in GetPidAndUidInfo() 131 if (proxyObject->sessionName == NULL) { in GetPidAndUidInfo() [all …]
|
/ohos5.0/foundation/communication/ipc/services/dbinder/c/ipc_adapter/small/ |
H A D | dbinder_ipc_adapter.c | 61 ProxyObject *proxyObject = (ProxyObject *)malloc(sizeof(ProxyObject)); in RpcGetSystemAbility() local 62 if (proxyObject == NULL) { in RpcGetSystemAbility() 66 proxyObject->proxy = (SvcIdentity *)malloc(sizeof(SvcIdentity)); in RpcGetSystemAbility() 67 if (proxyObject->proxy == NULL) { in RpcGetSystemAbility() 68 free(proxyObject); in RpcGetSystemAbility() 73 if (memcpy_s(proxyObject->proxy, sizeof(SvcIdentity), &svc, sizeof(SvcIdentity)) != EOK) { in RpcGetSystemAbility() 74 free(proxyObject->proxy); in RpcGetSystemAbility() 75 free(proxyObject); in RpcGetSystemAbility() 81 return proxyObject; in RpcGetSystemAbility()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/small/ |
H A D | ipc_proxy_inner.c | 115 int32_t InvokerListenThread(ProxyObject *proxyObject, const char *localDeviceID, const char *remote… in InvokerListenThread() argument 118 if (proxyObject == NULL || localDeviceID == NULL || remoteDeviceID == NULL) { in InvokerListenThread() 132 WriteString(&data, proxyObject->sessionName); in InvokerListenThread() 137 …int32_t ret = SendRequest(*proxyObject->proxy, INVOKE_LISTEN_THREAD, &data, ipcReply, option, ptr); in InvokerListenThread() 144 int32_t GetPidAndUidInfo(ProxyObject *proxyObject) in GetPidAndUidInfo() argument 146 if (proxyObject == NULL) { in GetPidAndUidInfo() 160 int32_t ret = SendRequest(*proxyObject->proxy, GET_UIDPID_INFO, &data, &reply, option, &ptr); in GetPidAndUidInfo() 170 proxyObject->sessionName = (char *)malloc(len + 1); in GetPidAndUidInfo() 171 if (proxyObject->sessionName == NULL) { in GetPidAndUidInfo() 176 if (strcpy_s(proxyObject->sessionName, len + 1, sessionName) != 0) { in GetPidAndUidInfo() [all …]
|
/ohos5.0/foundation/communication/ipc/services/dbinder/c/src/ |
H A D | dbinder_service.c | 72 UTILS_DL_LIST proxyObject; member 473 if (proxyObject != NULL) { in FindOrNewProxy() 475 return proxyObject; in FindOrNewProxy() 485 if (proxyObject == NULL) { in FindOrNewProxy() 492 (void *)proxyObject, &proxyObject->cbId); in FindOrNewProxy() 495 free(proxyObject->proxy); in FindOrNewProxy() 496 free(proxyObject); in FindOrNewProxy() 502 RemoveDeathRecipient(*proxyObject->proxy, proxyObject->cbId); in FindOrNewProxy() 503 free(proxyObject->proxy); in FindOrNewProxy() 504 free(proxyObject); in FindOrNewProxy() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___controller_a_p_i.md | 22 …har \*webTag, const [ArkWeb_ProxyObject](_ark_web___proxy_object.md) \*proxyObject) | 注入JavaScript… 25 …har \*webTag, const [ArkWeb_ProxyObject](_ark_web___proxy_object.md) \*proxyObject) | 注入JavaScript… 136 …ollerAPI::registerAsyncJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject *proxyObject) 146 …ControllerAPI::registerJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject *proxyObject)
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/src/ |
H A D | connection_observer_client_impl.cpp | 247 auto proxyObject = serviceAdapter_->GetProxyObject(); in ResetProxy() local 248 if ((proxyObject != nullptr) && (proxyObject == remote.promote())) { in ResetProxy() 249 proxyObject->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
|
/ohos5.0/base/web/webview/interfaces/native/ |
H A D | arkweb_type.h | 179 void (*registerJavaScriptProxy)(const char* webTag, const ArkWeb_ProxyObject* proxyObject); 185 void (*registerAsyncJavaScriptProxy)(const char* webTag, const ArkWeb_ProxyObject* proxyObject);
|
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___controller_a_p_i.md | 22 …har \*webTag, const [ArkWeb_ProxyObject](_ark_web___proxy_object.md) \*proxyObject) | Pointer to t… 25 …har \*webTag, const [ArkWeb_ProxyObject](_ark_web___proxy_object.md) \*proxyObject) | Pointer to t… 136 …ollerAPI::registerAsyncJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject *proxyObject) 146 …ControllerAPI::registerJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject *proxyObject)
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/include/ |
H A D | ipc_proxy_inner.h | 26 int32_t InvokerListenThread(ProxyObject *proxyObject, const char *localDeviceID,
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/migrate/ |
H A D | migrate_avsession_server.cpp | 86 sptr<IRemoteObject> proxyObject; in CreateController() local 87 int32_t ret = servicePtr_->CreateControllerInner(sessionId, proxyObject); in CreateController() 88 if (ret != AVSESSION_SUCCESS && !(ret == ERR_CONTROLLER_IS_EXIST && proxyObject != nullptr)) { in CreateController() 92 sptr<AVControllerItem> controller = iface_cast<AVControllerItem>(proxyObject); in CreateController()
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | arkweb-ndk-jsbridge.md | 121 ArkWeb_ProxyObject proxyObject = {"ndkProxy", methodList, 2}; 122 controller->registerJavaScriptProxy(webTag, &proxyObject); 404 ArkWeb_ProxyObject proxyObject = {"ndkProxy", methodList, 2}; 405 controller->registerJavaScriptProxy(webTag, &proxyObject);
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | arkweb-ndk-jsbridge.md | 121 ArkWeb_ProxyObject proxyObject = {"ndkProxy", methodList, 2}; 122 controller->registerJavaScriptProxy(webTag, &proxyObject); 404 ArkWeb_ProxyObject proxyObject = {"ndkProxy", methodList, 2}; 405 controller->registerJavaScriptProxy(webTag, &proxyObject);
|
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_service_skeleton.cpp | 140 sptr<IRemoteObject> proxyObject = Remote(); in TestMultiThreadSendRequest() local 143 std::thread t([&proxyObject, &data, &reply] { in TestMultiThreadSendRequest() 151 … int error = proxyObject->SendRequest(TRANS_ID_SYNC_TRANSACTION, dataParcel, replyParcel, option); in TestMultiThreadSendRequest()
|