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