/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | inner_bundle_user_info.cpp | 29 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 D | inner_bundle_info.cpp | 53 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 D | inner_bundle_user_info.h | 42 bool isRemovable = true; member
|
H A D | inner_bundle_info.h | 121 // 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 D | bundle_mgr_host_impl.h | 807 * @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 D | bms_bundle_free_install_test.cpp | 289 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 D | hap_module_info.h | 118 std::map<std::string, bool> isRemovable; member
|
/foundation/bundlemanager/bundle_tool/frameworks/include/ |
H A D | bundle_test_tool.h | 115 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 D | hap_module_info.cpp | 56 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 D | inner_bundle_info.h | 56 // 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 D | hap_module_info.h | 165 std::map<std::string, bool> isRemovable; member
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/ |
H A D | inner_bundle_info.cpp | 52 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 D | hap_module_info.cpp | 55 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 D | bms_bundle_kit_service_test.cpp | 1577 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 D | bundle_test_tool.cpp | 130 " 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 D | bms_bundle_data_storage_database_test.cpp | 688 "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 D | free_install.cpp | 55 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 D | bms_bundle_permission_false_test.cpp | 573 bool isRemovable = false; in HWTEST_F() local 574 ErrCode ret = bundleMgrHostImpl_->IsModuleRemovable(BUNDLE_NAME, MOUDLE_NAME, isRemovable); in HWTEST_F()
|
H A D | bms_bundle_permission_system_app_test.cpp | 473 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 D | app_control_manager_host_impl.cpp | 438 userInfo.isRemovable = (iterator != appIds.end()) ? false : true; in UpdateAppControlledInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/ |
H A D | bms_bundle_manager_test.cpp | 2590 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 D | bundle_mgr_interface.h | 763 * @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 D | bundle_mgr_proxy.h | 829 * @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 D | bundle_mgr_host.cpp | 2475 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 D | acts_bms_kit_system_test.cpp | 6986 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()
|