/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_constant.cpp | 25 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/ |
D | hap_verify_test.cpp | 72 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/customization/enterprise_device_management/test/unittest/src/ |
D | enterprise_admin_connection_test.cpp | 61 int32_t resultCode = 0; variable 68 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode); 69 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode); 86 int32_t resultCode = 0; variable 93 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode); 94 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode); 112 int32_t resultCode = 0; variable 115 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode); 116 enterpriseAdminConnectionTest->OnAbilityDisconnectDone(admin, resultCode); 133 int32_t resultCode = 0; variable [all …]
|
D | enterprise_bundle_connection_test.cpp | 58 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/certificate_framework/frameworks/js/napi/certificate/src/ |
D | napi_certificate_init.cpp | 54 napi_value resultCode = nullptr; in CreateCertResultCode() local 55 napi_create_object(env, &resultCode); in CreateCertResultCode() 57 CertAddUint32Property(env, resultCode, "INVALID_PARAMS", JS_ERR_CERT_INVALID_PARAMS); in CreateCertResultCode() 58 CertAddUint32Property(env, resultCode, "NOT_SUPPORT", JS_ERR_CERT_NOT_SUPPORT); in CreateCertResultCode() 59 CertAddUint32Property(env, resultCode, "ERR_OUT_OF_MEMORY", JS_ERR_CERT_OUT_OF_MEMORY); in CreateCertResultCode() 60 CertAddUint32Property(env, resultCode, "ERR_RUNTIME_ERROR", JS_ERR_CERT_RUNTIME_ERROR); in CreateCertResultCode() 61 CertAddUint32Property(env, resultCode, "ERR_CRYPTO_OPERATION", JS_ERR_CERT_CRYPTO_OPERATION); in CreateCertResultCode() 62 …CertAddUint32Property(env, resultCode, "ERR_CERT_SIGNATURE_FAILURE", JS_ERR_CERT_SIGNATURE_FAILURE… in CreateCertResultCode() 63 CertAddUint32Property(env, resultCode, "ERR_CERT_NOT_YET_VALID", JS_ERR_CERT_NOT_YET_VALID); in CreateCertResultCode() 64 CertAddUint32Property(env, resultCode, "ERR_CERT_HAS_EXPIRED", JS_ERR_CERT_HAS_EXPIRED); in CreateCertResultCode() [all …]
|
/base/security/access_token/services/tokensyncmanager/src/service/ |
D | token_sync_manager_service.cpp | 104 …const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand(udid, syncRemoteHapT… in GetRemoteHapTokenInfo() local 105 if (resultCode != Constant::SUCCESS) { in GetRemoteHapTokenInfo() 107 …teExecutorManager executeCommand SyncRemoteHapTokenCommand failed, return %{public}d", resultCode); in GetRemoteHapTokenInfo() 110 ACCESSTOKEN_LOG_INFO(LABEL, "get resultCode: %{public}d", resultCode); in GetRemoteHapTokenInfo() 132 const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand( in DeleteRemoteHapTokenInfo() local 134 if (resultCode != Constant::SUCCESS) { in DeleteRemoteHapTokenInfo() 136 …oteExecutorManager executeCommand DeleteRemoteTokenCommand failed, return %{public}d", resultCode); in DeleteRemoteHapTokenInfo() 139 ACCESSTOKEN_LOG_INFO(LABEL, "get resultCode: %{public}d", resultCode); in DeleteRemoteHapTokenInfo() 158 const int32_t resultCode = RemoteCommandManager::GetInstance().ExecuteCommand( in UpdateRemoteHapTokenInfo() local 160 if (resultCode != Constant::SUCCESS) { in UpdateRemoteHapTokenInfo() [all …]
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
D | js_print_extension_connection.cpp | 40 const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() argument 42 PRINT_HILOGD("OnAbilityConnectDone begin, resultCode:%{public}d", resultCode); in OnAbilityConnectDone() 48 auto task = [connection, element, remoteObject, resultCode]() { in OnAbilityConnectDone() 54 connectionSptr->HandleOnAbilityConnectDone(element, remoteObject, resultCode); in OnAbilityConnectDone() 60 const sptr<IRemoteObject> &remoteObject, int resultCode) in HandleOnAbilityConnectDone() argument 62 PRINT_HILOGD("HandleOnAbilityConnectDone begin, resultCode:%{public}d", resultCode); in HandleOnAbilityConnectDone() 91 …xtensionConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) in OnAbilityDisconnectDone() argument 93 PRINT_HILOGD("OnAbilityDisconnectDone begin, resultCode:%{public}d", resultCode); in OnAbilityDisconnectDone() 99 auto task = [connection, element, resultCode]() { in OnAbilityDisconnectDone() 105 connectionSptr->HandleOnAbilityDisconnectDone(element, resultCode); in OnAbilityDisconnectDone() [all …]
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_authenticator_session.cpp | 60 …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 187 …resultCode = authenticatorProxy_->AddAccountImplicitly(request_.authType, request_.callerBundleNam… in OnAbilityConnectDone() 191 …resultCode = 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 …]
|
D | app_account_check_labels_callback.cpp | 32 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/telephony/call_manager/services/call/src/ |
D | call_ability_connect_callback.cpp | 28 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/test/moduletest/app_account/ |
D | app_account_authenticator_session_module_test.cpp | 50 MOCK_METHOD2(OnResult, void(int32_t resultCode, const AAFwk::Want &result)); 215 int resultCode = ERR_OK; variable 217 … appAccountAuthenticatorSessionPtr->OnAbilityConnectDone(element, authenticatorProxy, resultCode); 220 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result); 221 ASSERT_EQ(ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION, resultCode); 223 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result); 224 ASSERT_EQ(ERR_JS_SUCCESS, resultCode); 232 … appAccountAuthenticatorSessionPtr->OnAbilityConnectDone(element, authenticatorProxy, resultCode); 234 resultCode = appAccountAuthenticatorSessionPtr->OnResult(ERR_JS_SUCCESS, result); 235 ASSERT_EQ(ERR_JS_ACCOUNT_AUTHENTICATOR_SERVICE_EXCEPTION, resultCode); [all …]
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | user_auth_impl.cpp | 109 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 …]
|
D | user_auth_entry.cpp | 644 napi_value resultCode = nullptr; in ResultCodeConstructor() local 657 NAPI_CALL(env, napi_create_object(env, &resultCode)); in ResultCodeConstructor() 670 NAPI_CALL(env, napi_set_named_property(env, resultCode, "SUCCESS", success)); in ResultCodeConstructor() 671 NAPI_CALL(env, napi_set_named_property(env, resultCode, "FAIL", fail)); in ResultCodeConstructor() 672 NAPI_CALL(env, napi_set_named_property(env, resultCode, "GENERAL_ERROR", generalError)); in ResultCodeConstructor() 673 NAPI_CALL(env, napi_set_named_property(env, resultCode, "CANCELED", canceled)); in ResultCodeConstructor() 674 NAPI_CALL(env, napi_set_named_property(env, resultCode, "TIMEOUT", timeout)); in ResultCodeConstructor() 675 NAPI_CALL(env, napi_set_named_property(env, resultCode, "TYPE_NOT_SUPPORT", typeNotSupport)); in ResultCodeConstructor() 676 …NAPI_CALL(env, napi_set_named_property(env, resultCode, "TRUST_LEVEL_NOT_SUPPORT", trustLevelNotSu… in ResultCodeConstructor() 677 NAPI_CALL(env, napi_set_named_property(env, resultCode, "BUSY", busy)); in ResultCodeConstructor() [all …]
|
/base/account/os_account/services/accountmgr/test/mock/common/ |
D | ability_manager_adapter.cpp | 70 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/useriam/user_auth_framework/services/context/src/ |
D | enroll_context.cpp | 67 void EnrollContext::OnResult(int32_t resultCode, const std::shared_ptr<Attributes> &scheduleResultA… in OnResult() argument 69 IAM_LOGI("%{public}s receive result code %{public}d", GetDescription(), resultCode); in OnResult() 76 if (resultCode == SUCCESS) { in OnResult() 77 resultCode = GetLatestError(); in OnResult() 80 InvokeResultCallback(resultCode, credentialId, rootSecret, secUserId); in OnResult() 81 IAM_LOGI("%{public}s on result %{public}d finish", GetDescription(), resultCode); in OnResult() 128 void EnrollContext::InvokeResultCallback(int32_t resultCode, const uint64_t credentialId, in InvokeResultCallback() argument 146 callback_->OnResult(resultCode, finalResult); in InvokeResultCallback()
|
D | identify_context.cpp | 62 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/theme/wallpaper_mgr/frameworks/kits/extension/include/ |
D | js_wallpaper_extension_context.h | 38 int32_t resultCode) override; 39 … void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int32_t resultCode) override; 41 int32_t resultCode); 42 void HandleOnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int32_t resultCode);
|
/base/print/print_fwk/frameworks/kits/extension/include/ |
D | js_print_extension_connection.h | 36 …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/ |
D | js_inputmethod_extension_context.h | 37 …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/notification/common_event_service/frameworks/native/test/unittest/ |
D | matching_skills_test.cpp | 398 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/notification/common_event_service/services/test/unittest/static_subscriber_connection_unit_test/ |
D | static_subscriber_connection_unit_test.cpp | 71 int resultCode = 0; variable 72 conn->OnAbilityConnectDone(element, remoteObject, resultCode); 73 conn->OnAbilityDisconnectDone(element, resultCode);
|
/base/account/os_account/services/accountmgr/include/appaccount/ |
D | app_account_authenticator_session.h | 60 …ecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) override; 61 void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) override; 76 …nst AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode); 77 void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode); 79 int32_t OnResult(int32_t resultCode, const AAFwk::Want &result) const;
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/ |
D | user_auth_impl.h | 38 …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);
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | hap_verify_test.cpp | 84 int32_t resultCode = HapVerify(errorFile, hapVerifyResult); variable 86 ASSERT_TRUE(resultCode == targetResult); 91 resultCode = HapVerify(errorFile, hapVerifyResult); 92 ASSERT_TRUE(resultCode == targetResult); 104 resultCode = HapVerify(rightFile, hapVerifyResult); 105 ASSERT_TRUE(resultCode == SIGNATURE_NOT_FOUND); 118 resultCode = HapVerify(rightFile1, hapVerifyResult); 119 ASSERT_TRUE(resultCode == SIGNATURE_NOT_FOUND); 129 resultCode = HapVerify(invalidFile, hapVerifyResult); 130 ASSERT_TRUE(resultCode == SIGNATURE_NOT_FOUND);
|
/base/update/updateservice/services/engine/src/ |
D | update_notify.cpp | 78 const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() argument 80 ENGINE_LOGI("OnAbilityConnectDone successfully. result %{public}d", resultCode); in OnAbilityConnectDone() 83 …d NotifyConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) in OnAbilityDisconnectDone() argument 85 ENGINE_LOGI("OnAbilityDisconnectDone successfully. result %{public}d", resultCode); in OnAbilityDisconnectDone()
|