/base/location/frameworks/js/napi/source/ |
D | location_napi_adapter.cpp | 55 … 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 …]
|
D | location_napi_event.cpp | 443 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/ |
D | cancel.cpp | 66 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, ¶s.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], ¶s.id)); in ParseParameters() 157 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 162 napi_create_reference(env, argv[PARAM1], 1, ¶s.callback); in ParseParameters() 387 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() [all …]
|
D | remove.cpp | 93 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, ¶ms.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()
|
D | publish.cpp | 78 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, ¶ms.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()
|
D | slot.cpp | 247 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlot() 252 napi_create_reference(env, argv[PARAM1], 1, ¶s.callback); in ParseParametersByAddSlot() 309 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlots() 314 napi_create_reference(env, argv[PARAM1], 1, ¶s.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, ¶s.callback); in ParseParametersByGetSlot() 463 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersGetSlotNumByBundle() 468 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParametersGetSlotNumByBundle() [all …]
|
D | display_badge.cpp | 58 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 65 napi_get_value_bool(env, argv[PARAM1], ¶ms.enable); in ParseParameters() 120 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 125 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters()
|
D | distributed.cpp | 57 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 62 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters() 99 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 106 napi_get_value_bool(env, argv[PARAM1], ¶ms.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, ¶ms.callback); in ParseParameters() 625 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 632 napi_get_value_bool(env, argv[PARAM1], ¶ms.enable); in ParseParameters() 741 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() [all …]
|
D | unsubscribe.cpp | 55 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 60 napi_create_reference(env, argv[PARAM1], 1, ¶s.callback); in ParseParameters()
|
D | disturb_mode.cpp | 217 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 225 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM1], ¶ms.userId)); in ParseParameters() 227 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters() 413 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 418 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters()
|
D | enable_notification.cpp | 63 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 70 napi_get_value_bool(env, argv[PARAM1], ¶ms.enable); in ParseParameters() 122 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 127 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_remove_group.cpp | 59 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()
|
D | napi_display_badge.cpp | 197 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 204 napi_get_value_int32(env, argv[PARAM1], ¶ms.badgeNumber); in ParseParameters() 218 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 223 napi_create_reference(env, argv[PARAM1], 1, ¶ms.callback); in ParseParameters()
|
D | napi_distributed_enable.cpp | 59 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], ¶ms.enable); in ParseParameters()
|
D | napi_sync_config.cpp | 79 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()
|
D | napi_local_live_view.cpp | 137 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseTriggerParameters() 144 napi_get_value_int32(env, argv[PARAM1], ¬ificationId); in ParseTriggerParameters()
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | user_auth_callback_v8.cpp | 157 ret = napi_create_object(env_, ¶ms[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, ¶ms[PARAM1]); in DoAcquireCallback()
|
D | user_auth_impl.cpp | 64 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()
|
D | auth_instance_v9.cpp | 60 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()
|
D | user_auth_widget_mgr_v10.cpp | 125 auto callbackRef = GetCallback(env, argv[PARAM1]); in On() 175 auto callbackRef = GetCallback(env, argv[PARAM1]); in Off()
|
/base/location/frameworks/js/napi/include/ |
D | callback_manager.h | 135 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/ |
D | async_context.h | 45 result[PARAM1] = nullptr;
|
D | constant_definition.h | 32 const int32_t PARAM1 = 1; variable
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/ |
D | auth_common.h | 37 constexpr size_t PARAM1 = 1; variable
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_ecc_key_util.cpp | 85 HcfBlob *pointBlob = GetBlobFromNapiUint8Arr(env, argv[PARAM1]); in JsConvertPoint() 129 if (!GetPointFromNapiValue(env, argv[PARAM1], &point)) { in JsGetEncodedPoint()
|