Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
75f3cb46
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
75f3cb46
编写于
9月 23, 2022
作者:
Y
yang-qibo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ipc新增onRemoteRequestEx接口用例
Signed-off-by:
N
yang-qibo
<
yangqibo1@huawei.com
>
上级
8b3d4d9a
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
6374 addition
and
6208 deletion
+6374
-6208
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
...ion/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
+6341
-6201
communication/dsoftbus/rpc_server/src/main/js/ServiceAbility/service.js
...dsoftbus/rpc_server/src/main/js/ServiceAbility/service.js
+33
-7
未找到文件。
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
浏览文件 @
75f3cb46
此差异已折叠。
点击以展开。
communication/dsoftbus/rpc_server/src/main/js/ServiceAbility/service.js
浏览文件 @
75f3cb46
...
...
@@ -67,8 +67,28 @@ class Stub extends rpc.RemoteObject {
onRemoteRequest
(
code
,
data
,
reply
,
option
)
{
try
{
console
.
info
(
"
onRemoteRequest:
"
+
code
)
console
.
info
(
"
-----------------syhsyhsysh:
"
+
code
)
if
(
code
===
32
){
console
.
info
(
"
case 32 start
"
)
let
tmp1
=
data
.
readString
()
let
result
=
reply
.
writeString
(
"
onRemoteRequest invoking
"
)
return
true
}
else
if
(
code
===
33
){
console
.
info
(
"
case 33 start
"
)
let
tmp1
=
data
.
readString
()
let
result
=
reply
.
writeString
(
tmp1
)
return
true
}
else
{
console
.
error
(
"
default case
"
+
code
)
return
super
.
onRemoteRequest
(
code
,
data
,
reply
,
option
)
}
}
catch
(
error
)
{
console
.
info
(
"
onRemoteRequest:
"
+
error
);
}
return
false
}
onRemoteRequestEx
(
code
,
data
,
reply
,
option
)
{
try
{
console
.
info
(
"
onRemoteRequestEx:
"
+
code
)
switch
(
code
)
{
case
1
:
{
...
...
@@ -210,7 +230,7 @@ class Stub extends rpc.RemoteObject {
{
console
.
info
(
"
case 17 start
"
)
var
s
=
[
new
MySequenceable
(
null
,
null
),
new
MySequenceable
(
null
,
null
),
new
MySequenceable
(
null
,
null
)];
new
MySequenceable
(
null
,
null
)];
data
.
readSequenceableArray
(
s
);
let
result
=
reply
.
writeSequenceableArray
(
s
);
return
true
...
...
@@ -286,7 +306,7 @@ class Stub extends rpc.RemoteObject {
let
tmp8
=
data
.
readCharArray
()
let
tmp9
=
data
.
readStringArray
()
let
s
=
[
new
MySequenceable
(
null
,
null
),
new
MySequenceable
(
null
,
null
),
new
MySequenceable
(
null
,
null
)]
new
MySequenceable
(
null
,
null
)]
let
tmp10
=
data
.
readSequenceableArray
(
s
)
let
result1
=
reply
.
writeByteArray
(
tmp1
)
let
result2
=
reply
.
writeShortArray
(
tmp2
)
...
...
@@ -460,12 +480,18 @@ class Stub extends rpc.RemoteObject {
reply
.
writeNoException
()
return
true
}
case
32
:
{
console
.
info
(
"
case 32 start
"
)
let
tmp1
=
data
.
readString
()
let
result
=
reply
.
writeString
(
"
onRemoteRequestEx invoking
"
)
return
true
}
default
:
console
.
error
(
"
default case
"
+
code
)
return
super
.
onRemoteRequest
(
code
,
data
,
reply
,
option
)
this
.
onRemoteRequest
(
code
,
data
,
reply
,
option
)
}
}
catch
(
error
)
{
console
.
info
(
"
onRemoteRequest:
"
+
error
);
console
.
info
(
"
onRemoteRequest
Ex
:
"
+
error
);
}
return
false
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录