Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
40187b9e
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看板
提交
40187b9e
编写于
11月 24, 2022
作者:
C
chengxingzhen
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xst失败用例适配
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
f6f68614
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
31 addition
and
9 deletion
+31
-9
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility3/app.ets
...fasupportfunction/entry/src/main/ets/MainAbility3/app.ets
+7
-1
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility4/app.ets
...fasupportfunction/entry/src/main/ets/MainAbility4/app.ets
+6
-2
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility5/app.ets
...fasupportfunction/entry/src/main/ets/MainAbility5/app.ets
+6
-2
ability/ability_runtime/actssupportfunction/fasupportfunction/fasupportfunctiontwo/src/main/ets/MainAbility/app.ets
...ion/fasupportfunctiontwo/src/main/ets/MainAbility/app.ets
+6
-2
ability/ability_runtime/actssupportfunction/fasupportfunctionthree/entry/src/main/ets/MainAbility/app.ets
...pportfunctionthree/entry/src/main/ets/MainAbility/app.ets
+6
-2
未找到文件。
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility3/app.ets
浏览文件 @
40187b9e
...
@@ -19,6 +19,7 @@ import bundle from '@ohos.bundle';
...
@@ -19,6 +19,7 @@ import bundle from '@ohos.bundle';
var TAG1 = "Fa:SupportFunction:MainAbility3:";
var TAG1 = "Fa:SupportFunction:MainAbility3:";
var listPush1 = "Fa_SupportFunction_MainAbility3_";
var listPush1 = "Fa_SupportFunction_MainAbility3_";
var lifeList = [];
var lifeList = [];
let setDisplayOrientation1 = 0;
export default {
export default {
onCreate() {
onCreate() {
console.log(TAG1 + 'onCreate');
console.log(TAG1 + 'onCreate');
...
@@ -39,6 +40,11 @@ export default {
...
@@ -39,6 +40,11 @@ export default {
ability_featureAbility.getContext().setDisplayOrientation(orientation, (error, setDisplayOrientation) => {
ability_featureAbility.getContext().setDisplayOrientation(orientation, (error, setDisplayOrientation) => {
console.log(TAG1 + "setDisplayOrientation data = " + JSON.stringify(setDisplayOrientation));
console.log(TAG1 + "setDisplayOrientation data = " + JSON.stringify(setDisplayOrientation));
console.log(TAG1 + "setDisplayOrientation error = " + JSON.stringify(error));
console.log(TAG1 + "setDisplayOrientation error = " + JSON.stringify(error));
if (setDisplayOrientation == undefined) {
setDisplayOrientation1 = 1
} else {
console.log(`${TAG1} setDisplayOrientation callBack is error: ${JSON.stringify(setDisplayOrientation)}`);
}
ability_featureAbility.getContext().getDisplayOrientation((error, displayOrientationAfter) => {
ability_featureAbility.getContext().getDisplayOrientation((error, displayOrientationAfter) => {
console.log(TAG1 + "getDisplayOrientation2 data = " + JSON.stringify(displayOrientationAfter));
console.log(TAG1 + "getDisplayOrientation2 data = " + JSON.stringify(displayOrientationAfter));
...
@@ -49,7 +55,7 @@ export default {
...
@@ -49,7 +55,7 @@ export default {
displayOrientationBefore: displayOrientationBefore,
displayOrientationBefore: displayOrientationBefore,
displayOrientationAfter: displayOrientationAfter,
displayOrientationAfter: displayOrientationAfter,
lifeList: lifeList,
lifeList: lifeList,
setDisplayOrientation: setDisplayOrientation
setDisplayOrientation: setDisplayOrientation
1
}
}
}
}
commonEvent.publish(listPush1 + "onActive", options, (err) => {
commonEvent.publish(listPush1 + "onActive", options, (err) => {
...
...
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility4/app.ets
浏览文件 @
40187b9e
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
let displayOrientationBefore = undefined;
let displayOrientationBefore = undefined;
let displayOrientationAfter = undefined;
let displayOrientationAfter = undefined;
let setDisplayOrientation =
undefined
;
let setDisplayOrientation =
0
;
let orientation = undefined;
let orientation = undefined;
let number = undefined;
let number = undefined;
let wantNum = undefined;
let wantNum = undefined;
...
@@ -116,7 +116,11 @@ export default {
...
@@ -116,7 +116,11 @@ export default {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
setDisplayOrientation = data;
if (data == undefined) {
setDisplayOrientation = 1
} else {
console.log(`${TAG1} setDisplayOrientation callBack is error: ${JSON.stringify(data)}`);
}
}).catch((error) => {
}).catch((error) => {
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
})
})
...
...
ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility5/app.ets
浏览文件 @
40187b9e
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
let displayOrientationBefore = undefined;
let displayOrientationBefore = undefined;
let displayOrientationAfter = undefined;
let displayOrientationAfter = undefined;
let setDisplayOrientation =
undefined
;
let setDisplayOrientation =
0
;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
...
@@ -45,7 +45,11 @@ export default {
...
@@ -45,7 +45,11 @@ export default {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
setDisplayOrientation = data;
if (data == undefined) {
setDisplayOrientation = 1
} else {
console.log(`${TAG1} setDisplayOrientation callBack is error: ${JSON.stringify(data)}`);
}
}).catch((error) => {
}).catch((error) => {
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
})
})
...
...
ability/ability_runtime/actssupportfunction/fasupportfunction/fasupportfunctiontwo/src/main/ets/MainAbility/app.ets
浏览文件 @
40187b9e
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
let displayOrientationBefore = undefined;
let displayOrientationBefore = undefined;
let displayOrientationAfter = undefined;
let displayOrientationAfter = undefined;
let setDisplayOrientation =
undefined
;
let setDisplayOrientation =
0
;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
...
@@ -45,7 +45,11 @@ export default {
...
@@ -45,7 +45,11 @@ export default {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
setDisplayOrientation = data;
if (data == undefined) {
setDisplayOrientation = 1
} else {
console.log(`${TAG1} setDisplayOrientation callBack is error: ${JSON.stringify(data)}`);
}
}).catch((error) => {
}).catch((error) => {
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
})
})
...
...
ability/ability_runtime/actssupportfunction/fasupportfunctionthree/entry/src/main/ets/MainAbility/app.ets
浏览文件 @
40187b9e
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
let displayOrientationBefore = undefined;
let displayOrientationBefore = undefined;
let displayOrientationAfter = undefined;
let displayOrientationAfter = undefined;
let setDisplayOrientation =
undefined
;
let setDisplayOrientation =
0
;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
let orientation = bundle.DisplayOrientation.FOLLOW_RECENT;
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
await ability_featureAbility.getContext().getDisplayOrientation().then((data) => {
...
@@ -45,7 +45,11 @@ export default {
...
@@ -45,7 +45,11 @@ export default {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
await ability_featureAbility.getContext().setDisplayOrientation(orientation).then((data) => {
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
console.log(TAG1 + "setShowOnLockScreen data = " + JSON.stringify(data));
setDisplayOrientation = data;
if (data == undefined) {
setDisplayOrientation = 1
} else {
console.log(`${TAG1} setDisplayOrientation callBack is error: ${JSON.stringify(data)}`);
}
}).catch((error) => {
}).catch((error) => {
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
console.log(TAG1 + "setShowOnLockScreen error = " + JSON.stringify(error));
})
})
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
7447e183
·
11月 26, 2022
mentioned in commit
7447e183
mentioned in commit 7447e183fa2b51c9be79309d5f12479e1f59e303
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录