/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_spawn_msg_wrapper.cpp | 81 if (!VerifyMsg(startMsg)) { 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() 113 msg_->gidTable[i] = startMsg.dataGroupInfoList[i - startMsg.gids.size()].gid; in AssembleMsg() 141 BuildExtraInfo(startMsg); in AssembleMsg() 143 msg_->pid = startMsg.pid; in AssembleMsg() 171 if (!startMsg.appEnv.empty()) { in BuildExtraInfo() 186 if (startMsg.uid < 0) { in VerifyMsg() 191 if (startMsg.gid < 0) { in VerifyMsg() [all …]
|
H A D | app_spawn_client.cpp | 174 appDacInfo.gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in SetDacInfo() 179 appDacInfo.gidTable[i] = startMsg.dataGroupInfoList[i - startMsg.gids.size()].gid; in SetDacInfo() 226 if (startMsg.strictMode) { in SetStartFlags() 350 if (!startMsg.fds.empty()) { in AppspawnSetExtMsgMore() 399 startMsg.hapFlags, startMsg.apl.c_str(), ret); in AppspawnCreateDefaultMsg() 429 if (startMsg.uid < 0) { in VerifyMsg() 434 if (startMsg.gid < 0) { in VerifyMsg() 450 if (startMsg.procName.empty() || startMsg.procName.size() >= MAX_PROC_NAME_LEN) { in VerifyMsg() 455 if (startMsg.pid < 0) { in VerifyMsg() 477 if (!VerifyMsg(startMsg)) { in StartProcess() [all …]
|
H A D | app_mgr_service_inner.cpp | 3092 startMsg.flags = startMsg.flags | APP_OVERLAY_FLAG; in SetOverlayInfo() 3257 startMsg.gids = gids; in SetAppInfo() 3299 startMsg.hspList = hspList; in CreateStartMsg() 3310 startMsg.flags = startFlags; in CreateStartMsg() 3404 AppSpawnStartMsg startMsg; in StartProcess() local 5330 startMsg.uid = renderUid; in SetRenderStartMsg() 5331 startMsg.gid = renderUid; in SetRenderStartMsg() 5372 AppSpawnStartMsg startMsg; in GetRenderProcessTerminationStatus() local 5373 startMsg.pid = renderPid; in GetRenderProcessTerminationStatus() 6181 AppSpawnStartMsg startMsg; in NotifyAppFaultBySA() local [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | app_spawn_client.h | 156 int32_t SetDacInfo(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 164 int32_t SetMountPermission(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 172 int32_t SetStartFlags(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 180 int32_t AppspawnSetExtMsg(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 188 int32_t AppspawnSetExtMsgMore(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 196 …int32_t AppspawnCreateDefaultMsg(const AppSpawnStartMsg &startMsg, AppSpawnReqMsgHandle reqHandle); 203 bool VerifyMsg(const AppSpawnStartMsg &startMsg); 216 virtual int32_t StartProcess(const AppSpawnStartMsg &startMsg, pid_t &pid); 224 … virtual int32_t GetRenderProcessTerminationStatus(const AppSpawnStartMsg &startMsg, int &status); 235 …int32_t SetIsolationModeFlag(const AppSpawnStartMsg &startMsg, const AppSpawnReqMsgHandle &reqHand…
|
H A D | app_mgr_service_inner.h | 1405 void SetRenderStartMsg(AppSpawnStartMsg &startMsg, std::shared_ptr<RenderRecord> renderRecord, 1502 …id SetOverlayInfo(const std::string& bundleName, const int32_t userId, AppSpawnStartMsg& startMsg); 1503 void SetAppEnvInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg& startMsg); 1566 AppSpawnStartMsg &startMsg); 1569 …ndleInfo &bundleInfo, const int32_t bundleIndex, BundleType bundleType, AppSpawnStartMsg &startMsg, 1574 … const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg, DataGroupInfoList& dataGroupInfoList, 1577 int32_t StartPerfProcessByStartMsg(AppSpawnStartMsg &startMsg, const std::string& perfCmd, 1580 void SetAtomicServiceInfo(BundleType bundleType, AppSpawnStartMsg &startMsg); 1582 void SetAppInfo(const BundleInfo &bundleInfo, AppSpawnStartMsg &startMsg);
|
/ohos5.0/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; variable 650 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 1); 676 AppSpawnStartMsg startMsg; variable 684 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 0); 707 AppSpawnStartMsg startMsg; variable 712 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 0); 735 AppSpawnStartMsg startMsg; variable 740 EXPECT_EQ(startMsg.dataGroupInfoList.size(), 0); 756 AppSpawnStartMsg startMsg; variable 757 appMgrServiceInner->SetAppEnvInfo(info, startMsg); [all …]
|
/ohos5.0/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()
|
/ohos5.0/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));
|
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/ |
H A D | js_drag_context.cpp | 234 napi_value startMsg = nullptr; in DeclareDragData() local 235 CHKRV(napi_create_int32(env, static_cast<int32_t>(DragState::START), &startMsg), in DeclareDragData() 245 DECLARE_NAPI_STATIC_PROPERTY("MSG_DRAG_STATE_START", startMsg), in DeclareDragData()
|