Home
last modified time | relevance | path

Searched refs:DisplayErrors (Results 1 – 11 of 11) sorted by relevance

/base/powermgr/display_manager/frameworks/native/
Ddisplay_power_mgr_client.cpp47 lastError_ = DisplayErrors::ERR_CONNECTION_FAIL; in GetProxy()
52 lastError_ = DisplayErrors::ERR_CONNECTION_FAIL; in GetProxy()
59 lastError_ = DisplayErrors::ERR_CONNECTION_FAIL; in GetProxy()
229 DisplayErrors DisplayPowerMgrClient::GetError() in GetError()
231 if (lastError_ != DisplayErrors::ERR_OK) { in GetError()
232 DisplayErrors tmpError = lastError_; in GetError()
233 lastError_ = DisplayErrors::ERR_OK; in GetError()
237 RETURN_IF_WITH_RET(proxy == nullptr, DisplayErrors::ERR_CONNECTION_FAIL); in GetError()
/base/powermgr/display_manager/frameworks/napi/
Dbrightness.h61 napi_value ThrowError(napi_env& env, DisplayErrors code = DisplayErrors::ERR_OK);
76 static std::map<DisplayErrors, std::string> errorTable_;
86 DisplayErrors GetServiceError() const;
Dbrightness.cpp53 std::map<DisplayErrors, std::string> Brightness::Result::errorTable_ = {
54 {DisplayErrors::ERR_CONNECTION_FAIL, "Connecting to the service failed."},
55 {DisplayErrors::ERR_PERMISSION_DENIED, "Permission is denied" },
56 {DisplayErrors::ERR_PARAM_INVALID, "Invalid input parameter." }
85 result_.ThrowError(env_, DisplayErrors::ERR_PARAM_INVALID); in SetValue()
92 result_.ThrowError(env_, DisplayErrors::ERR_PARAM_INVALID); in SetValue()
96 DisplayErrors error = brightnessInfo_.GetServiceError(); in SetValue()
97 if (error != DisplayErrors::ERR_OK) { in SetValue()
241 auto item = errorTable_.find(static_cast<DisplayErrors>(code_)); in GetError()
259 napi_value Brightness::Result::ThrowError(napi_env& env, DisplayErrors code) in ThrowError()
[all …]
/base/powermgr/display_manager/service/zidl/include/
Ddisplay_power_mgr_proxy.h58 virtual DisplayErrors GetError() override;
62 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
/base/powermgr/display_manager/interfaces/innerkits/native/include/
Ddisplay_power_mgr_client.h55 DisplayErrors GetError();
81 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
Didisplay_power_mgr.h71 virtual DisplayErrors GetError() = 0;
/base/powermgr/display_manager/service/native/include/
Ddisplay_power_mgr_service.h63 virtual DisplayErrors GetError() override;
126 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
/base/powermgr/display_manager/utils/native/include/
Ddisplay_mgr_errors.h46 enum class DisplayErrors : int32_t { enum
/base/powermgr/display_manager/test/unittest/common/native/src/
Ddisplay_power_mgr_service_test.cpp253 DisplayErrors error = DisplayPowerMgrClient::GetInstance().GetError();
255 EXPECT_TRUE(error == DisplayErrors::ERR_OK);
/base/powermgr/display_manager/service/native/src/
Ddisplay_power_mgr_service.cpp240 lastError_ = DisplayErrors::ERR_PERMISSION_DENIED; in SetBrightness()
700 DisplayErrors DisplayPowerMgrService::GetError() in GetError()
702 DisplayErrors tmpError = lastError_; in GetError()
703 lastError_ = DisplayErrors::ERR_OK; in GetError()
/base/powermgr/display_manager/service/zidl/src/
Ddisplay_power_mgr_proxy.cpp195 lastError_ = static_cast<DisplayErrors>(error); in SetBrightness()
649 DisplayErrors DisplayPowerMgrProxy::GetError() in GetError()