Home
last modified time | relevance | path

Searched refs:errcode (Results 1 – 25 of 39) sorted by relevance

12

/foundation/ability/ability_runtime/services/abilitymgr/src/
Dstop_user_callback_proxy.cpp24 void StopUserCallbackProxy::OnStopUserDone(int userId, int errcode) in OnStopUserDone() argument
26 SendRequestCommon(userId, errcode, IStopUserCallback::StopUserCallbackCmd::ON_STOP_USER_DONE); in OnStopUserDone()
29 void StopUserCallbackProxy::SendRequestCommon(int userId, int errcode, IStopUserCallback::StopUserC… in SendRequestCommon() argument
36 cmd, userId, errcode); in SendRequestCommon()
47 if (!data.WriteInt32(errcode)) { in SendRequestCommon()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
Dgt_bundle_installer.h87 #define CHECK_PRO_RESULT(errcode, fp, permissions, bundleInfo, signatureInfo) \ argument
89 if ((errcode) != ERR_OK) { \
92 return errcode; \
105 #define CHECK_PRO_PART_ROLLBACK(errcode, path, permissions, bundleInfo, signatureInfo) \ argument
107 if ((errcode) != ERR_OK) { \
113 return errcode; \
117 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, signatureInfo, randStr) \ argument
119 if ((errcode) != ERR_OK && (bundleInfo) != nullptr) { \
125 return errcode; \
Dbundle_installer.h71 #define CHECK_PRO_RESULT(errcode, bundleInfo, permissions, abilityRes) \ argument
73 if ((errcode) != ERR_OK) { \
77 return errcode; \
90 #define CHECK_PRO_PART_ROLLBACK(errcode, path, permissions, bundleInfo, abilityRes) \ argument
92 if ((errcode) != ERR_OK && (bundleInfo) != nullptr) { \
97 return errcode; \
101 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, abilityRes, randStr) \ argument
103 if ((errcode) != ERR_OK && (bundleInfo) != nullptr) { \
109 return errcode; \
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/shared/
Dshared_bundle_installer.h82 #define CHECK_RESULT(errcode, errmsg) \ argument
84 if (errcode != ERR_OK) { \
85 APP_LOGE(errmsg, errcode); \
86 return errcode; \
Dinner_shared_bundle_installer.h121 #define CHECK_RESULT(errcode, errmsg) \ argument
123 if (errcode != ERR_OK) { \
124 APP_LOGE(errmsg, errcode); \
125 return errcode; \
/foundation/ability/ability_runtime/test/unittest/stop_user_callback_proxy_test/
Dstop_user_callback_proxy_test.cpp65 int errcode = 0; variable
66 proxy_->OnStopUserDone(userId, errcode);
84 int errcode = 0; variable
85 proxy_->OnStopUserDone(userId, errcode);
Dstop_user_callback_stub_mock.h48 virtual void OnStopUserDone(int userId, int errcode) {}; in OnStopUserDone() argument
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
Dtrans_auth_message.c60 int32_t errcode; in TransAuthChannelMsgUnpack() local
61 if (GetJsonObjectNumberItem(obj, "ERR_CODE", &errcode)) { in TransAuthChannelMsgUnpack()
62 SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "unpack errcode:%d", errcode); in TransAuthChannelMsgUnpack()
81 NO_SANITIZE("cfi") int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJs… in TransAuthChannelErrorPack() argument
94 !AddNumberToJsonObject(obj, "ERR_CODE", errcode) || in TransAuthChannelErrorPack()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_provision_info/
Dapp_provision_info_rdb.h46 #define CHECK_RDB_RESULT_RETURN_IF_FAIL(errcode, errmsg) \ argument
48 if ((errcode) != NativeRdb::E_OK) { \
49 APP_LOGE(errmsg, errcode); \
/foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include/
Dstop_user_callback_proxy.h40 virtual void OnStopUserDone(int userId, int errcode) override;
42 void SendRequestCommon(int userId, int errcode, IStopUserCallback::StopUserCallbackCmd cmd);
Dstop_user_callback.h31 virtual void OnStopUserDone(int userId, int errcode) = 0;
Datomic_service_status_callback_proxy.h63 …void SendRequestCommon(int errcode, IAtomicServiceStatusCallback::IAtomicServiceStatusCallbackCmd …
/foundation/ability/ability_runtime/frameworks/js/napi/ability_manager/
Djs_ability_manager.cpp116 auto errcode = AbilityManagerClient::GetInstance()->GetAbilityRunningInfos(infos); in OnGetAbilityRunningInfos() local
117 if (errcode == 0) { in OnGetAbilityRunningInfos()
121 … task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(errcode))); in OnGetAbilityRunningInfos()
125 … task.Reject(engine, CreateJsError(engine, errcode, "Get mission infos failed.")); in OnGetAbilityRunningInfos()
159 … auto errcode = AbilityManagerClient::GetInstance()->GetExtensionRunningInfos(upperLimit, infos); in OnGetExtensionRunningInfos() local
160 if (errcode == 0) { in OnGetExtensionRunningInfos()
164 … task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(errcode))); in OnGetExtensionRunningInfos()
168 … task.Reject(engine, CreateJsError(engine, errcode, "Get mission infos failed.")); in OnGetExtensionRunningInfos()
213 auto errcode = GetAppManagerInstance()->UpdateConfiguration(changeConfig); in OnUpdateConfiguration() local
214 if (errcode == 0) { in OnUpdateConfiguration()
[all …]
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
Djs_ability.cpp39 …int errcode = stageContext->GetSystemPreferencesDir(dataGroupId, false, contextInfo.preferencesDir… in GetContextInfo() local
40 if (errcode != 0) { in GetContextInfo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
Dbase_bundle_installer.h652 #define CHECK_RESULT(errcode, errmsg) \ argument
654 if (errcode != ERR_OK) { \
655 APP_LOGE(errmsg, errcode); \
656 return errcode; \
660 #define CHECK_RESULT_WITH_ROLLBACK(errcode, errmsg, newInfos, oldInfo) \ argument
662 if ((errcode) == ERR_APPEXECFWK_INSTALL_SINGLETON_NOT_SAME || \
663 (errcode) == ERR_APPEXECFWK_INSTALL_ZERO_USER_WITH_NO_SINGLETON) { \
664 APP_LOGE(errmsg, errcode); \
665 return errcode; \
668 if (errcode != ERR_OK) { \
[all …]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
Djs_ability_context.cpp129 auto errcode = abilityContext->TerminateSelf(); in OnTerminateSelf() local
130 if (errcode == 0) { in OnTerminateSelf()
133 task->Reject(engine, CreateJsErrorByNativeErr(engine, errcode)); in OnTerminateSelf()
161 auto errcode = abilityContext->TerminateSelf(); in OnTerminateSelfWithResult() local
162 if (errcode == 0) { in OnTerminateSelfWithResult()
165 task->Reject(engine, CreateJsErrorByNativeErr(engine, errcode)); in OnTerminateSelfWithResult()
/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
Djs_ability_context.cpp747 auto errcode = context->StartServiceExtensionAbility(want); in OnStartExtensionAbility() local
748 if (errcode == 0) { in OnStartExtensionAbility()
751 task.Reject(engine, CreateJsErrorByNativeErr(engine, errcode)); in OnStartExtensionAbility()
788 auto errcode = context->StartServiceExtensionAbility(want, accountId); in OnStartExtensionAbilityWithAccount() local
789 if (errcode == 0) { in OnStartExtensionAbilityWithAccount()
792 task.Reject(engine, CreateJsErrorByNativeErr(engine, errcode)); in OnStartExtensionAbilityWithAccount()
826 auto errcode = context->StopServiceExtensionAbility(want); in OnStopExtensionAbility() local
827 if (errcode == 0) { in OnStopExtensionAbility()
830 task.Reject(engine, CreateJsErrorByNativeErr(engine, errcode)); in OnStopExtensionAbility()
867 auto errcode = context->StopServiceExtensionAbility(want, accountId); in OnStopExtensionAbilityWithAccount() local
[all …]
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/include/
Dtrans_auth_message.h32 int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJsonStr, int32_t maxL…
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ui_extension/
Dui_extension_pattern.cpp214 auto errcode = Rosen::ExtensionSessionManager::GetInstance().RequestExtensionSessionActivation( in RequestExtensionSessionActivation() local
216 if (errcode != OHOS::Rosen::WSError::WS_OK) { in RequestExtensionSessionActivation()
217 int32_t code = static_cast<int32_t>(errcode); in RequestExtensionSessionActivation()
234 auto errcode = in RequestExtensionSessionBackground() local
236 if (errcode != OHOS::Rosen::WSError::WS_OK) { in RequestExtensionSessionBackground()
238 int32_t code = static_cast<int32_t>(errcode); in RequestExtensionSessionBackground()
252 auto errcode = in RequestExtensionSessionDestruction() local
254 if (errcode != OHOS::Rosen::WSError::WS_OK) { in RequestExtensionSessionDestruction()
256 int32_t code = static_cast<int32_t>(errcode); in RequestExtensionSessionDestruction()
/foundation/distributeddatamgr/preferences/frameworks/native/src/
Dpreferences_impl.cpp354 int errcode = dataObsMgrClient->RegisterObserver(MakeUri(), observer); in RegisterObserver() local
355 if (errcode != 0) { in RegisterObserver()
356 LOG_ERROR("RegisterObserver multiProcessChange failed, errCode %{public}d", errcode); in RegisterObserver()
357 return errcode; in RegisterObserver()
385 int errcode = dataObsMgrClient->UnregisterObserver(MakeUri(), *it); in UnRegisterObserver() local
386 if (errcode != 0) { in UnRegisterObserver()
387 … LOG_ERROR("RegisterObserver multiProcessChange failed, errCode %{public}d", errcode); in UnRegisterObserver()
388 return errcode; in UnRegisterObserver()
/foundation/ability/form_fwk/services/include/
Dfree_install_status_callback_proxy.h42 …void SendRequestCommon(int32_t errcode, IFreeInstallStatusCallBack::IFreeInstallStatusCallBackCmd …
/foundation/communication/dsoftbus/core/common/dfx/hisysevent_adapter/include/
Dsoftbus_hisysevt_transreporter.h40 void SoftbusReportTransErrorEvt(int32_t errcode);
/foundation/distributeddatamgr/udmf/interfaces/jskits/common/
Dnapi_queue.h141 #define ASSERT_WITH_ERRCODE(ctxt, condition, errcode, message) \ argument
145 GenerateNapiError(errcode, (ctxt)->jsCode, (ctxt)->error); \
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
Ddistributeddb_relational_schema_analysis_test.cpp105 int errcode = SQLiteUtils::AnalysisSchema(db, name, table); in AnalysisTable() local
106 EXPECT_EQ(errcode, E_OK); in AnalysisTable()
/foundation/arkui/ui_appearance/services/src/
Dui_appearance_ability.cpp106 auto errcode = appManagerInstance->UpdateConfiguration(config); in OnSetDarkMode() local
107 if (errcode != 0) { in OnSetDarkMode()

12