/base/update/updateservice/frameworks/js/napi/base/src/ |
D | napi_util.cpp | 28 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/ |
D | napi_util.h | 61 …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/ |
D | init_service.c | 54 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/ |
D | init_service.c | 71 int SetImportantValue(Service *service, const char *attrName, int value, int flag) in SetImportantValue() argument 73 UNUSED(attrName); in SetImportantValue()
|
/base/startup/init/services/init/ |
D | init_service_manager.c | 314 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/ |
D | init_service.h | 176 int SetImportantValue(Service *curServ, const char *attrName, int value, int flag);
|