/base/useriam/user_auth_framework/test/unittest/inner_api/src/ |
H A D | callback_manager_impl_test.cpp | 52 auto widgetCallback = Common::MakeShared<MockIUserAuthWidgetCallback>(); in HWTEST_F() 54 auto service = Common::MakeShared<WidgetCallbackService>(widgetCallback); in HWTEST_F() 61 auto idmClientCallback = Common::MakeShared<MockUserIdmClientCallback>(); in HWTEST_F() 63 auto service = Common::MakeShared<IdmCallbackService>(idmClientCallback); in HWTEST_F() 70 auto getCredInfoCallback = Common::MakeShared<MockGetCredentialInfoCallback>(); in HWTEST_F() 72 auto service = Common::MakeShared<IdmGetCredInfoCallbackService>(getCredInfoCallback); in HWTEST_F() 79 auto getSecInfoCallback = Common::MakeShared<MockGetSecUserInfoCallback>(); in HWTEST_F() 81 auto service = Common::MakeShared<IdmGetSecureUserInfoCallbackService>(getSecInfoCallback); in HWTEST_F() 88 auto authCallback = Common::MakeShared<MockAuthenticationCallback>(); in HWTEST_F() 90 auto service = Common in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_distributed.cpp | 35 result = Common::NapiGetNull(env); in AsyncCompleteCallbackNapiIsDistributedEnabled() 39 Common::CreateReturnValue(env, asynccallbackinfo->info, result); in AsyncCompleteCallbackNapiIsDistributedEnabled() 55 if (Common::ParseParaOnlyCallback(env, info, callback) == nullptr) { in NapiIsDistributedEnabled() 56 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiIsDistributedEnabled() 57 return Common::NapiGetUndefined(env); in NapiIsDistributedEnabled() 62 return Common::JSParaError(env, callback); in NapiIsDistributedEnabled() 65 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiIsDistributedEnabled() 93 return Common::NapiGetNull(env); in NapiIsDistributedEnabled() 106 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableDistributed() 107 return Common in NapiEnableDistributed() [all...] |
H A D | napi_disturb_mode.cpp | 28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSetDoNotDisturbDate() 29 return Common::NapiGetUndefined(env); in NapiSetDoNotDisturbDate() 35 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiSetDoNotDisturbDate() 36 return Common::JSParaError(env, params.callback); in NapiSetDoNotDisturbDate() 39 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiSetDoNotDisturbDate() 66 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiSetDoNotDisturbDate() 83 return Common::NapiGetNull(env); in NapiSetDoNotDisturbDate() 94 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiAddDoNotDisturbProfiles() 95 return Common in NapiAddDoNotDisturbProfiles() [all...] |
H A D | napi_cancel.cpp | 28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiCancel() 29 return Common::NapiGetUndefined(env); in NapiCancel() 41 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiCancel() 42 return Common::JSParaError(env, paras.callback); in NapiCancel() 45 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiCancel() 71 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiCancel() 90 return Common::NapiGetNull(env); in NapiCancel() 100 if (Common::ParseParaOnlyCallback(env, info, callback) == nullptr) { in NapiCancelAll() 101 Common in NapiCancelAll() [all...] |
H A D | napi_get_active.cpp | 39 result = Common::NapiGetNull(env); in AsyncCompleteCallbackNapiGetAllActiveNotifications() 51 if (!Common::SetNotification(env, vec.GetRefPtr(), notificationResult)) { in AsyncCompleteCallbackNapiGetAllActiveNotifications() 62 result = Common::NapiGetNull(env); in AsyncCompleteCallbackNapiGetAllActiveNotifications() 65 Common::CreateReturnValue(env, asynccallbackinfo->info, result); in AsyncCompleteCallbackNapiGetAllActiveNotifications() 80 if (Common::ParseParaOnlyCallback(env, info, callback) == nullptr) { in NapiGetAllActiveNotifications() 82 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiGetAllActiveNotifications() 83 return Common::NapiGetUndefined(env); in NapiGetAllActiveNotifications() 89 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiGetAllActiveNotifications() 90 return Common::JSParaError(env, callback); in NapiGetAllActiveNotifications() 93 Common in NapiGetAllActiveNotifications() [all...] |
H A D | napi_slot.cpp | 28 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiAddSlot() 29 return Common::NapiGetUndefined(env); in NapiAddSlot() 41 return Common::JSParaError(env, paras.callback); in NapiAddSlot() 44 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiAddSlot() 68 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiAddSlot() 87 return Common::NapiGetNull(env); in NapiAddSlot() 98 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiAddSlots() 99 return Common::NapiGetUndefined(env); in NapiAddSlots() 106 Common in NapiAddSlots() [all...] |
H A D | napi_local_live_view.cpp | 35 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSubscriteLocalAcitvity() 36 return Common::NapiGetUndefined(env); in NapiSubscriteLocalAcitvity() 48 return Common::JSParaError(env, callback); in NapiSubscriteLocalAcitvity() 51 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiSubscriteLocalAcitvity() 78 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiSubscriteLocalAcitvity() 97 return Common::NapiGetNull(env); in NapiSubscriteLocalAcitvity() 122 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseTriggerParameters() 129 auto retValue = Common::GetBundleOption(env, argv[PARAM0], asynccallbackinfo->bundleOption); in ParseTriggerParameters() 132 Common in ParseTriggerParameters() [all...] |
H A D | napi_remove_group.cpp | 39 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 48 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 51 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() 54 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 63 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 85 return Common::NapiGetNull(env); in ParseParameters() 89 return Common::NapiGetNull(env); in ParseParameters() 101 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in AsyncCompleteCallbackNapiRemoveGroupByBundle() 117 Common in NapiRemoveGroupByBundle() [all...] |
H A D | napi_publish.cpp | 29 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiPublish() 30 return Common::NapiGetUndefined(env); in NapiPublish() 37 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiPublish() 38 return Common::JSParaError(env, params.callback); in NapiPublish() 41 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiPublish() 67 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiPublish() 86 return Common::NapiGetNull(env); in NapiPublish() 98 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiShowNotification() 99 return Common in NapiShowNotification() [all...] |
H A D | napi_display_badge.cpp | 32 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiDisplayBadge() 33 return Common::NapiGetUndefined(env); in NapiDisplayBadge() 39 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiDisplayBadge() 40 return Common::JSParaError(env, params.callback); in NapiDisplayBadge() 43 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiDisplayBadge() 68 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiDisplayBadge() 87 return Common::NapiGetNull(env); in NapiDisplayBadge() 104 Common::CreateReturnValue(env, asynccallbackinfo->info, result); in AsyncCompleteCallbackNapiIsBadgeDisplayed() 120 Common in NapiIsBadgeDisplayed() [all...] |
H A D | napi_distributed_enable.cpp | 38 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 48 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 51 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() 54 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 63 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 71 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 82 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 88 return Common::NapiGetNull(env); in ParseParameters() 100 Common::CreateReturnValue(env, asynccallbackinfo->info, Common in AsyncCompleteCallbackNapiSetDistributedEnabledByBundle() [all...] |
H A D | napi_enable_notification.cpp | 38 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in AsyncCompleteCallbackNapiEnableNotification() 54 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiEnableNotification() 55 return Common::NapiGetUndefined(env); in NapiEnableNotification() 61 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiEnableNotification() 62 return Common::JSParaError(env, params.callback); in NapiEnableNotification() 65 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiEnableNotification() 92 return Common::NapiGetNull(env); in NapiEnableNotification() 109 Common::CreateReturnValue(env, asynccallbackinfo->info, result); in AsyncCompleteCallbackNapiIsNotificationEnabled() 125 Common in NapiIsNotificationEnabled() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | distributed.cpp | 40 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 50 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 60 return Common::NapiGetNull(env); in ParseParameters() 65 return Common::NapiGetNull(env); in ParseParameters() 78 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 88 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 91 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() 94 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 103 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 113 return Common in ParseParameters() [all...] |
H A D | slot.cpp | 218 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParametersByAddSlot() 228 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParametersByAddSlot() 240 if (!Common::GetNotificationSlot(env, argv[PARAM0], paras.slot)) { in ParseParametersByAddSlot() 250 return Common::NapiGetNull(env); in ParseParametersByAddSlot() 256 return Common::NapiGetNull(env); in ParseParametersByAddSlot() 268 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParametersByAddSlots() 279 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParametersByAddSlots() 287 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParametersByAddSlots() 297 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParametersByAddSlots() 301 if (!Common in ParseParametersByAddSlots() [all...] |
H A D | get_active.cpp | 34 result = Common::NapiGetNull(env); in AsyncCompleteCallbackGetAllActiveNotifications() 46 if (!Common::SetNotification(env, vec.GetRefPtr(), notificationResult)) { in AsyncCompleteCallbackGetAllActiveNotifications() 57 result = Common::NapiGetNull(env); in AsyncCompleteCallbackGetAllActiveNotifications() 60 Common::ReturnCallbackPromise(env, asynccallbackinfo->info, result); in AsyncCompleteCallbackGetAllActiveNotifications() 76 if (Common::ParseParaOnlyCallback(env, info, callback) == nullptr) { in GetAllActiveNotifications() 77 return Common::NapiGetUndefined(env); in GetAllActiveNotifications() 83 return Common::JSParaError(env, callback); in GetAllActiveNotifications() 86 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in GetAllActiveNotifications() 112 return Common::NapiGetNull(env); in GetAllActiveNotifications() 132 result = Common in AsyncCompleteCallbackGetActiveNotifications() [all...] |
H A D | cancel.cpp | 38 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 48 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 55 auto retValue = Common::GetBundleOption(env, argv[PARAM0], paras.option); in ParseParameters() 58 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 68 return Common::NapiGetNull(env); in ParseParameters() 74 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 98 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 109 return Common::NapiGetNull(env); in ParseParameters() 114 return Common::NapiGetNull(env); in ParseParameters() 127 Common in ParseParameters() [all...] |
H A D | display_badge.cpp | 36 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 46 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 50 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() 53 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 62 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 72 return Common::NapiGetNull(env); in ParseParameters() 77 return Common::NapiGetNull(env); in ParseParameters() 91 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 102 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 107 auto retValue = Common in ParseParameters() [all...] |
H A D | enable_notification.cpp | 42 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 52 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 55 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() 58 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in ParseParameters() 67 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 77 return Common::NapiGetNull(env); in ParseParameters() 82 return Common::NapiGetNull(env); in ParseParameters() 95 return Common::NapiGetNull(env); in ParseParameters() 103 return Common::NapiGetNull(env); in ParseParameters() 106 auto retValue = Common in ParseParameters() [all...] |
H A D | disturb_mode.cpp | 38 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in GetDoNotDisturbDate() 46 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in GetDoNotDisturbDate() 54 Common::NapiThrow(env, ERROR_PARAM_INVALID, PARAMETER_VERIFICATION_FAILED); in GetDoNotDisturbDate() 63 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in GetDoNotDisturbDate() 73 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in GetDoNotDisturbDate() 83 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in GetDoNotDisturbDate() 93 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in GetDoNotDisturbDate() 99 return Common::NapiGetNull(env); in GetDoNotDisturbDate() 179 if (!Common::GetBundleOption(env, nOption, option)) { in AnalyseTrustlist() 198 Common in ParseParameters() [all...] |
H A D | unsubscribe.cpp | 33 Common::NapiThrow(env, ERROR_PARAM_INVALID, MANDATORY_PARAMETER_ARE_LEFT_UNSPECIFIED); in ParseParameters() 43 Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); in ParseParameters() 58 return Common::NapiGetNull(env); in ParseParameters() 63 return Common::NapiGetNull(env); in ParseParameters() 72 return Common::NapiGetUndefined(env); in Unsubscribe() 79 return Common::JSParaError(env, paras.callback); in Unsubscribe() 82 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in Unsubscribe() 118 Common::ReturnCallbackPromise(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in Unsubscribe() 136 return Common in Unsubscribe() [all...] |
/base/useriam/user_auth_framework/test/unittest/services/src/ |
H A D | identify_context_test.cpp | 58 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 60 std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 66 auto oriContext = Common::MakeShared<IdentifyContext>(testContestId, identify, contextCallback); in HWTEST_F() 83 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 86 std::shared_ptr<MockIdentification> mockIdentify = Common::MakeShared<MockIdentification>(); in HWTEST_F() 91 auto oriContext = Common::MakeShared<IdentifyContext>(testContestId, mockIdentify, contextCallback); in HWTEST_F() 104 std::shared_ptr<MockIdentification> mockIdentify = Common::MakeShared<MockIdentification>(); in HWTEST_F() 106 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 109 auto oriContext = Common::MakeShared<IdentifyContext>(testContestId, mockIdentify, contextCallback); in HWTEST_F() 121 std::shared_ptr<MockIdentification> mockIdentify = Common in HWTEST_F() [all...] |
H A D | enroll_context_test.cpp | 60 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 62 std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 68 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, enroll, contextCallback); in HWTEST_F() 85 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 88 std::shared_ptr<MockEnrollment> mockEnroll = Common::MakeShared<MockEnrollment>(); in HWTEST_F() 93 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, mockEnroll, contextCallback); in HWTEST_F() 106 std::shared_ptr<MockEnrollment> mockEnroll = Common::MakeShared<MockEnrollment>(); in HWTEST_F() 108 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 111 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, mockEnroll, contextCallback); in HWTEST_F() 123 std::shared_ptr<MockEnrollment> mockEnroll = Common in HWTEST_F() [all...] |
H A D | simple_auth_context_test.cpp | 62 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 64 std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 70 auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, auth, contextCallback); in HWTEST_F() 87 const auto finalResult = Common::MakeShared<Attributes>(); in HWTEST_F() 90 std::shared_ptr<MockAuthentication> mockAuth = Common::MakeShared<MockAuthentication>(); in HWTEST_F() 95 auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, mockAuth, contextCallback); in HWTEST_F() 108 std::shared_ptr<MockAuthentication> mockAuth = Common::MakeShared<MockAuthentication>(); in HWTEST_F() 110 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in HWTEST_F() 113 auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, mockAuth, contextCallback); in HWTEST_F() 125 std::shared_ptr<MockAuthentication> mockAuth = Common in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/ |
H A D | napi_subscribe.cpp | 31 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSubscribe() 32 return Common::NapiGetUndefined(env); in NapiSubscribe() 39 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiSubscribe() 40 return Common::JSParaError(env, callback); in NapiSubscribe() 43 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiSubscribe() 81 Common::CreateReturnValue(env, asynccallbackinfo->info, Common::NapiGetNull(env)); in NapiSubscribe() 100 return Common::NapiGetNull(env); in NapiSubscribe() 113 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiSubscribeSelf() 114 return Common in NapiSubscribeSelf() [all...] |
H A D | napi_remove.cpp | 55 Common::CreateReturnValue(env, removeInfo->info, Common::NapiGetNull(env)); in NapiRemoveCompleteCallback() 70 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemove() 71 return Common::NapiGetUndefined(env); in NapiRemove() 75 Common::NapiThrow(env, ERROR_INTERNAL_ERROR); in NapiRemove() 76 return Common::JSParaError(env, params.callback); in NapiRemove() 79 Common::PaddingCallbackPromiseInfo(env, params.callback, removeInfo->info, promise); in NapiRemove() 89 return Common::NapiGetNull(env); in NapiRemove() 100 Common::NapiThrow(env, ERROR_PARAM_INVALID); in NapiRemoveAll() 101 return Common in NapiRemoveAll() [all...] |