/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodability/ |
D | js_keyboard_controller_engine.cpp | 33 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()
|
D | js_keyboard_delegate_setting.cpp | 70 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()
|
D | js_input_method_engine_setting.cpp | 87 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()
|
D | js_text_input_client_engine.cpp | 42 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/ |
D | js_get_input_method_controller.cpp | 41 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()
|
D | js_get_input_method_setting.cpp | 86 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/ |
D | n_class.cpp | 46 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/ |
D | napi_account_iam_pin_auth.cpp | 29 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()
|
D | napi_account_iam_inputer_manager.cpp | 36 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()
|
D | napi_account_iam_user_auth.cpp | 30 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()
|
D | napi_account_iam_common.cpp | 729 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()
|
D | napi_account_iam_identity_manager.cpp | 31 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/ |
D | async_callback_info.cpp | 92 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/ |
D | download_task_napi.cpp | 102 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()
|
D | download_task_napi_V9.cpp | 105 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/ |
D | napi_distributed_account.cpp | 233 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/ |
D | runninglock_interface.cpp | 204 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/ |
D | user_auth_entry.cpp | 493 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/ |
D | upload_task_napiV9.cpp | 77 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()
|
D | upload_task_napi.cpp | 317 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/ |
D | napi_os_account.cpp | 118 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/ |
D | napi_atmanager.cpp | 299 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/ |
D | napi_app_account.cpp | 113 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()
|