/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_child_test.cpp | 76 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 83 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() 84 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break, "Failed to create req %{public}s", APPSPAWN_SERVER_NAME); in HWTEST_F() 89 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 90 reqHandle = nullptr; in HWTEST_F() 101 AppSpawnReqMsgFree(reqHandle); in HWTEST_F() 113 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 120 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() 121 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break, "Failed to create req %{public}s", APPSPAWN_SERVER_NAME); in HWTEST_F() 122 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_DEBUGGABL in HWTEST_F() 150 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 189 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 229 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 270 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 314 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 358 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 403 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 440 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 481 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 524 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 568 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 612 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 656 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 713 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 770 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 811 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 854 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 903 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local [all...] |
H A D | app_spawn_common_test.cpp | 70 AppSpawnReqMsgHandle reqHandle = 0;
in HWTEST_F() local 80 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0);
in HWTEST_F() 81 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break,
in HWTEST_F() 83 property = g_testHelper.GetAppProperty(clientHandle, reqHandle);
in HWTEST_F() 97 AppSpawnReqMsgHandle reqHandle = 0;
in HWTEST_F() local 107 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0);
in HWTEST_F() 108 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break,
in HWTEST_F() 110 property = g_testHelper.GetAppProperty(clientHandle, reqHandle);
in HWTEST_F() 124 AppSpawnReqMsgHandle reqHandle = 0;
in HWTEST_F() local 134 reqHandle in HWTEST_F() 154 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 186 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 218 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 250 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 272 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 294 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 316 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 338 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 453 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 482 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 511 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 535 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 563 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 591 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local [all...] |
H A D | app_spawn_beget_test.cpp | 71 AppSpawnReqMsgHandle reqHandle; in TestSendAppspawnCmdMessage() local 72 ret = AppSpawnReqMsgCreate(AppSpawnMsgType::MSG_BEGET_CMD, cmd, &reqHandle); in TestSendAppspawnCmdMessage() 74 ret = AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_BEGETCTL_BOOT); in TestSendAppspawnCmdMessage() 76 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PID, cmd); in TestSendAppspawnCmdMessage() 78 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PTY_NAME, ptyName); in TestSendAppspawnCmdMessage() 81 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in TestSendAppspawnCmdMessage() 118 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 127 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_BEGET_CMD, 0); in HWTEST_F() 128 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break, "Failed to create req %{public}s", APPSPAWN_SERVER_NAME); in HWTEST_F() 136 ret = AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_BEGETCTL_BOO in HWTEST_F() 162 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 189 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local [all...] |
H A D | app_spawn_sandbox_new_test.cpp | 313 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in TestCreateAppSpawningCtx() local 314 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, return nullptr, "Failed to create req"); in TestCreateAppSpawningCtx() 315 return g_testHelper.GetAppProperty(clientHandle, reqHandle); in TestCreateAppSpawningCtx() 725 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 738 reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0); in HWTEST_F() 739 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, break, "Failed to create req %{public}s", APPSPAWN_SERVER_NAME); in HWTEST_F() 746 ret = AppSpawnReqMsgAddExtInfo(reqHandle, "HspList", in HWTEST_F() 750 property = g_testHelper.GetAppProperty(clientHandle, reqHandle); in HWTEST_F() 765 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 779 reqHandle in HWTEST_F() 807 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 849 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1159 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1212 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1264 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1324 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1375 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1427 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1485 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1542 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1595 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1648 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1701 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1753 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1805 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1856 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1908 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1960 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 2012 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 2048 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 2085 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 2161 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 2187 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 2215 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 2240 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local [all...] |
H A D | app_spawn_service_test.cpp | 77 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 79 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_NO_SANDBOX); in HWTEST_F() 80 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_DEBUGGABLE); in HWTEST_F() 81 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_NATIVEDEBUG); in HWTEST_F() 82 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_BUNDLE_RESOURCES); in HWTEST_F() 83 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_ACCESS_BUNDLE_DIR); in HWTEST_F() 86 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 112 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 114 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 124 ret = AppSpawnTerminateMsgCreate(result.pid, &reqHandle); in HWTEST_F() 145 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 175 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_DUMP, 0); HWTEST_F() local 196 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0); HWTEST_F() local 560 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0); HWTEST_F() local 596 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0); HWTEST_F() local 644 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local [all...] |
H A D | nweb_spawn_service_test.cpp | 78 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 80 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_NO_SANDBOX); in HWTEST_F() 81 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_DEBUGGABLE); in HWTEST_F() 82 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_NATIVEDEBUG); in HWTEST_F() 83 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_BUNDLE_RESOURCES); in HWTEST_F() 84 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_ACCESS_BUNDLE_DIR); in HWTEST_F() 87 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 112 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 114 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 124 ret = AppSpawnTerminateMsgCreate(result.pid, &reqHandle); in HWTEST_F() 145 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 175 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_DUMP, 0); HWTEST_F() local 196 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_SPAWN_NATIVE_PROCESS, 0); HWTEST_F() local [all...] |
H A D | app_spawn_cold_run_test.cpp | 139 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 141 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_COLD_BOOT); in HWTEST_F() 147 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 167 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 169 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_COLD_BOOT); in HWTEST_F() 175 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 201 AppSpawnReqMsgHandle reqHandle = testServer->CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 203 AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_COLD_BOOT); in HWTEST_F() 209 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 234 AppSpawnReqMsgHandle reqHandle in HWTEST_F() local [all...] |
H A D | app_spawn_sandbox_test.cpp | 61 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in GetTestAppProperty() local 62 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, return nullptr, "Failed to create req"); in GetTestAppProperty() 63 return g_testHelper.GetAppProperty(clientHandle, reqHandle); in GetTestAppProperty() 71 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in GetTestAppPropertyWithExtInfo() local 72 APPSPAWN_CHECK(reqHandle != INVALID_REQ_HANDLE, return nullptr, "Failed to create req"); in GetTestAppPropertyWithExtInfo() 73 AppSpawnReqMsgAddStringInfo(reqHandle, name, value); in GetTestAppPropertyWithExtInfo() 74 return g_testHelper.GetAppProperty(clientHandle, reqHandle); in GetTestAppPropertyWithExtInfo() 1384 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 1385 ASSERT_EQ(reqHandle != nullptr, 1); in HWTEST_F() 1386 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_APP_EXTENSIO in HWTEST_F() 1406 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 1431 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local 1453 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); HWTEST_F() local [all...] |
/base/startup/appspawn/test/moduletest/ |
H A D | appspawn_client_test.cpp | 38 AppSpawnReqMsgHandle reqHandle = 0; in CreateMsg() local 39 int ret = AppSpawnReqMsgCreate(MSG_APP_SPAWN, bundleName, &reqHandle); in CreateMsg() 42 ret = AppSpawnReqMsgSetBundleInfo(reqHandle, 0, bundleName); in CreateMsg() 52 ret = AppSpawnReqMsgSetAppDacInfo(reqHandle, &dacInfo); in CreateMsg() 55 AppSpawnReqMsgSetAppFlag(reqHandle, static_cast<AppFlagsIndex>(10)); // 10 test in CreateMsg() 57 AppSpawnReqMsgSetAppFlag(reqHandle, static_cast<AppFlagsIndex>(23)); // 23 APP_FLAGS_ISOLATED_SANDBOX_TYPE in CreateMsg() 58 AppSpawnReqMsgSetAppFlag(reqHandle, static_cast<AppFlagsIndex>(26)); // 26 APP_FLAGS_ISOLATED_NETWORK in CreateMsg() 62 ret = AppSpawnReqMsgSetAppDomainInfo(reqHandle, 1, apl); in CreateMsg() 65 ret = AppSpawnReqMsgSetAppAccessToken(reqHandle, 12345678); // 12345678 in CreateMsg() 76 ret = AppSpawnReqMsgAddPermission(reqHandle, permission in CreateMsg() 97 AppSpawnReqMsgHandle reqHandle = CreateMsg(clientHandle, "ohos.samples.clock", MODE_FOR_APP_SPAWN); HWTEST_F() local 112 AppSpawnReqMsgHandle reqHandle = CreateMsg(clientHandle, "ohos.samples.clock", MODE_FOR_NATIVE_SPAWN); HWTEST_F() local [all...] |
H A D | appspawn_module_test.cpp | 670 AppSpawnReqMsgHandle reqHandle; in HWTEST_F() local 672 commander.CreateMsg(reqHandle, defaultAppInfo1.c_str()); in HWTEST_F() 673 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result); in HWTEST_F() 698 AppSpawnReqMsgHandle reqHandle; in HWTEST_F() local 700 commander.CreateMsg(reqHandle, defaultAppInfo1.c_str()); in HWTEST_F() 701 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result); in HWTEST_F() 726 AppSpawnReqMsgHandle reqHandle; in HWTEST_F() local 728 commander.CreateMsg(reqHandle, defaultAppInfo2.c_str()); in HWTEST_F() 729 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result); in HWTEST_F() 745 AppSpawnReqMsgHandle reqHandle; in HWTEST_F() local 764 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 793 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 814 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 836 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 858 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 880 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 912 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 934 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 957 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 979 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1001 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1034 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1058 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1082 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1105 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1128 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1162 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1194 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1209 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1230 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1252 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1282 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1302 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1322 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1342 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1363 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1384 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1416 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1437 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1456 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1476 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1494 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1515 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1533 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1552 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1570 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1591 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1610 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1630 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1648 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1677 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1705 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1733 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1764 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1782 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1809 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local 1836 AppSpawnReqMsgHandle reqHandle; HWTEST_F() local [all...] |
H A D | appspawn_test_cmder.cpp | 169 int AppSpawnTestCommander::AddBundleInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) in AddBundleInfoFromJson() argument 176 int ret = AppSpawnReqMsgSetBundleInfo(reqHandle, bundleIndex, bundleName); in AddBundleInfoFromJson() 181 int AppSpawnTestCommander::AddDacInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) in AddDacInfoFromJson() argument 195 return AppSpawnReqMsgSetAppDacInfo(reqHandle, &info); in AddDacInfoFromJson() 199 const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) in AddInternetPermissionInfoFromJson() 206 return AppSpawnReqMsgSetAppInternetPermissionInfo(reqHandle, allowInternet, setAllowInternet); in AddInternetPermissionInfoFromJson() 209 int AppSpawnTestCommander::AddAccessTokenFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) in AddAccessTokenFromJson() argument 215 return AppSpawnReqMsgSetAppAccessToken(reqHandle, accessTokenIdEx); in AddAccessTokenFromJson() 218 int AppSpawnTestCommander::AddDomainInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) in AddDomainInfoFromJson() argument 225 int ret = AppSpawnReqMsgSetAppDomainInfo(reqHandle, hapFlag in AddDomainInfoFromJson() 198 AddInternetPermissionInfoFromJson( const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) AddInternetPermissionInfoFromJson() argument 230 AddExtTlv(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) AddExtTlv() argument 260 BuildMsgFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle) BuildMsgFromJson() argument 302 CreateOtherMsg(AppSpawnReqMsgHandle &reqHandle, pid_t pid) CreateOtherMsg() argument 335 CreateMsg(AppSpawnReqMsgHandle &reqHandle, const char *defaultConfig, uint32_t defMsgType) CreateMsg() argument 393 AppSpawnReqMsgHandle reqHandle = INVALID_REQ_HANDLE; SendMsg() local [all...] |
H A D | appspawn_test_cmder.h | 70 int CreateOtherMsg(AppSpawnReqMsgHandle &reqHandle, pid_t pid); 71 int CreateMsg(AppSpawnReqMsgHandle &reqHandle, const char *defaultConfig, 84 int AddExtTlv(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 85 int BuildMsgFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 86 int AddBundleInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 87 int AddDacInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 88 int AddInternetPermissionInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 89 int AddAccessTokenFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle); 90 int AddDomainInfoFromJson(const cJSON *appInfoConfig, AppSpawnReqMsgHandle reqHandle);
|
/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/ |
H A D | appspawnclient_fuzzer.cpp | 47 AppSpawnReqMsgHandle reqHandle = nullptr; in FuzzAppSpawnReqMsgCreate() local 48 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnReqMsgCreate() 49 AppSpawnReqMsgFree(reqHandle); in FuzzAppSpawnReqMsgCreate() 60 AppSpawnReqMsgHandle reqHandle = nullptr; in FuzzAppSpawnReqMsgAddStringInfo() local 63 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnReqMsgAddStringInfo() 64 (void)AppSpawnReqMsgAddStringInfo(reqHandle, processName.c_str(), processName.c_str()); in FuzzAppSpawnReqMsgAddStringInfo() 65 AppSpawnReqMsgFree(reqHandle); in FuzzAppSpawnReqMsgAddStringInfo() 77 AppSpawnReqMsgHandle reqHandle = nullptr; in FuzzAppSpawnTerminateMsgCreate() local 80 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnTerminateMsgCreate() 81 (void)AppSpawnTerminateMsgCreate(pid, &reqHandle); in FuzzAppSpawnTerminateMsgCreate() 93 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnClientSendMsg() local 109 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgFree() local 124 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetBundleInfo() local 142 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppFlag() local 159 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppDacInfo() local 176 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppDomainInfo() local 194 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppInternetPermissionInfo() local 212 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppAccessToken() local 229 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgSetAppOwnerId() local 246 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgAddPermission() local 263 AppSpawnReqMsgHandle reqHandle = nullptr; FuzzAppSpawnReqMsgAddExtInfo() local [all...] |
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 71 AppSpawnReqMsgHandle reqHandle = testServer.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 73 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 98 AppSpawnReqMsgHandle reqHandle = testServer.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 101 (void)AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 121 AppSpawnReqMsgHandle reqHandle = g_testHelper.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() 123 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 160 AppSpawnReqMsgHandle reqHandle = testServer.CreateMsg(clientHandle, MSG_APP_SPAWN, 0); in HWTEST_F() local 163 (void)AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in HWTEST_F() 179 AppSpawnReqMsgHandle reqHandle = 0; in HWTEST_F() local 183 ret = AppSpawnReqMsgCreate(MSG_APP_SPAWN, "com.example.myapplication", &reqHandle); in HWTEST_F() 226 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 261 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 301 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 341 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 379 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 415 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 451 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 487 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 520 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 572 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 624 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 676 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 717 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 742 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 765 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 788 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 827 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 873 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 905 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 929 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 952 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 976 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 999 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 1022 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local [all...] |
H A D | app_spawn_interface_test.cpp | 163 AppSpawnReqMsgHandle reqHandle = nullptr; in HWTEST_F() local 167 int ret = AppSpawnReqMsgCreate(msgType[i], processName[j], &reqHandle); in HWTEST_F() 171 AppSpawnReqMsgFree(reqHandle); in HWTEST_F() 190 AppSpawnReqMsgHandle reqHandle = nullptr; in HWTEST_F() local 191 int ret = AppSpawnReqMsgCreate(MSG_APP_SPAWN, "com.ohos.myapplication", &reqHandle); in HWTEST_F() 193 AppSpawnReqMsgFree(reqHandle); in HWTEST_F() 202 AppSpawnReqMsgHandle reqHandle = nullptr; in HWTEST_F() local 203 int ret = AppSpawnReqMsgCreate(MSG_APP_SPAWN, "com.ohos.myapplication", &reqHandle); in HWTEST_F() 213 const AppSpawnReqMsgHandle inputHandle[] = {reqHandle, nullptr}; in HWTEST_F() 225 AppSpawnReqMsgFree(reqHandle); in HWTEST_F() 241 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 263 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 298 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 318 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 338 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 367 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 389 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 417 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 462 AppSpawnReqMsgHandle reqHandle = nullptr; HWTEST_F() local 505 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 519 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local 535 AppSpawnReqMsgHandle reqHandle = 0; HWTEST_F() local [all...] |
/base/startup/appspawn/interfaces/innerkits/include/ |
H A D | appspawn.h | 94 * @param reqHandle handle for request 98 int AppSpawnClientSendMsg(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle, AppSpawnResult *result); 118 * @param reqHandle handle for request message 121 int AppSpawnReqMsgCreate(AppSpawnMsgType msgType, const char *processName, AppSpawnReqMsgHandle *reqHandle); 127 * @param reqHandle handle for request message 130 int AppSpawnTerminateMsgCreate(pid_t pid, AppSpawnReqMsgHandle *reqHandle); 135 * @param reqHandle handle for request 137 void AppSpawnReqMsgFree(AppSpawnReqMsgHandle reqHandle); 142 * @param reqHandle handle for request message 147 int AppSpawnReqMsgSetBundleInfo(AppSpawnReqMsgHandle reqHandle, uint32_ [all...] |
/base/startup/appspawn/test/unittest/devicedebug_test/ |
H A D | devicedebug_stub.c | 58 int AppSpawnReqMsgCreateStub(AppSpawnMsgType msgType, const char *processName, AppSpawnReqMsgHandle *reqHandle) in AppSpawnReqMsgCreateStub() argument 62 (void)reqHandle; in AppSpawnReqMsgCreateStub() 74 int AppSpawnReqMsgAddExtInfoStub(AppSpawnReqMsgHandle reqHandle, const char *name, const uint8_t *value, in AppSpawnReqMsgAddExtInfoStub() argument 77 (void)reqHandle; in AppSpawnReqMsgAddExtInfoStub() 98 int AppSpawnClientSendMsgStub(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle, AppSpawnResult *result) in AppSpawnClientSendMsgStub() argument 101 (void)reqHandle; in AppSpawnClientSendMsgStub()
|
/base/startup/appspawn/interfaces/innerkits/client/ |
H A D | appspawn_msg.c | 312 int AppSpawnReqMsgAddFd(AppSpawnReqMsgHandle reqHandle, const char* fdName, int fd) in AppSpawnReqMsgAddFd() argument 314 APPSPAWN_CHECK(reqHandle != NULL, return APPSPAWN_ARG_INVALID, "Invalid reqHandle"); in AppSpawnReqMsgAddFd() 315 AppSpawnReqMsgNode *reqNode = (AppSpawnReqMsgNode *)reqHandle; in AppSpawnReqMsgAddFd() 321 return AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_APP_FD, (void *)fdName); in AppSpawnReqMsgAddFd() 342 int AppSpawnReqMsgCreate(AppSpawnMsgType msgType, const char *processName, AppSpawnReqMsgHandle *reqHandle) in AppSpawnReqMsgCreate() argument 344 APPSPAWN_CHECK(reqHandle != NULL, return APPSPAWN_ARG_INVALID, "Invalid request handle"); in AppSpawnReqMsgCreate() 352 *reqHandle = (AppSpawnReqMsgHandle)(reqNode); in AppSpawnReqMsgCreate() 356 void AppSpawnReqMsgFree(AppSpawnReqMsgHandle reqHandle) in AppSpawnReqMsgFree() argument 358 AppSpawnReqMsgNode *reqNode = (AppSpawnReqMsgNode *)reqHandle; in AppSpawnReqMsgFree() 363 AppSpawnReqMsgSetAppDacInfo(AppSpawnReqMsgHandle reqHandle, const AppDacInfo *dacInfo) AppSpawnReqMsgSetAppDacInfo() argument 379 AppSpawnReqMsgSetBundleInfo(AppSpawnReqMsgHandle reqHandle, uint32_t bundleIndex, const char *bundleName) AppSpawnReqMsgSetBundleInfo() argument 406 AppSpawnReqMsgSetAppFlag(AppSpawnReqMsgHandle reqHandle, AppFlagsIndex flagIndex) AppSpawnReqMsgSetAppFlag() argument 423 AppSpawnReqMsgAddExtInfo(AppSpawnReqMsgHandle reqHandle, const char *name, const uint8_t *value, uint32_t valueLen) AppSpawnReqMsgAddExtInfo() argument 439 AppSpawnReqMsgAddStringInfo(AppSpawnReqMsgHandle reqHandle, const char *name, const char *value) AppSpawnReqMsgAddStringInfo() argument 456 AppSpawnReqMsgAddPermission(AppSpawnReqMsgHandle reqHandle, const char *permission) AppSpawnReqMsgAddPermission() argument 473 AppSpawnReqMsgSetAppDomainInfo(AppSpawnReqMsgHandle reqHandle, uint32_t hapFlags, const char *apl) AppSpawnReqMsgSetAppDomainInfo() argument 491 AppSpawnReqMsgSetAppInternetPermissionInfo(AppSpawnReqMsgHandle reqHandle, uint8_t allow, uint8_t setAllow) AppSpawnReqMsgSetAppInternetPermissionInfo() argument 505 AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId) AppSpawnReqMsgSetAppOwnerId() argument 519 AppSpawnReqMsgSetAppAccessToken(AppSpawnReqMsgHandle reqHandle, uint64_t accessTokenIdEx) AppSpawnReqMsgSetAppAccessToken() argument 530 AppSpawnTerminateMsgCreate(pid_t pid, AppSpawnReqMsgHandle *reqHandle) AppSpawnTerminateMsgCreate() argument 546 AppSpawnClientAddPermission(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle, const char *permission) AppSpawnClientAddPermission() argument [all...] |
/base/startup/appspawn/service/devicedebug/kill/src/ |
H A D | devicedebug_kill.c | 68 AppSpawnReqMsgHandle reqHandle; in DeviceDebugKill() local 69 ret = AppSpawnReqMsgCreate(MSG_DEVICE_DEBUG, "devicedebug", &reqHandle); in DeviceDebugKill() 87 ret = AppSpawnReqMsgAddExtInfo(reqHandle, "devicedebug", (uint8_t *)jsonString, strlen(jsonString) + 1); in DeviceDebugKill() 95 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in DeviceDebugKill()
|
/base/startup/init/services/begetctl/ |
H A D | appspawntime_cmd.c | 40 AppSpawnReqMsgHandle reqHandle;
in SendAppspawnTimeMessage() local 41 ret = AppSpawnReqMsgCreate(MSG_BEGET_SPAWNTIME, "init", &reqHandle);
in SendAppspawnTimeMessage() 47 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result);
in SendAppspawnTimeMessage()
|
H A D | dump_service.c | 50 AppSpawnReqMsgHandle reqHandle; in SendAppspawnCmdMessage() local 51 ret = AppSpawnReqMsgCreate(MSG_DUMP, ptyName, &reqHandle); in SendAppspawnCmdMessage() 54 ret = AppSpawnReqMsgAddStringInfo(reqHandle, "pty-name", ptyName); in SendAppspawnCmdMessage() 58 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in SendAppspawnCmdMessage()
|
H A D | sandbox.cpp | 129 AppSpawnReqMsgHandle reqHandle; in SendAppspawnCmdMessage() local 130 ret = AppSpawnReqMsgCreate(AppSpawnMsgType::MSG_BEGET_CMD, cmd, &reqHandle); in SendAppspawnCmdMessage() 132 ret = AppSpawnReqMsgSetAppFlag(reqHandle, APP_FLAGS_BEGETCTL_BOOT); in SendAppspawnCmdMessage() 134 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PID, cmd); in SendAppspawnCmdMessage() 136 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PTY_NAME, ptyName); in SendAppspawnCmdMessage() 140 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in SendAppspawnCmdMessage()
|
/base/startup/appspawn/test/unittest/ |
H A D | app_spawn_test_helper.cpp | 455 int AppSpawnTestHelper::AddDacInfo(AppSpawnReqMsgHandle &reqHandle) in AddDacInfo() argument 465 return AppSpawnReqMsgSetAppDacInfo(reqHandle, &dacInfo); in AddDacInfo() 468 int AppSpawnTestHelper::AddFdInfo(AppSpawnReqMsgHandle &reqHandle) in AddFdInfo() argument 475 return AppSpawnReqMsgAddFd(reqHandle, "fdname", fdArg); in AddFdInfo() 480 AppSpawnReqMsgHandle reqHandle = 0; in CreateMsg() local 481 int ret = AppSpawnReqMsgCreate(static_cast<AppSpawnMsgType>(msgType), processName_.c_str(), &reqHandle); in CreateMsg() 483 APPSPAWN_CHECK_ONLY_EXPER(msgType == MSG_APP_SPAWN || msgType == MSG_SPAWN_NATIVE_PROCESS, return reqHandle); in CreateMsg() 485 ret = AddFdInfo(reqHandle); in CreateMsg() 487 ret = AppSpawnReqMsgSetBundleInfo(reqHandle, 100, processName_.c_str()); // 100 test index in CreateMsg() 489 ret = AddDacInfo(reqHandle); in CreateMsg() 547 GetAppProperty(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle) GetAppProperty() argument [all...] |
H A D | app_spawn_test_helper.h | 112 AppSpawningCtx *GetAppProperty(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle); 113 int AddDacInfo(AppSpawnReqMsgHandle &reqHandle); 114 int AddFdInfo(AppSpawnReqMsgHandle &reqHandle); 128 int AppSpawnReqMsgSetFlags(AppSpawnReqMsgHandle reqHandle, uint32_t tlv, uint32_t flags) in AppSpawnReqMsgSetFlags() argument 130 AppSpawnReqMsgNode *reqNode = (AppSpawnReqMsgNode *)reqHandle; in AppSpawnReqMsgSetFlags()
|
/base/web/webview/sa/src/ |
H A D | app_fwk_update_service.cpp | 180 AppSpawnReqMsgHandle reqHandle = 0; in SendAppSpawnMessage() local 187 ret = AppSpawnReqMsgCreate(MSG_UPDATE_MOUNT_POINTS, bundleName.c_str(), &reqHandle); in SendAppSpawnMessage() 193 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in SendAppSpawnMessage() 206 AppSpawnReqMsgHandle reqHandle = 0; in SendNWebSpawnMesage() local 213 ret = AppSpawnReqMsgCreate(MSG_RESTART_SPAWNER, bundleName.c_str(), &reqHandle); in SendNWebSpawnMesage() 219 ret = AppSpawnClientSendMsg(clientHandle, reqHandle, &result); in SendNWebSpawnMesage()
|