/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/ |
H A D | datashare_error_impl.cpp | 25 int ParametersTypeError::GetCode() const in GetCode() function in OHOS::DataShare::ParametersTypeError 35 int ParametersNumError::GetCode() const in GetCode() function in OHOS::DataShare::ParametersNumError 45 int DataShareHelperInitError::GetCode() const in GetCode() function in OHOS::DataShare::DataShareHelperInitError 55 int InnerError::GetCode() const in GetCode() function in OHOS::DataShare::InnerError 60 int BusinessError::GetCode() const in GetCode() function in OHOS::DataShare::BusinessError 75 int UriNotExistError::GetCode() const in GetCode() function in OHOS::DataShare::UriNotExistError 85 int DataAreaNotExistError::GetCode() const in GetCode() function in OHOS::DataShare::DataAreaNotExistError 95 int HelperAlreadyClosedError::GetCode() const in GetCode() function in OHOS::DataShare::HelperAlreadyClosedError
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/ |
H A D | service_proxy.cpp | 38 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in InitRestoreSession() 44 return BError(BError::Codes::SDK_INVAL_ARG, "Empty reverse stub").GetCode(); in InitRestoreSession() 47 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to send the reverse stub").GetCode(); in InitRestoreSession() 54 return BError(BError::Codes::SDK_INVAL_ARG, str.data()).GetCode(); in InitRestoreSession() 65 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in InitBackupSession() 71 return BError(BError::Codes::SDK_INVAL_ARG, "Empty reverse stub").GetCode(); in InitBackupSession() 74 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to send the reverse stub").GetCode(); in InitBackupSession() 81 return BError(BError::Codes::SDK_INVAL_ARG, str.data()).GetCode(); in InitBackupSession() 92 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in Start() 101 return BError(BError::Codes::SDK_INVAL_ARG, str.data()).GetCode(); in Start() [all...] |
H A D | service_incremental_proxy.cpp | 38 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in Release() 47 return BError(BError::Codes::SDK_INVAL_ARG, str.data()).GetCode(); in Release() 88 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in GetAppLocalListAndDoIncrementalBackup() 99 return BError(BError::Codes::SDK_INVAL_ARG, "Received error when doing IPC").GetCode(); in GetAppLocalListAndDoIncrementalBackup() 111 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in InitIncrementalBackupSession() 119 return BError(BError::Codes::SDK_INVAL_ARG, "Empty reverse stub").GetCode(); in InitIncrementalBackupSession() 123 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to send the reverse stub").GetCode(); in InitIncrementalBackupSession() 130 return BError(BError::Codes::SDK_INVAL_ARG, "Received error when doing IPC").GetCode(); in InitIncrementalBackupSession() 142 return BError(BError::Codes::SDK_INVAL_ARG, "Failed to write descriptor").GetCode(); in AppendBundlesIncrementalBackupSession() 158 return BError(BError::Codes::SDK_INVAL_ARG, "Received error when doing IPC").GetCode(); in AppendBundlesIncrementalBackupSession() [all...] |
H A D | b_session_restore.cpp | 77 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in PublishFile() 86 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Start() 96 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in GetFileHandle() 107 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 116 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 126 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Finish() 136 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Release()
|
H A D | b_incremental_restore_session.cpp | 77 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in PublishFile() 86 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in PublishSAFile() 95 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in GetFileHandle() 105 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 115 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 125 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Release()
|
H A D | b_incremental_session_restore_async.cpp | 85 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in PublishFile() 94 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in GetFileHandle() 108 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 121 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 131 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Release()
|
H A D | b_session_restore_async.cpp | 86 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in PublishFile() 95 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in GetFileHandle() 109 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 122 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 132 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Release()
|
H A D | b_session_backup.cpp | 97 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Start() 107 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 127 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in AppendBundles() 147 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Finish() 157 return BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(); in Release()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/common/ |
H A D | object_error.cpp | 25 int ParametersType::GetCode() in GetCode() function in OHOS::ObjectStore::ParametersType 35 int ParametersNum::GetCode() in GetCode() function in OHOS::ObjectStore::ParametersNum 46 int DatabaseError::GetCode() in GetCode() function in OHOS::ObjectStore::DatabaseError 56 int PermissionError::GetCode() in GetCode() function in OHOS::ObjectStore::PermissionError 66 int InnerError::GetCode() in GetCode() function in OHOS::ObjectStore::InnerError 76 int DeviceNotSupportedError::GetCode() in GetCode() function in OHOS::ObjectStore::DeviceNotSupportedError
|
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/ |
H A D | datashare_error_impl.h | 27 int GetCode() const override; 37 int GetCode() const override; 46 int GetCode() const override; 53 int GetCode() const override; 60 int GetCode() const override; 71 int GetCode() const override; 78 int GetCode() const override; 85 int GetCode() const override;
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/ |
H A D | napi_rdb_error.h | 44 if (((version) > (APIVERSION_8)) || (((error)->GetCode()) == (401))) { \
46 (error)->GetCode(), (error)->GetMessage().c_str(), version); \
47 napi_throw_error((env), std::to_string((error)->GetCode()).c_str(), (error)->GetMessage().c_str()); \
51 (error)->GetCode(), (error)->GetMessage().c_str(), version); \
110 virtual int GetCode() = 0;
120 int GetCode() override
133 int GetCode() override
150 int GetCode() override
166 int GetCode() override
179 int GetCode() overrid [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | ext_extension_stub.cpp | 84 return BError(BError::Codes::EXT_INVAL_ARG, "Failed to receive fileName").GetCode(); in CmdGetFileHandle() 93 return BError(BError::Codes::EXT_BROKEN_IPC, "Failed to send out the file").GetCode(); in CmdGetFileHandle() 104 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); 117 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); 133 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); 146 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); 155 return BError(BError::Codes::EXT_INVAL_ARG, "Failed to receive fileName").GetCode(); 160 return BError(BError::Codes::EXT_BROKEN_IPC, "Failed to send out the file").GetCode(); 176 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); 189 return BError(BError::Codes::EXT_BROKEN_IPC, ss.str()).GetCode(); [all...] |
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/common/ |
H A D | object_error.h | 33 virtual int GetCode() = 0; 40 int GetCode() override; 51 int GetCode() override; 61 int GetCode() override; 68 int GetCode() override; 75 int GetCode() override; 82 int GetCode() override;
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/session/ |
H A D | b_incremental_session_test.cpp | 139 EXPECT_EQ(err, BError(BError::Codes::SDK_BROKEN_IPC).GetCode()); in HWTEST_F() 144 EXPECT_EQ(err, BError(BError::Codes::OK).GetCode()); in HWTEST_F() 168 EXPECT_EQ(err, BError(BError::Codes::SDK_BROKEN_IPC).GetCode()); in HWTEST_F() 173 EXPECT_EQ(err, BError(BError::Codes::OK).GetCode()); in HWTEST_F() 261 EXPECT_EQ(err, BError(BError::Codes::SDK_BROKEN_IPC).GetCode()); in HWTEST_F() 267 EXPECT_EQ(err, BError(BError::Codes::OK).GetCode()); in HWTEST_F() 291 EXPECT_EQ(err, BError(BError::Codes::SDK_BROKEN_IPC).GetCode()); in HWTEST_F() 296 EXPECT_EQ(err, BError(BError::Codes::OK).GetCode()); in HWTEST_F() 321 EXPECT_EQ(err, BError(BError::Codes::SDK_BROKEN_IPC).GetCode()); in HWTEST_F() 326 EXPECT_EQ(err, BError(BError::Codes::OK).GetCode()); in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/unittest/ability_manager_collaborator_proxy_test/ |
H A D | ability_manager_collaborator_proxy_test.cpp | 71 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_START_ABILITY), mock_->GetCode()); in HWTEST_F() 87 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_PRELOAD_ABILITY), mock_->GetCode()); in HWTEST_F() 103 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_MISSION_CREATED_BY_SCB), mock_->GetCode()); in HWTEST_F() 120 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_LOAD_ABILITY_BY_SCB), mock_->GetCode()); in HWTEST_F() 136 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_MOVE_MISSION_TO_BACKGROUND), mock_->GetCode()); in HWTEST_F() 152 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_MOVE_MISSION_TO_FOREGROUND), mock_->GetCode()); in HWTEST_F() 168 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_TERMINATE_MISSION), mock_->GetCode()); in HWTEST_F() 184 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_CLEAR_MISSION), mock_->GetCode()); in HWTEST_F() 202 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_REMOVE_SHELL_PROCESS), mock_->GetCode()); in HWTEST_F() 217 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::UPDATE_MISSION_INFO_BY_SCB), mock_->GetCode()); in HWTEST_F() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_error.h | 54 LOG_ERROR("throw error: code = %{public}d , message = %{public}s", (error)->GetCode(), \
56 napi_throw_error((env), std::to_string((error)->GetCode()).c_str(), (error)->GetMessage().c_str()); \
91 virtual int GetCode() = 0;
120 int GetCode() override
146 int GetCode() override
164 int GetCode() override
177 int GetCode() override
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
H A D | napi_preferences_error.h | 54 (error)->GetCode(), (error)->GetMsg().c_str()); \ 55 napi_throw_error((env), std::to_string((error)->GetCode()).c_str(), \ 94 virtual int GetCode() = 0; 104 int GetCode() override 139 int GetCode() override 155 int GetCode() override
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | service_incremental_test.cpp | 398 EXPECT_CALL(*svcProxy, User0OnBackup()).WillOnce(Return(BError(BError::Codes::EXT_INVAL_ARG).GetCode())); in HWTEST_F() 442 EXPECT_EQ(service->GetAppLocalListAndDoIncrementalBackup(), BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() 466 EXPECT_EQ(service->InitIncrementalBackupSession(nullptr), BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() 472 EXPECT_EQ(service->InitIncrementalBackupSession(nullptr), BError(BError::Codes::OK).GetCode()); in HWTEST_F() 496 EXPECT_EQ(service->AppendBundlesIncrementalBackupSession({}), BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() 502 EXPECT_EQ(service->AppendBundlesIncrementalBackupSession({}), BError(BError::Codes::OK).GetCode()); in HWTEST_F() 509 EXPECT_EQ(service->AppendBundlesIncrementalBackupSession({}), BError(BError::Codes::OK).GetCode()); in HWTEST_F() 540 EXPECT_EQ(ret, BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() 545 EXPECT_EQ(ret, BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() 550 EXPECT_EQ(ret, BError(BError::Codes::SA_INVAL_ARG).GetCode()); in HWTEST_F() [all...] |
H A D | service_throw_test.cpp | 75 EXPECT_EQ(-ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 117 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 158 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 185 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 219 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 253 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 294 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 335 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 374 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() 413 EXPECT_EQ(ret, BError(BError::Codes::EXT_THROW_EXCEPTION).GetCode()); in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/ |
H A D | tools_op_restore_test.cpp | 284 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 315 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 345 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 375 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 601 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() [all...] |
H A D | tools_op_restore_async_test.cpp | 232 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 262 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 484 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 512 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() 540 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode()); in HWTEST_F() [all...] |
H A D | tools_op_incremental_restore_test.cpp | 221 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode());
in HWTEST_F() 317 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode());
in HWTEST_F() 516 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode());
in HWTEST_F() 542 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode());
in HWTEST_F() 571 EXPECT_EQ(e.GetCode(), BError(BError::Codes::TOOL_INVAL_ARG).GetCode());
in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/interfaces/kits/js/backup/ |
H A D | session_restore_n_exporter.cpp | 319 NError(BError(BError::Codes::SDK_INVAL_ARG, "Number of arguments unmatched.").GetCode()).ThrowErr(env); in VerifyAppendBundlesParam() 326 NError(BError(BError::Codes::SDK_INVAL_ARG, "First argument is not remote capabilitily file number.").GetCode()) in VerifyAppendBundlesParam() 335 NError(BError(BError::Codes::SDK_INVAL_ARG, "First argument is not bundles array.").GetCode()).ThrowErr(env); in VerifyAppendBundlesParam() 382 NError(BError(BError::Codes::SDK_INVAL_ARG, "Number of arguments unmatched.").GetCode()).ThrowErr(env); in VerifyPublishFileParam() 389 NError(BError(BError::Codes::SDK_INVAL_ARG, "First arguments is not an object.").GetCode()).ThrowErr(env); in VerifyPublishFileParam() 395 NError(BError(BError::Codes::SDK_INVAL_ARG, "ParseFileMeta failed.").GetCode()).ThrowErr(env); in VerifyPublishFileParam() 407 NError(BError(BError::Codes::SDK_INVAL_ARG, "Number of arguments unmatched.").GetCode()).ThrowErr(env); in VerifyNapiObject() 417 NError(BError(BError::Codes::SDK_INVAL_ARG, "First argument is not an object.").GetCode()).ThrowErr(env); in VerifyNarg() 459 NError(BError(BError::Codes::SDK_INVAL_ARG, "Failed to init restore").GetCode()).ThrowErr(env); in Constructor() 463 NError(BError(BError::Codes::SDK_INVAL_ARG, "Failed to set SessionRestore entity.").GetCode()) in Constructor() [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_error/ |
H A D | b_error_test.cpp | 191 * @tc.desc: Test function of GetCode interface for SUCCESS.
201 int result = be.GetCode();
in HWTEST_F() 209 * @tc.desc: Test function of GetCode interface for SUCCESS.
219 int ret = be.GetCode();
in HWTEST_F() 227 * @tc.desc: Test function of GetCode interface for SUCCESS.
237 int ret = be.GetCode();
in HWTEST_F() 245 * @tc.desc: Test function of GetCode interface for SUCCESS.
255 int ret = be.GetCode();
in HWTEST_F() 263 * @tc.desc: Test function of GetCode interface for SUCCESS.
273 int ret = be.GetCode();
in HWTEST_F() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/ |
H A D | wifi_state_listener.cpp | 33 HILOGI("receive event code = %{public}d", data.GetCode()); in OnReceiveEvent() 34 switch (data.GetCode()) { in OnReceiveEvent()
|