diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraErrorCodeUsecaseTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraErrorCodeUsecaseTest.test.ets index 24f9e9912941bf569a556fa4e8e4de16da766a57..e7c834bac5b57bf8ffc53747525919427308ca74 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraErrorCodeUsecaseTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraErrorCodeUsecaseTest.test.ets @@ -75,6 +75,7 @@ let fileAsset; let fdNumber; let metadataOutput; let mMetadataObjectTypeArray; +let receiver; export default function CameraErrorCodeUsecaseTest() { function sleep(ms) { @@ -183,7 +184,7 @@ export default function CameraErrorCodeUsecaseTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraJSUnitOutput.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraJSUnitOutput.test.ets index c05f545c5d2e8aea74a9ffdb4120fc970c1cc478..3b24fcaa6c598ee58ca066bde381c339ca00e71d 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraJSUnitOutput.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraJSUnitOutput.test.ets @@ -74,6 +74,7 @@ let videoSurfaceId; let fdPath; let fileAsset; let fdNumber; +let receiver; let mMetadataObjectTypeArray; let mMetadataObjectArray; @@ -82,7 +83,7 @@ export default function cameraJSUnitOutput() { async function getImageReceiverSurfaceId() { console.log(TAG + 'Entering create Image receiver') - var receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Receiver is ok') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraManagerTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraManagerTest.test.ets index 325b30200beaafba0c1d367dcd74d65269eee252..7317f18b5af9ed0d71d1654d446af89a999c4bb2 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraManagerTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraManagerTest.test.ets @@ -34,6 +34,7 @@ let mFdNumber; // CAMERA-0 letiables let mCameraNum; +let receiver; let mVideoProfileCfg = { audioBitrate: 48000, @@ -64,7 +65,7 @@ export default function cameraManagerTest() { async function getImageReceiverSurfaceId() { console.log(TAG + 'Entering create Image receiver') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Receiver is ok') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionBaseTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionBaseTest.test.ets index 74d3373a75e4bcf4bbed57358fbfa61de9ad1513..b8a32e4d584c22aa3d6150121188856dfc3ceefa 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionBaseTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionBaseTest.test.ets @@ -68,6 +68,7 @@ let mVideoConfig = { maxSize: 100, maxDuration: 500 } +let receiver; export default function cameraSessionTest() { @@ -117,7 +118,7 @@ export default function cameraSessionTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionExposureTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionExposureTest.test.ets index 9ec032c8a204c7cac1064eb8638bf8ef63a3a384..e4475d2800397391c81fa58d6ac0ee62b3952e37 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionExposureTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionExposureTest.test.ets @@ -123,6 +123,7 @@ let mMETERINGPointInvalidRB = { } let mEnableCheckInvalidMETERINGPoint = false; +let receiver; export default function cameraSessionExposureTest() { @@ -172,7 +173,7 @@ export default function cameraSessionExposureTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFlashTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFlashTest.test.ets index be05515f4ead4a5c34507de57d27f8572bb99975..c201fc7979f4dceb3068b2d646092e949c4a9661 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFlashTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFlashTest.test.ets @@ -74,6 +74,7 @@ let mVideoConfig = { let mPicWidthMax = 8192; let mPicHeightMax = 8192; +let receiver; export default function cameraSessionFlashTest() { @@ -123,7 +124,7 @@ export default function cameraSessionFlashTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFocusTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFocusTest.test.ets index 092e539ca14f18c3444584807751b915f13cb5ae..c508af675d68d8ceb5f5566505c6d122705fd29a 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFocusTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionFocusTest.test.ets @@ -120,6 +120,7 @@ let mFocusPointInvalidRB = { } let mEnableCheckInvalidFocusPoint = false; +let receiver; export default function cameraSessionFocusTest() { @@ -169,7 +170,7 @@ export default function cameraSessionFocusTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionVideoStabilizationTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionVideoStabilizationTest.test.ets index a903b88961fa6308f485e56e3adaed0d322a58f6..b865b74f0440a9d69e9c0834a89a452a6dc38efd 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionVideoStabilizationTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionVideoStabilizationTest.test.ets @@ -73,6 +73,7 @@ let mVideoConfig = { let mPicWidthMax = 8192; let mPicHeightMax = 8192; +let receiver; export default function cameraSessionVideoStabilizationTest() { @@ -122,7 +123,7 @@ export default function cameraSessionVideoStabilizationTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully') diff --git a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionZoomRatioTest.test.ets b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionZoomRatioTest.test.ets index 0a245e3dde5ba9f0f68f8822eb3d3b6e9498a34c..c94712d5b2f43f0f11cddbef3e8119fde500767d 100644 --- a/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionZoomRatioTest.test.ets +++ b/multimedia/camera/camera_js_standard/entry/src/main/ets/test/CameraSessionZoomRatioTest.test.ets @@ -75,6 +75,7 @@ let mVideoConfig = { let mPicWidthMax = 8192; let mPicHeightMax = 8192; +let receiver; export default function cameraSessionZoomRatioTest() { @@ -124,7 +125,7 @@ export default function cameraSessionZoomRatioTest() { async function getPhotoReceiverSurface() { console.log(TAG + 'Entering getPhotoReceiverSurface') - let receiver = image.createImageReceiver(640, 480, 4, 8) + receiver = image.createImageReceiver(640, 480, 4, 8) console.log(TAG + 'before receiver check') if (receiver !== undefined) { console.log(TAG + 'Photo receiver is created successfully')