/foundation/ability/ability_runtime/test/unittest/app_spawn_client_second_test/ |
H A D | app_spawn_client_second_test.cpp | 46 // Scenario1: Test when startMsg.flags is 0 and all other flags are false. 50 AppSpawnStartMsg startMsg; in HWTEST_F() local 51 startMsg.flags = 0; in HWTEST_F() 52 startMsg.atomicServiceFlag = false; in HWTEST_F() 53 startMsg.strictMode = false; in HWTEST_F() 54 startMsg.isolatedExtension = false; in HWTEST_F() 55 startMsg.childProcessType = 0; in HWTEST_F() 57 EXPECT_NE(appSpawnClient.SetStartFlags(startMsg, reqHandle), 0); in HWTEST_F() 60 // Scenario2: Test when startMsg.flags is START_FLAG_TEST_NUM and all other flags are false. 64 AppSpawnStartMsg startMsg; in HWTEST_F() local 78 AppSpawnStartMsg startMsg; HWTEST_F() local 92 AppSpawnStartMsg startMsg; HWTEST_F() local 106 AppSpawnStartMsg startMsg; HWTEST_F() local 120 AppSpawnStartMsg startMsg; HWTEST_F() local 134 AppSpawnStartMsg startMsg; HWTEST_F() local 148 AppSpawnStartMsg startMsg; HWTEST_F() local 162 AppSpawnStartMsg startMsg; HWTEST_F() local 177 AppSpawnStartMsg startMsg; HWTEST_F() local 191 AppSpawnStartMsg startMsg; HWTEST_F() local 206 AppSpawnStartMsg startMsg; HWTEST_F() local 220 AppSpawnStartMsg startMsg; HWTEST_F() local 235 AppSpawnStartMsg startMsg; HWTEST_F() local 250 AppSpawnStartMsg startMsg; HWTEST_F() local 265 AppSpawnStartMsg startMsg; HWTEST_F() local 279 AppSpawnStartMsg startMsg; HWTEST_F() local 298 AppSpawnStartMsg startMsg; HWTEST_F() local 317 AppSpawnStartMsg startMsg; HWTEST_F() local 340 AppSpawnStartMsg startMsg; HWTEST_F() local 349 AppSpawnStartMsg startMsg; HWTEST_F() local 368 AppSpawnStartMsg startMsg; HWTEST_F() local 378 AppSpawnStartMsg startMsg; HWTEST_F() local 388 AppSpawnStartMsg startMsg; HWTEST_F() local 403 AppSpawnStartMsg startMsg; HWTEST_F() local 414 AppSpawnStartMsg startMsg; HWTEST_F() local 424 AppSpawnStartMsg startMsg; HWTEST_F() local 435 AppSpawnStartMsg startMsg; HWTEST_F() local 445 AppSpawnStartMsg startMsg; HWTEST_F() local 454 AppSpawnStartMsg startMsg; HWTEST_F() local 466 AppSpawnStartMsg startMsg; HWTEST_F() local 477 AppSpawnStartMsg startMsg; HWTEST_F() local 486 AppSpawnStartMsg startMsg; HWTEST_F() local 506 AppSpawnStartMsg startMsg; HWTEST_F() local 516 AppSpawnStartMsg startMsg; HWTEST_F() local 593 AppSpawnStartMsg startMsg; HWTEST_F() local 606 AppSpawnStartMsg startMsg; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 223 AppSpawnStartMsg startMsg = {0}; in HWTEST_F() local 224 startMsg.uid = 1001; in HWTEST_F() 225 startMsg.gid = 2001; in HWTEST_F() 226 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F() 228 startMsg.procName = procName; in HWTEST_F() 232 startMsg.permissions.insert(permission1); in HWTEST_F() 233 startMsg.permissions.insert(permission2); in HWTEST_F() 234 startMsg.permissions.insert(permission3); in HWTEST_F() 235 startMsg.flags = 0x1000; in HWTEST_F() 236 startMsg in HWTEST_F() 271 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 319 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 367 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 416 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 471 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 521 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 571 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 621 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 667 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 713 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 738 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 763 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 791 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 818 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 843 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 869 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local 913 AppSpawnStartMsg startMsg = {0}; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_spawn_msg_wrapper.cpp | 79 bool AppSpawnMsgWrapper::AssembleMsg(const AppSpawnStartMsg &startMsg) in AssembleMsg() argument 81 if (!VerifyMsg(startMsg)) { in AssembleMsg() 95 msg_->code = static_cast<AppSpawn::ClientSocket::AppOperateCode>(startMsg.code); in AssembleMsg() 98 msg_->uid = startMsg.uid; in AssembleMsg() 99 msg_->gid = startMsg.gid; in AssembleMsg() 100 msg_->gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in AssembleMsg() 101 msg_->bundleIndex = startMsg.bundleIndex; in AssembleMsg() 102 msg_->setAllowInternet = startMsg.setAllowInternet; in AssembleMsg() 103 msg_->allowInternet = startMsg in AssembleMsg() 154 BuildExtraInfo(const AppSpawnStartMsg &startMsg) BuildExtraInfo() argument [all...] |
H A D | app_spawn_client.cpp | 166 int32_t AppSpawnClient::SetDacInfo(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) in SetDacInfo() argument 170 appDacInfo.uid = startMsg.uid; in SetDacInfo() 171 appDacInfo.gid = startMsg.gid; in SetDacInfo() 172 appDacInfo.gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in SetDacInfo() 173 for (uint32_t i = 0; i < startMsg.gids.size(); i++) { in SetDacInfo() 174 appDacInfo.gidTable[i] = startMsg.gids[i]; in SetDacInfo() 176 for (uint32_t i = startMsg.gids.size(); i < appDacInfo.gidCount; i++) { in SetDacInfo() 177 appDacInfo.gidTable[i] = startMsg.dataGroupInfoList[i - startMsg in SetDacInfo() 187 SetMountPermission(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) SetMountPermission() argument 201 SetStartFlags(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) SetStartFlags() argument 254 AppspawnSetExtMsg(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) AppspawnSetExtMsg() argument 308 AppspawnSetExtMsgMore(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) AppspawnSetExtMsgMore() argument 356 AppspawnCreateDefaultMsg(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle) AppspawnCreateDefaultMsg() argument 419 VerifyMsg(const AppSpawnStartMsg &startMsg) VerifyMsg() argument 468 StartProcess(const AppSpawnStartMsg &startMsg, pid_t &pid) StartProcess() argument 518 GetRenderProcessTerminationStatus(const AppSpawnStartMsg &startMsg, int &status) GetRenderProcessTerminationStatus() argument 579 SetIsolationModeFlag(const AppSpawnStartMsg &startMsg, const AppSpawnReqMsgHandle &reqHandle) SetIsolationModeFlag() argument [all...] |
H A D | app_mgr_service_inner.cpp | 3013 int32_t AppMgrServiceInner::StartPerfProcessByStartMsg(AppSpawnStartMsg &startMsg, in StartPerfProcessByStartMsg() argument 3025 startMsg.code = static_cast<int32_t>(MSG_SPAWN_NATIVE_PROCESS); in StartPerfProcessByStartMsg() 3028 startMsg.flags |= (START_FLAG_BASE << StartFlags::NO_SANDBOX); in StartPerfProcessByStartMsg() 3033 startMsg.renderParam = perfCmd; in StartPerfProcessByStartMsg() 3036 startMsg.renderParam = debugCmd; in StartPerfProcessByStartMsg() 3040 auto errCode = remoteClientManager_->GetSpawnClient()->StartProcess(startMsg, pid); in StartPerfProcessByStartMsg() 3056 auto&& startMsg = appRecord->GetStartMsg(); in StartPerfProcess() local 3057 return StartPerfProcessByStartMsg(startMsg, perfCmd, debugCmd, isSandboxApp); in StartPerfProcess() 3062 AppSpawnStartMsg &startMsg) in SetOverlayInfo() 3082 startMsg in SetOverlayInfo() 3060 SetOverlayInfo(const std::string &bundleName, const int32_t userId, AppSpawnStartMsg &startMsg) SetOverlayInfo() argument 3092 SetAppEnvInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg& startMsg) SetAppEnvInfo() argument 3184 CreatNewStartMsg(const Want &want, const AbilityInfo &abilityInfo, const std::shared_ptr<ApplicationInfo> &appInfo, const std::string &processName, AppSpawnStartMsg &startMsg) CreatNewStartMsg() argument 3216 SetAtomicServiceInfo(BundleType bundleType, AppSpawnStartMsg &startMsg) SetAtomicServiceInfo() argument 3237 SetAppInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg) SetAppInfo() argument 3275 CreateStartMsg(const std::string &processName, uint32_t startFlags, const int uid, const BundleInfo &bundleInfo, const int32_t bundleIndex, BundleType bundleType, AppSpawnStartMsg &startMsg, std::shared_ptr<AAFwk::Want> want, const std::string &moduleName, const std::string &abilityName, bool strictMode) CreateStartMsg() argument 3337 QueryExtensionSandBox(const std::string &moduleName, const std::string &abilityName, const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg, DataGroupInfoList &dataGroupInfoList, bool strictMode, std::shared_ptr<AAFwk::Want> want) QueryExtensionSandBox() argument 3403 AppSpawnStartMsg startMsg; StartProcess() local 5294 AppSpawnStartMsg startMsg = appRecord->GetStartMsg(); StartRenderProcessImpl() local 5321 SetRenderStartMsg(AppSpawnStartMsg &startMsg, std::shared_ptr<RenderRecord> renderRecord, const int32_t renderUid, const bool isGPU) SetRenderStartMsg() argument 5367 AppSpawnStartMsg startMsg; GetRenderProcessTerminationStatus() local 6228 AppSpawnStartMsg startMsg; NotifyAppFaultBySA() local 6986 AppSpawnStartMsg startMsg = appRecord->GetStartMsg(); NotifyAppFaultBySA() local [all...] |
/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | app_spawn_client.h | 154 * @param startMsg, request message. 157 int32_t SetDacInfo(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 162 * @param startMsg, request message. 165 int32_t SetMountPermission(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 170 * @param startMsg, request message. 173 int32_t SetStartFlags(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 178 * @param startMsg, request message. 181 int32_t AppspawnSetExtMsg(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 186 * @param startMsg, request message. 189 int32_t AppspawnSetExtMsgMore(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandl [all...] |
H A D | app_mgr_service_inner.h | 1574 void SetRenderStartMsg(AppSpawnStartMsg &startMsg, std::shared_ptr<RenderRecord> renderRecord, 1683 void SetOverlayInfo(const std::string& bundleName, const int32_t userId, AppSpawnStartMsg& startMsg); 1684 void SetAppEnvInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg& startMsg); 1743 AppSpawnStartMsg &startMsg); 1749 const BundleInfo &bundleInfo, const int32_t bundleIndex, BundleType bundleType, AppSpawnStartMsg &startMsg, 1754 const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg, DataGroupInfoList& dataGroupInfoList, 1757 int32_t StartPerfProcessByStartMsg(AppSpawnStartMsg &startMsg, const std::string& perfCmd, 1760 void SetAtomicServiceInfo(BundleType bundleType, AppSpawnStartMsg &startMsg); 1762 void SetAppInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg);
|
/foundation/ability/ability_runtime/test/fuzztest/appmgrrest_fuzzer/ |
H A D | appmgrrest_fuzzer.cpp | 82 AppSpawnStartMsg startMsg; in DoSomethingInterestingWithMyAPI() local 84 appSpawnClient.StartProcess(startMsg, pid); in DoSomethingInterestingWithMyAPI() 86 appSpawnClient.GetRenderProcessTerminationStatus(startMsg, status); in DoSomethingInterestingWithMyAPI() 101 return (appSpawnClient.StartProcess(startMsg, pid) != 0); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_tdd_test/ |
H A D | app_mgr_service_inner_tdd_test.cpp | 642 AppSpawnStartMsg startMsg; in HWTEST_F() local 648 appMgrServiceInner->QueryExtensionSandBox(moduleName, extensionName, bundleInfo, startMsg, dataGroupInfoList, in HWTEST_F() 650 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 1); in HWTEST_F() 676 AppSpawnStartMsg startMsg; in HWTEST_F() local 682 appMgrServiceInner->QueryExtensionSandBox(moduleName, extensionName, bundleInfo, startMsg, dataGroupInfoList, in HWTEST_F() 684 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 0); in HWTEST_F() 707 AppSpawnStartMsg startMsg; in HWTEST_F() local 710 appMgrServiceInner->QueryExtensionSandBox(moduleName, extensionName, bundleInfo, startMsg, dataGroupInfoList, in HWTEST_F() 712 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 0); in HWTEST_F() 735 AppSpawnStartMsg startMsg; in HWTEST_F() local 756 AppSpawnStartMsg startMsg; HWTEST_F() local 775 AppSpawnStartMsg startMsg; HWTEST_F() local 794 AppSpawnStartMsg startMsg; HWTEST_F() local 813 AppSpawnStartMsg startMsg; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/ |
H A D | mock_app_spawn_client.h | 31 MOCK_METHOD2(StartProcess, ErrCode(const AppSpawnStartMsg& startMsg, pid_t& pid));
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_second_test/ |
H A D | app_mgr_service_inner_second_test.cpp | 1894 AppSpawnStartMsg startMsg; in HWTEST_F() local 1895 appMgrServiceInner->SetOverlayInfo("testBundleName", 1, startMsg); in HWTEST_F() 1896 EXPECT_EQ(startMsg.flags, 0); in HWTEST_F() 1897 EXPECT_EQ(startMsg.overlayInfo, ""); in HWTEST_F() 1900 appMgrServiceInner->SetOverlayInfo("testBundleName", 1, startMsg); in HWTEST_F() 1901 EXPECT_EQ(startMsg.flags, 0); in HWTEST_F() 1902 EXPECT_EQ(startMsg.overlayInfo, ""); in HWTEST_F() 1906 appMgrServiceInner->SetOverlayInfo("testBundleName", 1, startMsg); in HWTEST_F() 1907 EXPECT_EQ(startMsg.flags, 0); in HWTEST_F() 1908 EXPECT_EQ(startMsg in HWTEST_F() [all...] |