Home
last modified time | relevance | path

Searched refs:attrName (Results 1 – 6 of 6) sorted by relevance

/base/update/updateservice/frameworks/js/napi/base/src/
Dnapi_util.cpp28 int32_t NapiUtil::GetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t &intV… in GetInt32() argument
31 napi_status status = napi_has_named_property(env, arg, attrName.c_str(), &result); in GetInt32()
34 napi_get_named_property(env, arg, attrName.c_str(), &value); in GetInt32()
40 int32_t NapiUtil::GetBool(napi_env env, napi_value arg, const std::string &attrName, bool &value) in GetBool() argument
43 napi_status status = napi_has_named_property(env, arg, attrName.c_str(), &result); in GetBool()
46 napi_get_named_property(env, arg, attrName.c_str(), &obj); in GetBool()
52 int32_t NapiUtil::GetString(napi_env env, napi_value arg, const std::string &attrName, std::string … in GetString() argument
55 napi_status status = napi_has_named_property(env, arg, attrName.c_str(), &result); in GetString()
58 napi_get_named_property(env, arg, attrName.c_str(), &value); in GetString()
79 int32_t NapiUtil::SetString(napi_env env, napi_value arg, const std::string &attrName, const std::s… in SetString() argument
[all …]
/base/update/updateservice/frameworks/js/napi/base/include/
Dnapi_util.h61 …static int32_t GetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t &intVal…
62 static int32_t GetBool(napi_env env, napi_value arg, const std::string &attrName, bool &value);
64 …static int32_t GetString(napi_env env, napi_value arg, const std::string &attrName, std::string &s…
66 …static int32_t SetString(napi_env env, napi_value arg, const std::string &attrName, const std::str…
68 …static int32_t SetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t intValu…
69 …static int32_t SetInt64(napi_env env, napi_value arg, const std::string &attrName, int64_t intValu…
70 static int32_t SetBool(napi_env env, napi_value arg, const std::string &attrName, bool value);
/base/startup/init/services/init/lite/
Dinit_service.c54 int SetImportantValue(Service *service, const char *attrName, int value, int flag) in SetImportantValue() argument
56 UNUSED(attrName); in SetImportantValue()
/base/startup/init/services/init/standard/
Dinit_service.c71 int SetImportantValue(Service *service, const char *attrName, int value, int flag) in SetImportantValue() argument
73 UNUSED(attrName); in SetImportantValue()
/base/startup/init/services/init/
Dinit_service_manager.c314 static int GetServiceAttr(const cJSON *curArrItem, Service *curServ, const char *attrName, int flag, in GetServiceAttr() argument
315 int (*processAttr)(Service *curServ, const char *attrName, int value, int flag)) in GetServiceAttr()
317 cJSON *filedJ = cJSON_GetObjectItem(curArrItem, attrName); in GetServiceAttr()
322 "%s is null or is not a number, service name is %s", attrName, curServ->name); in GetServiceAttr()
331 return processAttr(curServ, attrName, value, flag); in GetServiceAttr()
645 int GetCritical(const cJSON *curArrItem, Service *curServ, const char *attrName, int flag) in GetCritical() argument
650 cJSON *arrItem = cJSON_GetObjectItem(curArrItem, attrName); in GetCritical()
656 return GetServiceAttr(curArrItem, curServ, attrName, flag, NULL); in GetCritical()
/base/startup/init/services/init/include/
Dinit_service.h176 int SetImportantValue(Service *curServ, const char *attrName, int value, int flag);