Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9c22a462
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9c22a462
编写于
10月 10, 2022
作者:
Y
yygxr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix camera session test case error
Signed-off-by:
N
yygxr
<
wuhao30@huawei.com
>
上级
41022905
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
72 addition
and
66 deletion
+72
-66
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
.../main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
+7
-1
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionExposureTest.test.ets
...n/ets/MainAbility/test/CameraSessionExposureTest.test.ets
+13
-13
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
...main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
+23
-33
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
...main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
+15
-17
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionVideoStabilizationTest.test.ets
...Ability/test/CameraSessionVideoStabilizationTest.test.ets
+7
-1
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
.../ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
+7
-1
未找到文件。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -303,7 +303,13 @@ export default function cameraSessionTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionExposureTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -340,7 +340,13 @@ export default function cameraSessionExposureTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
@@ -759,8 +765,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -810,8 +815,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -965,8 +969,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1016,8 +1019,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1171,8 +1173,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_CALLBACK_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1222,8 +1223,7 @@ export default function cameraSessionExposureTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_EXPOSURE_MODE_PROMISE_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -293,7 +293,13 @@ export default function cameraSessionFlashTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
@@ -702,8 +708,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -749,8 +754,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -813,8 +817,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -864,8 +867,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -919,8 +921,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -966,8 +967,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1029,8 +1029,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1080,8 +1079,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1135,8 +1133,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1182,8 +1179,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1245,8 +1241,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1296,8 +1291,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1351,8 +1345,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_CALLBACK_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1398,8 +1391,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_IS_FLASH_MODE_SUPPORT_PROMISE_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1461,8 +1453,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_CALLBACK_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1513,8 +1504,7 @@ export default function cameraSessionFlashTest(surfaceId: any) {
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FLASH_MODE_PROMISE_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -339,7 +339,13 @@ export default function cameraSessionFocusTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
@@ -755,8 +761,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -806,8 +811,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0100 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0100 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -961,8 +965,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1012,8 +1015,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0101 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0101 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1167,8 +1169,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1218,8 +1219,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
}
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0102 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0102 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1373,8 +1373,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
})
await
sleep
(
500
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_CALLBACK_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
@@ -1424,8 +1423,7 @@ export default function cameraSessionFocusTest(surfaceId: any) {
}
await
sleep
(
1000
);
}
else
{
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0103 FAILED"
);
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering SUB_MULTIMEDIA_CAMERA_SESSION_SET_GET_FOCUS_MODE_PROMISE_0103 not support"
);
}
await
stopCameraSession
(
i
);
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionVideoStabilizationTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -292,7 +292,13 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
浏览文件 @
9c22a462
...
...
@@ -294,7 +294,13 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
async
function
createCameraSessionInstance
()
{
console
.
info
(
'Enter createCameraSessionInstance'
);
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
try
{
mCameraSession
=
await
mCameraManager
.
createCaptureSession
();
}
catch
{
console
.
info
(
'createCaptureSession FAILED'
);
}
if
(
isEmpty
(
mCameraSession
))
{
console
.
info
(
TAG
+
"createCaptureSession FAILED"
);
return
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录