/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundlegids_fuzzer/ |
H A D | getbundlegids_fuzzer.cpp | 30 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 D | getbundlegidsbyuid_fuzzer.cpp | 30 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 D | app_spawn_msg_wrapper.cpp | 100 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 D | app_spawn_client.cpp | 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.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 D | app_spawn_client_second_test.cpp | 352 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 D | inner_bundle_user_info.cpp | 22 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 D | inner_bundle_clone_info.cpp | 23 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 D | uninstall_bundle_info.cpp | 21 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 D | inner_bundle_clone_info.h | 35 std::vector<int32_t> gids; member
|
H A D | inner_bundle_user_info.h | 27 std::vector<int32_t> gids; member
|
H A D | bundle_mgr_host_impl.h | 237 * @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 D | uninstall_bundle_info.h | 26 std::vector<int32_t> gids; member
|
/foundation/ability/ability_runtime/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 226 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 D | mock_bundle_manager.cpp | 259 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 D | bms_bundle_permission_token_test.cpp | 157 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 D | bms_bundle_clone_app_bundle_logic_test.cpp | 244 .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 D | app_spawn_client.h | 46 std::vector<int32_t> gids; member
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_mgr_proxy_test/ |
H A D | bms_bundle_mgr_proxy_test.cpp | 520 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 D | bundlemgrproxy_fuzzer.cpp | 199 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 D | app_mgr_service_inner_second_test.cpp | 1928 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 D | bundle_clone_installer.cpp | 202 .gids = tmpUserInfo.gids, in ProcessCloneBundleInstall()
|
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/ |
H A D | mock_bundle_manager.h | 103 virtual bool GetBundleGids(const std::string& bundleName, std::vector<int>& gids) override;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/ |
H A D | bundle_sandbox_installer.cpp | 109 userInfo.gids.clear(); in InstallSandboxApp()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/ |
H A D | bundle_mgr_interface.h | 382 * @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 D | bundle_mgr_proxy.h | 277 * @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;
|