Home
last modified time | relevance | path

Searched refs:PARAM2 (Results 1 – 22 of 22) sorted by relevance

/base/location/frameworks/js/napi/source/
Dlocation_napi_event.cpp457 } else if (argc == PARAM2) { in GetObjectArgsNum()
588 if (argc != PARAM2) { in OnLocationServiceStateCallback()
597 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnLocationServiceStateCallback()
633 if (valueType != napi_object || !CheckIfParamIsFunctionType(env, argv[PARAM2])) { in OnCachedGnssLocationsReportingCallback()
639 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM2]), in OnCachedGnssLocationsReportingCallback()
649 if (g_cachedLocationCallbacks.IsCallbackInMap(env, argv[PARAM2])) { in OnCachedGnssLocationsReportingCallback()
657 NAPI_CALL_BASE(env, napi_create_reference(env, argv[PARAM2], PARAM1, &handlerRef), false); in OnCachedGnssLocationsReportingCallback()
675 if (argc != PARAM2) { in OnGnssStatusChangeCallback()
684 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnGnssStatusChangeCallback()
723 if (valueType != napi_object || !CheckIfParamIsFunctionType(env, argv[PARAM2])) { in OnLocationChangeCallback()
[all …]
Dlocation_napi_adapter.cpp380 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
433 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
519 if (argc != PARAM2) { in CreateReverseGeocodeAsyncContext()
685 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
705 if (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[PARAM1])) { in CreateReverseGeocodeAsyncContext()
/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
Dnapi_cert_defines.h30 constexpr int32_t PARAM2 = 2; variable
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
Dauth_common.h38 constexpr size_t PARAM2 = 2; variable
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_remove_group.cpp76 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
81 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
/base/location/interfaces/inner_api/include/
Dconstant_definition.h33 const int32_t PARAM2 = 2; variable
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_crypto_framework_defines.h32 constexpr int32_t PARAM2 = 2; variable
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dremove.cpp97 if (!ParseCallbackFunc(env, argv[PARAM2], params)) { in ParseHashcodeTypeParams()
119 if (!ParseRemoveReason(env, argv[PARAM2], params)) { in ParseBundleOptionTypeParams()
254 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
259 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
Dcancel.cpp78 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
83 napi_create_reference(env, argv[PARAM2], 1, &paras.callback); in ParseParameters()
381 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
386 napi_get_value_int32(env, argv[PARAM2], &paras.userId); in ParseParameters()
Ddisplay_badge.cpp62 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
67 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
Dpublish.cpp88 if (GetCallback(env, argv[PARAM2], params) == nullptr) { in ParseParameters()
420 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParsePublishAsBundleParameters()
426 napi_get_value_int32(env, argv[PARAM2], &userId); in ParsePublishAsBundleParameters()
Denable_notification.cpp62 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
67 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
Ddistributed.cpp100 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
105 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
637 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
642 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
Ddisturb_mode.cpp130 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
135 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParameters()
Dslot.cpp312 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParametersSetSlotByBundle()
317 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParametersSetSlotByBundle()
1206 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParametersEnableSlot()
1211 napi_get_value_bool(env, argv[PARAM2], &params.enable); in ParseParametersEnableSlot()
1335 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParametersIsEnableSlot()
1340 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParametersIsEnableSlot()
Dsubscribe.cpp1254 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
1259 napi_create_reference(env, argv[PARAM2], 1, &callback); in ParseParameters()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_impl.cpp89 callbackRef = Common::MakeShared<JsRefHolder>(env, argv[PARAM2]); in Execute()
205 NAPI_CALL(env, UserAuthNapiHelper::GetInt32Value(env, argv[PARAM2], authTrustLevel)); in Auth()
Dauth_instance_v9.cpp133 ret = UserAuthNapiHelper::GetUint32Value(env, argv[PARAM2], authTrustLevel); in Init()
/base/location/frameworks/js/napi/include/
Dcallback_manager.h131 if (argc != PARAM2) { in RegCallback()
/base/security/dlp_permission_service/interfaces/kits/napi_common/include/
Dnapi_common.h38 constexpr int32_t PARAM2 = 2; variable
/base/security/dlp_permission_service/interfaces/kits/napi_common/src/
Dnapi_common.cpp614 if (!GetDlpProperty(env, argv[PARAM2], asyncContext.property)) { in GetGenerateDlpFileParams()
852 if (!GetInt64Value(env, argv[PARAM2], res)) { in GetInstallDlpSandboxParams()
901 if (!GetInt64Value(env, argv[PARAM2], res)) { in GetUninstallDlpSandboxParams()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcommon.h33 constexpr uint8_t PARAM2 = 2; variable