• Home
  • Raw
  • Download

Lines Matching refs:Test_

27     Test_ = std::make_shared<OHOS::Camera::Test>();  in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
43 if (Test_->cameraDevice == nullptr) {
46 Test_->service->GetCameraIds(Test_->cameraIds);
47 Test_->CreateDeviceCallback();
50 Test_->rc =
51Test_->service->OpenCamera(Test_->cameraIds.front(), Test_->deviceCallback, Test_->cameraDevice);
52 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
53 EXPECT_EQ(true, Test_->cameraDevice != nullptr);
54 if (Test_->rc != Camera::NO_ERROR) {
78 Test_->Open();
80 Test_->intents = {Camera::PREVIEW};
81 Test_->StartStream(Test_->intents);
83 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
85 Test_->captureIds = {Test_->captureId_preview};
86 Test_->streamIds = {Test_->streamId_preview};
87 Test_->StopStream(Test_->captureIds, Test_->streamIds);
88 Test_->StopConsumer(Test_->intents);
90 Test_->Close();
104 Test_->Open();
108 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
109 Test_->StartStream(Test_->intents);
111 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
113 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, false);
115 Test_->captureIds = {Test_->captureId_preview};
116 Test_->streamIds.push_back(Test_->streamId_preview);
117 Test_->streamIds.push_back(Test_->streamId_capture);
118 Test_->StopStream(Test_->captureIds, Test_->streamIds);
119 Test_->StopConsumer(Test_->intents);
121 Test_->Close();
135 Test_->Open();
139 Test_->intents = {Camera::PREVIEW};
140 Test_->StartStream(Test_->intents);
142 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
144 Test_->intents = {Camera::STILL_CAPTURE};
145 Test_->StartStream(Test_->intents);
147 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
148 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
150 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
151 Test_->streamIds.push_back(Test_->streamId_preview);
152 Test_->streamIds.push_back(Test_->streamId_capture);
153 Test_->StopStream(Test_->captureIds, Test_->streamIds);
154 Test_->StopConsumer({Camera::PREVIEW, Camera::STILL_CAPTURE});
156 Test_->Close();
169 Test_->Open();
174 Test_->intents = {Camera::PREVIEW, Camera::VIDEO};
175 Test_->StartStream(Test_->intents);
177 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
179 Test_->StartCapture(Test_->streamId_video, Test_->captureId_video, false, true);
181 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_video};
182 Test_->streamIds.push_back(Test_->streamId_preview);
183 Test_->streamIds.push_back(Test_->streamId_video);
184 Test_->StopStream(Test_->captureIds, Test_->streamIds);
185 Test_->StopConsumer(Test_->intents);
187 Test_->Close();
201 Test_->Open();
204 Test_->intents = {Camera::PREVIEW};
205 Test_->StartStream(Test_->intents);
207 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
209 Test_->intents = {Camera::VIDEO};
210 Test_->StartStream(Test_->intents);
211 Test_->StopConsumer(Test_->intents);
213 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
214 Test_->StartCapture(Test_->streamId_video, Test_->captureId_video, false, true);
216 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_video};
217 Test_->streamIds.push_back(Test_->streamId_preview);
218 Test_->streamIds.push_back(Test_->streamId_video);
219 Test_->intents = {Camera::PREVIEW};
220 Test_->StopStream(Test_->captureIds, Test_->streamIds);
221 Test_->StopConsumer(Test_->intents);
222 Test_->Close();
235 Test_->Open();
255 Test_->rc = Test_->cameraDevice->UpdateSettings(meta);
256 if (Test_->rc == Camera::NO_ERROR) {
260 std::cout <<"times, RetCode is " << Test_->rc << std::endl;
265 Test_->Close();
277 Test_->GetCameraAbility();
282 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), status);
283 if (Test_->rc != Camera::NO_ERROR) {
285 std::cout <<"times, RetCode is " << Test_->rc << std::endl;
288 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), status);
289 if (Test_->rc != Camera::NO_ERROR) {
291 std::cout<<"times, RetCode is " << Test_->rc << std::endl;
295 Test_->Close();