Home
last modified time | relevance | path

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

/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_keyboard_controller_engine.cpp32 napi_value cons = nullptr; in Init() local
34 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
35 NAPI_CALL(env, napi_create_reference(env, cons, 1, &KCERef_)); in Init()
36 NAPI_CALL(env, napi_set_named_property(env, info, KCE_CLASS_NAME.c_str(), cons)); in Init()
73 napi_value cons = nullptr; in GetKeyboardControllerInstance() local
74 if (napi_get_reference_value(env, KCERef_, &cons) != napi_ok) { in GetKeyboardControllerInstance()
78 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetKeyboardControllerInstance()
Djs_keyboard_delegate_setting.cpp71 napi_value cons = nullptr; in Init() local
73 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
74 NAPI_CALL(env, napi_create_reference(env, cons, 1, &KDSRef_)); in Init()
75 NAPI_CALL(env, napi_set_named_property(env, exports, KDS_CLASS_NAME.c_str(), cons)); in Init()
152 napi_value cons = nullptr; in GetKDInstance() local
153 if (napi_get_reference_value(env, KDSRef_, &cons) != napi_ok) { in GetKDInstance()
158 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetKDInstance()
Djs_input_method_engine_setting.cpp89 napi_value cons = nullptr; in Init() local
91 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
92 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMESRef_)); in Init()
93 NAPI_CALL(env, napi_set_named_property(env, exports, IMES_CLASS_NAME.c_str(), cons)); in Init()
241 napi_value cons = nullptr; in GetIMEInstance() local
242 if (napi_get_reference_value(env, IMESRef_, &cons) != napi_ok) { in GetIMEInstance()
246 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMEInstance()
Djs_text_input_client_engine.cpp58 napi_value cons = nullptr; in Init() local
60 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
61 NAPI_CALL(env, napi_create_reference(env, cons, 1, &TICRef_)); in Init()
62 NAPI_CALL(env, napi_set_named_property(env, info, TIC_CLASS_NAME.c_str(), cons)); in Init()
152 napi_value cons = nullptr; in GetTextInputClientInstance() local
153 if (napi_get_reference_value(env, TICRef_, &cons) != napi_ok) { in GetTextInputClientInstance()
157 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetTextInputClientInstance()
/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/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/print/print_fwk/interfaces/kits/napi/src/
Dnapi_print_task.cpp114 napi_value cons; in GetCtor() local
116 PRINT_CALL(env, napi_get_reference_value(env, globalCtor, &cons)); in GetCtor()
117 return cons; in GetCtor()
125 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtor()
126 PRINT_CALL(env, napi_create_reference(env, cons, 1, &globalCtor)); in GetCtor()
127 return cons; in GetCtor()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_pin_auth.cpp30 napi_value cons; in Init() local
36 nullptr, sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in Init()
37 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_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()
Dnapi_account_iam_common.cpp812 napi_value cons; in GetCtorIInputerData() local
815 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtorIInputerData()
816 return cons; in GetCtorIInputerData()
821 napi_value cons = GetCtorIInputerData(context->env, context->inputerData); in GetInputerInstance() local
822 if (cons == nullptr) { in GetInputerInstance()
826 return napi_new_instance(context->env, cons, 0, nullptr, inputerDataVarCtor); in GetInputerInstance()
/base/request/request/frameworks/js/napi/src/
Djs_task.cpp186 napi_value cons; in GetCtorV10() local
188 NAPI_CALL(env, napi_get_reference_value(env, createCtor, &cons)); in GetCtorV10()
189 return cons; in GetCtorV10()
199 napi_value cons; in GetCtorV9() local
201 NAPI_CALL(env, napi_get_reference_value(env, requestFileCtor, &cons)); in GetCtorV9()
202 return cons; in GetCtorV9()
212 napi_value cons; in GetCtorV8() local
214 NAPI_CALL(env, napi_get_reference_value(env, requestCtor, &cons)); in GetCtorV8()
215 return cons; in GetCtorV8()
224 napi_value cons = nullptr; in DefineClass() local
[all …]
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp309 napi_value cons = nullptr; in Init() local
311 … JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons); in Init()
312 napi_create_reference(env, cons, 1, &distributedAccountRef_); in Init()
313 napi_set_named_property(env, exports, DISTRIBUTED_ACCOUNT_CLASS_NAME.c_str(), cons); in Init()
328 napi_value cons = nullptr; in GetDistributedAccountAbility() local
329 if (napi_get_reference_value(env, distributedAccountRef_, &cons) != napi_ok) { in GetDistributedAccountAbility()
333 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetDistributedAccountAbility()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_get_input_method_setting.cpp65 napi_value cons = nullptr; in Init() local
67 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
68 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMSRef_)); in Init()
69 NAPI_CALL(env, napi_set_named_property(env, exports, IMS_CLASS_NAME.c_str(), cons)); in Init()
134 napi_value cons = nullptr; in GetIMSetting() local
135 if (napi_get_reference_value(env, IMSRef_, &cons) != napi_ok) { in GetIMSetting()
142 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMSetting()
Djs_get_input_method_controller.cpp84 napi_value cons = nullptr; in Init() local
86 sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
87 NAPI_CALL(env, napi_create_reference(env, cons, 1, &IMCRef_)); in Init()
88 NAPI_CALL(env, napi_set_named_property(env, info, IMC_CLASS_NAME.c_str(), cons)); in Init()
251 napi_value cons = nullptr; in GetIMController() local
252 if (napi_get_reference_value(env, IMCRef_, &cons) != napi_ok) { in GetIMController()
260 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetIMController()
/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_interface.cpp210 napi_value cons = nullptr; in CreateInstanceForRunningLock() local
219 callBackStatus = napi_get_reference_value(env, asyncInfo->napiRunningLockIns, &cons); in CreateInstanceForRunningLock()
224 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.cpp885 napi_value cons = nullptr; in GetCtor() local
893 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtor()
894 return cons; in GetCtor()
899 napi_value cons = nullptr; in GetCtorForApi6() local
904 sizeof(clzDes) / sizeof(napi_property_descriptor), clzDes, &cons)); in GetCtorForApi6()
905 return cons; in GetCtorForApi6()
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp122 napi_value cons = nullptr; in OsAccountInit() local
131 &cons)); in OsAccountInit()
132 NAPI_CALL(env, napi_create_reference(env, cons, 1, &osAccountRef_)); in OsAccountInit()
133 NAPI_CALL(env, napi_set_named_property(env, exports, OS_ACCOUNT_CLASS_NAME.c_str(), cons)); in OsAccountInit()
141 napi_value cons = nullptr; in GetAccountManager() local
142 if (napi_get_reference_value(env, osAccountRef_, &cons) != napi_ok) { in GetAccountManager()
146 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in GetAccountManager()
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp313 napi_value cons = nullptr; in Init() local
315 …JsConstructor, nullptr, sizeof(properties) / sizeof(napi_property_descriptor), properties, &cons)); in Init()
317 NAPI_CALL(env, napi_create_reference(env, cons, 1, &g_atManagerRef_)); in Init()
318 NAPI_CALL(env, napi_set_named_property(env, exports, ATMANAGER_CLASS_NAME.c_str(), cons)); in Init()
355 napi_value cons = nullptr; in CreateAtManager() local
357 NAPI_CALL(env, napi_get_reference_value(env, g_atManagerRef_, &cons)); in CreateAtManager()
360 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.cpp117 napi_value cons = nullptr; in Init() local
120 … sizeof(appAccountProperties) / sizeof(napi_property_descriptor), appAccountProperties, &cons)); in Init()
121 NAPI_CALL(env, napi_create_reference(env, cons, 1, &appAccountRef_)); in Init()
122 NAPI_CALL(env, napi_set_named_property(env, exports, APP_ACCOUNT_CLASS_NAME.c_str(), cons)); in Init()
136 napi_value cons = nullptr; in CreateAppAccountManager() local
137 if (napi_get_reference_value(env, appAccountRef_, &cons) != napi_ok) { in CreateAppAccountManager()
141 if (napi_new_instance(env, cons, 0, nullptr, &instance) != napi_ok) { in CreateAppAccountManager()