Searched refs:napiCode (Results 1 – 7 of 7) sorted by relevance
/base/powermgr/battery_statistics/frameworks/js/napi/src/ |
D | napi_error.cpp | 46 napi_value napiCode; in GetNapiError() local 47 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(code_), &napiCode)); in GetNapiError() 49 napi_set_named_property(env, napiError, "code", napiCode); in GetNapiError()
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
D | napi_errors.cpp | 44 napi_value napiCode; in GetNapiError() local 45 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(code_), &napiCode)); in GetNapiError() 47 napi_set_named_property(env, napiError, "code", napiCode); in GetNapiError()
|
/base/powermgr/thermal_manager/frameworks/napi/ |
D | napi_errors.cpp | 44 napi_value napiCode; in GetNapiError() local 45 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(code_), &napiCode)); in GetNapiError() 47 napi_set_named_property(env, napiError, "code", napiCode); in GetNapiError()
|
/base/powermgr/display_manager/frameworks/napi/ |
D | brightness.cpp | 249 napi_value napiCode; in GetError() local 250 NAPI_CALL(env, napi_create_int32(env, code_, &napiCode)); in GetError() 252 napi_set_named_property(env, napiError, "code", napiCode); in GetError()
|
/base/time/time_service/framework/js/napi/common/src/ |
D | napi_utils.cpp | 98 napi_status NapiUtils::ThrowError(napi_env env, const char *napiMessage, int32_t napiCode) in ThrowError() argument 105 napi_create_int32(env, napiCode, &code); in ThrowError()
|
/base/time/time_service/framework/js/napi/common/include/ |
D | napi_utils.h | 146 static napi_status ThrowError(napi_env env, const char *napiMessage, int32_t napiCode);
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_util.cpp | 854 napi_value napiCode = nullptr; in CreateHiSysEventInfoJsObject() local 855 NapiHiSysEventUtil::CreateStringValue(env, std::to_string(code), napiCode); in CreateHiSysEventInfoJsObject() 858 if (napi_create_error(env, napiCode, napiStr, &err) != napi_ok) { in CreateHiSysEventInfoJsObject()
|