1 /*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file expected in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "camera_3a_test.h"
16
17 using namespace OHOS;
18 using namespace std;
19 using namespace testing::ext;
20 using namespace OHOS::Camera;
21
SetUpTestCase(void)22 void Camera3ATest::SetUpTestCase(void) {}
TearDownTestCase(void)23 void Camera3ATest::TearDownTestCase(void) {}
SetUp(void)24 void Camera3ATest::SetUp(void)
25 {
26 Test_ = std::make_shared<OHOS::Camera::Test>();
27 Test_->Init();
28 Test_->Open();
29 }
TearDown(void)30 void Camera3ATest::TearDown(void)
31 {
32 Test_->Close();
33 }
34
35 /**
36 * @tc.name: updateSettings AE
37 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AE_EXPOSURE_COMPENSATION, success.
38 * @tc.size: MediumTest
39 * @tc.type: Function
40 */
41 HWTEST_F(Camera3ATest, Camera_3a_0001, TestSize.Level0)
42 {
43 std::cout << "==========[test log]Preview,then UpdateSettings ";
44 std::cout <<"OHOS_CAMERA_AE_EXPOSURE_COMPENSATION, success." << std::endl;
45 // Start stream
46 Test_->intents = {Camera::PREVIEW};
47 Test_->StartStream(Test_->intents);
48 // Get preview
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
50 // Issue 3A parameters
51 std::shared_ptr<CameraMetadata> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
52 int32_t expo = 0xa0;
53 meta->addEntry(OHOS_CONTROL_AE_EXPOSURE_COMPENSATION, &expo, 1);
54 Test_->cameraDevice->UpdateSettings(meta);
55 std::cout << "==========[test log]UpdateSettings, exposure for 10s." << std::endl;
56 sleep(3); // sleep for 3 seconds
57 Test_->GetCameraMetadata();
58 // release stream
59 Test_->captureIds = {Test_->captureId_preview};
60 Test_->streamIds = {Test_->streamId_preview};
61 Test_->StopStream(Test_->captureIds, Test_->streamIds);
62 Test_->StopConsumer(Test_->intents);
63 }
64
65 /**
66 * @tc.name: updateSettings AWB
67 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_AUTO, success.
68 * @tc.size: MediumTest
69 * @tc.type: Function
70 */
71 HWTEST_F(Camera3ATest, Camera_3a_0002, TestSize.Level1)
72 {
73 std::cout << "==========[test log]Preview,updateSettings";
74 std::cout <<" OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_AUTO, success." << std::endl;
75 // Start stream
76 Test_->intents = {Camera::PREVIEW};
77 Test_->StartStream(Test_->intents);
78 // Get preview
79 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
80 // Issue 3A parameters
81 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
82 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_AUTO;
83 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
84 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_AUTO." << std::endl;
85 Test_->cameraDevice->UpdateSettings(meta);
86 sleep(2);
87 // release stream
88 Test_->captureIds = {Test_->captureId_preview};
89 Test_->streamIds = {Test_->streamId_preview};
90 Test_->StopStream(Test_->captureIds, Test_->streamIds);
91 Test_->StopConsumer(Test_->intents);
92 }
93
94 /**
95 * @tc.name: updateSettings AWB
96 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_INCANDESCENT, success.
97 * @tc.size: MediumTest
98 * @tc.type: Function
99 */
100 HWTEST_F(Camera3ATest, Camera_3a_0003, TestSize.Level1)
101 {
102 std::cout << "==========[test log]Preview,updateSettings ";
103 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_INCANDESCENT, success." << std::endl;
104 // Start stream
105 Test_->intents = {Camera::PREVIEW};
106 Test_->StartStream(Test_->intents);
107 // Get preview
108 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
109 // Issue 3A parameters
110 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
111 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_INCANDESCENT;
112 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
113 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_INCANDESCENT." << std::endl;
114 Test_->cameraDevice->UpdateSettings(meta);
115 sleep(2);
116 // release stream
117 Test_->captureIds = {Test_->captureId_preview};
118 Test_->streamIds = {Test_->streamId_preview};
119 Test_->StopStream(Test_->captureIds, Test_->streamIds);
120 Test_->StopConsumer(Test_->intents);
121 }
122
123 /**
124 * @tc.name: updateSettings AWB
125 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_FLUORESCENT, success.
126 * @tc.size: MediumTest
127 * @tc.type: Function
128 */
129 HWTEST_F(Camera3ATest, Camera_3a_0004, TestSize.Level1)
130 {
131 std::cout << "==========[test log]Preview,updateSettings ";
132 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_FLUORESCENT, success." << std::endl;
133 // Start stream
134 Test_->intents = {Camera::PREVIEW};
135 Test_->StartStream(Test_->intents);
136 // Get preview
137 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
138 // Issue 3A parameters
139 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_FLUORESCENT;
140 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
141 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
142 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_FLUORESCENT." << std::endl;
143 Test_->cameraDevice->UpdateSettings(meta);
144 // release stream
145 sleep(2);
146 Test_->captureIds = {Test_->captureId_preview};
147 Test_->streamIds = {Test_->streamId_preview};
148 Test_->StopStream(Test_->captureIds, Test_->streamIds);
149 Test_->StopConsumer(Test_->intents);
150 }
151
152 /**
153 * @tc.name: updateSettings AWB
154 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_WARM_FLUORESCENT, success.
155 * @tc.size: MediumTest
156 * @tc.type: Function
157 */
158 HWTEST_F(Camera3ATest, Camera_3a_0005, TestSize.Level1)
159 {
160 std::cout << "==========[test log]Preview,updateSettings ";
161 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_WARM_FLUORESCENT, success." << std::endl;
162 // Start stream
163 Test_->intents = {Camera::PREVIEW};
164 Test_->StartStream(Test_->intents);
165 // Get preview
166 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
167 // Issue 3A parameters
168 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_WARM_FLUORESCENT;
169 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
170 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
171 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_WARM_FLUORESCENT." << std::endl;
172 Test_->cameraDevice->UpdateSettings(meta);
173 // release stream
174 sleep(2);
175 Test_->captureIds = {Test_->captureId_preview};
176 Test_->streamIds = {Test_->streamId_preview};
177 Test_->StopStream(Test_->captureIds, Test_->streamIds);
178 Test_->StopConsumer(Test_->intents);
179 }
180
181 /**
182 * @tc.name: updateSettings AWB
183 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_DAYLIGHT, success.
184 * @tc.size: MediumTest
185 * @tc.type: Function
186 */
187 HWTEST_F(Camera3ATest, Camera_3a_0006, TestSize.Level1)
188 {
189 std::cout << "==========[test log]Preview, updateSettings ";
190 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_DAYLIGHT, success." << std::endl;
191 // Start stream
192 Test_->intents = {Camera::PREVIEW};
193 Test_->StartStream(Test_->intents);
194 // Get preview
195 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
196 // Issue 3A parameters
197 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
198 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_DAYLIGHT;
199 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
200 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_DAYLIGHT." << std::endl;
201 Test_->cameraDevice->UpdateSettings(meta);
202 sleep(2);
203 std::cout << "==========[test log]GetCameraMetadata ..." << std::endl;
204 Test_->GetCameraMetadata();
205 // release stream
206 Test_->captureIds = {Test_->captureId_preview};
207 Test_->streamIds = {Test_->streamId_preview};
208 Test_->StopStream(Test_->captureIds, Test_->streamIds);
209 Test_->StopConsumer(Test_->intents);
210 }
211
212 /**
213 * @tc.name: updateSettings AWB
214 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_CLOUDY_DAYLIGHT, success.
215 * @tc.size: MediumTest
216 * @tc.type: Function
217 */
218 HWTEST_F(Camera3ATest, Camera_3a_0007, TestSize.Level1)
219 {
220 std::cout << "==========[test log]Preview,updateSettings ";
221 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_CLOUDY_DAYLIGHT, success." << std::endl;
222 // Start stream
223 Test_->intents = {Camera::PREVIEW};
224 Test_->StartStream(Test_->intents);
225 // Get preview
226 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
227 // Issue 3A parameters
228 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_CLOUDY_DAYLIGHT;
229 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
230 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
231 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_CLOUDY_DAYLIGHT." << std::endl;
232 Test_->cameraDevice->UpdateSettings(meta);
233 // release stream
234 sleep(2);
235 std::cout << "==========[test log]GetCameraMetadata ..." << std::endl;
236 Test_->GetCameraMetadata();
237 Test_->captureIds = {Test_->captureId_preview};
238 Test_->streamIds = {Test_->streamId_preview};
239 Test_->StopStream(Test_->captureIds, Test_->streamIds);
240 Test_->StopConsumer(Test_->intents);
241 }
242
243 /**
244 * @tc.name: updateSettings AWB
245 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_TWILIGHT, success.
246 * @tc.size: MediumTest
247 * @tc.type: Function
248 */
249 HWTEST_F(Camera3ATest, Camera_3a_0008, TestSize.Level1)
250 {
251 std::cout << "==========[test log]Preview,updateSettings ";
252 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_TWILIGHT, success." << std::endl;
253 // Start stream
254 Test_->intents = {Camera::PREVIEW};
255 Test_->StartStream(Test_->intents);
256 // Get preview
257 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
258 // Issue 3A parameters
259 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_TWILIGHT;
260 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
261 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
262 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_TWILIGHT." << std::endl;
263 Test_->cameraDevice->UpdateSettings(meta);
264 // release stream
265 sleep(2);
266 Test_->captureIds = {Test_->captureId_preview};
267 Test_->streamIds = {Test_->streamId_preview};
268 Test_->StopStream(Test_->captureIds, Test_->streamIds);
269 Test_->StopConsumer(Test_->intents);
270 }
271
272 /**
273 * @tc.name: updateSettings AWB
274 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_SHADE, success.
275 * @tc.size: MediumTest
276 * @tc.type: Function
277 */
278 HWTEST_F(Camera3ATest, Camera_3a_0009, TestSize.Level1)
279 {
280 std::cout << "==========[test log]Preview,updateSettings ";
281 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_SHADE, success." << std::endl;
282 // Start stream
283 Test_->intents = {Camera::PREVIEW};
284 Test_->StartStream(Test_->intents);
285 // Get preview
286 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
287 // Issue 3A parameters
288 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
289 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_SHADE;
290 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
291 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_SHADE." << std::endl;
292 Test_->cameraDevice->UpdateSettings(meta);
293 sleep(2);
294 // release stream
295 Test_->captureIds = {Test_->captureId_preview};
296 Test_->streamIds = {Test_->streamId_preview};
297 Test_->StopStream(Test_->captureIds, Test_->streamIds);
298 Test_->StopConsumer(Test_->intents);
299 }
300
301 /**
302 * @tc.name: updateSettings AWB
303 * @tc.desc: Preview,updateSettings OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_OFF, success.
304 * @tc.size: MediumTest
305 * @tc.type: Function
306 */
307 HWTEST_F(Camera3ATest, Camera_3a_0010, TestSize.Level1)
308 {
309 std::cout << "==========[test log]Preview,updateSettings ";
310 std::cout <<"OHOS_CAMERA_AWB_MODE-OHOS_CONTROL_AWB_MODE_OFF, success." << std::endl;
311 // Start stream
312 Test_->intents = {Camera::PREVIEW};
313 Test_->StartStream(Test_->intents);
314 // Get preview
315 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
316 // Issue 3A parameters
317 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
318 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_OFF;
319 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
320 std::cout << "==========[test log]UpdateSettings, awb : OHOS_CAMERA_AWB_MODE_OFF." << std::endl;
321 Test_->cameraDevice->UpdateSettings(meta);
322 sleep(2);
323 // release stream
324 Test_->captureIds = {Test_->captureId_preview};
325 Test_->streamIds = {Test_->streamId_preview};
326 Test_->StopStream(Test_->captureIds, Test_->streamIds);
327 Test_->StopConsumer(Test_->intents);
328 }
329
330 /**
331 * @tc.name: updateSettings illegal value
332 * @tc.desc: UpdateSettings, OHOS_CAMERA_AWB_MODE: illegal value(input AE value).
333 * @tc.size: MediumTest
334 * @tc.type: Function
335 */
336 HWTEST_F(Camera3ATest, Camera_3a_0020, TestSize.Level2) {
337 std::cout << "==========[test log]UpdateSettings, ";
338 std::cout <<"OHOS_CAMERA_AWB_MODE: illegal value(input AE value)." << std::endl;
339 // Issue 3A parameters
340 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
341 uint8_t awbMode = OHOS_CAMERA_AE_MODE_ON_ALWAYS_FLASH;
342 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
343 Test_->rc = Test_->cameraDevice->UpdateSettings(meta);
344 std::cout << "rc = " << Test_->rc << std::endl;
345 EXPECT_EQ(true, Test_->rc == Camera::NO_ERROR);
346 }
347
348 /**
349 * @tc.name: updateSettings reset
350 * @tc.desc: Preview set 3A, then close device, and preview, 3A is reset.
351 * @tc.size: MediumTest
352 * @tc.type: Function
353 */
354 HWTEST_F(Camera3ATest, Camera_3a_0030, TestSize.Level2)
355 {
356 std::cout << "==========[test log]Preview set 3A, ";
357 std::cout <<"then close device, and preview, 3A is reset." << std::endl;
358 std::cout << "==========[test log]The 1st time set 3A." << std::endl;
359 // Start stream
360 Test_->intents = {Camera::PREVIEW};
361 Test_->StartStream(Test_->intents);
362 // Get preview
363 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
364 // Issue 3A parameters
365 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
366 int32_t expo = 0xa0;
367 meta->addEntry(OHOS_CONTROL_AE_EXPOSURE_COMPENSATION, &expo, 1);
368 Test_->cameraDevice->UpdateSettings(meta);
369 std::cout << "==========[test log]UpdateSettings, exposure for 3s." << std::endl;
370 sleep(3); // sleep for 3 seconds
371 // release stream
372 Test_->captureIds = {Test_->captureId_preview};
373 Test_->streamIds = {Test_->streamId_preview};
374 Test_->StopStream(Test_->captureIds, Test_->streamIds);
375 Test_->StopConsumer(Test_->intents);
376 // Turn off the device
377 Test_->cameraDevice->Close();
378 std::cout << "cameraDevice->Close" << std::endl;
379 std::cout << "==========[test log]Close device, and preview, 3A is reset." << std::endl;
380 Test_->consumerMap_.clear();
381 // reopen the camera
382 Test_ = std::make_shared<OHOS::Camera::Test>();
383 Test_->Init();
384 Test_->Open();
385 // Start stream
386 Test_->intents = {Camera::PREVIEW};
387 Test_->StartStream(Test_->intents);
388 // Get preview
389 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
390 // release stream
391 Test_->captureIds = {Test_->captureId_preview};
392 Test_->streamIds = {Test_->streamId_preview};
393 Test_->StopStream(Test_->captureIds, Test_->streamIds);
394 Test_->StopConsumer(Test_->intents);
395 }
396
397 /**
398 * @tc.name: updateSettings different 3A params
399 * @tc.desc: Preview, updatesetting different 3A params together.
400 * @tc.size: MediumTest
401 * @tc.type: Function
402 */
403 HWTEST_F(Camera3ATest, Camera_3a_0031, TestSize.Level1)
404 {
405 std::cout << "==========[test log]Preview, updatesetting different 3A params together." << std::endl;
406 // Start stream
407 Test_->intents = {Camera::PREVIEW};
408 Test_->StartStream(Test_->intents);
409 // Get preview
410 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
411 // Issue 3A parameters
412 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
413 int32_t expo = 0xa0;
414 meta->addEntry(OHOS_CONTROL_AE_EXPOSURE_COMPENSATION, &expo, 1);
415 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_TWILIGHT;
416 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
417 Test_->cameraDevice->UpdateSettings(meta);
418 std::cout << "==========[test log]UpdateSettings, exposure for 10s." << std::endl;
419 sleep(3); // sleep for 3 seconds
420 std::cout << "==========[test log]GetCameraMetadata ..." << std::endl;
421 Test_->GetCameraMetadata();
422 // release stream
423 Test_->captureIds = {Test_->captureId_preview};
424 Test_->streamIds = {Test_->streamId_preview};
425 Test_->StopStream(Test_->captureIds, Test_->streamIds);
426 Test_->StopConsumer(Test_->intents);
427 }
428
429 /**
430 * @tc.name: updateSettings AE without preview
431 * @tc.desc: UpdateSettings-OHOS_CAMERA_AE_EXPOSURE_COMPENSATION, without preview, success.
432 * @tc.size: MediumTest
433 * @tc.type: Function
434 */
435 HWTEST_F(Camera3ATest, Camera_3a_0040, TestSize.Level2) {
436 std::cout << "UpdateSettings-OHOS_CAMERA_AE_EXPOSURE_COMPENSATION, success." << std::endl;
437
438 // Issue 3A parameters
439 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
440 int32_t expo = 0xa0;
441 meta->addEntry(OHOS_CONTROL_AE_EXPOSURE_COMPENSATION, &expo, 1);
442 Test_->cameraDevice->UpdateSettings(meta);
443 }
444
445 /**
446 * @tc.name: updateSettings AWB without preview
447 * @tc.desc: UpdateSettings-OHOS_CAMERA_AWB_MODE, without preview, success.
448 * @tc.size: MediumTest
449 * @tc.type: Function
450 */
451 HWTEST_F(Camera3ATest, Camera_3a_0041, TestSize.Level2) {
452 std::cout << "UpdateSettings-OHOS_CAMERA_AWB_MODE, success." << std::endl;
453
454 // Issue 3A parameters
455 std::shared_ptr<Camera::CameraSetting> meta = std::make_shared<Camera::CameraSetting>(100, 2000);
456 uint8_t awbMode = OHOS_CAMERA_AWB_MODE_AUTO;
457 meta->addEntry(OHOS_CONTROL_AWB_MODE, &awbMode, 1);
458 Test_->cameraDevice->UpdateSettings(meta);
459 }