Searched refs:DisplayErrors (Results 1 – 11 of 11) sorted by relevance
/base/powermgr/display_manager/frameworks/native/ |
D | display_power_mgr_client.cpp | 47 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/ |
D | brightness.h | 61 napi_value ThrowError(napi_env& env, DisplayErrors code = DisplayErrors::ERR_OK); 76 static std::map<DisplayErrors, std::string> errorTable_; 86 DisplayErrors GetServiceError() const;
|
D | brightness.cpp | 53 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/ |
D | display_power_mgr_proxy.h | 58 virtual DisplayErrors GetError() override; 62 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
|
/base/powermgr/display_manager/interfaces/innerkits/native/include/ |
D | display_power_mgr_client.h | 55 DisplayErrors GetError(); 81 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
|
D | idisplay_power_mgr.h | 71 virtual DisplayErrors GetError() = 0;
|
/base/powermgr/display_manager/service/native/include/ |
D | display_power_mgr_service.h | 63 virtual DisplayErrors GetError() override; 126 DisplayErrors lastError_ {DisplayErrors::ERR_OK};
|
/base/powermgr/display_manager/utils/native/include/ |
D | display_mgr_errors.h | 46 enum class DisplayErrors : int32_t { enum
|
/base/powermgr/display_manager/test/unittest/common/native/src/ |
D | display_power_mgr_service_test.cpp | 253 DisplayErrors error = DisplayPowerMgrClient::GetInstance().GetError(); 255 EXPECT_TRUE(error == DisplayErrors::ERR_OK);
|
/base/powermgr/display_manager/service/native/src/ |
D | display_power_mgr_service.cpp | 240 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/ |
D | display_power_mgr_proxy.cpp | 195 lastError_ = static_cast<DisplayErrors>(error); in SetBrightness() 649 DisplayErrors DisplayPowerMgrProxy::GetError() in GetError()
|