Home
last modified time | relevance | path

Searched refs:isRemovable (Results 1 - 25 of 31) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dinner_bundle_user_info.cpp29 constexpr const char* INNER_BUNDLE_USER_INFO_IS_REMOVABLE = "isRemovable";
45 {INNER_BUNDLE_USER_INFO_IS_REMOVABLE, innerBundleUserInfo.isRemovable}, in to_json()
72 innerBundleUserInfo.isRemovable, false, parseResult); in from_json()
H A Dinner_bundle_info.cpp53 constexpr const char* MODULE_IS_REMOVABLE = "isRemovable";
393 {MODULE_IS_REMOVABLE, info.isRemovable}, in to_json()
653 info.isRemovable, in from_json()
1465 hapInfo.isRemovable = it->second.isRemovable; in FindHapModuleInfo()
3336 for (const auto &stateIter : innerModuleInfo.second.isRemovable) { in IsBundleRemovable()
3365 for (const auto &stateIter : innerModuleInfo.second.isRemovable) { in GetRemovableModules()
3402 auto item = modInfoItem->isRemovable.find(std::to_string(userId)); in IsUserExistModule()
3403 if (item == modInfoItem->isRemovable.end()) { in IsUserExistModule()
3413 const std::string &moduleName, int32_t userId, bool &isRemovable) cons in IsModuleRemovable()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinner_bundle_user_info.h42 bool isRemovable = true; member
H A Dinner_bundle_info.h121 // all user's value of isRemovable
123 // value:isRemovable true or flase
142 std::map<std::string, bool> isRemovable; member
1490 * @param isRemovable Indicates the module whether is removable.
1493 ErrCode IsModuleRemovable(const std::string &moduleName, int32_t userId, bool &isRemovable) const;
1497 * @param stringUserId Indicates the string userId add to isRemovable map.
1499 * @return Return add module isRemovable info result.
1505 * @param isEnable Indicates the module isRemovable is enable.
1520 * @param stringUserId Indicates the string userId of isRemovable map.
H A Dbundle_mgr_host_impl.h807 * @brief Obtains the value of isRemovable based on a given bundle name and module name.
810 * @param isRemovable Indicates the module whether is removable.
811 * @return Returns ERR_OK if the isRemovable is successfully obtained; returns other ErrCode otherwise.
814 bool &isRemovable) override;
816 * @brief Sets whether to enable isRemovable based on a given bundle name and module name.
819 * @param isEnable Specifies whether to enable the isRemovable of InnerModuleInfo.
821 * @return Returns true if the isRemovable is successfully obtained; returns false otherwise.
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_free_install_test/
H A Dbms_bundle_free_install_test.cpp289 bool isRemovable = false; in HWTEST_F() local
290 ErrCode ret = bundleMgr->IsModuleRemovable("", "", isRemovable); in HWTEST_F()
292 EXPECT_FALSE(isRemovable); in HWTEST_F()
309 bool isRemovable = false; in HWTEST_F() local
310 ErrCode ret = bundleMgr->IsModuleRemovable(BUNDLE_NAME_DEMO, MODULE_NAME_TEST, isRemovable); in HWTEST_F()
312 EXPECT_FALSE(isRemovable); in HWTEST_F()
331 bool isRemovable = false; in HWTEST_F() local
332 ErrCode ret = bundleMgr->IsModuleRemovable(BUNDLE_NAME, MODULE_NAME_NOT_EXIST, isRemovable); in HWTEST_F()
334 EXPECT_FALSE(isRemovable); in HWTEST_F()
353 bool isRemovable in HWTEST_F() local
377 bool isRemovable = false; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/common/include/
H A Dhap_module_info.h118 std::map<std::string, bool> isRemovable; member
/foundation/bundlemanager/bundle_tool/frameworks/include/
H A Dbundle_test_tool.h115 bool CheckRemovableCorrectOption(int option, const std::string &commandName, int &isRemovable, std::string &name);
116 bool SetIsRemovableOperation(const std::string &bundleName, const std::string &moduleName, int isRemovable) const;
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dhap_module_info.cpp56 const char* HAP_MODULE_INFO_IS_REMOVABLE = "isRemovable";
546 CONTAINER_SECURITY_VERIFY(parcel, isRemovableSize, &isRemovable); in ReadFromParcel()
550 isRemovable[key] = isRemove; in ReadFromParcel()
722 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, isRemovable.size()); in Marshalling()
723 for (auto &item : isRemovable) { in Marshalling()
811 {HAP_MODULE_INFO_IS_REMOVABLE, hapModuleInfo.isRemovable}, in to_json()
1049 hapModuleInfo.isRemovable, in from_json()
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/
H A Dinner_bundle_info.h56 // all user's value of isRemovable
58 // value:isRemovable true or flase
59 std::map<std::string, bool> isRemovable; member
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dhap_module_info.h165 std::map<std::string, bool> isRemovable; member
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/
H A Dinner_bundle_info.cpp52 const std::string MODULE_IS_REMOVABLE = "isRemovable";
211 {MODULE_IS_REMOVABLE, info.isRemovable}, in to_json()
451 info.isRemovable, in from_json()
916 hapInfo.isRemovable = it->second.isRemovable; in FindHapModuleInfo()
H A Dhap_module_info.cpp55 const std::string HAP_MODULE_INFO_IS_REMOVABLE = "isRemovable";
182 {HAP_MODULE_INFO_IS_REMOVABLE, hapModuleInfo.isRemovable}, in to_json()
459 hapModuleInfo.isRemovable, in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp1577 bool isRemovable = false; in HWTEST_F() local
1578 auto testRet = GetBundleDataMgr()->IsModuleRemovable(BUNDLE_NAME_TEST, MODULE_NAME_TEST, isRemovable); in HWTEST_F()
1580 EXPECT_FALSE(isRemovable); in HWTEST_F()
1597 bool isRemovable = false; in HWTEST_F() local
1598 auto testRet1 = GetBundleDataMgr()->IsModuleRemovable(BUNDLE_NAME_TEST, MODULE_NAME_TEST, isRemovable); in HWTEST_F()
1600 EXPECT_TRUE(isRemovable); in HWTEST_F()
1617 bool isRemovable = false; in HWTEST_F() local
1618 auto testRet1 = GetBundleDataMgr()->IsModuleRemovable(BUNDLE_NAME_TEST, MODULE_NAME_TEST, isRemovable); in HWTEST_F()
1620 EXPECT_FALSE(isRemovable); in HWTEST_F()
1624 isRemovable in HWTEST_F()
1640 bool isRemovable = false; HWTEST_F() local
1658 bool isRemovable = false; HWTEST_F() local
1678 bool isRemovable = false; HWTEST_F() local
1703 bool isRemovable = false; HWTEST_F() local
6991 std::map<std::string, bool> isRemovable; HWTEST_F() local
7218 std::map<std::string, bool> isRemovable; HWTEST_F() local
9977 bool isRemovable; HWTEST_F() local
10001 bool isRemovable; HWTEST_F() local
12989 bool isRemovable = false; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_test_tool.cpp130 " setrm set module isRemovable by given bundle name and module name\n"
131 " getrm obtain the value of isRemovable by given bundle name and module name\n"
185 " -n, --bundle-name <bundle-name> get isRemovable by moduleNmae and bundleName\n"
186 " -m, --module-name <module-name> get isRemovable by moduleNmae and bundleName\n";
197 " -n, --bundle-name <bundle-name> set isRemovable by moduleNmae and bundleName\n"
198 " -i, --is-removable <is-removable> set isRemovable 0 or 1\n"
199 " -m, --module-name <module-name> set isRemovable by moduleNmae and bundleName\n";
1155 const std::string &bundleName, const std::string &moduleName, int isRemovable) const in SetIsRemovableOperation()
1158 if (isRemovable == 0) { in SetIsRemovableOperation()
1176 bool isRemovable in GetIsRemovableOperation() local
1236 CheckRemovableCorrectOption( int option, const std::string &commandName, int &isRemovable, std::string &name) CheckRemovableCorrectOption() argument
1290 int isRemovable = 0; RunAsSetRemovableCommand() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_storage_test/
H A Dbms_bundle_data_storage_database_test.cpp688 "isRemovable":{},
2082 innerModuleInfo.isRemovable[USER] = true; in HWTEST_F()
2089 EXPECT_EQ(ret[NAME_UID].isRemovable[USER], true); in HWTEST_F()
2092 EXPECT_EQ(ret[NAME_UID].isRemovable[USER], false); in HWTEST_F()
2218 innerModuleInfo.isRemovable.try_emplace(USER, true); in HWTEST_F()
2383 moduleInfo.isRemovable.try_emplace(MODULE_NAME, false); in HWTEST_F()
2384 moduleInfo.isRemovable.try_emplace(MODULE_NAME_TEST, true); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/free_install/
H A Dfree_install.cpp55 const std::string &moduleName, bool &isRemovable) in InnerIsHapModuleRemovable()
62 auto result = iBundleMgr->IsModuleRemovable(bundleName, moduleName, isRemovable); in InnerIsHapModuleRemovable()
54 InnerIsHapModuleRemovable(const std::string &bundleName, const std::string &moduleName, bool &isRemovable) InnerIsHapModuleRemovable() argument
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
H A Dbms_bundle_permission_false_test.cpp573 bool isRemovable = false; in HWTEST_F() local
574 ErrCode ret = bundleMgrHostImpl_->IsModuleRemovable(BUNDLE_NAME, MOUDLE_NAME, isRemovable); in HWTEST_F()
H A Dbms_bundle_permission_system_app_test.cpp473 bool isRemovable = false; in HWTEST_F() local
474 ErrCode ret = bundleMgrHostImpl_->IsModuleRemovable(BUNDLE_NAME, MOUDLE_NAME, isRemovable); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/
H A Dapp_control_manager_host_impl.cpp438 userInfo.isRemovable = (iterator != appIds.end()) ? false : true; in UpdateAppControlledInfo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/
H A Dbms_bundle_manager_test.cpp2590 bool isRemovable = true; in HWTEST_F() local
2600 ErrCode retCode = hostImpl->IsModuleRemovable("", "", isRemovable); in HWTEST_F()
2603 retBool = hostImpl->SetModuleRemovable("", "", isRemovable); in HWTEST_F()
2622 bool isRemovable = true; in HWTEST_F() local
2630 ErrCode retCode = hostImpl->IsApplicationEnabled("", isRemovable); in HWTEST_F()
2633 retCode = hostImpl->SetApplicationEnabled("", isRemovable, USERID); in HWTEST_F()
2636 retCode = hostImpl->IsAbilityEnabled(abilityInfo, isRemovable); in HWTEST_F()
3649 bool isRemovable; in HWTEST_F() local
3651 TEST_BUNDLE_NAME, MODULE_NAME, isRemovable); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/
H A Dbundle_mgr_interface.h763 * @brief Obtains the value of isRemovable based on a given bundle name and module name.
766 * @param isRemovable Indicates the module whether is removable.
767 * @return Returns ERR_OK if the isRemovable is successfully obtained; returns other ErrCode otherwise.
769 virtual ErrCode IsModuleRemovable(const std::string &bundleName, const std::string &moduleName, bool &isRemovable) in IsModuleRemovable() argument
774 * @brief Sets whether to enable isRemovable based on a given bundle name and module name.
777 * @param isEnable Specifies whether to enable the isRemovable of InnerModuleInfo.
779 * @return Returns true if the isRemovable is successfully obtained; returns false otherwise.
1189 * @return Returns true if the isRemovable is successfully obtained; returns false otherwise.
1199 * @param isEnable Specifies whether to enable the isRemovable of InnerModuleInfo.
1201 * @return Returns ERR_OK if the isRemovable i
[all...]
H A Dbundle_mgr_proxy.h829 * @brief Obtains the value of isRemovable based on a given bundle name through the proxy object.
832 * @param isRemovable Indicates the module whether is removable.
833 * @return Returns true if the isRemovable is successfully obtained; returns false otherwise.
836 bool &isRemovable) override;
838 * @brief Sets whether to enable isRemovable based on a given bundle name through the proxy object.
841 * @param isEnable Specifies whether to enable the isRemovable of InnerModuleInfo.
843 * @return Returns true if the isRemovable is successfully obtained; returns false otherwise.
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/
H A Dbundle_mgr_host.cpp2475 bool isRemovable = false; in HandleIsModuleRemovable() local
2476 ErrCode ret = IsModuleRemovable(bundleName, moduleName, isRemovable); in HandleIsModuleRemovable()
2481 if (!reply.WriteBool(isRemovable)) { in HandleIsModuleRemovable()
2482 APP_LOGE("write isRemovable failed"); in HandleIsModuleRemovable()
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/
H A Dacts_bms_kit_system_test.cpp6986 bool isRemovable = false; in HWTEST_F() local
6987 ErrCode ret = bundleMgrProxy->IsModuleRemovable(bundleName, moduleName, isRemovable); in HWTEST_F()
7002 bool isRemovable = false; in HWTEST_F() local
7003 ErrCode ret = bundleMgrProxy->IsModuleRemovable("", moduleName, isRemovable); in HWTEST_F()
7018 bool isRemovable = false; in HWTEST_F() local
7019 ErrCode ret = bundleMgrProxy->IsModuleRemovable(bundleName, "", isRemovable); in HWTEST_F()

Completed in 86 milliseconds

12