/foundation/window/window_manager/previewer/include/ |
D | dm_common.h | 108 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/ |
D | dm_common.h | 102 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 …]
|
D | display_manager.h | 159 …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/ |
D | js_screen_manager.cpp | 137 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 …]
|
D | js_screen.cpp | 89 … 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/ |
D | js_display_manager.cpp | 170 … 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() 376 …DmErrorCode 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 …]
|
D | js_display.cpp | 95 …static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN), "JsDisplay::OnGetCutoutInfo failed.")); in OnGetCutoutInfo()
|
/foundation/window/window_manager/interfaces/kits/napi/screenshot/ |
D | native_screenshot_module.cpp | 47 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/ |
D | dm_napi_common.cpp | 65 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()
|
D | dm_napi_common.h | 61 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/ |
D | mock_display_manager.cpp | 65 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/ |
D | display_manager_service_inner.h | 44 …std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode = …
|
D | display_manager_proxy.h | 45 DmErrorCode* errorCode = nullptr) override;
|
D | display_manager_interface.h | 105 DmErrorCode* errorCode = nullptr) = 0;
|
D | display_manager_service.h | 64 …std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) o…
|
/foundation/window/window_manager/window_scene/test/unittest/ |
D | screen_session_manager_test.cpp | 112 DmErrorCode* errorCode = nullptr;
|
/foundation/window/window_manager/test/common/mock/ |
D | mock_display_manager_adapter.h | 33 …GetDisplaySnapshot, std::shared_ptr<Media::PixelMap>(DisplayId displayId, DmErrorCode* errorCode));
|
/foundation/window/window_manager/dmserver/src/ |
D | display_manager_service_inner.cpp | 122 DmErrorCode* errorCode) const in GetDisplaySnapshot()
|
D | display_manager_stub.cpp | 114 DmErrorCode errorCode = DmErrorCode::DM_OK; in OnRemoteRequest()
|
D | display_manager_proxy.cpp | 264 …dia::PixelMap> DisplayManagerProxy::GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) in GetDisplaySnapshot() 292 DmErrorCode replyErreoCode = static_cast<DmErrorCode>(reply.ReadInt32()); in GetDisplaySnapshot()
|
D | display_manager_service.cpp | 297 …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/ |
D | screen_session_manager_proxy.h | 71 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…
|
D | screen_session_manager_interface.h | 43 DmErrorCode* errorCode = nullptr) override { return nullptr; }
|
/foundation/window/window_manager/dm/include/ |
D | display_manager_adapter.h | 62 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…
|
/foundation/window/window_manager/window_scene/session_manager/include/ |
D | screen_session_manager.h | 93 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro…
|