Home
last modified time | relevance | path

Searched refs:ChildProcessManagerErrorCode (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/child_process_manager/include/
H A Dchild_process_manager_error_utils.h26 enum class ChildProcessManagerErrorCode { enum
43 const std::map<ChildProcessManagerErrorCode, AbilityErrorCode> INTERNAL_ERR_CODE_MAP = {
44 { ChildProcessManagerErrorCode::ERR_OK, AbilityErrorCode::ERROR_OK },
45 { ChildProcessManagerErrorCode::ERR_MULTI_PROCESS_MODEL_DISABLED,
47 { ChildProcessManagerErrorCode::ERR_ALREADY_IN_CHILD_PROCESS,
50 { ChildProcessManagerErrorCode::ERR_FORK_FAILED, AbilityErrorCode::ERROR_CODE_INNER },
52 { ChildProcessManagerErrorCode::ERR_GET_APP_MGR_FAILED, AbilityErrorCode::ERROR_CODE_INNER },
55 { ChildProcessManagerErrorCode::ERR_MULTI_PROCESS_MODEL_DISABLED_NEW,
57 { ChildProcessManagerErrorCode::ERR_MAX_CHILD_PROCESSES,
61 const std::map<int32_t, ChildProcessManagerErrorCode> ABILITY_MANAGER_ERR_CODE_MAP = {
[all …]
H A Dchild_process_manager.h43ChildProcessManagerErrorCode StartChildProcessBySelfFork(const std::string &srcEntry, pid_t &pid);
44ChildProcessManagerErrorCode StartChildProcessByAppSpawnFork(const std::string &srcEntry, pid_t &p…
45 ChildProcessManagerErrorCode StartChildProcessWithArgs(const std::string &srcEntry, pid_t &pid,
48 ChildProcessManagerErrorCode StartNativeChildProcessByAppSpawnFork(
73 ChildProcessManagerErrorCode PreCheck();
74 ChildProcessManagerErrorCode PreCheck(int32_t childProcessType);
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/child_process/src/
H A Dnative_child_process.cpp34 const std::map<ChildProcessManagerErrorCode, Ability_NativeChildProcess_ErrCode> CPM_ERRCODE_MAP = {
35 { ChildProcessManagerErrorCode::ERR_OK, NCP_NO_ERROR },
37 { ChildProcessManagerErrorCode::ERR_ALREADY_IN_CHILD_PROCESS, NCP_ERR_ALREADY_IN_CHILD },
38 { ChildProcessManagerErrorCode::ERR_GET_APP_MGR_FAILED, NCP_ERR_SERVICE_ERROR },
39 { ChildProcessManagerErrorCode::ERR_APP_MGR_FAILED_INNER, NCP_ERR_SERVICE_ERROR },
40 { ChildProcessManagerErrorCode::ERR_UNSUPPORT_NATIVE_CHILD_PROCESS, NCP_ERR_NOT_SUPPORTED },
41 { ChildProcessManagerErrorCode::ERR_MAX_CHILD_PROCESSES, NCP_ERR_MAX_CHILD_PROCESSES_REACHED },
42 { ChildProcessManagerErrorCode::ERR_LIB_LOADING_FAILED, NCP_ERR_LIB_LOADING_FAILED },
43 { ChildProcessManagerErrorCode::ERR_CONNECTION_FAILED, NCP_ERR_CONNECTION_FAILED },
99 if (cpmErr != ChildProcessManagerErrorCode::ERR_OK) { in OH_Ability_CreateNativeChildProcess()
[all …]
H A Dnative_child_callback.cpp50 callback_(static_cast<int32_t>(ChildProcessManagerErrorCode::ERR_OK), ipcProxy); in OnNativeChildStarted()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/child_process_manager/
H A Dchild_process_manager.cpp74 ChildProcessManagerErrorCode errorCode = PreCheck(); in StartChildProcessBySelfFork()
75 if (errorCode != ChildProcessManagerErrorCode::ERR_OK) { in StartChildProcessBySelfFork()
89 return ChildProcessManagerErrorCode::ERR_FORK_FAILED; in StartChildProcessBySelfFork()
99 return ChildProcessManagerErrorCode::ERR_OK; in StartChildProcessBySelfFork()
120 if (errorCode != ChildProcessManagerErrorCode::ERR_OK) { in StartChildProcessWithArgs()
143 return ChildProcessManagerErrorCode::ERR_OK; in StartChildProcessWithArgs()
151 if (errorCode != ChildProcessManagerErrorCode::ERR_OK) { in StartNativeChildProcessByAppSpawnFork()
171 return ChildProcessManagerErrorCode::ERR_OK; in StartNativeChildProcessByAppSpawnFork()
190 ChildProcessManagerErrorCode ChildProcessManager::PreCheck() in PreCheck()
200 return ChildProcessManagerErrorCode::ERR_OK; in PreCheck()
[all …]
H A Dchild_process_manager_error_utils.cpp22 …rCode ChildProcessManagerErrorUtil::GetAbilityErrorCode(const ChildProcessManagerErrorCode &intern… in GetAbilityErrorCode()
32 ChildProcessManagerErrorCode ChildProcessManagerErrorUtil::GetChildProcessManagerErrorCode( in GetChildProcessManagerErrorCode()
40 return ChildProcessManagerErrorCode::ERR_APP_MGR_FAILED_INNER; in GetChildProcessManagerErrorCode()
H A Dnative_child_ipc_process.cpp56 … iNotify->OnError(static_cast<int32_t>(ChildProcessManagerErrorCode::ERR_LIB_LOADING_FAILED)); in Init()
75 …mainProcessCb_->OnError(static_cast<int32_t>(ChildProcessManagerErrorCode::ERR_CONNECTION_FAILED)); in OnStart()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/js_child_process_manager/
H A Djs_child_process_manager.cpp121 ChildProcessManagerErrorCode errorCode = in StartChildProcessSelfForkTask()
123 if (errorCode == ChildProcessManagerErrorCode::ERR_OK) { in StartChildProcessSelfForkTask()
137 …auto innerErrorCode = std::make_shared<ChildProcessManagerErrorCode>(ChildProcessManagerErrorCode:… in StartChildProcessAppSpawnForkTask()
153 if (*innerErrorCode == ChildProcessManagerErrorCode::ERR_OK) { in StartChildProcessAppSpawnForkTask()
275 …auto innerErrorCode = std::make_shared<ChildProcessManagerErrorCode>(ChildProcessManagerErrorCode:… in StartChildProcessWithArgsTask()
292 if (*innerErrorCode == ChildProcessManagerErrorCode::ERR_OK) { in StartChildProcessWithArgsTask()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/child_process_manager_test/
H A Dchild_process_manager_test.cpp85 EXPECT_NE(ret, ChildProcessManagerErrorCode::ERR_FORK_FAILED);
100 EXPECT_NE(ret, ChildProcessManagerErrorCode::ERR_FORK_FAILED);
113 EXPECT_NE(ret, ChildProcessManagerErrorCode::ERR_FORK_FAILED);
129 EXPECT_NE(ret, ChildProcessManagerErrorCode::ERR_FORK_FAILED);
235 …auto err = ChildProcessManagerErrorUtil::GetAbilityErrorCode(ChildProcessManagerErrorCode::ERR_OK);
304 EXPECT_NE(ret, ChildProcessManagerErrorCode::ERR_FORK_FAILED);