Home
last modified time | relevance | path

Searched refs:napiCode (Results 1 – 7 of 7) sorted by relevance

/base/powermgr/battery_statistics/frameworks/js/napi/src/
Dnapi_error.cpp46 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/
Dnapi_errors.cpp44 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/
Dnapi_errors.cpp44 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/
Dbrightness.cpp249 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/
Dnapi_utils.cpp98 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/
Dnapi_utils.h146 static napi_status ThrowError(napi_env env, const char *napiMessage, int32_t napiCode);
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp854 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()