Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7c917232
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看板
未验证
提交
7c917232
编写于
8月 08, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 08, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4887 元能力-编译报错修改
Merge pull request !4887 from chengxingzhen/master
上级
9d745660
37ee48ea
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
38 addition
and
49 deletion
+38
-49
ability/ability_runtime/freeinstalltest/connectabilityfatest/freeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
...ntry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
+4
-4
ability/ability_runtime/freeinstalltest/connectabilitystagetest/freeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
...ystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
+4
-4
ability/ability_runtime/freeinstalltest/startabilityfatest/atomizationfaentry/entry/src/main/ets/MainAbility/pages/third.ets
...ionfaentry/entry/src/main/ets/MainAbility/pages/third.ets
+10
-11
ability/ability_runtime/freeinstalltest/startabilityfatest/atomizationfahm2/entry/src/main/ets/MainAbility/pages/index.ets
...ationfahm2/entry/src/main/ets/MainAbility/pages/index.ets
+1
-3
ability/ability_runtime/freeinstalltest/startabilityfatest/freeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets
...entry/src/main/ets/MainAbility/test/StartAbility.test.ets
+6
-8
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/atomizationresultfaentry/entry/src/main/ets/MainAbility/pages/third.ets
...ultfaentry/entry/src/main/ets/MainAbility/pages/third.ets
+8
-9
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/atomizationresultfahm2/entry/src/main/ets/MainAbility/pages/index.ets
...esultfahm2/entry/src/main/ets/MainAbility/pages/index.ets
+1
-3
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstageentry/entry/src/main/ets/pages/index.ets
...zationresultstageentry/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstagehm2/entry/src/main/ets/pages/index.ets
...mizationresultstagehm2/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstagehnm2/entry/src/main/ets/pages/index.ets
...izationresultstagehnm2/entry/src/main/ets/pages/index.ets
+0
-1
ability/ability_runtime/freeinstalltest/startabilitystagetest/freeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets
...itystagetest/entry/src/main/ets/test/StartAbilityTest.ets
+4
-4
未找到文件。
ability/ability_runtime/freeinstalltest/connectabilityfatest/freeinstallconnectabilityfatest/entry/src/main/ets/MainAbility/test/ConnectAbilityTest.ets
浏览文件 @
7c917232
...
...
@@ -131,8 +131,8 @@ export default function ConnectAbilityTest() {
var
deviceid
=
"0"
;
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceid
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceid
=
data
.
deviceId
;
})
await
sleep
(
500
);
var
request1
=
{
...
...
@@ -167,8 +167,8 @@ export default function ConnectAbilityTest() {
var
deviceid
=
"0"
;
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceid
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceid
=
data
.
deviceId
;
})
await
sleep
(
500
);
var
request2
=
{
...
...
ability/ability_runtime/freeinstalltest/connectabilitystagetest/freeinstallconnectabilitystagetest/entry/src/main/ets/test/ConnectAbilityTest.ets
浏览文件 @
7c917232
...
...
@@ -126,8 +126,8 @@ export default function ConnectAbilityTest(abilityContext) {
var
deviceid
=
"0"
;
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceid
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceid
=
data
.
deviceId
;
})
await
sleep
(
500
);
var
request1
=
{
...
...
@@ -157,8 +157,8 @@ export default function ConnectAbilityTest(abilityContext) {
var
deviceid
=
"0"
;
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceid
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceid:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceid
=
data
.
deviceId
;
})
await
sleep
(
500
);
var
request2
=
{
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/atomizationfaentry/entry/src/main/ets/MainAbility/pages/third.ets
浏览文件 @
7c917232
...
...
@@ -37,7 +37,6 @@ struct Third {
private content: string = "Third Page"
private contextText: string= '';
private localDeviceId: string= '';
private backgroundColor = Color.Grey;
private tipsMsg = '请输入对端的deviceId';
private isOn = false;
...
...
@@ -100,7 +99,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
this.updateModuleUpgradeFlag('StartAbilityPromise006','entry');
});
...
...
@@ -112,7 +111,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -136,7 +135,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -156,7 +155,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
if ('' === remoteDeviceId && '' === this.contextText) {
this.tips(this.tipsMsg);
...
...
@@ -185,7 +184,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
this.updateModuleUpgradeFlag('StartAbilityPromiseKSB006','entry');
});
...
...
@@ -197,7 +196,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -218,7 +217,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
if ('' === remoteDeviceId && '' === this.contextText) {
this.tips(this.tipsMsg);
...
...
@@ -248,7 +247,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -360,7 +359,7 @@ struct Third {
console.log('[startAbility] get device onBackPress out');
}
private
aboutToAppear(): void {
aboutToAppear(): void {
console.info('[startAbility] aboutToAppear in');
remoteDeviceModel = new RemoteDeviceModel;
remoteDeviceModel.registerDeviceListCallback();
...
...
@@ -378,7 +377,7 @@ struct Third {
console.info('[startAbility] onPageShow deviceId is ' + remoteDeviceId);
}
private
aboutToDisappear() {
aboutToDisappear() {
console.info('[startAbility] aboutToDisappear in');
remoteDeviceModel.unregisterDeviceListCallback();
console.info('[startAbility] aboutToDisappear out');
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/atomizationfahm2/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
7c917232
...
...
@@ -35,8 +35,6 @@ async function routePage() {
@
Component
struct
Index
{
private
backgroundColor
=
Color
.
Grey
;
build
()
{
Flex
({
direction
:
FlexDirection
.
Column
,
alignItems
:
ItemAlign
.
Center
,
justifyContent
:
FlexAlign
.
Center
})
{
Text
(
'hm2'
)
...
...
@@ -62,7 +60,7 @@ struct Index {
.
fontColor
(
Color
.
White
)
.
fontWeight
(
FontWeight
.
Bold
)
.
margin
({
top
:
20
})
.
backgroundColor
(
this
.
backgroundColor
)
.
backgroundColor
(
Color
.
Grey
)
.
onClick
(()
=>
{
var
str
=
{
'want'
:
{
...
...
ability/ability_runtime/freeinstalltest/startabilityfatest/freeinstallstartabilityfatest/entry/src/main/ets/MainAbility/test/StartAbility.test.ets
浏览文件 @
7c917232
...
...
@@ -301,8 +301,8 @@ export default function startAbilityTest() {
var deviceId = "";
await abilityManager.getTopAbility((err, data) => {
console.log(TAG + 'getTopAbility result: ' + JSON.stringify(data) + " , err: " + JSON.stringify(err));
console.log(TAG + 'getTopAbility result deviceId:' + JSON.stringify(data.
ability.
deviceId));
deviceId = data.
ability.
deviceId;
console.log(TAG + 'getTopAbility result deviceId:' + JSON.stringify(data.deviceId));
deviceId = data.deviceId;
})
await sleep(1000);
let details;
...
...
@@ -340,8 +340,8 @@ export default function startAbilityTest() {
var deviceId = "";
await abilityManager.getTopAbility((err, data) => {
console.log(TAG + 'getTopAbility result: ' + JSON.stringify(data) + " , err: " + JSON.stringify(err));
console.log(TAG + 'getTopAbility result deviceId:' + JSON.stringify(data.
ability.
deviceId));
deviceId = data.
ability.
deviceId;
console.log(TAG + 'getTopAbility result deviceId:' + JSON.stringify(data.deviceId));
deviceId = data.deviceId;
})
await sleep(1000);
let details;
...
...
@@ -559,7 +559,7 @@ export default function startAbilityTest() {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
"flags":
'94.31'
"flags":
94.31
}
}
await featureAbility.startAbility(str).then((data) => {
...
...
@@ -594,7 +594,7 @@ export default function startAbilityTest() {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
"flags":
'94.31'
"flags":
94.31
}
}
await featureAbility.startAbility(str).then((data) => {
...
...
@@ -625,7 +625,6 @@ export default function startAbilityTest() {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
"flags": ''
}
}
await featureAbility.startAbility(str).then((data) => {
...
...
@@ -660,7 +659,6 @@ export default function startAbilityTest() {
"bundleName": "com.example.qianyiyingyong.hmservice",
"abilityName": "com.example.qianyiyingyong.MainAbility",
"moduleName": "entry",
"flags": ''
}
}
await featureAbility.startAbility(str).then((data) => {
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/atomizationresultfaentry/entry/src/main/ets/MainAbility/pages/third.ets
浏览文件 @
7c917232
...
...
@@ -34,7 +34,6 @@ struct Third {
private content: string = "Third Page"
private contextText: string= '';
private localDeviceId: string= '';
private backgroundColor = Color.Grey;
private tipsMsg = '请输入对端的deviceId';
private isOn = false;
...
...
@@ -97,7 +96,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -120,7 +119,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -139,7 +138,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
this.updateModuleUpgradeFlag('fAStartAbilityPromiseSameBundleName006','entry');
});
...
...
@@ -151,7 +150,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
if ('' === remoteDeviceId && '' === this.contextText) {
this.tips(this.tipsMsg);
...
...
@@ -179,7 +178,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
if ('' === remoteDeviceId && '' === this.contextText) {
this.tips(this.tipsMsg);
...
...
@@ -207,7 +206,7 @@ struct Third {
.fontColor(Color.White)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.backgroundColor(
this.backgroundColor
)
.backgroundColor(
Color.Grey
)
.onClick(() => {
var str = {
'want': {
...
...
@@ -317,7 +316,7 @@ struct Third {
console.log('[startAbility] get device onBackPress out');
}
private
aboutToAppear(): void {
aboutToAppear(): void {
console.info('[startAbility] aboutToAppear in');
remoteDeviceModel = new RemoteDeviceModel;
remoteDeviceModel.registerDeviceListCallback();
...
...
@@ -335,7 +334,7 @@ struct Third {
console.info('[startAbility] onPageShow deviceId is ' + remoteDeviceId);
}
private
aboutToDisappear() {
aboutToDisappear() {
console.info('[startAbility] aboutToDisappear in');
remoteDeviceModel.unregisterDeviceListCallback();
console.info('[startAbility] aboutToDisappear out');
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultfatest/atomizationresultfahm2/entry/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
7c917232
...
...
@@ -35,8 +35,6 @@ async function routePage() {
@
Component
struct
Index
{
private
backgroundColor
=
Color
.
Grey
;
build
()
{
Flex
({
direction
:
FlexDirection
.
Column
,
alignItems
:
ItemAlign
.
Center
,
justifyContent
:
FlexAlign
.
Center
})
{
Text
(
'Hello World'
)
...
...
@@ -62,7 +60,7 @@ struct Index {
.
fontColor
(
Color
.
White
)
.
fontWeight
(
FontWeight
.
Bold
)
.
margin
({
top
:
20
})
.
backgroundColor
(
this
.
backgroundColor
)
.
backgroundColor
(
Color
.
Grey
)
.
onClick
(()
=>
{
var
str
=
{
'want'
:
{
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstageentry/entry/src/main/ets/pages/index.ets
浏览文件 @
7c917232
...
...
@@ -19,7 +19,6 @@ import router from '@system.router';
@
Component
struct
Index
{
@
State
message
:
string
=
'Hello World'
private
height
:
number
=
25
build
()
{
Flex
({
direction
:
FlexDirection
.
Column
,
alignItems
:
ItemAlign
.
Center
,
justifyContent
:
FlexAlign
.
Center
})
{
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstagehm2/entry/src/main/ets/pages/index.ets
浏览文件 @
7c917232
...
...
@@ -24,7 +24,6 @@ const ABILITY_NAME1 = 'hnm2MainAbility';
@Entry
@Component
struct Index {
private backgroundColor = Color.Grey;
build() {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
...
...
ability/ability_runtime/freeinstalltest/startabilityforresultstagetest/atomizationresultstagehnm2/entry/src/main/ets/pages/index.ets
浏览文件 @
7c917232
...
...
@@ -24,7 +24,6 @@ const ABILITY_NAME1 = 'hnm2MainAbility';
@Entry
@Component
struct Index {
private backgroundColor = Color.Grey;
build() {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
...
...
ability/ability_runtime/freeinstalltest/startabilitystagetest/freeinstallstartabilitystagetest/entry/src/main/ets/test/StartAbilityTest.ets
浏览文件 @
7c917232
...
...
@@ -316,8 +316,8 @@ export default function startAbilityTest(abilityContext) {
await
sleep
(
1000
);
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceId:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceId
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceId:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceId
=
data
.
deviceId
;
})
await
sleep
(
2000
);
var
str
=
{
...
...
@@ -355,8 +355,8 @@ export default function startAbilityTest(abilityContext) {
await
sleep
(
1000
);
abilityManager
.
getTopAbility
((
err
,
data
)
=>
{
console
.
log
(
TAG
+
'getTopAbility result: '
+
JSON
.
stringify
(
data
)
+
" , err: "
+
JSON
.
stringify
(
err
));
console
.
log
(
TAG
+
'getTopAbility result deviceId:'
+
JSON
.
stringify
(
data
.
ability
.
deviceId
));
deviceId
=
data
.
ability
.
deviceId
;
console
.
log
(
TAG
+
'getTopAbility result deviceId:'
+
JSON
.
stringify
(
data
.
deviceId
));
deviceId
=
data
.
deviceId
;
})
await
sleep
(
2000
);
var
str
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录