Home
last modified time | relevance | path

Searched refs:DmErrorCode (Results 1 – 25 of 29) sorted by relevance

12

/foundation/window/window_manager/previewer/include/
Ddm_common.h108 enum class DmErrorCode : int32_t { enum
122 const std::map<DMError, DmErrorCode> DM_JS_TO_ERROR_CODE_MAP {
123 … {DMError::DM_OK, DmErrorCode::DM_OK },
124 … {DMError::DM_ERROR_INVALID_PERMISSION, DmErrorCode::DM_ERROR_NO_PERMISSION },
125 … {DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
126 … {DMError::DM_ERROR_IPC_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
127 … {DMError::DM_ERROR_REMOTE_CREATE_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
128 … {DMError::DM_ERROR_NULLPTR, DmErrorCode::DM_ERROR_INVALID_SCREEN },
129 … {DMError::DM_ERROR_INVALID_PARAM, DmErrorCode::DM_ERROR_INVALID_PARAM },
130 … {DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
[all …]
/foundation/window/window_manager/interfaces/innerkits/dm/
Ddm_common.h102 enum class DmErrorCode : int32_t { enum
116 const std::map<DMError, DmErrorCode> DM_JS_TO_ERROR_CODE_MAP {
117 … {DMError::DM_OK, DmErrorCode::DM_OK },
118 … {DMError::DM_ERROR_INVALID_PERMISSION, DmErrorCode::DM_ERROR_NO_PERMISSION },
119 … {DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
120 … {DMError::DM_ERROR_IPC_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
121 … {DMError::DM_ERROR_REMOTE_CREATE_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
122 … {DMError::DM_ERROR_NULLPTR, DmErrorCode::DM_ERROR_INVALID_SCREEN },
123 … {DMError::DM_ERROR_INVALID_PARAM, DmErrorCode::DM_ERROR_INVALID_PARAM },
124 … {DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED, DmErrorCode::DM_ERROR_SYSTEM_INNORMAL },
[all …]
Ddisplay_manager.h159 …std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayId, DmErrorCode* errorCode = nullp…
171 const Media::Size &size, int rotation, DmErrorCode* errorCode = nullptr);
/foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi/
Djs_screen_manager.cpp137 if (res != DmErrorCode::DM_OK) { in OnGetAllScreens()
145 static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN), in OnGetAllScreens()
194 DmErrorCode RegisterScreenListenerWithType(NativeEngine& engine, const std::string& type, NativeVal… in RegisterScreenListenerWithType()
198 return DmErrorCode::DM_ERROR_INVALID_CALLING; in RegisterScreenListenerWithType()
205 return DmErrorCode::DM_ERROR_INVALID_SCREEN; in RegisterScreenListenerWithType()
208 DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at( in RegisterScreenListenerWithType()
210 if (ret != DmErrorCode::DM_OK) { in RegisterScreenListenerWithType()
217 return DmErrorCode::DM_ERROR_INVALID_CALLING; in RegisterScreenListenerWithType()
221 return DmErrorCode::DM_OK; in RegisterScreenListenerWithType()
224 DmErrorCode UnregisterAllScreenListenerWithType(const std::string& type) in UnregisterAllScreenListenerWithType()
[all …]
Djs_screen.cpp89 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetOrientation()
94 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetOrientation()
100 DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(screen_->SetOrientation(orientation)); in OnSetOrientation()
101 if (ret == DmErrorCode::DM_OK) { in OnSetOrientation()
148 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenActiveMode()
154 DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(screen_->SetScreenActiveMode(modeId)); in OnSetScreenActiveMode()
155 if (ret == DmErrorCode::DM_OK) { in OnSetScreenActiveMode()
198 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetDensityDpi()
204 DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(screen_->SetDensityDpi(densityDpi)); in OnSetDensityDpi()
205 if (ret == DmErrorCode::DM_OK) { in OnSetDensityDpi()
/foundation/window/window_manager/interfaces/kits/napi/display_runtime/
Djs_display_manager.cpp170 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN))); in OnGetDefaultDisplaySync()
223 static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN), in OnGetAllDisplays()
355 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnRegisterDisplayManagerCallback()
360 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnRegisterDisplayManagerCallback()
367 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnRegisterDisplayManagerCallback()
372 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnRegisterDisplayManagerCallback()
376DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(RegisterDisplayListenerWithType(engine, cbType, value… in OnRegisterDisplayManagerCallback()
377 if (ret != DmErrorCode::DM_OK) { in OnRegisterDisplayManagerCallback()
379 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnRegisterDisplayManagerCallback()
390 … engine.Throw(CreateJsError(engine, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnUnregisterDisplayManagerCallback()
[all …]
Djs_display.cpp95 …static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN), "JsDisplay::OnGetCutoutInfo failed.")); in OnGetCutoutInfo()
/foundation/window/window_manager/interfaces/kits/napi/screenshot/
Dnative_screenshot_module.cpp47 DmErrorCode wret;
181 param->wret = DmErrorCode::DM_ERROR_INVALID_PARAM; in AsyncGetScreenshot()
193 if (param->image == nullptr && param->wret == DmErrorCode::DM_OK) { in AsyncGetScreenshot()
195 param->wret = DmErrorCode::DM_ERROR_INVALID_SCREEN; in AsyncGetScreenshot()
206 if (param->wret == DmErrorCode::DM_ERROR_INVALID_PARAM) { in Resolve()
208 napi_create_int32(env, (int32_t)DmErrorCode::DM_ERROR_INVALID_PARAM, &code); in Resolve()
212 } else if (param->wret != DmErrorCode::DM_OK) { in Resolve()
310 (int32_t)DmErrorCode::DM_ERROR_NO_PERMISSION, "DM_ERROR_NO_PERMISSION"); in ScreenshotModuleInit()
312 (int32_t)DmErrorCode::DM_ERROR_INVALID_PARAM, "DM_ERROR_INVALID_PARAM"); in ScreenshotModuleInit()
314 (int32_t)DmErrorCode::DM_ERROR_DEVICE_NOT_SUPPORT, "DM_ERROR_DEVICE_NOT_SUPPORT"); in ScreenshotModuleInit()
[all …]
/foundation/window/window_manager/interfaces/kits/napi/common/
Ddm_napi_common.cpp65 void SetErrorInfo(napi_env env, Rosen::DmErrorCode wret, const std::string& errMessage, napi_value … in SetErrorInfo()
81 void ProcessPromise(napi_env env, Rosen::DmErrorCode wret, napi_deferred deferred, napi_value resul… in ProcessPromise()
88 if (wret == Rosen::DmErrorCode::DM_OK) { in ProcessPromise()
Ddm_napi_common.h61 void SetErrorInfo(napi_env env, Rosen::DmErrorCode wret, const std::string& errMessage,
63 void ProcessPromise(napi_env env, Rosen::DmErrorCode wret, napi_deferred deferred,
122 if (info->param->wret == Rosen::DmErrorCode::DM_OK) { in AsyncProcess()
/foundation/barrierfree/accessibility/services/test/mock/
Dmock_display_manager.cpp65 std::shared_ptr<Media::PixelMap> DisplayManager::GetScreenshot(DisplayId displayId, DmErrorCode* er… in GetScreenshot()
71 const Media::Rect& rect, const Media::Size& size, int rotation, DmErrorCode* errorCode) in GetScreenshot()
/foundation/window/window_manager/dmserver/include/
Ddisplay_manager_service_inner.h44 …std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode = …
Ddisplay_manager_proxy.h45 DmErrorCode* errorCode = nullptr) override;
Ddisplay_manager_interface.h105 DmErrorCode* errorCode = nullptr) = 0;
Ddisplay_manager_service.h64 …std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) o…
/foundation/window/window_manager/window_scene/test/unittest/
Dscreen_session_manager_test.cpp112 DmErrorCode* errorCode = nullptr;
/foundation/window/window_manager/test/common/mock/
Dmock_display_manager_adapter.h33 …GetDisplaySnapshot, std::shared_ptr<Media::PixelMap>(DisplayId displayId, DmErrorCode* errorCode));
/foundation/window/window_manager/dmserver/src/
Ddisplay_manager_service_inner.cpp122 DmErrorCode* errorCode) const in GetDisplaySnapshot()
Ddisplay_manager_stub.cpp114 DmErrorCode errorCode = DmErrorCode::DM_OK; in OnRemoteRequest()
Ddisplay_manager_proxy.cpp264 …dia::PixelMap> DisplayManagerProxy::GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) in GetDisplaySnapshot()
292 DmErrorCode replyErreoCode = static_cast<DmErrorCode>(reply.ReadInt32()); in GetDisplaySnapshot()
Ddisplay_manager_service.cpp297 …a::PixelMap> DisplayManagerService::GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) in GetDisplaySnapshot()
308 *errorCode = DmErrorCode::DM_ERROR_NO_PERMISSION; in GetDisplaySnapshot()
/foundation/window/window_manager/window_scene/session_manager/include/zidl/
Dscreen_session_manager_proxy.h71 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…
Dscreen_session_manager_interface.h43 DmErrorCode* errorCode = nullptr) override { return nullptr; }
/foundation/window/window_manager/dm/include/
Ddisplay_manager_adapter.h62 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…
/foundation/window/window_manager/window_scene/session_manager/include/
Dscreen_session_manager.h93 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…

12