Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/base/miscservices/inputmethod/interfaces/kits/js/napi/inputmethodengine/src/
Djs_input_method_engine_utils.cpp34 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateInputMethodEngine() local
35 if (object == nullptr) { in CreateInputMethodEngine()
41object->SetNativePointer(jsInputMethodEngine.release(), JsInputMethodEngine::Finalizer, nullptr); in CreateInputMethodEngine()
43 BindNativeFunction(engine, *object, "on", JsInputMethodEngine::RegisterCallback); in CreateInputMethodEngine()
44 BindNativeFunction(engine, *object, "off", JsInputMethodEngine::UnRegisterCallback); in CreateInputMethodEngine()
52 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateKeyboardController() local
53 if (object == nullptr) { in CreateKeyboardController()
59object->SetNativePointer(jsKeyboardController.release(), JsKeyboardController::Finalizer, nullptr); in CreateKeyboardController()
61 … BindNativeFunction(engine, *object, "hideKeyboard", JsKeyboardController::HideKeyboardSelf); in CreateKeyboardController()
70 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateTextInputClient() local
[all …]
Djs_input_method_engine_registry.cpp122 NativeObject* object = ConvertNativeValueTo<NativeObject>(exportObj); in JsInputMethodEngineRegistryInit() local
123 if (object == nullptr) { in JsInputMethodEngineRegistryInit()
129object->SetNativePointer(jsInputMethodEngineRegistry.release(), JsInputMethodEngineRegistry::Final… in JsInputMethodEngineRegistryInit()
131 …BindNativeFunction(*engine, *object, "getInputMethodEngine", JsInputMethodEngineRegistry::GetInput… in JsInputMethodEngineRegistryInit()
132 …BindNativeFunction(*engine, *object, "createKeyboardDelegate", JsInputMethodEngineRegistry::GetKey… in JsInputMethodEngineRegistryInit()
134object->SetProperty("ENTER_KEY_TYPE_UNSPECIFIED", CreateJsValue(*engine, static_cast<uint32_t>(Ent… in JsInputMethodEngineRegistryInit()
135object->SetProperty("ENTER_KEY_TYPE_GO", CreateJsValue(*engine, static_cast<uint32_t>(EnterKeyType… in JsInputMethodEngineRegistryInit()
136object->SetProperty("ENTER_KEY_TYPE_SEARCH", CreateJsValue(*engine, static_cast<uint32_t>(EnterKey… in JsInputMethodEngineRegistryInit()
137object->SetProperty("ENTER_KEY_TYPE_SEND", CreateJsValue(*engine, static_cast<uint32_t>(EnterKeyTy… in JsInputMethodEngineRegistryInit()
138object->SetProperty("ENTER_KEY_TYPE_NEXT", CreateJsValue(*engine, static_cast<uint32_t>(EnterKeyTy… in JsInputMethodEngineRegistryInit()
[all …]
/base/compileruntime/js_sys_module/process/
Dnative_module_process.cpp113 ChildProcess* object = nullptr; in Wait() local
114 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in Wait()
115 napi_value result = object->Wait(env); in Wait()
125 ChildProcess* object = nullptr; in GetOutput() local
126 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in GetOutput()
127 napi_value result = object->GetOutput(env); in GetOutput()
137 ChildProcess* object = nullptr; in Close() local
138 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in Close()
139 object->Close(); in Close()
151 ChildProcess* object = nullptr; in GetErrorOutput() local
[all …]
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/
Dnapi_utils.cpp39 bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in HasNamedProperty() argument
42 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
46 napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument
50 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
54 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value)); in GetNamedProperty()
58 void SetNamedProperty(napi_env env, napi_value object, const std::string &name, napi_value value) in SetNamedProperty() argument
60 (void)napi_set_named_property(env, object, name.c_str(), value); in SetNamedProperty()
63 std::vector<std::string> GetPropertyNames(napi_env env, napi_value object) in GetPropertyNames() argument
67 NAPI_CALL_BASE(env, napi_get_property_names(env, object, &names), ret); in GetPropertyNames()
100 uint32_t GetUint32Property(napi_env env, napi_value object, const std::string &propertyName) in GetUint32Property() argument
[all …]
/base/miscservices/inputmethod/interfaces/kits/js/napi/inputmethod/src/
Djs_input_method_utils.cpp30 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateInputMethodSetting() local
31 if (object == nullptr) { in CreateInputMethodSetting()
37object->SetNativePointer(jsInputMethodSetting.release(), JsInputMethodSetting::Finalizer, nullptr); in CreateInputMethodSetting()
39 …BindNativeFunction(engine, *object, "displayOptionalInputMethod", JsInputMethodSetting::DisplayOpt… in CreateInputMethodSetting()
40 … BindNativeFunction(engine, *object, "listInputMethod", JsInputMethodSetting::ListInputMethod); in CreateInputMethodSetting()
48 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateInputMethodController() local
49 if (object == nullptr) { in CreateInputMethodController()
55object->SetNativePointer(jsInputMethodController.release(), JsInputMethodController::Finalizer, nu… in CreateInputMethodController()
57 BindNativeFunction(engine, *object, "stopInput", JsInputMethodController::StopInput); in CreateInputMethodController()
Djs_input_method_registry.cpp94 NativeObject* object = ConvertNativeValueTo<NativeObject>(exportObj); in JsInputMethodRegistryInit() local
95 if (object == nullptr) { in JsInputMethodRegistryInit()
101object->SetNativePointer(jsInputMethodRegistry.release(), JsInputMethodRegistry::Finalizer, nullpt… in JsInputMethodRegistryInit()
103 …BindNativeFunction(*engine, *object, "getInputMethodSetting", JsInputMethodRegistry::GetInputMetho… in JsInputMethodRegistryInit()
104 …BindNativeFunction(*engine, *object, "getInputMethodController", JsInputMethodRegistry::GetInputMe… in JsInputMethodRegistryInit()
106object->SetProperty("MAX_TYPE_NUM", CreateJsValue(*engine, static_cast<uint32_t>(MAX_TYPE_NUM))); in JsInputMethodRegistryInit()
/base/compileruntime/js_util_module/util/
Dnative_module_util.cpp402 auto object = new TextEncoder(); in TextEncoderConstructor() local
404 env, thisVar, object, in TextEncoderConstructor()
420 TextEncoder *object = nullptr; in GetEncoding() local
421 NAPI_CALL(env, napi_unwrap(env, thisVar, (void**)&object)); in GetEncoding()
423 return object->GetEncoding(env); in GetEncoding()
441 TextEncoder *object = nullptr; in Encode() local
442 NAPI_CALL(env, napi_unwrap(env, thisVar, (void**)&object)); in Encode()
444 napi_value result = object->Encode(env, args); in Encode()
472 TextEncoder *object = nullptr; in EncodeInto() local
473 NAPI_CALL(env, napi_unwrap(env, thisVar, (void**)&object)); in EncodeInto()
[all …]
/base/telephony/call_manager/services/call/src/
Dcall_request_handler.cpp96 auto object = event->GetUniqueObject<AnswerCallPara>(); in AcceptCallEvent() local
97 if (object == nullptr) { in AcceptCallEvent()
101 AnswerCallPara acceptPara = *object; in AcceptCallEvent()
115 auto object = event->GetUniqueObject<RejectCallPara>(); in RejectCallEvent() local
116 if (object == nullptr) { in RejectCallEvent()
120 RejectCallPara rejectPara = *object; in RejectCallEvent()
135 auto object = event->GetUniqueObject<int32_t>(); in HangUpCallEvent() local
136 if (object == nullptr) { in HangUpCallEvent()
140 int32_t callId = *object; in HangUpCallEvent()
154 auto object = event->GetUniqueObject<int32_t>(); in HoldCallEvent() local
[all …]
/base/telephony/call_manager/frameworks/js/napi/src/
Dnapi_call_manager_utils.cpp55 napi_value NapiCallManagerUtils::GetNamedProperty(napi_env env, napi_value object, const std::strin… in GetNamedProperty() argument
58 napi_get_named_property(env, object, propertyName.c_str(), &value); in GetNamedProperty()
63 napi_env env, napi_value object, const std::string &propertyName) in GetStringProperty() argument
66 napi_status getNameStatus = napi_get_named_property(env, object, propertyName.c_str(), &value); in GetStringProperty()
80 int32_t NapiCallManagerUtils::GetIntProperty(napi_env env, napi_value object, const std::string &pr… in GetIntProperty() argument
84 napi_status getNameStatus = napi_get_named_property(env, object, propertyName.c_str(), &value); in GetIntProperty()
95 bool NapiCallManagerUtils::GetBoolProperty(napi_env env, napi_value object, const std::string &prop… in GetBoolProperty() argument
99 napi_status getNameStatus = napi_get_named_property(env, object, propertyName.c_str(), &value); in GetBoolProperty()
110 void NapiCallManagerUtils::SetPropertyInt32(napi_env env, napi_value object, std::string name, int3… in SetPropertyInt32() argument
114 napi_set_named_property(env, object, name.c_str(), peopertyValue); in SetPropertyInt32()
[all …]
/base/compileruntime/js_api_module/xml/
Dnative_module_xml.cpp32 XmlSerializer *object = nullptr; in XmlSerializerConstructor() local
53 object = new XmlSerializer(reinterpret_cast<char*>(data), iLength); in XmlSerializerConstructor()
62 object = new XmlSerializer(reinterpret_cast<char*>(data), iLength, encoding); in XmlSerializerConstructor()
66 env, thisVar, object, in XmlSerializerConstructor()
83 XmlPullParser *object = nullptr; in XmlPullParserConstructor() local
107 object = new XmlPullParser(strEnd, "utf-8"); in XmlPullParserConstructor()
113 object = new XmlPullParser(strEnd, strEncoding); in XmlPullParserConstructor()
117 env, thisVar, object, in XmlPullParserConstructor()
143 XmlSerializer *object = nullptr; in SetAttributes() local
144 NAPI_CALL(env, napi_unwrap(env, thisVar, reinterpret_cast<void**>(&object))); in SetAttributes()
[all …]
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/include/
Dnapi_utils.h42 bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
44 napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
46 void SetNamedProperty(napi_env env, napi_value object, const std::string &name, napi_value value);
48 std::vector<std::string> GetPropertyNames(napi_env env, napi_value object);
55 uint32_t GetUint32Property(napi_env env, napi_value object, const std::string &propertyName);
57 void SetUint32Property(napi_env env, napi_value object, const std::string &name, uint32_t value);
64 int32_t GetInt32Property(napi_env env, napi_value object, const std::string &propertyName);
66 void SetInt32Property(napi_env env, napi_value object, const std::string &name, int32_t value);
73 std::string GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName);
75 void SetStringPropertyUtf8(napi_env env, napi_value object, const std::string &name, const std::str…
[all …]
/base/telephony/call_manager/frameworks/js/napi/include/
Dnapi_call_manager_utils.h37 …static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyNam…
38 …static std::string GetStringProperty(napi_env env, napi_value object, const std::string &propertyN…
39 static int32_t GetIntProperty(napi_env env, napi_value object, const std::string &propertyName);
40 static bool GetBoolProperty(napi_env env, napi_value object, const std::string &propertyName);
41 static void SetPropertyInt32(napi_env env, napi_value object, std::string name, int32_t value);
42 …static void SetPropertyStringUtf8(napi_env env, napi_value object, std::string name, std::string v…
43 … static void SetPropertyBoolean(napi_env env, napi_value object, std::string name, int32_t value);
/base/location/interfaces/innerkits/locator_standard/include/
Dnapi_util.h48 void JsObjToLocationRequest(const napi_env& env, const napi_value& object,
50 void JsObjToCurrentLocationRequest(const napi_env& env, const napi_value& object,
52 void JsObjToCachedLocationRequest(const napi_env& env, const napi_value& object,
54 void JsObjToCommand(const napi_env& env, const napi_value& object,
56 void JsObjToGeoFenceRequest(const napi_env& env, const napi_value& object,
58 bool JsObjToGeoCodeRequest(const napi_env& env, const napi_value& object, MessageParcel& dataParcel…
59 bool JsObjToReverseGeoCodeRequest(const napi_env& env, const napi_value& object, MessageParcel& dat…
60 napi_value JsObjectToString(const napi_env& env, const napi_value& object,
62 napi_value JsObjectToDouble(const napi_env& env, const napi_value& object, const char* fieldStr, do…
63 napi_value JsObjectToInt(const napi_env& env, const napi_value& object, const char* fieldStr, int& …
[all …]
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.h38 static void SetPropertyInt32(napi_env env, napi_value object, std::string name, int32_t value);
39 static void SetPropertyInt64(napi_env env, napi_value object, std::string name, int64_t value);
40 …static void SetPropertyStringUtf8(napi_env env, napi_value object, std::string name, std::string v…
41 static void SetPropertyBoolean(napi_env env, napi_value object, std::string name, bool value);
43 static bool HasNamedProperty(napi_env env, napi_value object, std::string propertyName);
44 …static bool HasNamedTypeProperty(napi_env env, napi_value object, napi_valuetype type, std::string…
46 …napi_env env, napi_value object, std::initializer_list<std::pair<std::string, napi_valuetype>> pai…
48 napi_env env, napi_value object, napi_valuetype type, std::string propertyName);
50 static napi_value GetNamedProperty(napi_env env, napi_value object, std::string propertyName);
Dnapi_util.cpp81 void NapiUtil::SetPropertyInt32(napi_env env, napi_value object, std::string name, int32_t value) in SetPropertyInt32() argument
85 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyInt32()
88 void NapiUtil::SetPropertyInt64(napi_env env, napi_value object, std::string name, int64_t value) in SetPropertyInt64() argument
92 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyInt64()
95 void NapiUtil::SetPropertyStringUtf8(napi_env env, napi_value object, std::string name, std::string… in SetPropertyStringUtf8() argument
99 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyStringUtf8()
102 void NapiUtil::SetPropertyBoolean(napi_env env, napi_value object, std::string name, bool value) in SetPropertyBoolean() argument
106 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyBoolean()
116 bool NapiUtil::HasNamedProperty(napi_env env, napi_value object, std::string propertyName) in HasNamedProperty() argument
119 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in HasNamedProperty()
[all …]
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/include/
Dnapi_hitrace_util.h39 static void SetPropertyInt32(const napi_env env, napi_value& object,
41 static void SetPropertyInt64(const napi_env env, napi_value& object,
43 static void SetPropertyBigInt64(const napi_env env, napi_value& object,
45 static uint32_t GetPropertyInt32(const napi_env env, const napi_value& object,
47 static uint64_t GetPropertyInt64(const napi_env env, const napi_value& object,
49 static uint64_t GetPropertyBigInt64(const napi_env env, const napi_value& object,
/base/telephony/call_manager/services/telephony_interaction/src/
Dreport_call_info_handler.cpp76 auto object = event->GetUniqueObject<CallDetailInfo>(); in ReportCallInfo() local
77 if (object == nullptr) { in ReportCallInfo()
81 CallDetailInfo info = *object; in ReportCallInfo()
96 auto object = event->GetUniqueObject<CallDetailsInfo>(); in ReportCallsInfo() local
97 if (object == nullptr) { in ReportCallsInfo()
101 CallDetailsInfo info = *object; in ReportCallsInfo()
116 auto object = event->GetUniqueObject<int32_t>(); in ReportDisconnectedCause() local
117 if (object == nullptr) { in ReportDisconnectedCause()
121 int32_t cause = *object; in ReportDisconnectedCause()
136 auto object = event->GetUniqueObject<CellularCallEventInfo>(); in ReportEventInfo() local
[all …]
/base/startup/init_lite/device_info/
Ddevice_info_kits.cpp45 sptr<IRemoteObject> object = deviceInfoService_->AsObject(); in ResetService() local
46 if ((object != nullptr) && (remote == object)) { in ResetService()
47 object->RemoveDeathRecipient(deathRecipient_); in ResetService()
62 sptr<IRemoteObject> object = samgr->GetSystemAbility(SYSPARAM_DEVICE_SERVICE_ID); in GetService() local
63 DINFO_CHECK(object != nullptr, return nullptr, "Get device service object from samgr failed"); in GetService()
68 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in GetService()
71 deviceInfoService_ = iface_cast<IDeviceInfo>(object); in GetService()
/base/account/os_account/frameworks/ohosaccount/native/src/
Dohos_account_kits_impl.cpp35 sptr<IRemoteObject> object = accountProxy_->AsObject(); in ResetService() local
36 if ((object != nullptr) && (remote == object)) { in ResetService()
37 object->RemoveDeathRecipient(deathRecipient_); in ResetService()
55 sptr<IRemoteObject> object = samgr->GetSystemAbility(SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN); in GetService() local
56 if (object == nullptr) { in GetService()
69 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in GetService()
74 accountProxy_ = iface_cast<AccountProxy>(object); in GetService()
/base/user_iam/user_auth/interfaces/innerkits/napi/src/
Dauth_build.cpp28 Napi_SetPropertyRequest AuthBuild::SetPropertyRequestBuild(napi_env env, napi_value object) in SetPropertyRequestBuild() argument
31 if (object == nullptr) { in SetPropertyRequestBuild()
35 request.authType_ = convert_.GetInt32ValueByKey(env, object, "authType"); in SetPropertyRequestBuild()
36 request.key_ = static_cast<uint32_t>(convert_.GetInt32ValueByKey(env, object, "key")); in SetPropertyRequestBuild()
37 request.setInfo_ = convert_.NapiGetValueUint8Array(env, object, "setInfo"); in SetPropertyRequestBuild()
42 Napi_GetPropertyRequest AuthBuild::GetPropertyRequestBuild(napi_env env, napi_value object) in GetPropertyRequestBuild() argument
45 if (object == nullptr) { in GetPropertyRequestBuild()
49 request.authType_ = convert_.GetInt32ValueByKey(env, object, "authType"); in GetPropertyRequestBuild()
50 request.keys_ = convert_.GetInt32ArrayValueByKey(env, object, "keys"); in GetPropertyRequestBuild()
/base/location/interfaces/innerkits/locator_standard/src/
Dnapi_util.cpp170 void JsObjToCachedLocationRequest(const napi_env& env, const napi_value& object, in JsObjToCachedLocationRequest() argument
175 JsObjectToInt(env, object, "reportingPeriodSec", value); in JsObjToCachedLocationRequest()
177 JsObjectToBool(env, object, "wakeUpCacheQueueFull", valueBool); in JsObjToCachedLocationRequest()
181 void JsObjToGeoFenceRequest(const napi_env& env, const napi_value& object, in JsObjToGeoFenceRequest() argument
186 JsObjectToInt(env, object, "priority", value); in JsObjToGeoFenceRequest()
188 JsObjectToInt(env, object, "scenario", value); in JsObjToGeoFenceRequest()
190 JsObjectToDouble(env, object, "latitude", doubleValue); in JsObjToGeoFenceRequest()
192 JsObjectToDouble(env, object, "longitude", doubleValue); in JsObjToGeoFenceRequest()
194 JsObjectToDouble(env, object, "radius", doubleValue); in JsObjToGeoFenceRequest()
196 JsObjectToDouble(env, object, "expiration", doubleValue); in JsObjToGeoFenceRequest()
[all …]
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/src/
Dnapi_hitrace_util.cpp53 napi_status SetNamedProperty(const napi_env env, napi_value& object, in SetNamedProperty() argument
56 napi_status status = napi_set_named_property(env, object, propertyName.c_str(), propertyValue); in SetNamedProperty()
63 napi_value GetPropertyByName(const napi_env env, const napi_value& object, in GetPropertyByName() argument
67 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &result)); in GetPropertyByName()
138 void NapiHitraceUtil::SetPropertyInt32(const napi_env env, napi_value& object, in SetPropertyInt32() argument
142 SetNamedProperty(env, object, propertyName, peropertyValue); in SetPropertyInt32()
145 void NapiHitraceUtil::SetPropertyInt64(const napi_env env, napi_value& object, in SetPropertyInt64() argument
149 SetNamedProperty(env, object, propertyName, peropertyValue); in SetPropertyInt64()
152 void NapiHitraceUtil::SetPropertyBigInt64(const napi_env env, napi_value& object, in SetPropertyBigInt64() argument
156 SetNamedProperty(env, object, propertyName, peropertyValue); in SetPropertyBigInt64()
[all …]
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dnapi_util.cpp45 void NapiUtil::JsObjectToString(const napi_env &env, const napi_value &object, std::string fieldStr, in JsObjectToString() argument
52 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectToString()
57 napi_get_named_property(env, object, fieldStr.c_str(), &field); in JsObjectToString()
73 bool NapiUtil::JsObjectGetProperty(const napi_env &env, const napi_value &object, std::string field… in JsObjectGetProperty() argument
77 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectGetProperty()
79 napi_get_named_property(env, object, fieldStr.c_str(), &value); in JsObjectGetProperty()
86 void NapiUtil::JsObjectToInt(const napi_env &env, const napi_value &object, std::string fieldStr, i… in JsObjectToInt() argument
89 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectToInt()
94 napi_get_named_property(env, object, fieldStr.c_str(), &field); in JsObjectToInt()
103 bool NapiUtil::JsUint8ArrayParse(const napi_env &env, const napi_value &object, uint8_t **uint8Buff… in JsUint8ArrayParse() argument
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dextract_rule.cpp189 vector<string> ExtractRule::SplitFeatureId(const Json::Value& object) const in SplitFeatureId()
191 if (!object.isMember(L2_FEATUREID)) { in SplitFeatureId()
197 StringUtil::SplitStr(object[L2_FEATUREID].asString(), ",", result, false, false); in SplitFeatureId()
201 void ExtractRule::ParseRule(const Json::Value& object, list<FeatureRule>& features) const in ParseRule() argument
203 if (!object.isMember(L2_RULES)) { in ParseRule()
206 ParseRuleParam(object[L2_RULES], features, L2_RULES); in ParseRule()
208 if (!object.isMember(L2_SEGMENT_RULE)) { in ParseRule()
211 ParseRuleParam(object[L2_SEGMENT_RULE], features, L2_SEGMENT_RULE); in ParseRule()
214 void ExtractRule::ParseRuleParam(const Json::Value& object, list<FeatureRule>& features, const stri… in ParseRuleParam() argument
216 int objectSize = static_cast<int>(object.size()); in ParseRuleParam()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
Dnapi_util.cpp38 void NapiUtil::SetPropertyInt32(napi_env env, napi_value object, std::string name, int32_t value) in SetPropertyInt32() argument
42 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyInt32()
45 void NapiUtil::SetPropertyInt64(napi_env env, napi_value object, std::string name, int64_t value) in SetPropertyInt64() argument
49 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyInt64()
52 void NapiUtil::SetPropertyStringUtf8(napi_env env, napi_value object, std::string name, std::string… in SetPropertyStringUtf8() argument
56 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyStringUtf8()

12345678910>>...16