Home
last modified time | relevance | path

Searched refs:propName (Results 1 – 14 of 14) sorted by relevance

/base/time/time_service/framework/js/napi/system_timer/src/
Dtimer_type.cpp22 …d SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
26 napi_set_named_property(env, dstObj, propName, prop); in SetNamedPropertyByInteger()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_val.cpp176 bool NVal::HasProp(string propName) const in HasProp()
182 napi_status status = napi_has_named_property(env_, val_, propName.c_str(), &res); in HasProp()
186 NVal NVal::GetProp(string propName) const in GetProp()
188 if (!HasProp(propName)) { in GetProp()
192 napi_status status = napi_get_named_property(env_, val_, propName.c_str(), &prop); in GetProp()
211 bool NVal::AddProp(string propName, napi_value val) const in AddProp() argument
213 if (!TypeIs(napi_valuetype::napi_object) || HasProp(propName)) { in AddProp()
217 napi_status status = napi_set_named_property(env_, val_, propName.c_str(), val); in AddProp()
Dn_val.h89 bool HasProp(std::string propName) const;
91 NVal GetProp(std::string propName) const;
95 bool AddProp(std::string propName, napi_value nVal) const;
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_watch.cpp72 for (auto& propName : COND_PROPS) { in IsValidCondition() local
73 napi_value propValue = NapiUtil::GetProperty(env, cond, propName); in IsValidCondition()
78 … NapiUtil::ThrowError(env, NapiError::ERR_PARAM, NapiUtil::CreateErrMsg(propName, "number")); in IsValidCondition()
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_srv_config_parser.cpp554 std::string propName = reinterpret_cast<const char*>(actionProp->name); in ParsePolicyActionInfo() local
559 propName.c_str(), propValue.c_str()); in ParsePolicyActionInfo()
560 policyAction.actionPropMap.emplace(std::pair(propName, propValue)); in ParsePolicyActionInfo()
563 THERMAL_HILOGE(COMP_SVC, "prop [%{public}s] value is null", propName.c_str()); in ParsePolicyActionInfo()
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_config_file_parser.cpp492 std::string propName = reinterpret_cast<const char*>(actionProp->name); in ParsePolicySubnode() local
497 propName.c_str(), propValue.c_str()); in ParsePolicySubnode()
498 policyAction.actionPropMap.emplace(std::pair(propName, propValue)); in ParsePolicySubnode()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dconstant.cpp22 …d SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
26 napi_set_named_property(env, dstObj, propName, prop); in SetNamedPropertyByInteger()
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_common.h252 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
254 void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName
/base/notification/common_event_service/interfaces/kits/napi/support/src/
Dsupport.cpp21 …medPropertyByStr(napi_env env, napi_value dstObj, const std::string &objName, const char *propName) in SetNamedPropertyByStr() argument
25 napi_set_named_property(env, dstObj, propName, prop); in SetNamedPropertyByStr()
/base/security/access_token/interfaces/kits/accesstoken/napi/include/
Dnapi_atmanager.h217 …id SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp388 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName) in SetNamedProperty() argument
392 napi_set_named_property(env, dstObj, propName, prop); in SetNamedProperty()
395 void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName) in SetNamedProperty() argument
399 napi_set_named_property(env, dstObj, propName, prop); in SetNamedProperty()
/base/account/os_account/interfaces/kits/napi/osaccount/include/
Dnapi_os_account.h348 void SetEnumProperty(napi_env env, napi_value dstObj, const int objValue, const char *propName);
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp189 void SetEnumProperty(napi_env env, napi_value dstObj, const int objValue, const char *propName) in SetEnumProperty() argument
193 napi_set_named_property(env, dstObj, propName, prop); in SetEnumProperty()
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp351 …er::SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName) in SetNamedProperty() argument
355 napi_set_named_property(env, dstObj, propName, prop); in SetNamedProperty()