Home
last modified time | relevance | path

Searched refs:appIds (Results 1 - 25 of 30) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/deleteappinstallcontrolrule_fuzzer/
H A Ddeleteappinstallcontrolrule_fuzzer.cpp30 std::vector<std::string> appIds; in DoSomethingInterestingWithMyAPI() local
32 appIds.push_back(appId); in DoSomethingInterestingWithMyAPI()
33 appControl.DeleteAppInstallControlRule(controlRuleType, appIds, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getappinstallcontrolrule_fuzzer/
H A Dgetappinstallcontrolrule_fuzzer.cpp30 std::vector<std::string> appIds; in DoSomethingInterestingWithMyAPI() local
32 appIds.push_back(appId); in DoSomethingInterestingWithMyAPI()
33 appControl.GetAppInstallControlRule(controlRuleType, reinterpret_cast<uintptr_t>(data), appIds); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/addappInstallcontrolrule_fuzzer/
H A DaddappInstallcontrolrule_fuzzer.cpp30 std::vector<std::string> appIds; in DoSomethingInterestingWithMyAPI() local
32 appIds.push_back(appId); in DoSomethingInterestingWithMyAPI()
33 appControl.AddAppInstallControlRule(appIds, controlRuleType, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getapprunningcontrolrule_fuzzer/
H A Dgetapprunningcontrolrule_fuzzer.cpp31 std::vector<std::string> appIds; in DoSomethingInterestingWithMyAPI() local
33 appIds.push_back(appId); in DoSomethingInterestingWithMyAPI()
34 appControl.GetAppRunningControlRule(reinterpret_cast<uintptr_t>(data), appIds); in DoSomethingInterestingWithMyAPI() local
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_app_control_test/
H A Dbms_bundle_app_control_test.cpp245 std::vector<std::string> appIds; in HWTEST_F() local
247 AddAppInstallControlRule(appIds, AppInstallControlRuleType::DISALLOWED_UNINSTALL, USERID); in HWTEST_F()
249 appIds.emplace_back(APPID); in HWTEST_F()
251 AddAppInstallControlRule(appIds, AppInstallControlRuleType::DISALLOWED_UNINSTALL, USERID); in HWTEST_F()
257 AddAppInstallControlRule(appIds, AppInstallControlRuleType::UNSPECIFIED, USERID); in HWTEST_F()
260 AddAppInstallControlRule(appIds, AppInstallControlRuleType::DISALLOWED_UNINSTALL, USERID); in HWTEST_F()
266 EXPECT_EQ(appIds.size(), resultAppIds.size()); in HWTEST_F()
268 appIds.emplace_back(APPID); in HWTEST_F()
271 AddAppInstallControlRule(appIds, AppInstallControlRuleType::DISALLOWED_UNINSTALL, USERID); in HWTEST_F()
289 std::vector<std::string> appIds; in HWTEST_F() local
343 std::vector<std::string> appIds; HWTEST_F() local
368 std::vector<std::string> appIds; HWTEST_F() local
486 std::vector<std::string> appIds; HWTEST_F() local
541 std::vector<std::string> appIds; HWTEST_F() local
728 std::vector<std::string> appIds; HWTEST_F() local
745 std::vector<std::string> appIds; HWTEST_F() local
761 std::vector<std::string> appIds; HWTEST_F() local
778 std::vector<std::string> appIds; HWTEST_F() local
795 std::vector<std::string> appIds; HWTEST_F() local
811 std::vector<std::string> appIds; HWTEST_F() local
871 std::vector<std::string> appIds; HWTEST_F() local
888 std::vector<std::string> appIds; HWTEST_F() local
904 std::vector<std::string> appIds; HWTEST_F() local
1006 std::vector<std::string> appIds; HWTEST_F() local
1022 std::vector<std::string> appIds; HWTEST_F() local
[all...]
H A Dbms_bundle_mock_app_control.cpp115 std::vector<std::string> appIds; in HWTEST_F() local
116 auto res = rdb.AddAppInstallControlRule("", appIds, "", USERID); in HWTEST_F()
128 std::vector<std::string> appIds; in HWTEST_F() local
129 appIds.push_back("appId"); in HWTEST_F()
130 auto res = rdb.AddAppInstallControlRule("", appIds, "", USERID); in HWTEST_F()
142 std::vector<std::string> appIds; in HWTEST_F() local
143 appIds.push_back("appId"); in HWTEST_F()
144 auto res = rdb.DeleteAppInstallControlRule("", "", appIds, USERID); in HWTEST_F()
168 std::vector<std::string> appIds; in HWTEST_F() local
169 auto res = rdb.GetAppInstallControlRule("", "", USERID, appIds); in HWTEST_F()
236 std::vector<std::string> appIds; HWTEST_F() local
250 std::vector<std::string> appIds; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_app_control_proxy_test/
H A Dbms_app_control_proxy_test.cpp54 * @tc.desc: 1. appIds is empty
60 std::vector<std::string> appIds; in HWTEST_F() local
63 auto res = appControlProxy.AddAppInstallControlRule(appIds, controlRuleType, userId); in HWTEST_F()
76 std::vector<std::string> appIds; in HWTEST_F() local
78 appIds.emplace_back(appId); in HWTEST_F()
81 auto res = appControlProxy.AddAppInstallControlRule(appIds, controlRuleType, userId); in HWTEST_F()
88 * @tc.desc: 1. appIds is empty
94 std::vector<std::string> appIds; in HWTEST_F() local
97 auto res = appControlProxy.DeleteAppInstallControlRule(controlRuleType, appIds, userId); in HWTEST_F()
110 std::vector<std::string> appIds; in HWTEST_F() local
145 std::vector<std::string> appIds; HWTEST_F() local
238 std::vector<std::string> appIds; HWTEST_F() local
[all...]
/foundation/distributeddatamgr/kv_store/test/fuzztest/distributedkvdatamanager_fuzzer/
H A Ddistributedkvdatamanager_fuzzer.cpp219 std::string appIds(data, data + size); in PutSwitchFuzz()
224 manager.PutSwitch({ appIds }, switchData); in PutSwitchFuzz()
230 std::string appIds(data, data + size); in GetSwitchFuzz()
232 manager.GetSwitch({ appIds }, networkId); in GetSwitchFuzz()
238 std::string appIds(data, data + size); in SubscribeSwitchDataFuzz()
240 manager.SubscribeSwitchData({ appIds }, observer); in SubscribeSwitchDataFuzz()
245 std::string appIds(data, data + size); in UnsubscribeSwitchDataFuzz()
247 manager.SubscribeSwitchData({ appIds }, observer); in UnsubscribeSwitchDataFuzz()
248 manager.UnsubscribeSwitchData({ appIds }, observer); in UnsubscribeSwitchDataFuzz()
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/
H A Dmock_app_control_manager.h37 virtual ErrCode AddAppInstallControlRule(const std::vector<std::string>& appIds,
40 const std::vector<std::string>& appIds, int32_t userId) override;
44 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string>& appIds) override;
51 virtual ErrCode GetAppRunningControlRule(int32_t userId, std::vector<std::string>& appIds) override;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_control/
H A Dapp_control_manager_db_interface.h35 const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId) = 0;
37 const std::vector<std::string> &appIds, int32_t userId) = 0;
41 const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) = 0;
48 int32_t userId, std::vector<std::string> &appIds) = 0;
H A Dapp_control_manager_host_impl.h30 virtual ErrCode AddAppInstallControlRule(const std::vector<std::string> &appIds,
34 const std::vector<std::string> &appIds, int32_t userId) override;
40 std::vector<std::string> &appIds) override;
48 virtual ErrCode GetAppRunningControlRule(int32_t userId, std::vector<std::string> &appIds) override;
H A Dapp_control_manager_rdb.h30 virtual ErrCode AddAppInstallControlRule(const std::string &callingName, const std::vector<std::string> &appIds,
33 const std::vector<std::string> &appIds, int32_t userId) override;
37 const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) override;
45 int32_t userId, std::vector<std::string> &appIds) override;
H A Dapp_control_manager.h38 const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId);
41 const std::vector<std::string> &appIds, int32_t userId);
47 const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds);
54 ErrCode GetAppRunningControlRule(const std::string &callingName, int32_t userId, std::vector<std::string> &appIds);
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/app_control/
H A Dapp_control_host.cpp108 std::vector<std::string> appIds; in HandleAddAppInstallControlRule() local
114 appIds.reserve(appIdSize); in HandleAddAppInstallControlRule()
116 appIds.emplace_back(data.ReadString()); in HandleAddAppInstallControlRule()
120 int32_t ret = AddAppInstallControlRule(appIds, controlRuleType, userId); in HandleAddAppInstallControlRule()
130 std::vector<std::string> appIds; in HandleDeleteAppInstallControlRule() local
136 appIds.reserve(appIdSize); in HandleDeleteAppInstallControlRule()
138 appIds.emplace_back(data.ReadString()); in HandleDeleteAppInstallControlRule()
141 int32_t ret = DeleteAppInstallControlRule(controlRuleType, appIds, userId); in HandleDeleteAppInstallControlRule()
163 std::vector<std::string> appIds; in HandleGetAppInstallControlRule() local
164 int32_t ret = GetAppInstallControlRule(controlRuleType, userId, appIds); in HandleGetAppInstallControlRule()
213 std::vector<std::string> appIds; HandleGetAppRunningControlRule() local
[all...]
H A Dapp_control_proxy.cpp37 ErrCode AppControlProxy::AddAppInstallControlRule(const std::vector<std::string> &appIds, in AddAppInstallControlRule() argument
41 if (appIds.empty()) { in AddAppInstallControlRule()
50 if (!WriteStringVector(appIds, data)) { in AddAppInstallControlRule()
51 LOG_E(BMS_TAG_DEFAULT, "write appIds failed"); in AddAppInstallControlRule()
68 const std::vector<std::string> &appIds, int32_t userId) in DeleteAppInstallControlRule()
71 if (appIds.empty()) { in DeleteAppInstallControlRule()
84 if (!WriteStringVector(appIds, data)) { in DeleteAppInstallControlRule()
85 LOG_E(BMS_TAG_DEFAULT, "write appIds failed"); in DeleteAppInstallControlRule()
120 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) in GetAppInstallControlRule()
136 return GetParcelableInfos(AppControlManagerInterfaceCode::GET_APP_INSTALL_CONTROL_RULE, data, appIds); in GetAppInstallControlRule()
67 DeleteAppInstallControlRule(const AppInstallControlRuleType controlRuleType, const std::vector<std::string> &appIds, int32_t userId) DeleteAppInstallControlRule() argument
119 GetAppInstallControlRule( const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) GetAppInstallControlRule() argument
206 GetAppRunningControlRule(int32_t userId, std::vector<std::string> &appIds) GetAppRunningControlRule() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/
H A Dapp_control_manager_host_impl.cpp51 ErrCode AppControlManagerHostImpl::AddAppInstallControlRule(const std::vector<std::string> &appIds, in AddAppInstallControlRule() argument
69 auto ret = appControlManager_->AddAppInstallControlRule(callingName, appIds, ruleType, userId); in AddAppInstallControlRule()
81 const std::vector<std::string> &appIds, int32_t userId) in DeleteAppInstallControlRule()
98 auto ret = appControlManager_->DeleteAppInstallControlRule(callingName, ruleType, appIds, userId); in DeleteAppInstallControlRule()
139 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) in GetAppInstallControlRule()
156 return appControlManager_->GetAppInstallControlRule(callingName, ruleType, userId, appIds); in GetAppInstallControlRule()
199 ErrCode AppControlManagerHostImpl::GetAppRunningControlRule(int32_t userId, std::vector<std::string> &appIds) in GetAppRunningControlRule() argument
206 return appControlManager_->GetAppRunningControlRule(callingName, userId, appIds); in GetAppRunningControlRule()
418 std::vector<std::string> appIds; in UpdateAppControlledInfo() local
424 AppControlConstants::APP_DISALLOWED_UNINSTALL, userId, appIds); in UpdateAppControlledInfo()
80 DeleteAppInstallControlRule(const AppInstallControlRuleType controlRuleType, const std::vector<std::string> &appIds, int32_t userId) DeleteAppInstallControlRule() argument
138 GetAppInstallControlRule( const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) GetAppInstallControlRule() argument
[all...]
H A Dapp_control_manager.cpp61 const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId) in AddAppInstallControlRule()
64 auto ret = appControlManagerDb_->AddAppInstallControlRule(callingName, appIds, controlRuleType, userId); in AddAppInstallControlRule()
72 const std::string &controlRuleType, const std::vector<std::string> &appIds, int32_t userId) in DeleteAppInstallControlRule()
75 auto ret = appControlManagerDb_->DeleteAppInstallControlRule(callingName, controlRuleType, appIds, userId); in DeleteAppInstallControlRule()
94 const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) in GetAppInstallControlRule()
97 return appControlManagerDb_->GetAppInstallControlRule(callingName, controlRuleType, userId, appIds); in GetAppInstallControlRule()
158 const std::string &callingName, int32_t userId, std::vector<std::string> &appIds) in GetAppRunningControlRule()
160 return appControlManagerDb_->GetAppRunningControlRule(callingName, userId, appIds); in GetAppRunningControlRule()
330 std::vector<std::string> appIds; in SetAppInstallControlStatus() local
336 AppControlConstants::APP_DISALLOWED_UNINSTALL, currentUserId, appIds); in SetAppInstallControlStatus()
60 AddAppInstallControlRule(const std::string &callingName, const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId) AddAppInstallControlRule() argument
71 DeleteAppInstallControlRule(const std::string &callingName, const std::string &controlRuleType, const std::vector<std::string> &appIds, int32_t userId) DeleteAppInstallControlRule() argument
93 GetAppInstallControlRule(const std::string &callingName, const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) GetAppInstallControlRule() argument
157 GetAppRunningControlRule( const std::string &callingName, int32_t userId, std::vector<std::string> &appIds) GetAppRunningControlRule() argument
[all...]
H A Dapp_control_manager_rdb.cpp91 const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId) in AddAppInstallControlRule()
95 for (auto appId : appIds) { in AddAppInstallControlRule()
118 info.appIds = appIds; in AddAppInstallControlRule()
131 const std::string &controlRuleType, const std::vector<std::string> &appIds, int32_t userId) in DeleteAppInstallControlRule()
133 for (const auto &appId : appIds) { in DeleteAppInstallControlRule()
148 info.appIds.push_back(appId); in DeleteAppInstallControlRule()
181 const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) in GetAppInstallControlRule()
216 appIds.push_back(appId); in GetAppInstallControlRule()
253 info.appIds in AddAppRunningControlRule()
90 AddAppInstallControlRule(const std::string &callingName, const std::vector<std::string> &appIds, const std::string &controlRuleType, int32_t userId) AddAppInstallControlRule() argument
130 DeleteAppInstallControlRule(const std::string &callingName, const std::string &controlRuleType, const std::vector<std::string> &appIds, int32_t userId) DeleteAppInstallControlRule() argument
180 GetAppInstallControlRule(const std::string &callingName, const std::string &controlRuleType, int32_t userId, std::vector<std::string> &appIds) GetAppInstallControlRule() argument
311 GetAppRunningControlRule(const std::string &callingName, int32_t userId, std::vector<std::string> &appIds) GetAppRunningControlRule() argument
[all...]
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/
H A Dmock_app_control_manager.cpp28 ErrCode AppControlProxy::AddAppInstallControlRule(const std::vector<std::string>& appIds, in AddAppInstallControlRule() argument
35 const std::vector<std::string>& appIds, int32_t userId) in DeleteAppInstallControlRule()
47 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string>& appIds) in GetAppInstallControlRule()
69 ErrCode AppControlProxy::GetAppRunningControlRule(int32_t userId, std::vector<std::string>& appIds) in GetAppRunningControlRule() argument
34 DeleteAppInstallControlRule(const AppInstallControlRuleType controlRuleType, const std::vector<std::string>& appIds, int32_t userId) DeleteAppInstallControlRule() argument
46 GetAppInstallControlRule( const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string>& appIds) GetAppInstallControlRule() argument
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/app_control/
H A Dapp_control_interface.h50 virtual ErrCode AddAppInstallControlRule(const std::vector<std::string> &appIds, in AddAppInstallControlRule() argument
56 const std::vector<std::string> &appIds, int32_t userId) in DeleteAppInstallControlRule()
65 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) in GetAppInstallControlRule()
83 virtual ErrCode GetAppRunningControlRule(int32_t userId, std::vector<std::string> &appIds) in GetAppRunningControlRule() argument
55 DeleteAppInstallControlRule(const AppInstallControlRuleType controlRuleType, const std::vector<std::string> &appIds, int32_t userId) DeleteAppInstallControlRule() argument
64 GetAppInstallControlRule( const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) GetAppInstallControlRule() argument
H A Dapp_control_proxy.h30 virtual ErrCode AddAppInstallControlRule(const std::vector<std::string> &appIds,
33 const std::vector<std::string> &appIds, int32_t userId) override;
37 const AppInstallControlRuleType controlRuleType, int32_t userId, std::vector<std::string> &appIds) override;
44 virtual ErrCode GetAppRunningControlRule(int32_t userId, std::vector<std::string> &appIds) override;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Devent_report.h150 std::vector<std::string> appIds; member
195 appIds.clear(); in Reset()
/foundation/bundlemanager/bundle_tool/frameworks/include/
H A Dbundle_test_tool.h123 std::vector<std::string> &appIds, int &controlRuleType, int &userId, int &euid);
127 int &controlRuleType, std::vector<std::string> &appIds, int &userId, int &euid);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
H A Dbms_bundle_installer_test.cpp3737 std::vector<std::string> appIds; in HWTEST_F() local
3738 appIds.emplace_back(APPID); in HWTEST_F()
3742 appIds, AppControlConstants::APP_DISALLOWED_INSTALL, userId); in HWTEST_F()
3750 AppControlConstants::APP_DISALLOWED_INSTALL, appIds, userId); in HWTEST_F()
3764 std::vector<std::string> appIds; in HWTEST_F() local
3765 appIds.emplace_back(SYSTEMFIEID_NAME); in HWTEST_F()
3769 appIds, AppControlConstants::APP_DISALLOWED_INSTALL, userId); in HWTEST_F()
3777 AppControlConstants::APP_DISALLOWED_INSTALL, appIds, userId); in HWTEST_F()
3791 std::vector<std::string> appIds; in HWTEST_F() local
3792 appIds in HWTEST_F()
3828 std::vector<std::string> appIds; HWTEST_F() local
3867 std::vector<std::string> appIds; HWTEST_F() local
3906 std::vector<std::string> appIds; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_test_tool.cpp2202 std::vector<std::string> &appIds, int &controlRuleType, int &userId, int &euid) in CheckAddInstallRuleCorrectOption()
2215 appIds.emplace_back(object); in CheckAddInstallRuleCorrectOption()
2249 std::vector<std::string> appIds; in RunAsAddInstallRuleCommand() local
2267 result = CheckAddInstallRuleCorrectOption(option, commandName, appIds, ruleType, userId, euid); in RunAsAddInstallRuleCommand()
2281 for (auto param : appIds) { in RunAsAddInstallRuleCommand()
2284 APP_LOGI("appIds: %{public}s, controlRuleType: %{public}d, userId: %{public}d", in RunAsAddInstallRuleCommand()
2286 int32_t res = appControlProxy->AddAppInstallControlRule(appIds, rule, userId); in RunAsAddInstallRuleCommand()
2365 std::vector<std::string> appIds; in RunAsGetInstallRuleCommand() local
2366 int32_t res = appControlProxy->GetAppInstallControlRule(rule, userId, appIds); in RunAsGetInstallRuleCommand()
2373 for (auto param : appIds) { in RunAsGetInstallRuleCommand()
2201 CheckAddInstallRuleCorrectOption(int option, const std::string &commandName, std::vector<std::string> &appIds, int &controlRuleType, int &userId, int &euid) CheckAddInstallRuleCorrectOption() argument
2380 CheckDeleteInstallRuleCorrectOption(int option, const std::string &commandName, int &controlRuleType, std::vector<std::string> &appIds, int &userId, int &euid) CheckDeleteInstallRuleCorrectOption() argument
2429 std::vector<std::string> appIds; RunAsDeleteInstallRuleCommand() local
2846 std::vector<std::string> appIds; RunAsGetAppRunningControlRuleCommand() local
[all...]

Completed in 28 milliseconds

12