Lines Matching refs:Test_
26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
46 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
47 Test_->StartStream(Test_->intents);
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
51 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
53 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
54 Test_->streamIds.push_back(Test_->streamId_preview);
55 Test_->streamIds.push_back(Test_->streamId_capture);
56 Test_->StopStream(Test_->captureIds, Test_->streamIds);
69 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
70 Test_->StartStream(Test_->intents);
72 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
74 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
76 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
77 Test_->streamIds = {Test_->streamId_preview, Test_->streamId_capture};
78 Test_->StopStream(Test_->captureIds, Test_->streamIds);
79 Test_->consumerMap_.clear();
81 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
82 Test_->StartStream(Test_->intents);
84 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
86 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
88 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
89 Test_->streamIds.push_back(Test_->streamId_preview);
90 Test_->streamIds.push_back(Test_->streamId_capture);
91 Test_->StopStream(Test_->captureIds, Test_->streamIds);
105 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
106 Test_->StartStream(Test_->intents);
108 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
113 Test_->rc = Test_->cameraDevice->UpdateSettings(meta);
114 if (Test_->rc == Camera::NO_ERROR) {
117 …std::cout << "==========[test log]check Capture: UpdateSettings fail, rc = " << Test_->rc << std::…
121 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
123 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
124 Test_->streamIds.push_back(Test_->streamId_preview);
125 Test_->streamIds.push_back(Test_->streamId_capture);
126 Test_->StopStream(Test_->captureIds, Test_->streamIds);
140 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
141 Test_->StartStream(Test_->intents);
143 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
145 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
147 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
148 Test_->streamIds.push_back(Test_->streamId_preview);
149 Test_->streamIds.push_back(Test_->streamId_capture);
150 Test_->StopStream(Test_->captureIds, Test_->streamIds);
151 Test_->consumerMap_.clear();
152 …std::cout << "==========[test log]check Capture: Next, switch to preview + video." << Test_->rc <<…
154 Test_->intents = {Camera::PREVIEW, Camera::VIDEO};
155 Test_->StartStream(Test_->intents);
157 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
159 Test_->StartCapture(Test_->streamId_video, Test_->captureId_video, false, true);
161 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_video};
162 Test_->streamIds.push_back(Test_->streamId_preview);
163 Test_->streamIds.push_back(Test_->streamId_video);
164 Test_->StopStream(Test_->captureIds, Test_->streamIds);
178 Test_->intents = {Camera::PREVIEW, Camera::VIDEO};
179 Test_->StartStream(Test_->intents);
181 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
183 Test_->StartCapture(Test_->streamId_video, Test_->captureId_video, false, true);
187 streamInfo_capture->streamId_ = Test_->streamId_capture;
202 Test_->SaveYUV("capture", buffer->GetVirAddr(), buffer->GetSize()); in __anond7c686a80102()
206 Test_->SaveYUV("capture", addr, size); in __anond7c686a80202()
210 Test_->consumerMap_[Camera::STILL_CAPTURE] = capture_consumer;
221 Test_->rc = Test_->streamOperator->IsStreamsSupported(Camera::NORMAL, modeSetting, stre, pType);
222 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
226 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_video};
227 Test_->streamIds.push_back(Test_->streamId_preview);
228 Test_->streamIds.push_back(Test_->streamId_video);
229 Test_->StopStream(Test_->captureIds, Test_->streamIds);
243 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
244 Test_->StartStream(Test_->intents);
246 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
248 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, false);
250 Test_->captureIds = {Test_->captureId_preview};
251 Test_->streamIds.push_back(Test_->streamId_preview);
252 Test_->streamIds.push_back(Test_->streamId_capture);
253 Test_->StopStream(Test_->captureIds, Test_->streamIds);
268 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
269 Test_->StartStream(Test_->intents);
271 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
273 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, false);
275 Test_->StartCapture(Test_->streamId_capture, (Test_->captureId_capture) + 1, false, false);
277 Test_->StartCapture(Test_->streamId_capture, (Test_->captureId_capture) + 2, false, false);
279 Test_->captureIds = {Test_->captureId_preview};
280 Test_->streamIds.push_back(Test_->streamId_preview);
281 Test_->streamIds.push_back(Test_->streamId_capture);
282 Test_->StopStream(Test_->captureIds, Test_->streamIds);
295 Test_->intents = {Camera::PREVIEW};
296 Test_->StartStream(Test_->intents);
298 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
300 Test_->intents = {Camera::STILL_CAPTURE};
301 Test_->StartStream(Test_->intents);
303 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
304 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
306 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
307 Test_->streamIds.push_back(Test_->streamId_preview);
308 Test_->streamIds.push_back(Test_->streamId_capture);
309 Test_->StopStream(Test_->captureIds, Test_->streamIds);
323 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
324 Test_->StartStream(Test_->intents);
326 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
328 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
330 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
331 Test_->streamIds.push_back(Test_->streamId_preview);
332 Test_->streamIds.push_back(Test_->streamId_capture);
333 Test_->StopStream(Test_->captureIds, Test_->streamIds);
347 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
348 Test_->StartStream(Test_->intents);
350 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
355 Test_->rc = Test_->cameraDevice->UpdateSettings(meta);
356 if (Test_->rc == Camera::NO_ERROR) {
359 …std::cout << "==========[test log]check Capture: UpdateSettings fail, rc = " << Test_->rc << std::…
363 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
365 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
366 Test_->streamIds.push_back(Test_->streamId_preview);
367 Test_->streamIds.push_back(Test_->streamId_capture);
368 Test_->StopStream(Test_->captureIds, Test_->streamIds);