/foundation/multimedia/camera_framework/test/fuzztest/streamrepeatstub_fuzzer/ |
H A D | stream_repeat_stub_fuzzer.cpp | 63 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in TestHandleAddDeferredSurface() local 64 CHECK_ERROR_RETURN(photoSurface == nullptr);
in TestHandleAddDeferredSurface() 65 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in TestHandleAddDeferredSurface() 81 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in TestHandleAttachMetaSurface() local 82 CHECK_ERROR_RETURN(photoSurface == nullptr);
in TestHandleAttachMetaSurface() 83 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in TestHandleAttachMetaSurface() 99 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in TestHandleSetCallback() local 100 CHECK_ERROR_RETURN(photoSurface == nullptr);
in TestHandleSetCallback() 101 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in TestHandleSetCallback() 134 sptr<IConsumerSurface> photoSurface in RunCase() local [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/photooutput_fuzzer/ |
H A D | photo_output_fuzzer.cpp | 77 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in Test() local 78 CHECK_AND_RETURN_LOG(photoSurface, "PhotoOutputFuzzer: create photoSurface Error");
in Test() 79 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in Test() 96 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in TestOutput() local 97 CHECK_AND_RETURN_LOG(photoSurface, "PhotoOutputFuzzer: Create photoSurface Error");
in TestOutput() 98 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in TestOutput()
|
/foundation/multimedia/camera_framework/test/fuzztest/streamcapturestub_fuzzer/ |
H A D | stream_capture_stub_fuzzer.cpp | 96 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in Test() local 97 CHECK_AND_RETURN_LOG(photoSurface, "StreamCaptureStubFuzzer: Create photoSurface Error");
in Test() 98 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in Test() 169 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in Test_HandleSetThumbnail() local 170 CHECK_AND_RETURN_LOG(photoSurface, "StreamCaptureStubFuzzer: Create photoSurface Error");
in Test_HandleSetThumbnail() 171 sptr<IRemoteObject> producer = photoSurface->GetProducer()->AsObject();
in Test_HandleSetThumbnail() 181 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in Test_HandleSetBufferProducerInfo() local 182 CHECK_AND_RETURN_LOG(photoSurface, "StreamCaptureStubFuzze in Test_HandleSetBufferProducerInfo() [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/streammetadatastub_fuzzer/ |
H A D | stream_metadata_stub_fuzzer.cpp | 94 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in Test() local 95 CHECK_AND_RETURN_LOG(photoSurface, "StreamMetadataStubFuzzer: Create photoSurface Error");
in Test() 96 sptr<IBufferProducer> producer = photoSurface->GetProducer();
in Test()
|
/foundation/multimedia/camera_framework/test/fuzztest/streamcapture_fuzzer/ |
H A D | stream_capture_fuzzer.cpp | 90 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in StreamCaptureFuzzTest() local 91 CHECK_AND_RETURN_LOG(photoSurface, "StreamCaptureFuzzer: Create photoSurface Error"); in StreamCaptureFuzzTest() 92 sptr<IBufferProducer> producer = photoSurface->GetProducer(); in StreamCaptureFuzzTest()
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
H A D | camera_capture.cpp | 206 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in main() local 207 if (photoSurface == nullptr) { in main() 214 photoFd, photoSurface); in main() 218 photoSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)captureListener); in main() 219 sptr<IBufferProducer> bp = photoSurface->GetProducer(); in main()
|
H A D | camera_capture_mode.cpp | 416 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in main() local 417 if (photoSurface == nullptr) { in main() 440 photoFd, photoSurface); in main() 444 photoSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)captureListener); in main() 445 sptr<IBufferProducer> bp = photoSurface->GetProducer(); in main()
|
/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/ |
H A D | photo_listener_impl.h | 29 explicit PhotoBufferProcessor(sptr<Surface> photoSurface) : photoSurface_(photoSurface) {} in PhotoBufferProcessor() argument
|
H A D | photo_output_impl.cpp | 289 void Camera_PhotoOutput::SetPhotoSurface(OHOS::sptr<OHOS::Surface> &photoSurface) in SetPhotoSurface() argument 291 photoSurface_ = photoSurface; in SetPhotoSurface()
|
H A D | photo_output_impl.h | 258 void SetPhotoSurface(OHOS::sptr<OHOS::Surface> &photoSurface);
|
/foundation/multimedia/camera_framework/test/fuzztest/cloudenhancesession_fuzzer/ |
H A D | cloud_enhance_session_fuzzer.cpp | 98 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in GetCaptureOutput() local 99 CHECK_AND_RETURN_RET_LOG(photoSurface, nullptr, "CloudEnhanceSessionFuzzer: create photoSurface Error"); in GetCaptureOutput() 100 surface = photoSurface->GetProducer(); in GetCaptureOutput()
|
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/output/ |
H A D | photo_output_napi.h | 112 explicit PhotoBufferProcessor(sptr<Surface> photoSurface) : photoSurface_(photoSurface) {} in PhotoBufferProcessor() argument 137 explicit PhotoListener(napi_env env, const sptr<Surface> photoSurface, wptr<PhotoOutput> photoOutput); 147 void UpdateJSCallback(sptr<Surface> photoSurface) const; 148 void UpdateJSCallbackAsync(sptr<Surface> photoSurface) const; 266 PhotoListenerInfo(sptr<Surface> photoSurface, const PhotoListener* listener) in PhotoListenerInfo() 267 : photoSurface_(photoSurface), listener_(listener) in PhotoListenerInfo()
|
/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/ |
H A D | dcamera_client_demo.cpp | 158 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in InitPhotoOutput() local 159 sptr<IBufferConsumerListener> photoListener = new DemoDCameraPhotoSurfaceListener(photoSurface); in InitPhotoOutput() 160 photoSurface->RegisterConsumerListener(photoListener); in InitPhotoOutput() 164 sptr<IBufferProducer> photoProducer = photoSurface->GetProducer(); in InitPhotoOutput()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/test/sample/ |
H A D | main.cpp | 155 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in InitPhotoOutput() local 156 sptr<IBufferConsumerListener> photoListener(new DemoDCameraPhotoSurfaceListener(photoSurface)); in InitPhotoOutput() 157 photoSurface->RegisterConsumerListener(photoListener); in InitPhotoOutput() 161 sptr<IBufferProducer> photoProducer = photoSurface->GetProducer(); in InitPhotoOutput()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/ |
H A D | photo_output_napi.cpp | 176 PhotoListener::PhotoListener(napi_env env, const sptr<Surface> photoSurface, wptr<PhotoOutput> photoOutput) in PhotoListener() argument 177 : ListenerBase(env), photoSurface_(photoSurface), photoOutput_(photoOutput) in PhotoListener() 179 if (bufferProcessor_ == nullptr && photoSurface != nullptr) { in PhotoListener() 180 bufferProcessor_ = std::make_shared<PhotoBufferProcessor>(photoSurface); in PhotoListener() 927 void PhotoListener::UpdateJSCallback(sptr<Surface> photoSurface) const in UpdateJSCallback() 935 SurfaceError surfaceRet = photoSurface->AcquireBuffer(surfaceBuffer, fence, timestamp, damage); in UpdateJSCallback() 956 void PhotoListener::UpdateJSCallbackAsync(sptr<Surface> photoSurface) const in UpdateJSCallbackAsync() 972 std::unique_ptr<PhotoListenerInfo> callbackInfo = std::make_unique<PhotoListenerInfo>(photoSurface, this); in UpdateJSCallbackAsync() 1697 sptr<Surface> photoSurface; in CreatePhotoOutput() local 1700 photoSurface in CreatePhotoOutput() 1749 sptr<Surface> photoSurface; CreatePhotoOutput() local [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/ |
H A D | capture_session_fuzzer.cpp | 122 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in GetCaptureOutput() local 123 CHECK_AND_RETURN_RET_LOG(photoSurface, nullptr, "CaptureSessionFuzzer: create photoSurface Error");
in GetCaptureOutput() 124 surface = photoSurface->GetProducer();
in GetCaptureOutput()
|
/foundation/multimedia/camera_framework/test/fuzztest/timelapsephotosession_fuzzer/ |
H A D | time_lapse_photo_session_fuzzer.cpp | 66 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create();
in AddOutput() local 67 CHECK_AND_RETURN_LOG(photoSurface, "TimeLapsePhotoSessionFuzzer: photoSurface Error");
in AddOutput() 68 sptr<IBufferProducer> surface = photoSurface->GetProducer();
in AddOutput()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/ |
H A D | camera_framework_unittest.cpp | 7295 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in TestPhotoSessionPreconfig() local 7296 ASSERT_NE(photoSurface, nullptr); in TestPhotoSessionPreconfig() 7297 auto photoProducer = photoSurface->GetProducer(); in TestPhotoSessionPreconfig() 7397 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in TestVideoSessionPreconfig() local 7398 ASSERT_NE(photoSurface, nullptr); in TestVideoSessionPreconfig() 7399 auto photoProducer = photoSurface->GetProducer(); in TestVideoSessionPreconfig()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/ |
H A D | camera_framework_moduletest.cpp | 778 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in CreateHighResPhotoOutput() local 782 sptr<IBufferProducer> surfaceProducerOfPhoto = photoSurface->GetProducer(); in CreateHighResPhotoOutput() 11378 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in HWTEST_F() local 11379 sptr<IBufferProducer> photoProducer = photoSurface->GetProducer(); in HWTEST_F() 11443 sptr<IConsumerSurface> photoSurface = IConsumerSurface::Create(); in HWTEST_F() local 11444 sptr<IBufferProducer> photoProducer = photoSurface->GetProducer(); in HWTEST_F()
|