Home
last modified time | relevance | path

Searched refs:gids (Results 1 - 25 of 43) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundlegids_fuzzer/
H A Dgetbundlegids_fuzzer.cpp30 std::vector<int> gids; in DoSomethingInterestingWithMyAPI() local
31 gids.push_back(reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
32 bundleMgrProxy.GetBundleGids(bundleName, gids); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundlegidsbyuid_fuzzer/
H A Dgetbundlegidsbyuid_fuzzer.cpp30 std::vector<int> gids; in DoSomethingInterestingWithMyAPI() local
31 gids.push_back(reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
32 bundleMgrProxy.GetBundleGidsByUid(bundleName, reinterpret_cast<uintptr_t>(data), gids); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_spawn_msg_wrapper.cpp100 msg_->gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in AssembleMsg()
109 for (uint32_t i = 0; i < startMsg.gids.size(); ++i) { in AssembleMsg()
110 msg_->gidTable[i] = startMsg.gids[i]; in AssembleMsg()
112 for (uint32_t i = startMsg.gids.size(); i < msg_->gidCount; ++i) { in AssembleMsg()
113 msg_->gidTable[i] = startMsg.dataGroupInfoList[i - startMsg.gids.size()].gid; in AssembleMsg()
196 if (startMsg.gids.size() > AppSpawn::ClientSocket::MAX_GIDS) { in VerifyMsg()
197 TAG_LOGE(AAFwkTag::APPMGR, "many app gids"); in VerifyMsg()
201 for (uint32_t i = 0; i < startMsg.gids.size(); ++i) { in VerifyMsg()
202 if (startMsg.gids[i] < 0) { in VerifyMsg()
203 TAG_LOGE(AAFwkTag::APPMGR, "invalid gids arra in VerifyMsg()
[all...]
H A Dapp_spawn_client.cpp172 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.gids.size()].gid; in SetDacInfo()
434 if (startMsg.gids.size() > APP_MAX_GIDS) { in VerifyMsg()
435 TAG_LOGE(AAFwkTag::APPMGR, "many app gids"); in VerifyMsg()
439 for (uint32_t i = 0; i < startMsg.gids.size(); ++i) { in VerifyMsg()
440 if (startMsg.gids[i] < 0) { in VerifyMsg()
441 TAG_LOGE(AAFwkTag::APPMGR, "invalid gids arra in VerifyMsg()
[all...]
/foundation/ability/ability_runtime/test/unittest/app_spawn_client_second_test/
H A Dapp_spawn_client_second_test.cpp352 startMsg.gids.push_back(1); in HWTEST_F()
384 // Scenario3: Test when startMsg.code is MSG_APP_SPAWN and gids size is more than APP_MAX_GIDS.
390 startMsg.gids.push_back(1); in HWTEST_F()
391 startMsg.gids.push_back(2); in HWTEST_F()
392 startMsg.gids.push_back(3); in HWTEST_F()
393 startMsg.gids.push_back(4); in HWTEST_F()
394 startMsg.gids.push_back(5); in HWTEST_F()
395 startMsg.gids.push_back(6); in HWTEST_F()
399 // Scenario4: Test when startMsg.code is MSG_APP_SPAWN and gids array contains negative value.
405 startMsg.gids in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dinner_bundle_user_info.cpp22 constexpr const char* INNER_BUNDLE_USER_INFO_GIDS = "gids";
38 {INNER_BUNDLE_USER_INFO_GIDS, innerBundleUserInfo.gids}, in to_json()
58 innerBundleUserInfo.gids, JsonType::ARRAY, false, parseResult, ArrayType::NUMBER); in from_json()
H A Dinner_bundle_clone_info.cpp23 const std::string BUNDLE_CLONE_INFO_GIDS = "gids";
39 {BUNDLE_CLONE_INFO_GIDS, bundleCloneInfo.gids}, in to_json()
60 bundleCloneInfo.gids, JsonType::ARRAY, false, parseResult, ArrayType::NUMBER); in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/uninstall_data_mgr/
H A Duninstall_bundle_info.cpp21 const char* const KEY_GIDS = "gids";
36 {KEY_GIDS, uninstallDataUserInfo.gids}, in to_json()
61 uninstallDataUserInfo.gids, JsonType::ARRAY, false, parseResult, ArrayType::NUMBER); in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinner_bundle_clone_info.h35 std::vector<int32_t> gids; member
H A Dinner_bundle_user_info.h27 std::vector<int32_t> gids; member
H A Dbundle_mgr_host_impl.h237 * @param gids Indicates the group IDs associated with the specified bundle.
238 * @return Returns true if the gids is successfully obtained; returns false otherwise.
240 virtual bool GetBundleGids(const std::string &bundleName, std::vector<int> &gids) override;
245 * @param gids Indicates the group IDs associated with the specified bundle.
246 * @return Returns true if the gids is successfully obtained; returns false otherwise.
248 virtual bool GetBundleGidsByUid(const std::string &bundleName, const int &uid, std::vector<int> &gids) override;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/uninstall_data_mgr/
H A Duninstall_bundle_info.h26 std::vector<int32_t> gids; member
/foundation/ability/ability_runtime/test/unittest/app_spawn_client_test/
H A Dapp_spawn_client_test.cpp226 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
274 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
322 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
370 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
419 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
474 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
524 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
574 startMsg.gids = {1001, 1002, 1003}; in HWTEST_F()
624 startMsg.gids = {1001, 1002, 1003, -1}; in HWTEST_F()
670 startMsg.gids in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/src/
H A Dmock_bundle_manager.cpp259 bool BundleMgrService::GetBundleGids(const std::string& bundleName, std::vector<int>& gids) in GetBundleGids() argument
264 gids.push_back(userGid1); in GetBundleGids()
265 gids.push_back(userGid2); in GetBundleGids()
266 gids.push_back(userGid3); in GetBundleGids()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
H A Dbms_bundle_permission_token_test.cpp157 std::vector<int> gids; in HWTEST_F() local
158 bool ret = bundleMgrHostImpl_->GetBundleGids(BUNDLE_NAME, gids); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_clone_app_test/
H A Dbms_bundle_clone_app_bundle_logic_test.cpp244 .gids = {0}, in HWTEST_F()
286 .gids = {0}, in HWTEST_F()
328 .gids = {0}, in HWTEST_F()
/foundation/ability/ability_runtime/services/appmgr/include/
H A Dapp_spawn_client.h46 std::vector<int32_t> gids; member
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_mgr_proxy_test/
H A Dbms_bundle_mgr_proxy_test.cpp520 std::vector<int> gids; in HWTEST_F() local
522 auto res = bundleMgrProxy.GetBundleGids(bundleName, gids); in HWTEST_F()
536 std::vector<int> gids; in HWTEST_F() local
539 auto res = bundleMgrProxy.GetBundleGidsByUid(bundleName, uid, gids); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/
H A Dbundlemgrproxy_fuzzer.cpp199 std::vector<int> gids; in DoSomethingInterestingWithMyAPI() local
200 bundleMgrProxy.GetBundleGids(bundleName, gids); in DoSomethingInterestingWithMyAPI()
201 bundleMgrProxy.GetBundleGidsByUid(bundleName, uid, gids); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_second_test/
H A Dapp_mgr_service_inner_second_test.cpp1928 std::vector<int32_t> gids; in HWTEST_F() local
1931 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
1937 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
1944 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
1952 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
1960 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
1961 EXPECT_FALSE(std::find(gids.begin(), gids.end(), 1097) != gids.end()); in HWTEST_F()
1966 bundleInfo, hasAccessBundleDirReq, setAllowInternet, allowInternet, gids); in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/clone/
H A Dbundle_clone_installer.cpp202 .gids = tmpUserInfo.gids, in ProcessCloneBundleInstall()
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/
H A Dmock_bundle_manager.h103 virtual bool GetBundleGids(const std::string& bundleName, std::vector<int>& gids) override;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/
H A Dbundle_sandbox_installer.cpp109 userInfo.gids.clear(); in InstallSandboxApp()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/
H A Dbundle_mgr_interface.h382 * @param gids Indicates the group IDs associated with the specified bundle.
383 * @return Returns true if the gids is successfully obtained; returns false otherwise.
385 virtual bool GetBundleGids(const std::string &bundleName, std::vector<int> &gids) in GetBundleGids() argument
393 * @param gids Indicates the group IDs associated with the specified bundle.
394 * @return Returns true if the gids is successfully obtained; returns false otherwise.
396 virtual bool GetBundleGidsByUid(const std::string &bundleName, const int &uid, std::vector<int> &gids) in GetBundleGidsByUid() argument
H A Dbundle_mgr_proxy.h277 * @param gids Indicates the group IDs associated with the specified bundle.
278 * @return Returns true if the gids is successfully obtained; returns false otherwise.
280 virtual bool GetBundleGids(const std::string &bundleName, std::vector<int> &gids) override;
285 * @param gids Indicates the group IDs associated with the specified bundle.
286 * @return Returns true if the gids is successfully obtained; returns false otherwise.
288 virtual bool GetBundleGidsByUid(const std::string &bundleName, const int &uid, std::vector<int> &gids) override;

Completed in 41 milliseconds

12