Home
last modified time | relevance | path

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

/base/location/frameworks/js/napi/source/
Dlocation_napi_event.cpp422 } else if (argc == PARAM2) { in GetObjectArgsNum()
553 if (argc != PARAM2) { in OnLocationServiceStateCallback()
562 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnLocationServiceStateCallback()
598 if (valueType != napi_object || !CheckIfParamIsFunctionType(env, argv[PARAM2])) { in OnCachedGnssLocationsReportingCallback()
604 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM2]), in OnCachedGnssLocationsReportingCallback()
614 if (g_cachedLocationCallbacks.IsCallbackInMap(env, argv[PARAM2])) { in OnCachedGnssLocationsReportingCallback()
622 NAPI_CALL_BASE(env, napi_create_reference(env, argv[PARAM2], PARAM1, &handlerRef), false); in OnCachedGnssLocationsReportingCallback()
640 if (argc != PARAM2) { in OnGnssStatusChangeCallback()
649 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnGnssStatusChangeCallback()
685 if (valueType != napi_object || !CheckIfParamIsFunctionType(env, argv[PARAM2])) { in OnLocationChangeCallback()
[all …]
Dlocation_napi_adapter.cpp390 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
443 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
531 if (argc != PARAM2) { in CreateReverseGeocodeAsyncContext()
697 …if (argc < PARAM1 || argc > PARAM2 || (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[1])… in CreateReverseGeocodeAsyncContext()
717 if (argc == PARAM2 && !CheckIfParamIsFunctionType(env, argv[PARAM1])) { in CreateReverseGeocodeAsyncContext()
/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.cpp66 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
71 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.h33 constexpr int32_t PARAM2 = 2; variable
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcancel.cpp66 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
71 napi_create_reference(env, argv[PARAM2], 1, &paras.callback); in ParseParameters()
349 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
354 napi_get_value_int32(env, argv[PARAM2], &paras.userId); in ParseParameters()
Dremove.cpp76 if (!ParseCallbackFunc(env, argv[PARAM2], params)) { in ParseHashcodeTypeParams()
98 if (!ParseRemoveReason(env, argv[PARAM2], params)) { in ParseBundleOptionTypeParams()
220 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
225 napi_create_reference(env, argv[PARAM2], 1, &params.callback); 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()
410 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParsePublishAsBundleParameters()
416 napi_get_value_int32(env, argv[PARAM2], &userId); in ParsePublishAsBundleParameters()
Denable_notification.cpp63 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
68 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()
1334 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParametersIsEnableSlot()
1339 napi_create_reference(env, argv[PARAM2], 1, &params.callback); in ParseParametersIsEnableSlot()
Dsubscribe.cpp1140 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters()
1145 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.cpp152 ret = UserAuthNapiHelper::GetUint32Value(env, argv[PARAM2], authTrustLevel); in Init()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcommon.h33 constexpr uint8_t PARAM2 = 2; variable