Home
last modified time | relevance | path

Searched refs:resultCode (Results 1 – 25 of 186) sorted by relevance

12345678

/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_constant.cpp25 static void ResultCodeInit(napi_env env, napi_value *resultCode) in ResultCodeInit() argument
27 SetNamedProperty(env, (*resultCode), ERR_JS_SUCCESS_V8, "SUCCESS"); in ResultCodeInit()
28 SetNamedProperty(env, (*resultCode), ERR_JS_ACCOUNT_NOT_EXIST, "ERROR_ACCOUNT_NOT_EXIST"); in ResultCodeInit()
29 …SetNamedProperty(env, (*resultCode), ERR_JS_APP_ACCOUNT_SERVICE_EXCEPTION, "ERROR_APP_ACCOUNT_SERV… in ResultCodeInit()
30 SetNamedProperty(env, (*resultCode), ERR_JS_INVALID_PASSWORD, "ERROR_INVALID_PASSWORD"); in ResultCodeInit()
31 SetNamedProperty(env, (*resultCode), ERR_JS_INVALID_REQUEST, "ERROR_INVALID_REQUEST"); in ResultCodeInit()
32 SetNamedProperty(env, (*resultCode), ERR_JS_INVALID_RESPONSE, "ERROR_INVALID_RESPONSE"); in ResultCodeInit()
33 SetNamedProperty(env, (*resultCode), ERR_JS_NETWORK_EXCEPTION, "ERROR_NETWORK_EXCEPTION"); in ResultCodeInit()
34 …SetNamedProperty(env, (*resultCode), ERR_JS_OAUTH_AUTHENTICATOR_NOT_EXIST, "ERROR_OAUTH_AUTHENTICA… in ResultCodeInit()
35 SetNamedProperty(env, (*resultCode), ERR_JS_OAUTH_CANCELED, "ERROR_OAUTH_CANCELED"); in ResultCodeInit()
[all …]
/base/security/appverify/interfaces/innerkits/appverify_lite/unittest/src/
Dhap_verify_test.cpp72 int32_t resultCode = APPVERI_AppVerify(signedHap, &verifyResult); variable
73 ASSERT_TRUE(resultCode == V_OK);
96 int32_t resultCode = APPVERI_AppVerify(unsignedHap, &verifyResult); variable
97 ASSERT_TRUE(resultCode != V_OK);
122 int32_t resultCode = APPVERI_AppVerify(udidUnmatchHap, &verifyResult); variable
123 ASSERT_TRUE(resultCode != V_OK);
148 int32_t resultCode = APPVERI_AppVerify(tamperedHap, &verifyResult); variable
149 ASSERT_TRUE(resultCode != V_OK);
174 int32_t resultCode = APPVERI_AppVerify(testHap, &verifyResult); variable
175 ASSERT_TRUE(resultCode != V_OK);
[all …]
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_certificate_init.cpp53 napi_value resultCode = nullptr; in CreateCertResultCode() local
54 napi_create_object(env, &resultCode); in CreateCertResultCode()
56 CertAddUint32Property(env, resultCode, "INVALID_PARAMS", JS_ERR_CERT_INVALID_PARAMS); in CreateCertResultCode()
57 CertAddUint32Property(env, resultCode, "NOT_SUPPORT", JS_ERR_CERT_NOT_SUPPORT); in CreateCertResultCode()
58 CertAddUint32Property(env, resultCode, "ERR_OUT_OF_MEMORY", JS_ERR_CERT_OUT_OF_MEMORY); in CreateCertResultCode()
59 CertAddUint32Property(env, resultCode, "ERR_RUNTIME_ERROR", JS_ERR_CERT_RUNTIME_ERROR); in CreateCertResultCode()
60 CertAddUint32Property(env, resultCode, "ERR_CRYPTO_OPERATION", JS_ERR_CERT_CRYPTO_OPERATION); in CreateCertResultCode()
61 …CertAddUint32Property(env, resultCode, "ERR_CERT_SIGNATURE_FAILURE", JS_ERR_CERT_SIGNATURE_FAILURE… in CreateCertResultCode()
62 CertAddUint32Property(env, resultCode, "ERR_CERT_NOT_YET_VALID", JS_ERR_CERT_NOT_YET_VALID); in CreateCertResultCode()
63 CertAddUint32Property(env, resultCode, "ERR_CERT_HAS_EXPIRED", JS_ERR_CERT_HAS_EXPIRED); in CreateCertResultCode()
[all …]
/base/customization/enterprise_device_management/test/unittest/src/
Denterprise_admin_connection_test.cpp59 int32_t resultCode = 0; variable
66 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
67 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
84 int32_t resultCode = 0; variable
91 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
92 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
110 int32_t resultCode = 0; variable
113 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
114 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
Denterprise_bundle_connection_test.cpp58 int32_t resultCode = 0; variable
65 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
66 enterpriseBundleConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
82 int32_t resultCode = 0; variable
89 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
90 enterpriseBundleConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
107 int32_t resultCode = 0; variable
110 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
111 enterpriseBundleConnectionTest->OnAbilityDisconnectDone(admin, resultCode);
/base/security/access_token/services/tokensyncmanager/src/service/
Dtoken_sync_manager_service.cpp102 …const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand(udid, syncRemoteHapT… in GetRemoteHapTokenInfo() local
103 if (resultCode != Constant::SUCCESS) { in GetRemoteHapTokenInfo()
105 …teExecutorManager executeCommand SyncRemoteHapTokenCommand failed, return %{public}d", resultCode); in GetRemoteHapTokenInfo()
108 ACCESSTOKEN_LOG_INFO(LABEL, "get resultCode: %{public}d", resultCode); in GetRemoteHapTokenInfo()
130 const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand( in DeleteRemoteHapTokenInfo() local
132 if (resultCode != Constant::SUCCESS) { in DeleteRemoteHapTokenInfo()
134 …oteExecutorManager executeCommand DeleteRemoteTokenCommand failed, return %{public}d", resultCode); in DeleteRemoteHapTokenInfo()
137 ACCESSTOKEN_LOG_INFO(LABEL, "get resultCode: %{public}d", resultCode); in DeleteRemoteHapTokenInfo()
156 const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand( in UpdateRemoteHapTokenInfo() local
158 if (resultCode != Constant::SUCCESS) { in UpdateRemoteHapTokenInfo()
[all …]
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension_connection.cpp39 const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() argument
41 PRINT_HILOGD("OnAbilityConnectDone begin, resultCode:%{public}d", resultCode); in OnAbilityConnectDone()
47 auto task = [connection, element, remoteObject, resultCode]() { in OnAbilityConnectDone()
53 connectionSptr->HandleOnAbilityConnectDone(element, remoteObject, resultCode); in OnAbilityConnectDone()
59 const sptr<IRemoteObject> &remoteObject, int resultCode) in HandleOnAbilityConnectDone() argument
61 PRINT_HILOGD("HandleOnAbilityConnectDone begin, resultCode:%{public}d", resultCode); in HandleOnAbilityConnectDone()
92 …xtensionConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) in OnAbilityDisconnectDone() argument
94 PRINT_HILOGD("OnAbilityDisconnectDone begin, resultCode:%{public}d", resultCode); in OnAbilityDisconnectDone()
100 auto task = [connection, element, resultCode]() { in OnAbilityDisconnectDone()
106 connectionSptr->HandleOnAbilityDisconnectDone(element, resultCode); in OnAbilityDisconnectDone()
[all …]
/base/telephony/call_manager/services/call/src/
Dcall_ability_connect_callback.cpp28 const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() argument
30 TELEPHONY_LOGI("connect callui result code: %{public}d", resultCode); in OnAbilityConnectDone()
31 if (resultCode == CONNECT_ABILITY_SUCCESS) { in OnAbilityConnectDone()
37 …ityConnectCallback::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) in OnAbilityDisconnectDone() argument
39 TELEPHONY_LOGI("disconnect callui result code: %{public}d", resultCode); in OnAbilityDisconnectDone()
41 if (resultCode == UNEXPECT_DISCONNECT_CODE) { in OnAbilityDisconnectDone()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_authenticator_session.cpp60 …onst AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() argument
63 sessionId_, element, remoteObject, resultCode); in OnAbilityConnectDone()
66 … SessionConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) in OnAbilityDisconnectDone() argument
69 sessionId_, element, resultCode); in OnAbilityDisconnectDone()
174 …onst AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() argument
187resultCode = authenticatorProxy_->AddAccountImplicitly(request_.authType, request_.callerBundleNam… in OnAbilityConnectDone()
191resultCode = authenticatorProxy_->Authenticate(request_.name, request_.authType, request_.callerBu… in OnAbilityConnectDone()
195 resultCode = authenticatorProxy_->CreateAccountImplicitly(request_.createOptions, in OnAbilityConnectDone()
199 resultCode = authenticatorProxy_->Auth( in OnAbilityConnectDone()
203 resultCode = authenticatorProxy_->VerifyCredential( in OnAbilityConnectDone()
[all …]
Dapp_account_check_labels_callback.cpp32 void AppAccountCheckLabelsCallback::SendResult(int32_t resultCode) in SendResult() argument
35 if (resultCode == ERR_JS_SUCCESS) { in SendResult()
45 …AppAccountAuthenticatorSessionManager::GetInstance().OnSessionResult(sessionId_, resultCode, resul… in SendResult()
70 void AppAccountCheckLabelsCallback::OnResult(int32_t resultCode, const AAFwk::Want &result) in OnResult() argument
/base/account/os_account/services/accountmgr/test/mock/common/
Dability_manager_adapter.cpp70 int resultCode = ERR_OK; in ConnectAbility() local
72 connect->OnAbilityConnectDone(element, mockServicePtr_, resultCode); in ConnectAbility()
75 int resultCode = ERR_OK; in ConnectAbility() local
87 connect->OnAbilityConnectDone(element, nullptr, resultCode); in ConnectAbility()
90 connect->OnAbilityConnectDone(element, authorizationService, resultCode); in ConnectAbility()
92 int resultCode = ERR_OK; in ConnectAbility() local
94 connect->OnAbilityConnectDone(element, nullptr, resultCode); in ConnectAbility()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_authenticator_session_module_test.cpp50 MOCK_METHOD2(OnResult, void(int32_t resultCode, const AAFwk::Want &result));
210 int resultCode = ERR_OK; variable
212 … appAccountAuthenticatorSessionPtr->OnAbilityConnectDone(element, authenticatorProxy, resultCode);
215 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result);
216 ASSERT_EQ(ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION, resultCode);
218 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result);
219 ASSERT_EQ(ERR_JS_SUCCESS, resultCode);
227 … appAccountAuthenticatorSessionPtr->OnAbilityConnectDone(element, authenticatorProxy, resultCode);
229 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result);
230 ASSERT_EQ(ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION, resultCode);
[all …]
/base/useriam/user_auth_framework/services/context/src/
Denroll_context.cpp64 void EnrollContext::OnResult(int32_t resultCode, const std::shared_ptr<Attributes> &scheduleResultA… in OnResult() argument
66 IAM_LOGI("%{public}s receive result code %{public}d", GetDescription(), resultCode); in OnResult()
73 if (resultCode == SUCCESS) { in OnResult()
74 resultCode = GetLatestError(); in OnResult()
77 InvokeResultCallback(resultCode, credentialId, rootSecret, secUserId); in OnResult()
78 IAM_LOGI("%{public}s on result %{public}d finish", GetDescription(), resultCode); in OnResult()
125 void EnrollContext::InvokeResultCallback(int32_t resultCode, const uint64_t credentialId, in InvokeResultCallback() argument
143 callback_->OnResult(resultCode, finalResult); in InvokeResultCallback()
Didentify_context.cpp62 void IdentifyContext::OnResult(int32_t resultCode, const std::shared_ptr<Attributes> &scheduleResul… in OnResult() argument
64 IAM_LOGI("%{public}s receive result code %{public}d", GetDescription(), resultCode); in OnResult()
69 if (resultCode == SUCCESS) { in OnResult()
70 resultCode = GetLatestError(); in OnResult()
72 resultInfo.result = resultCode; in OnResult()
75 IAM_LOGI("%{public}s on result %{public}d finish", GetDescription(), resultCode); in OnResult()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_impl.cpp109 ResultCode resultCode; in Execute() local
110 NAPI_CALL(env, ParseExecuteAuthType(env, argv[PARAM0], authType, resultCode)); in Execute()
111 if (resultCode != ResultCode::SUCCESS) { in Execute()
114 callback->OnResult(resultCode, extra); in Execute()
118 NAPI_CALL(env, ParseExecuteSecureLevel(env, argv[PARAM1], authTrustLevel, resultCode)); in Execute()
119 if (resultCode != ResultCode::SUCCESS) { in Execute()
122 callback->OnResult(resultCode, extra); in Execute()
132 AuthType &authType, ResultCode &resultCode) in ParseExecuteAuthType() argument
134 resultCode = ResultCode::GENERAL_ERROR; in ParseExecuteAuthType()
147 resultCode = ResultCode::TYPE_NOT_SUPPORT; in ParseExecuteAuthType()
[all …]
/base/print/print_fwk/frameworks/kits/extension/include/
Djs_print_extension_connection.h36 …ppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) override;
37 void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) override;
39 … const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode);
40 void HandleOnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode);
/base/inputmethod/imf/frameworks/kits/extension/include/
Djs_inputmethod_extension_context.h37 …ppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) override;
38 void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) override;
40 … const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode);
41 void HandleOnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode);
/base/theme/wallpaper_mgr/frameworks/kits/extension/include/
Djs_wallpaper_extension_context.h39 int32_t resultCode) override;
40 … void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int32_t resultCode) override;
42 int32_t resultCode);
43 void HandleOnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int32_t resultCode);
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_authorization_extension_context.h37 …ppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) override;
38 void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) override;
40 … const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode);
41 void HandleOnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode);
/base/security/access_token/services/tokensyncmanager/src/remote/
Dsoft_bus_session_listener.cpp46 int32_t resultCode = ::GetPeerSessionName(sessionId, contents, len); in OnSessionOpened() local
47 if (resultCode != Constant::SUCCESS) { in OnSessionOpened()
48 …KEN_LOG_ERROR(LABEL, "OnSessionOpened, GetPeerSessionName failed, result: %{public}d", resultCode); in OnSessionOpened()
99 int32_t resultCode = ::GetPeerDeviceId(sessionId, contents, len); in OnBytesReceived() local
100 if (resultCode != Constant::SUCCESS) { in OnBytesReceived()
101 ACCESSTOKEN_LOG_ERROR(LABEL, "GetPeerDeviceId, failed, result: %{public}d", resultCode); in OnBytesReceived()
/base/notification/common_event_service/services/test/unittest/static_subscriber_connection_unit_test/
Dstatic_subscriber_connection_unit_test.cpp71 int resultCode = 0; variable
72 conn->OnAbilityConnectDone(element, remoteObject, resultCode);
73 conn->OnAbilityDisconnectDone(element, resultCode);
/base/notification/common_event_service/frameworks/native/test/unittest/
Dmatching_skills_test.cpp398 int32_t resultCode = 1; variable
403 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token);
416 int32_t resultCode = 1; variable
421 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token);
436 int32_t resultCode = 1; variable
441 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token);
456 int32_t resultCode = 1; variable
461 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token);
477 int32_t resultCode = 1; variable
482 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token);
[all …]
/base/account/os_account/frameworks/domain_account/src/
Ddomain_auth_callback_client.cpp28 void DomainAuthCallbackClient::OnResult(int32_t resultCode, const DomainAuthResult &result) in OnResult() argument
31 proxy_->OnResult(resultCode, result); in OnResult()
Ddomain_auth_callback_stub.cpp49 int32_t resultCode; in ProcOnResult() local
50 if (!data.ReadInt32(resultCode)) { in ProcOnResult()
67 OnResult(resultCode, result); in ProcOnResult()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
Duser_auth_impl.h38 …tatus ParseExecuteInfo(napi_env env, napi_value value, AuthType &authType, ResultCode &resultCode);
39 …s ParseExecuteAuthType(napi_env env, napi_value value, AuthType &authType, ResultCode &resultCode);
41 AuthTrustLevel &authTrustLevel, ResultCode &resultCode);

12345678