Home
last modified time | relevance | path

Searched refs:PARAM1 (Results 1 – 25 of 55) sorted by relevance

123

/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp55 … NAPI_CALL_RETURN_VOID(context->env, napi_create_object(context->env, &context->result[PARAM1])); in GetLastLocation()
57 LocationToJs(context->env, context->loc, context->result[PARAM1]); in GetLastLocation()
123 …TURN_VOID(context->env, napi_get_boolean(context->env, context->enable, &context->result[PARAM1])); in IsLocationEnabled()
142 if (argc > PARAM1 || (argc == PARAM1 && !CheckIfParamIsFunctionType(env, argv[PARAM0]))) { in EnableLocation()
164 … NAPI_CALL_RETURN_VOID(context->env, napi_get_undefined(context->env, &context->result[PARAM1])); in EnableLocation()
167 napi_get_boolean(context->env, context->errCode == SUCCESS, &context->result[PARAM1])); in EnableLocation()
204 napi_get_boolean(context->env, context->errCode == SUCCESS, &context->result[PARAM1])); in DisableLocation()
238 napi_get_boolean(context->env, context->errCode == SUCCESS, &context->result[PARAM1])); in RequestEnableLocation()
277 …TURN_VOID(context->env, napi_get_boolean(context->env, context->enable, &context->result[PARAM1])); in IsGeoServiceAvailable()
325 … napi_create_array_with_length(context->env, context->replyList.size(), &context->result[PARAM1])); in CreateReverseGeocodeAsyncContext()
[all …]
Dlocation_napi_event.cpp443 NAPI_CALL_RETURN_VOID(context->env, napi_create_object(context->env, &context->result[PARAM1])); in GenerateCompleteContext()
447 LocationToJs(context->env, location, context->result[PARAM1]); in GenerateCompleteContext()
492 } else if (argc == PARAM1) { in GetObjectArgsNum()
495 objectArgsNum = PARAM1; in GetObjectArgsNum()
500 objectArgsNum = PARAM1; in GetObjectArgsNum()
630 if (!CheckIfParamIsFunctionType(env, argv[PARAM1])) { in OnLocationServiceStateCallback()
636 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM1]), in OnLocationServiceStateCallback()
639 if (g_switchCallbacks.IsCallbackInMap(env, argv[PARAM1])) { in OnLocationServiceStateCallback()
647 NAPI_CALL_BASE(env, napi_create_reference(env, argv[PARAM1], 1, &handlerRef), false); in OnLocationServiceStateCallback()
670 NAPI_CALL_BASE(env, napi_typeof(env, argv[PARAM1], &valueType), false); in OnCachedGnssLocationsReportingCallback()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcancel.cpp66 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
79 NAPI_CALL(env, napi_get_value_int64(env, argv[PARAM1], &number)); in ParseParameters()
83 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParseParameters()
88 … NAPI_CALL(env, napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen)); in ParseParameters()
91 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
94 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
101 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM1], &paras.id)); in ParseParameters()
157 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
162 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
387 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
[all …]
Dremove.cpp93 if (!ParseRemoveReason(env, argv[PARAM1], params)) { in ParseHashcodeTypeParams()
114 Common::GetNotificationKey(env, argv[PARAM1], bundleInfo.key) == nullptr) { in ParseBundleOptionTypeParams()
199 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByRemoveAll()
204 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParametersByRemoveAll()
242 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
252 … NAPI_CALL(env, napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen)); in ParseParameters()
257 NAPI_CALL(env, napi_get_value_int64(env, argv[PARAM1], &number)); in ParseParameters()
262 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParseParameters()
Dpublish.cpp78 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
86 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM1], &recvUserId)); in ParseParameters()
89 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
412 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParsePublishAsBundleParameters()
423 napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen); in ParsePublishAsBundleParameters()
427 NAPI_CALL(env, napi_get_value_int64(env, argv[PARAM1], &number)); in ParsePublishAsBundleParameters()
431 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParsePublishAsBundleParameters()
435 if (Common::GetNotificationRequest(env, argv[PARAM1], params.request) == nullptr) { in ParsePublishAsBundleParameters()
Dslot.cpp247 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlot()
252 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParametersByAddSlot()
309 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlots()
314 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParametersByAddSlots()
352 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersSetSlotByBundle()
360 if (!Common::GetNotificationSlot(env, argv[PARAM1], slot)) { in ParseParametersSetSlotByBundle()
420 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByGetSlot()
425 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParametersByGetSlot()
463 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersGetSlotNumByBundle()
468 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParametersGetSlotNumByBundle()
[all …]
Ddisplay_badge.cpp58 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
65 napi_get_value_bool(env, argv[PARAM1], &params.enable); in ParseParameters()
120 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
125 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
Ddistributed.cpp57 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
62 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
99 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
106 napi_get_value_bool(env, argv[PARAM1], &params.enable); in ParseParameters()
153 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
157 napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen); in ParseParameters()
166 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
625 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
632 napi_get_value_bool(env, argv[PARAM1], &params.enable); in ParseParameters()
741 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
[all …]
Dunsubscribe.cpp55 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
60 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
Ddisturb_mode.cpp217 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
225 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM1], &params.userId)); in ParseParameters()
227 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
413 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
418 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
Denable_notification.cpp63 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
70 napi_get_value_bool(env, argv[PARAM1], &params.enable); in ParseParameters()
122 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
127 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_remove_group.cpp59 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
69 … NAPI_CALL(env, napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen)); in ParseParameters()
73 NAPI_CALL(env, napi_get_value_int64(env, argv[PARAM1], &number)); in ParseParameters()
77 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParseParameters()
Dnapi_display_badge.cpp197 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
204 napi_get_value_int32(env, argv[PARAM1], &params.badgeNumber); in ParseParameters()
218 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
223 napi_create_reference(env, argv[PARAM1], 1, &params.callback); in ParseParameters()
Dnapi_distributed_enable.cpp59 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
68 napi_get_value_string_utf8(env, argv[PARAM1], str, STR_MAX_SIZE - 1, &strLen); in ParseParameters()
208 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
215 napi_get_value_bool(env, argv[PARAM1], &params.enable); in ParseParameters()
Dnapi_sync_config.cpp79 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters()
89 …NAPI_CALL(env, napi_get_value_string_utf8(env, argv[PARAM1], valueStr, LONG_LONG_STR_MAX_SIZE - 1,… in ParseParameters()
Dnapi_local_live_view.cpp137 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseTriggerParameters()
144 napi_get_value_int32(env, argv[PARAM1], &notificationId); in ParseTriggerParameters()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_callback_v8.cpp157 ret = napi_create_object(env_, &params[PARAM1]); in DoResultCallback()
164 …ret = UserAuthNapiHelper::SetInt32Property(env_, params[PARAM1], "remainTimes", remainTimes.value(… in DoResultCallback()
172 …ret = UserAuthNapiHelper::SetInt32Property(env_, params[PARAM1], "freezingTime", freezingTime.valu… in DoResultCallback()
179 ret = UserAuthNapiHelper::SetUint8ArrayProperty(env_, params[PARAM1], "token", token); in DoResultCallback()
199 ret = napi_create_uint32(env_, acquireInfo, &params[PARAM1]); in DoAcquireCallback()
Duser_auth_impl.cpp64 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM1], &level)); in GetAvailableStatus()
118 NAPI_CALL(env, ParseExecuteSecureLevel(env, argv[PARAM1], authTrustLevel, resultCode)); in Execute()
203 NAPI_CALL(env, UserAuthNapiHelper::GetInt32Value(env, argv[PARAM1], authType)); in Auth()
Dauth_instance_v9.cpp60 ret = napi_get_value_uint32(env, argv[PARAM1], &level); in GetAvailableStatus()
126 ret = UserAuthNapiHelper::GetInt32Value(env, argv[PARAM1], authType); in Init()
191 auto callbackRef = GetCallback(env, argv[PARAM1]); in On()
Duser_auth_widget_mgr_v10.cpp125 auto callbackRef = GetCallback(env, argv[PARAM1]); in On()
175 auto callbackRef = GetCallback(env, argv[PARAM1]); in Off()
/base/location/frameworks/js/napi/include/
Dcallback_manager.h135 if (!CheckIfParamIsFunctionType(env, argv[PARAM1])) { in RegCallback()
139 if (IsCallbackInMap(env, argv[PARAM1])) { in RegCallback()
146 NAPI_CALL_BASE(env, napi_create_reference(env, argv[PARAM1], 1, &handlerRef), false); in RegCallback()
/base/location/interfaces/inner_api/include/
Dasync_context.h45 result[PARAM1] = nullptr;
Dconstant_definition.h32 const int32_t PARAM1 = 1; variable
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
Dauth_common.h37 constexpr size_t PARAM1 = 1; variable
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_ecc_key_util.cpp85 HcfBlob *pointBlob = GetBlobFromNapiUint8Arr(env, argv[PARAM1]); in JsConvertPoint()
129 if (!GetPointFromNapiValue(env, argv[PARAM1], &point)) { in JsGetEncodedPoint()

123