提交 e98081a6 编写于 作者: Y yygxr

fix session xts case error

Signed-off-by: Nyygxr <wuhao30@huawei.com>
上级 2486981a
...@@ -386,8 +386,8 @@ export default function cameraSessionTest(surfaceId: any) { ...@@ -386,8 +386,8 @@ export default function cameraSessionTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -401,8 +401,8 @@ export default function cameraSessionTest(surfaceId: any) { ...@@ -401,8 +401,8 @@ export default function cameraSessionTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -417,8 +417,8 @@ export default function cameraSessionTest(surfaceId: any) { ...@@ -417,8 +417,8 @@ export default function cameraSessionTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
...@@ -432,8 +432,8 @@ export default function cameraSessionExposureTest(surfaceId: any) { ...@@ -432,8 +432,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -447,8 +447,8 @@ export default function cameraSessionExposureTest(surfaceId: any) { ...@@ -447,8 +447,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -463,8 +463,8 @@ export default function cameraSessionExposureTest(surfaceId: any) { ...@@ -463,8 +463,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
...@@ -383,8 +383,8 @@ export default function cameraSessionFlashTest(surfaceId: any) { ...@@ -383,8 +383,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -398,8 +398,8 @@ export default function cameraSessionFlashTest(surfaceId: any) { ...@@ -398,8 +398,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -414,8 +414,8 @@ export default function cameraSessionFlashTest(surfaceId: any) { ...@@ -414,8 +414,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
...@@ -428,8 +428,8 @@ export default function cameraSessionFocusTest(surfaceId: any) { ...@@ -428,8 +428,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -443,8 +443,8 @@ export default function cameraSessionFocusTest(surfaceId: any) { ...@@ -443,8 +443,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -459,8 +459,8 @@ export default function cameraSessionFocusTest(surfaceId: any) { ...@@ -459,8 +459,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
...@@ -381,8 +381,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) { ...@@ -381,8 +381,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -396,8 +396,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) { ...@@ -396,8 +396,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -412,8 +412,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) { ...@@ -412,8 +412,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
...@@ -385,8 +385,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) { ...@@ -385,8 +385,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]); let cameraOutputCap = await mCameraManager.getSupportedOutputCapability(mCameraDevicesArray[i]);
if (!isEmpty(cameraOutputCap.previewProfiles)) { if (!isEmpty(cameraOutputCap.previewProfiles)) {
console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length); console.info(TAG + "cameraOutputCap.previewProfiles.length: " + cameraOutputCap.previewProfiles.length);
for (let i = 0; i< cameraOutputCap.previewProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.previewProfiles.length; j++) {
mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[i], surfaceId); mPreviewOutputArray[i] = await mCameraManager.createPreviewOutput(cameraOutputCap.previewProfiles[j], surfaceId);
if (!isEmpty(mPreviewOutputArray[i])) { if (!isEmpty(mPreviewOutputArray[i])) {
break; break;
} }
...@@ -400,8 +400,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) { ...@@ -400,8 +400,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.photoProfiles)) { if (!isEmpty(cameraOutputCap.photoProfiles)) {
console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length); console.info(TAG + "cameraOutputCap.photoProfiles.length: " + cameraOutputCap.photoProfiles.length);
for (let i = 0; i < cameraOutputCap.photoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.photoProfiles.length; j++) {
mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[i], mPhoteSurface); mPhotoOutputArray[i] = await mCameraManager.createPhotoOutput(cameraOutputCap.photoProfiles[j], mPhoteSurface);
if (!isEmpty(mPhotoOutputArray[i])) { if (!isEmpty(mPhotoOutputArray[i])) {
break; break;
} }
...@@ -416,8 +416,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) { ...@@ -416,8 +416,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
if (!isEmpty(cameraOutputCap.videoProfiles)) { if (!isEmpty(cameraOutputCap.videoProfiles)) {
console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length); console.info(TAG + "cameraOutputCap.videoProfiles.length: " + cameraOutputCap.videoProfiles.length);
for (let i = 0; i < cameraOutputCap.videoProfiles.length; i++) { for (let j = 0; j < cameraOutputCap.videoProfiles.length; j++) {
mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[i], mVideoSurface); mVideoOutputArray[i] = await mCameraManager.createVideoOutput(cameraOutputCap.videoProfiles[j], mVideoSurface);
if (!isEmpty(mVideoOutputArray[i])) { if (!isEmpty(mVideoOutputArray[i])) {
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册