/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/ |
H A D | bundle_manager_proxy_test.cpp | 82 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 88 ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 102 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 105 ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 118 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 124 ErrCode ret = bundleManagerProxy->RemoveBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 138 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 141 ErrCode ret = bundleManagerProxy->RemoveBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 154 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 160 ErrCode ret = bundleManagerProxy->GetBundlesByPolicyType(admin, DEFAULT_USER_ID, bundles, policyTyp in HWTEST_F() 175 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; HWTEST_F() local 194 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; HWTEST_F() local 214 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; HWTEST_F() local 231 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; HWTEST_F() local [all...] |
H A D | restrictions_proxy_test.cpp | 302 std::vector<std::string> bundles; in HWTEST_F() local 303 bundles.emplace_back("aaaa"); in HWTEST_F() 304 bundles.emplace_back("bbbb"); in HWTEST_F() 305 int32_t ret = proxy_->AddOrRemoveDisallowedListForAccount(admin, FEATURE_SNAPSHOT_SKIP, bundles, 100, true); in HWTEST_F() 321 std::vector<std::string> bundles; in HWTEST_F() local 322 bundles.emplace_back("aaaa"); in HWTEST_F() 323 bundles.emplace_back("bbbb"); in HWTEST_F() 324 int32_t ret = proxy_->AddOrRemoveDisallowedListForAccount(admin, FEATURE_SNAPSHOT_SKIP, bundles, 100, false); in HWTEST_F() 338 std::vector<std::string> bundles; in HWTEST_F() local 339 bundles in HWTEST_F() 355 std::vector<std::string> bundles; HWTEST_F() local 374 std::vector<std::string> bundles; HWTEST_F() local 391 std::vector<std::string> bundles; HWTEST_F() local [all...] |
H A D | application_manager_proxy_test.cpp | 76 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 80 ErrCode ret = applicationManagerProxy_->AddDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); in HWTEST_F() 93 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 94 ErrCode ret = applicationManagerProxy_->AddDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); in HWTEST_F() 106 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 110 ErrCode ret = applicationManagerProxy_->RemoveDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); in HWTEST_F() 123 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 124 ErrCode ret = applicationManagerProxy_->RemoveDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); in HWTEST_F() 136 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() local 140 ErrCode ret = applicationManagerProxy_->GetDisallowedRunningBundles(admin, DEFAULT_USER_ID, bundles); in HWTEST_F() 155 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; HWTEST_F() local [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/application_manager/include/ |
H A D | application_manager_proxy.h | 25 int32_t AddDisallowedRunningBundles(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, 27 int32_t RemoveDisallowedRunningBundles(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, 30 std::vector<std::string> &bundles, bool isSync = false);
|
/base/customization/enterprise_device_management/test/fuzztest/disallowedrunningbundlesplugin_fuzzer/ |
H A D | disallowed_running_bundles_plugin_fuzzer.cpp | 59 std::vector<std::string> bundles; in LLVMFuzzerTestOneInput() local 60 bundles.push_back(CommonFuzzer::GetString(data, pos, stringSize, size)); in LLVMFuzzerTestOneInput() 61 parcel.WriteStringVector(bundles); in LLVMFuzzerTestOneInput()
|
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/include/ |
H A D | bundle_manager_proxy.h | 28 int32_t AddBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, 30 int32_t RemoveBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, 32 int32_t GetBundlesByPolicyType(AppExecFwk::ElementName &admin, int32_t userId, std::vector<std::string> &bundles,
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | snapshot_skip_plugin.cpp | 108 std::vector<std::string> bundles; in OnGetPolicy() local 109 ArrayStringSerializer::GetInstance()->Deserialize(policyData, bundles); in OnGetPolicy() 111 reply.WriteInt32(bundles.size()); in OnGetPolicy() 112 reply.WriteStringVector(bundles); in OnGetPolicy()
|
H A D | bundle_install_plugin.cpp | 69 std::vector<std::string> bundles; in GetBundlePolicy() local 70 ArrayStringSerializer::GetInstance()->Deserialize(policyData, bundles); in GetBundlePolicy() 72 reply.WriteInt32(bundles.size()); in GetBundlePolicy() 73 reply.WriteStringVector(bundles); in GetBundlePolicy()
|
/base/customization/enterprise_device_management/interfaces/inner_api/application_manager/src/ |
H A D | application_manager_proxy.cpp | 41 std::vector<std::string> &bundles, int32_t userId, bool isSync) in AddDisallowedRunningBundles() 53 data.WriteStringVector(bundles); in AddDisallowedRunningBundles() 58 std::vector<std::string> &bundles, int32_t userId, bool isSync) in RemoveDisallowedRunningBundles() 70 data.WriteStringVector(bundles); in RemoveDisallowedRunningBundles() 75 std::vector<std::string> &bundles, bool isSync) in GetDisallowedRunningBundles() 96 EDMLOGE("bundles size=[%{public}d] is too large", size); in GetDisallowedRunningBundles() 99 reply.ReadStringVector(&bundles); in GetDisallowedRunningBundles() 40 AddDisallowedRunningBundles(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, bool isSync) AddDisallowedRunningBundles() argument 57 RemoveDisallowedRunningBundles(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, bool isSync) RemoveDisallowedRunningBundles() argument 74 GetDisallowedRunningBundles(AppExecFwk::ElementName &admin, int32_t userId, std::vector<std::string> &bundles, bool isSync) GetDisallowedRunningBundles() argument
|
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/ |
H A D | bundle_manager_proxy.cpp | 92 int32_t BundleManagerProxy::AddBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, in AddBundlesByPolicyType() argument 110 data.WriteStringVector(bundles); in AddBundlesByPolicyType() 114 int32_t BundleManagerProxy::RemoveBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, in RemoveBundlesByPolicyType() argument 132 data.WriteStringVector(bundles); in RemoveBundlesByPolicyType() 137 std::vector<std::string> &bundles, int32_t policyType) in GetBundlesByPolicyType() 163 EDMLOGE("bundles size=[%{public}d] is too large", size); in GetBundlesByPolicyType() 166 reply.ReadStringVector(&bundles); in GetBundlesByPolicyType() 136 GetBundlesByPolicyType(AppExecFwk::ElementName &admin, int32_t userId, std::vector<std::string> &bundles, int32_t policyType) GetBundlesByPolicyType() argument
|
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_expand.c | 41 cJSON *bundles = cJSON_GetObjectItemCaseSensitive(hsps, "bundles"); in MountAllHsp() local 44 APPSPAWN_CHECK(bundles != NULL && cJSON_IsArray(bundles), return -1, "MountAllHsp: invalid bundles"); in MountAllHsp() 47 int count = cJSON_GetArraySize(bundles); in MountAllHsp() 53 char *libBundleName = cJSON_GetStringValue(cJSON_GetArrayItem(bundles, i)); in MountAllHsp()
|
H A D | sandbox_utils.cpp | 79 const std::string g_dataBundles = "/data/bundles/"; 90 const std::string g_hspList_key_bundles = "bundles"; 1238 nlohmann::json& bundles = hsps[g_hspList_key_bundles]; in MountAllHsp() local 1241 APPSPAWN_CHECK(bundles.is_array() && modules.is_array() && versions.is_array() && bundles.size() == modules.size() in MountAllHsp() 1242 && bundles.size() == versions.size(), return -1, "MountAllHsp: value is not arrary or sizes are not same"); in MountAllHsp() 1245 GetBundleName(appProperty), static_cast<unsigned long>(bundles.size())); in MountAllHsp() 1246 for (uint32_t i = 0; i < bundles.size(); i++) { in MountAllHsp() 1248 APPSPAWN_CHECK(bundles[i].is_string() && modules[i].is_string() && versions[i].is_string(), in MountAllHsp() 1251 std::string libBundleName = bundles[ in MountAllHsp() [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/restrictions/include/ |
H A D | restrictions_proxy.h | 39 std::vector<std::string> &bundles, int32_t accountId, bool isAdd);
|
/base/customization/enterprise_device_management/interfaces/inner_api/restrictions/src/ |
H A D | restrictions_proxy.cpp | 134 std::string feature, std::vector<std::string> &bundles, int32_t accountId, bool isAdd) in AddOrRemoveDisallowedListForAccount() 153 data.WriteStringVector(bundles); in AddOrRemoveDisallowedListForAccount() 133 AddOrRemoveDisallowedListForAccount(const AppExecFwk::ElementName &admin, std::string feature, std::vector<std::string> &bundles, int32_t accountId, bool isAdd) AddOrRemoveDisallowedListForAccount() argument
|
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/include/ |
H A D | bundle_manager_addon.h | 32 std::vector<std::string> bundles; member
|
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/ |
H A D | bundle_manager_addon.cpp | 487 ASSERT_AND_THROW_PARAM_ERROR(env, ParseStringArray(env, asyncCallbackInfo->bundles, argv[ARR_INDEX_ONE]), in AddOrRemoveInstallBundles() 488 "Parameter bundles error"); in AddOrRemoveInstallBundles() 489 ASSERT_AND_THROW_PARAM_ERROR(env, asyncCallbackInfo->bundles.size() <= EdmConstants::APPID_MAX_SIZE, in AddOrRemoveInstallBundles() 490 "Parameter bundles too large"); in AddOrRemoveInstallBundles() 526 asyncCallbackInfo->bundles, asyncCallbackInfo->userId, asyncCallbackInfo->policyType); in NativeRemoveBundlesByPolicyType() 543 asyncCallbackInfo->bundles, asyncCallbackInfo->userId, asyncCallbackInfo->policyType); in NativeAddBundlesByPolicyType()
|