Home
last modified time | relevance | path

Searched refs:cons (Results 1 – 23 of 23) sorted by relevance

/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodability/
Djs_keyboard_controller_engine.cpp33 napi_value cons = nullptr; in Init() local
35 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
36 NAPI_CALL(env, napi_create_reference(env, cons, 1, &KCERef_)); in Init()
37 NAPI_CALL(env, napi_set_named_property(env, info, KCE_CLASS_NAME.c_str(), cons)); in Init()
74 napi_value cons = nullptr; in GetKeyboardControllerInstance() local
75 if (napi_get_reference_value(env, KCERef_, &cons) != napi_ok) { in GetKeyboardControllerInstance()
79 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetKeyboardControllerInstance()
Djs_keyboard_delegate_setting.cpp70 napi_value cons = nullptr; in Init() local
72 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
73 NAPI_CALL(env, napi_create_reference(env, cons, 1, &KDSRef_)); in Init()
74 NAPI_CALL(env, napi_set_named_property(env, exports, KDS_CLASS_NAME.c_str(), cons)); in Init()
151 napi_value cons = nullptr; in GetKDInstance() local
152 if (napi_get_reference_value(env, KDSRef_, &cons) != napi_ok) { in GetKDInstance()
156 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetKDInstance()
Djs_input_method_engine_setting.cpp87 napi_value cons = nullptr; in Init() local
89 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
90 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMESRef_)); in Init()
91 NAPI_CALL(env, napi_set_named_property(env, exports, IMES_CLASS_NAME.c_str(), cons)); in Init()
175 napi_value cons = nullptr; in GetIMEInstance() local
176 if (napi_get_reference_value(env, IMESRef_, &cons) != napi_ok) { in GetIMEInstance()
180 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMEInstance()
Djs_text_input_client_engine.cpp42 napi_value cons = nullptr; in Init() local
44 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
45 NAPI_CALL(env, napi_create_reference(env, cons, 1, &TICRef_)); in Init()
46 NAPI_CALL(env, napi_set_named_property(env, info, TIC_CLASS_NAME.c_str(), cons)); in Init()
115 napi_value cons = nullptr; in GetTextInputClientInstance() local
116 if (napi_get_reference_value(env, TICRef_, &cons) != napi_ok) { in GetTextInputClientInstance()
120 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetTextInputClientInstance()
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodclient/
Djs_get_input_method_controller.cpp41 napi_value cons = nullptr; in Init() local
43 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
44 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMCRef_)); in Init()
45 NAPI_CALL(env, napi_set_named_property(env, info, IMC_CLASS_NAME.c_str(), cons)); in Init()
93 napi_value cons = nullptr; in GetIMController() local
94 if (napi_get_reference_value(env, IMCRef_, &cons) != napi_ok) { in GetIMController()
102 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMController()
Djs_get_input_method_setting.cpp86 napi_value cons = nullptr; in Init() local
88 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
89 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMSRef_)); in Init()
90 NAPI_CALL(env, napi_set_named_property(env, exports, IMS_CLASS_NAME.c_str(), cons)); in Init()
156 napi_value cons = nullptr; in GetIMSetting() local
157 if (napi_get_reference_value(env, IMSRef_, &cons) != napi_ok) { in GetIMSetting()
165 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMSetting()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_class.cpp46 napi_value cons = nullptr; in InstantiateClass() local
47 napi_status status = napi_get_reference_value(env, it->second, &cons); in InstantiateClass()
52 status = napi_new_instance(env, cons, args.size(), args.data(), &instance); in InstantiateClass()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_pin_auth.cpp29 napi_value cons; in Init() local
35 nullptr, sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in Init()
36 NAPI_CALL(env, napi_set_named_property(env, exports, "PINAuth", cons)); in Init()
Dnapi_account_iam_inputer_manager.cpp36 napi_value cons; in Init() local
38 nullptr, sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in Init()
39 NAPI_CALL(env, napi_set_named_property(env, exports, "InputerManager", cons)); in Init()
Dnapi_account_iam_user_auth.cpp30 napi_value cons; in Init() local
41 nullptr, sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in Init()
42 NAPI_CALL(env, napi_set_named_property(env, exports, "UserAuth", cons)); in Init()
Dnapi_account_iam_common.cpp729 napi_value cons; in GetCtorIInputerData() local
732 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtorIInputerData()
733 return cons; in GetCtorIInputerData()
738 napi_value cons = GetCtorIInputerData(context->env, context->inputerData); in GetInputerInstance() local
739 if (cons == nullptr) { in GetInputerInstance()
743 return napi_new_instance(context->env, cons, 0, nullptr, inputerDataVarCtor); in GetInputerInstance()
Dnapi_account_iam_identity_manager.cpp31 napi_value cons; in Init() local
43 nullptr, sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in Init()
44 NAPI_CALL(env, napi_set_named_property(env, exports, "UserIdentityManager", cons)); in Init()
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.cpp92 napi_value cons = nullptr; in CreateInstanceForRunningLock() local
93 napi_status status = napi_get_reference_value(env, napiRunningLockIns_, &cons); in CreateInstanceForRunningLock()
99 status = napi_new_instance(env, cons, 0, nullptr, &instance); in CreateInstanceForRunningLock()
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Ddownload_task_napi.cpp102 napi_value cons; in GetCtor() local
104 NAPI_CALL(env, napi_get_reference_value(env, globalCtor, &cons)); in GetCtor()
105 return cons; in GetCtor()
118 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtor()
119 NAPI_CALL(env, napi_create_reference(env, cons, 1, &globalCtor)); in GetCtor()
120 return cons; in GetCtor()
Ddownload_task_napi_V9.cpp105 napi_value cons; in GetCtor() local
107 NAPI_CALL(env, napi_get_reference_value(env, globalCtor, &cons)); in GetCtor()
108 return cons; in GetCtor()
126 … sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons); in GetCtor()
131 status = napi_create_reference(env, cons, 1, &globalCtor); in GetCtor()
136 return cons; in GetCtor()
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp233 napi_value cons = nullptr; in Init() local
235 … JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons); in Init()
236 napi_create_reference(env, cons, 1, &distributedAccountRef_); in Init()
237 napi_set_named_property(env, exports, DISTRIBUTED_ACCOUNT_CLASS_NAME.c_str(), cons); in Init()
252 napi_value cons = nullptr; in GetDistributedAccountAbility() local
253 if (napi_get_reference_value(env, distributedAccountRef_, &cons) != napi_ok) { in GetDistributedAccountAbility()
257 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetDistributedAccountAbility()
/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_interface.cpp204 napi_value cons = nullptr; in CreateInstanceForRunningLock() local
213 callBackStatus = napi_get_reference_value(env, asyncInfo->napiRunningLockIns, &cons); in CreateInstanceForRunningLock()
218 callBackStatus = napi_new_instance(env, cons, 0, nullptr, &instance); in CreateInstanceForRunningLock()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_entry.cpp493 napi_value cons = nullptr; in GetCtor() local
501 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtor()
502 return cons; in GetCtor()
507 napi_value cons = nullptr; in GetCtorForApi6() local
512 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtorForApi6()
513 return cons; in GetCtorForApi6()
/base/request/request/upload/interfaces/kits/napi/src/
Dupload_task_napiV9.cpp77 napi_value cons = nullptr; in GetCtor() local
85 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons); in GetCtor()
86 if (status != napi_ok || cons == nullptr) { in GetCtor()
89 return cons; in GetCtor()
Dupload_task_napi.cpp317 napi_value cons = nullptr; in GetCtor() local
324 … sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtor()
325 return cons; in GetCtor()
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp118 napi_value cons = nullptr; in OsAccountInit() local
127 &cons)); in OsAccountInit()
128 NAPI_CALL(env, napi_create_reference(env, cons, 1, &osAccountRef_)); in OsAccountInit()
129 NAPI_CALL(env, napi_set_named_property(env, exports, OS_ACCOUNT_CLASS_NAME.c_str(), cons)); in OsAccountInit()
137 napi_value cons = nullptr; in GetAccountManager() local
138 if (napi_get_reference_value(env, osAccountRef_, &cons) != napi_ok) { in GetAccountManager()
142 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetAccountManager()
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp299 napi_value cons = nullptr; in Init() local
301 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
303 NAPI_CALL(env, napi_create_reference(env, cons, 1, &g_atManagerRef_)); in Init()
304 NAPI_CALL(env, napi_set_named_property(env, exports, ATMANAGER_CLASS_NAME.c_str(), cons)); in Init()
341 napi_value cons = nullptr; in CreateAtManager() local
343 NAPI_CALL(env, napi_get_reference_value(env, g_atManagerRef_, &cons)); in CreateAtManager()
346 NAPI_CALL(env, napi_new_instance(env, cons, 0, nullptr, &instance)); in CreateAtManager()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account.cpp113 napi_value cons = nullptr; in Init() local
115 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
116 NAPI_CALL(env, napi_create_reference(env, cons, 1, &appAccountRef_)); in Init()
117 NAPI_CALL(env, napi_set_named_property(env, exports, APP_ACCOUNT_CLASS_NAME.c_str(), cons)); in Init()
131 napi_value cons = nullptr; in CreateAppAccountManager() local
132 if (napi_get_reference_value(env, appAccountRef_, &cons) != napi_ok) { in CreateAppAccountManager()
136 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in CreateAppAccountManager()