Home
last modified time | relevance | path

Searched refs:jsObject (Results 1 - 23 of 23) sorted by relevance

/base/inputmethod/imf/frameworks/js/napi/common/
H A Djs_callback_object.cpp45 JSCallbackObject *jsObject = static_cast<JSCallbackObject *>(work->data); in ~JSCallbackObject()
46 napi_delete_reference(jsObject->env_, jsObject->callback_); in ~JSCallbackObject()
48 jsObject->isDone_->SetValue(isFinish); in ~JSCallbackObject()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
H A Dpanel_listener_impl.cpp142 napi_value jsObject = nullptr; in Write() local
143 napi_create_object(env, &jsObject); in Write()
144 bool ret = JsUtil::Object::WriteProperty(env, jsObject, "width", nativeObject.width); in Write()
145 ret = ret && JsUtil::Object::WriteProperty(env, jsObject, "height", nativeObject.height); in Write()
146 return ret ? jsObject : JsUtil::Const::Null(env); in Write()
149 bool JsWindowSize::Read(napi_env env, napi_value jsObject, WindowSize &nativeObject) in Read() argument
151 auto ret = JsUtil::Object::ReadProperty(env, jsObject, "width", nativeObject.width); in Read()
152 ret = ret && JsUtil::Object::ReadProperty(env, jsObject, "height", nativeObject.height); in Read()
H A Djs_text_input_client_engine.cpp900 napi_value jsObject = nullptr; in Write() local
901 napi_create_object(env, &jsObject); in Write()
902 bool ret = JsUtil::Object::WriteProperty(env, jsObject, "left", nativeObject.posX_); in Write()
903 ret = ret && JsUtil::Object::WriteProperty(env, jsObject, "top", nativeObject.posY_); in Write()
904 ret = ret && JsUtil::Object::WriteProperty(env, jsObject, "width", nativeObject.width_); in Write()
905 ret = ret && JsUtil::Object::WriteProperty(env, jsObject, "height", nativeObject.height_); in Write()
906 return ret ? jsObject : JsUtil::Const::Null(env); in Write()
909 bool JsRect::Read(napi_env env, napi_value jsObject, Rosen::Rect &nativeObject) in Read() argument
911 auto ret = JsUtil::Object::ReadProperty(env, jsObject, "left", nativeObject.posX_); in Read()
912 ret = ret && JsUtil::Object::ReadProperty(env, jsObject, "to in Read()
920 napi_value jsObject = nullptr; Write() local
945 napi_value jsObject = nullptr; Write() local
952 Read(napi_env env, napi_value jsObject, Range &nativeObject) Read() argument
961 napi_value jsObject = nullptr; Write() local
970 Read(napi_env env, napi_value jsObject, InputAttribute &nativeObject) Read() argument
[all...]
H A Djs_keyboard_delegate_setting.cpp349 napi_value jsObject = in DealKeyEvent()
351 if (jsObject == nullptr) { in DealKeyEvent()
352 IMSA_HILOGE("jsObject is nullptr!"); in DealKeyEvent()
356 args[0] = jsObject; in DealKeyEvent()
445 napi_value jsObject = GetResultOnKeyEvent(env, entry->keyEventPara.keyCode, entry->keyEventPara.keyStatus); in OnKeyEvent()
446 if (jsObject == nullptr) { in OnKeyEvent()
447 IMSA_HILOGE("jsObject is nullptr!"); in OnKeyEvent()
451 args[0] = jsObject; in OnKeyEvent()
596 napi_value jsObject = JsInputAttribute::Write(env, entry->inputAttribute); in OnEditorAttributeChange()
597 if (jsObject in OnEditorAttributeChange()
[all...]
H A Dpanel_listener_impl.h36 static bool Read(napi_env env, napi_value jsObject, WindowSize &nativeObject);
H A Djs_panel.cpp501 napi_value jsObject = nullptr; in Write() local
502 napi_create_object(env, &jsObject); in Write()
504 JsUtil::Object::WriteProperty(env, jsObject, "landscapeRect", JsRect::Write(env, layoutParams.landscapeRect)); in Write()
506 JsUtil::Object::WriteProperty(env, jsObject, "portraitRect", JsRect::Write(env, layoutParams.portraitRect)); in Write()
507 return ret ? jsObject : JsUtil::Const::Null(env); in Write()
H A Djs_input_method_engine_setting.cpp688 napi_value jsObject = GetResultOnSetSubtype(env, entry->subProperty); in OnSetSubtype()
689 if (jsObject == nullptr) { in OnSetSubtype()
690 IMSA_HILOGE("jsObject is nullptr!"); in OnSetSubtype()
694 args[0] = { jsObject }; in OnSetSubtype()
757 napi_value jsObject = JsUtils::GetJsPrivateCommand(env, entry->privateCommand); in ReceivePrivateCommand()
758 if (jsObject == nullptr) { in ReceivePrivateCommand()
759 IMSA_HILOGE("jsObject is nullptr!"); in ReceivePrivateCommand()
763 args[0] = { jsObject }; in ReceivePrivateCommand()
H A Djs_text_input_client_engine.h42 static bool Read(napi_env env, napi_value jsObject, Rosen::Rect &nativeObject);
52 static bool Read(napi_env env, napi_value jsObject, Range &nativeObject);
57 static bool Read(napi_env env, napi_value jsObject, InputAttribute &nativeObject);
/base/update/updateservice/frameworks/js/napi/session/include/
H A Dnapi_common_define.h76 T *CreateJsObject(napi_env env, napi_callback_info info, napi_ref constructorRef, napi_value &jsObject) in CreateJsObject() argument
89 status = napi_new_instance(env, constructor, argc, args, &jsObject); in CreateJsObject()
93 status = napi_unwrap(env, jsObject, (void **) &nativeObject); in CreateJsObject()
96 napi_remove_wrap(env, jsObject, (void **) &nativeObject); in CreateJsObject()
97 jsObject = nullptr; in CreateJsObject()
/base/security/dlp_permission_service/interfaces/kits/napi_common/include/
H A Dnapi_common.h325 void GetDlpPropertyExpireTime(napi_env env, napi_value jsObject, DlpProperty& property);
329 napi_value GetNapiValue(napi_env env, napi_value jsObject, const std::string& key);
330 bool GetStringValue(napi_env env, napi_value jsObject, std::string& result);
331 bool GetStringValueByKey(napi_env env, napi_value jsObject, const std::string& key, std::string& result);
332 bool GetBoolValueByKey(napi_env env, napi_value jsObject, const std::string& key, bool& result);
333 bool GetBoolValue(napi_env env, napi_value jsObject, bool& result);
334 bool GetInt64Value(napi_env env, napi_value jsObject, int64_t& result);
335 bool GetInt64ValueByKey(napi_env env, napi_value jsObject, const std::string& key, int64_t& result);
336 bool GetUint32Value(napi_env env, napi_value jsObject, uint32_t& result);
337 bool GetUint32ValueByKey(napi_env env, napi_value jsObject, cons
[all...]
/base/inputmethod/imf/frameworks/js/napi/keyboardpanelmanager/
H A Djs_keyboard_panel_manager.cpp287 napi_value jsObject = JsUtils::GetJsPrivateCommand(env, entry->privateCommand); in ReceivePrivateCommand()
288 if (jsObject == nullptr) { in ReceivePrivateCommand()
289 IMSA_HILOGE("jsObject is nullptr"); in ReceivePrivateCommand()
293 args[0] = { jsObject }; in ReceivePrivateCommand()
321 napi_value jsObject = JsPanelStatus::Write(env, entry->sysPanelStatus); in NotifyPanelStatus()
322 if (jsObject == nullptr) { in NotifyPanelStatus()
323 IMSA_HILOGE("jsObject is nullptr!"); in NotifyPanelStatus()
327 args[0] = { jsObject }; in NotifyPanelStatus()
368 napi_value jsObject = nullptr; in Write() local
369 napi_create_object(env, &jsObject); in Write()
[all...]
/base/account/os_account/interfaces/kits/napi/common/src/
H A Dnapi_account_error.cpp106 napi_value jsObject = nullptr; in GetErrorCodeValue() local
109 NAPI_CALL(env, napi_create_object(env, &jsObject)); in GetErrorCodeValue()
110 NAPI_CALL(env, napi_set_named_property(env, jsObject, "code", jsValue)); in GetErrorCodeValue()
111 return jsObject; in GetErrorCodeValue()
/base/security/dlp_permission_service/interfaces/kits/napi_common/src/
H A Dnapi_common.cpp1174 void GetDlpPropertyExpireTime(napi_env env, napi_value jsObject, DlpProperty& property) in GetDlpPropertyExpireTime() argument
1177 if (!GetInt64ValueByKey(env, jsObject, "expireTime", jsExpireTime)) { in GetDlpPropertyExpireTime()
1183 bool GetDlpProperty(napi_env env, napi_value jsObject, DlpProperty& property) in GetDlpProperty() argument
1185 if (!GetStringValueByKey(env, jsObject, "ownerAccount", property.ownerAccount)) { in GetDlpProperty()
1189 if (!GetStringValueByKey(env, jsObject, "ownerAccountID", property.ownerAccountId)) { in GetDlpProperty()
1194 if (!GetInt64ValueByKey(env, jsObject, "ownerAccountType", type)) { in GetDlpProperty()
1199 napi_value authUserListObj = GetNapiValue(env, jsObject, "authUserList"); in GetDlpProperty()
1206 if (!GetStringValueByKey(env, jsObject, "contactAccount", property.contactAccount)) { in GetDlpProperty()
1210 if (!GetBoolValueByKey(env, jsObject, "offlineAccess", property.offlineAccess)) { in GetDlpProperty()
1214 GetDlpPropertyExpireTime(env, jsObject, propert in GetDlpProperty()
1456 GetNapiValue(napi_env env, napi_value jsObject, const std::string& key) GetNapiValue() argument
1475 GetStringValue(napi_env env, napi_value jsObject, std::string& result) GetStringValue() argument
1501 GetStringValueByKey(napi_env env, napi_value jsObject, const std::string& key, std::string& result) GetStringValueByKey() argument
1507 GetBoolValue(napi_env env, napi_value jsObject, bool& result) GetBoolValue() argument
1524 GetBoolValueByKey(napi_env env, napi_value jsObject, const std::string& key, bool& result) GetBoolValueByKey() argument
1530 GetInt64Value(napi_env env, napi_value jsObject, int64_t& result) GetInt64Value() argument
1545 GetInt64ValueByKey(napi_env env, napi_value jsObject, const std::string& key, int64_t& result) GetInt64ValueByKey() argument
1551 GetUint32Value(napi_env env, napi_value jsObject, uint32_t& result) GetUint32Value() argument
1566 GetUint32ValueByKey(napi_env env, napi_value jsObject, const std::string& key, uint32_t& result) GetUint32ValueByKey() argument
1572 GetArrayValueByKey(napi_env env, napi_value jsObject, const std::string& key) GetArrayValueByKey() argument
1584 GetVectorAuthUser(napi_env env, napi_value jsObject, std::vector<AuthUserInfo>& resultVec) GetVectorAuthUser() argument
1626 GetVectorAuthUserByKey( napi_env env, napi_value jsObject, const std::string& key, std::vector<AuthUserInfo>& resultVec) GetVectorAuthUserByKey() argument
1637 GetVectorDocUriByKey(napi_env env, napi_value jsObject, const std::string& key, std::vector<std::string>& docUriVec) GetVectorDocUriByKey() argument
1665 GetVectorUint32(napi_env env, napi_value jsObject, std::vector<uint32_t>& resultVec) GetVectorUint32() argument
[all...]
/base/update/updateservice/frameworks/js/napi/update/src/
H A Dupdate_module.cpp119 napi_value jsObject = nullptr; in GetOnlineUpdater() local
120 UpdateClient *client = CreateJsObject<UpdateClient>(env, info, g_updateClientConstructorRef, jsObject); in GetOnlineUpdater()
124 return jsObject; in GetOnlineUpdater()
136 napi_value jsObject = nullptr; in GetRestorer() local
137 Restorer* restorer = CreateJsObject<Restorer>(env, info, g_restorerConstructorRef, jsObject); in GetRestorer()
141 return jsObject; in GetRestorer()
150 napi_value jsObject = nullptr; in GetLocalUpdater() local
151 LocalUpdater* localUpdater = CreateJsObject<LocalUpdater>(env, info, g_localUpdaterConstructorRef, jsObject); in GetLocalUpdater()
156 return jsObject; in GetLocalUpdater()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_cert_extension.cpp139 napi_value jsObject = CreateCertExtsJSInstance(env); in CreateCertExtsComplete() local
153 env, jsObject, napiObject, in CreateCertExtsComplete()
161 ReturnJSResult(env, context->async, jsObject); in CreateCertExtsComplete()
212 napi_value jsObject = nullptr; in NapiCommonOperation() local
213 napi_get_cb_info(env, info, nullptr, nullptr, &jsObject, nullptr); in NapiCommonOperation()
216 napi_unwrap(env, jsObject, reinterpret_cast<void **>(&napiExtsObj)); in NapiCommonOperation()
H A Dnapi_x509_crl_entry.cpp381 napi_value jsObject = CreateCertExtsJSInstance(env); in BuildCertExtsObject() local
389 env, jsObject, napiObject, in BuildCertExtsObject()
395 return jsObject; in BuildCertExtsObject()
H A Dnapi_x509_crl.cpp758 napi_value jsObject = CreateCertExtsJSInstance(env); in BuildCertExtsObject() local
766 env, jsObject, napiObject, in BuildCertExtsObject()
772 return jsObject; in BuildCertExtsObject()
H A Dnapi_x509_certificate.cpp798 napi_value jsObject = CreateCertExtsJSInstance(env); in BuildCertExtsObject() local
808 env, jsObject, napiObject, in BuildCertExtsObject()
814 return jsObject; in BuildCertExtsObject()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
H A Dnapi_app_account_authenticator.cpp439 napi_value jsObject = nullptr; in CreateAccountImplicitlyWork() local
440 napi_create_object(param->env, &jsObject); in CreateAccountImplicitlyWork()
444 napi_set_named_property(param->env, jsObject, "authType", jsAuthType); in CreateAccountImplicitlyWork()
448 napi_set_named_property(param->env, jsObject, "requiredLabels", jsRequiredLabels); in CreateAccountImplicitlyWork()
451 napi_set_named_property(param->env, jsObject, "parameters", jsParams); in CreateAccountImplicitlyWork()
453 napi_value argv[] = {jsObject, jsCallback}; in CreateAccountImplicitlyWork()
H A Dnapi_app_account_common.cpp406 napi_value jsObject = nullptr; in GetErrorCodeValue() local
409 NAPI_CALL(env, napi_create_object(env, &jsObject)); in GetErrorCodeValue()
410 NAPI_CALL(env, napi_set_named_property(env, jsObject, "code", jsValue)); in GetErrorCodeValue()
411 return jsObject; in GetErrorCodeValue()
/base/web/webview/interfaces/kits/napi/webstorage/
H A Dnapi_web_storage.cpp129 napi_value jsObject = nullptr; in GetErrorCodeValue() local
132 NAPI_CALL(env, napi_create_object(env, &jsObject)); in GetErrorCodeValue()
133 NAPI_CALL(env, napi_set_named_property(env, jsObject, "code", jsValue)); in GetErrorCodeValue()
134 return jsObject; in GetErrorCodeValue()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dpublish.cpp530 napi_status ParseArray(const napi_env &env, std::vector<std::string>& temp, napi_value &jsObject) in ParseArray() argument
582 napi_set_property(env, jsObject, keyInfo, valueInfo); in ParseArray()
602 napi_value jsObject = nullptr; in ParseValueBucket() local
603 napi_create_object(env, &jsObject); in ParseValueBucket()
604 napi_status status = ParseArray(env, temp, jsObject); in ParseValueBucket()
609 napi_set_element(env, array, index++, jsObject); in ParseValueBucket()
/base/location/frameworks/js/napi/source/
H A Dnapi_util.cpp516 napi_env env, napi_value jsObject, const std::string& key, std::vector<std::string>& outArray) in GetStringArrayValueByKey()
518 napi_value array = GetNapiValueByKey(env, key, jsObject); in GetStringArrayValueByKey()
515 GetStringArrayValueByKey( napi_env env, napi_value jsObject, const std::string& key, std::vector<std::string>& outArray) GetStringArrayValueByKey() argument

Completed in 29 milliseconds