未验证 提交 f2f2ebca 编写于 作者: D dengyutao 提交者: Gitee

update ipc/native/src/mock/source/binder_invoker.cpp.

ipc 代码规范修改
Signed-off-by: Ndengyutao <dengyutao2@h-partners.com>
上级 372d60f0
......@@ -140,13 +140,15 @@ bool BinderInvoker::TranslateDBinderProxy(int handle, MessageParcel &parcel)
#else
if (flat->hdr.type == BINDER_TYPE_HANDLE && flat->cookie == IRemoteObject::IF_PROT_DATABUS
&& flat->handle < IPCProcessSkeleton::DBINDER_HANDLE_BASE) {
MessageParcel data, reply;
MessageParcel data;
MessageParcel reply;
MessageOption option;
if (SendRequest(handle, GET_PID_UID, data, reply, option) != ERR_NONE) {
ZLOGE(LABEL, "get pid and uid failed");
return false;
}
MessageParcel data2, reply2;
MessageParcel data2;
MessageParcel reply2;
MessageOption option2;
data2.WriteUint32(reply.ReadUint32()); // pid
data2.WriteUint32(reply.ReadUint32()); // uid
......@@ -822,7 +824,8 @@ void BinderInvoker::StopWorkThread()
bool BinderInvoker::PingService(int32_t handle)
{
MessageParcel data, reply;
MessageParcel data;
MessageParcel reply;
MessageOption option;
int result = SendRequest(handle, PING_TRANSACTION, data, reply, option);
return (result == ERR_NONE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册