Home
last modified time | relevance | path

Searched refs:captureOption (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/window/window_manager/interfaces/innerkits/dm/
H A Ddisplay_manager.h720 std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
730 std::shared_ptr<Media::PixelMap> GetScreenshotWithOption(const CaptureOption& captureOption,
743 std::shared_ptr<Media::PixelMap> GetScreenshotWithOption(const CaptureOption& captureOption,
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-screenshot.md140 let captureOption: screenshot.CaptureOption = {
144 let promise = screenshot.capture(captureOption);
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/screenshot/
H A Dnative_screenshot_module.cpp346 CaptureOption captureOption; in AsyncGetScreenCapture() local
347 captureOption.displayId_ = param->option.displayId; in AsyncGetScreenCapture()
348 captureOption.isNeedNotify_ = param->option.isNeedNotify; in AsyncGetScreenCapture()
349 GNAPI_LOG("capture option isNeedNotify=%{public}d", captureOption.isNeedNotify_); in AsyncGetScreenCapture()
350 param->image = DisplayManager::GetInstance().GetScreenCapture(captureOption, &param->wret); in AsyncGetScreenCapture()
/ohos5.0/foundation/window/window_manager/dm/src/
H A Ddisplay_manager_adapter.cpp821 …ed_ptr<Media::PixelMap> DisplayManagerAdapter::GetScreenCapture(const CaptureOption& captureOption, in GetScreenCapture() argument
825 return displayManagerServiceProxy_->GetScreenCapture(captureOption, errorCode); in GetScreenCapture()
838 …::PixelMap> DisplayManagerAdapter::GetDisplaySnapshotWithOption(const CaptureOption& captureOption, in GetDisplaySnapshotWithOption() argument
842 return displayManagerServiceProxy_->GetDisplaySnapshotWithOption(captureOption, errorCode); in GetDisplaySnapshotWithOption()
H A Ddisplay_manager.cpp2162 …d::shared_ptr<Media::PixelMap> DisplayManager::GetScreenCapture(const CaptureOption& captureOption, in GetScreenCapture() argument
2166 SingletonContainer::Get<DisplayManagerAdapter>().GetScreenCapture(captureOption, errorCode); in GetScreenCapture()
2174 …ed_ptr<Media::PixelMap> DisplayManager::GetScreenshotWithOption(const CaptureOption& captureOption, in GetScreenshotWithOption() argument
2177 if (captureOption.displayId_ == DISPLAY_ID_INVALID) { in GetScreenshotWithOption()
2182 …SingletonContainer::Get<DisplayManagerAdapter>().GetDisplaySnapshotWithOption(captureOption, error… in GetScreenshotWithOption()
2190 …ed_ptr<Media::PixelMap> DisplayManager::GetScreenshotWithOption(const CaptureOption& captureOption, in GetScreenshotWithOption() argument
2193 std::shared_ptr<Media::PixelMap> screenShot = GetScreenshotWithOption(captureOption, errorCode); in GetScreenshotWithOption()
/ohos5.0/foundation/window/window_manager/dm/include/
H A Ddisplay_manager_adapter.h100 virtual std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
102 …l std::shared_ptr<Media::PixelMap> GetDisplaySnapshotWithOption(const CaptureOption& captureOption,
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-screenshot.md142 let captureOption: screenshot.CaptureOption = {
146 let promise = screenshot.capture(captureOption);
/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_interface.h218 virtual std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
229 …l std::shared_ptr<Media::PixelMap> GetDisplaySnapshotWithOption(const CaptureOption& captureOption,
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/zidl/
H A Dscreen_session_manager_proxy.h180 std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
182 … std::shared_ptr<Media::PixelMap> GetDisplaySnapshotWithOption(const CaptureOption& captureOption,
H A Dscreen_session_manager_interface.h196 virtual std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/zidl/
H A Dscreen_session_manager_proxy.cpp3105 …tr<Media::PixelMap> ScreenSessionManagerProxy::GetScreenCapture(const CaptureOption& captureOption, in GetScreenCapture() argument
3120 if (!data.WriteUint64(captureOption.displayId_) || in GetScreenCapture()
3121 … !data.WriteBool(captureOption.isNeedNotify_) || !data.WriteBool(captureOption.isNeedPointer_)) { in GetScreenCapture()
3170 const CaptureOption& captureOption, DmErrorCode* errorCode) in GetDisplaySnapshotWithOption() argument
3186 if (!data.WriteUint64(captureOption.displayId_) || in GetDisplaySnapshotWithOption()
3187 … !data.WriteBool(captureOption.isNeedNotify_) || !data.WriteBool(captureOption.isNeedPointer_)) { in GetDisplaySnapshotWithOption()
/ohos5.0/foundation/window/window_manager/dm/test/unittest/
H A Ddisplay_manager_test.cpp1165 CaptureOption captureOption; variable
1168 captureOption.displayId_ = display->GetId();
1170 …hared_ptr<Media::PixelMap> pixelMap = DisplayManager::GetInstance().GetScreenCapture(captureOption,
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/
H A Dscreen_session_manager.h312 std::shared_ptr<Media::PixelMap> GetScreenCapture(const CaptureOption& captureOption,
316 … std::shared_ptr<Media::PixelMap> GetDisplaySnapshotWithOption(const CaptureOption& captureOption,
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscreen_session_manager.cpp5727 …red_ptr<Media::PixelMap> ScreenSessionManager::GetScreenCapture(const CaptureOption& captureOption, in GetScreenCapture() argument
5751 if (captureOption.displayId_ == DISPLAY_ID_INVALID) { in GetScreenCapture()
5756 …HITRACE_METER_FMT(HITRACE_TAG_WINDOW_MANAGER, "ssm:GetScreenCapture(%" PRIu64")", captureOption.di… in GetScreenCapture()
5757 auto res = GetScreenSnapshot(captureOption.displayId_, false); in GetScreenCapture()
5765 NotifyScreenshot(captureOption.displayId_); in GetScreenCapture()