Searched refs:ThermalErrors (Results 1 - 4 of 4) sorted by relevance
/base/powermgr/thermal_manager/frameworks/napi/ |
H A D | napi_errors.h | 30 NapiErrors(ThermalErrors code) : code_(code) {} in NapiErrors() 32 napi_value ThrowError(napi_env& env, ThermalErrors code = ThermalErrors::ERR_OK); 33 inline void Error(ThermalErrors code) in Error() 35 code_ = (code != ThermalErrors::ERR_OK) ? code : code_; in Error() 39 return code_ != ThermalErrors::ERR_OK; in IsError() 43 ThermalErrors code_ {ThermalErrors::ERR_OK}; 44 static std::map<ThermalErrors, std::string> errorTable_;
|
H A D | napi_errors.cpp | 21 std::map<ThermalErrors, std::string> NapiErrors::errorTable_ = { 22 {ThermalErrors::ERR_CONNECTION_FAIL, "Failed to connect to the service."}, 23 {ThermalErrors::ERR_PERMISSION_DENIED, "Permission is denied" }, 24 {ThermalErrors::ERR_PARAM_INVALID, "Invalid input parameter." } 55 napi_value NapiErrors::ThrowError(napi_env& env, ThermalErrors code) in ThrowError()
|
H A D | thermal_manager_napi.cpp | 222 return error.ThrowError(env, ThermalErrors::ERR_PARAM_INVALID); in SubscribeThermalLevel() 249 return error.ThrowError(env, ThermalErrors::ERR_PARAM_INVALID); in UnSubscribeThermalLevel()
|
/base/powermgr/thermal_manager/utils/native/include/ |
H A D | thermal_mgr_errors.h | 47 enum class ThermalErrors : int32_t { class
|
Completed in 2 milliseconds