/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_mgr_service.cpp | 50 SystemAbility::MakeAndRegisterAbility(DelayedSingleton<BundleMgrService>::GetInstance().get()); 52 BundleMgrService::BundleMgrService() : SystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, true) in BundleMgrService() function in OHOS::AppExecFwk::BundleMgrService 58 BundleMgrService::~BundleMgrService() in ~BundleMgrService() 79 APP_LOGI("BundleMgrService instance is destroyed"); in ~BundleMgrService() 82 void BundleMgrService::OnStart() in OnStart() 84 APP_LOGI("BundleMgrService OnStart start"); in OnStart() 86 APP_LOGE("BundleMgrService init fail"); in OnStart() 93 APP_LOGI("BundleMgrService OnStar in OnStart() [all...] |
H A D | system_bundle_installer.cpp | 71 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in OTAInstallSystemBundle() 102 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in OTAInstallSystemBundleNeedCheckUser() 140 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 172 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 199 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 228 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 245 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in CheckUninstallSystemHsp()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installers_test/ |
H A D | bms_bundle_installers_test.cpp | 57 static std::shared_ptr<BundleMgrService> bundleMgrService_; 60 std::shared_ptr<BundleMgrService> BmsBundleInstallersTest::bundleMgrService_ = 61 DelayedSingleton<BundleMgrService>::GetInstance(); 87 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = std::make_shared<BundleDataMgr>(); in HWTEST_F() 88 EXPECT_TRUE(DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ != nullptr); in HWTEST_F() 89 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 96 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = nullptr; in HWTEST_F() 97 EXPECT_TRUE(DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ == nullptr); in HWTEST_F() 138 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = std::make_shared<BundleDataMgr>(); in HWTEST_F() 139 EXPECT_TRUE(DelayedSingleton<BundleMgrService> in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_mgr_service.cpp | 31 BundleMgrService::BundleMgrService() : Service(), identity_()
in BundleMgrService() function in OHOS::BundleMgrService 33 this->Service::GetName = BundleMgrService::GetServiceName;
in BundleMgrService() 34 this->Service::Initialize = BundleMgrService::ServiceInitialize;
in BundleMgrService() 35 this->Service::MessageHandle = BundleMgrService::ServiceMessageHandle;
in BundleMgrService() 36 this->Service::GetTaskConfig = BundleMgrService::GetServiceTaskConfig;
in BundleMgrService() 44 sm->RegisterService(BundleMgrService::GetInstance());
in Init() 47 BOOL result = sm->RegisterService(BundleMgrService::GetInstance());
in Init() 53 const char *BundleMgrService::GetServiceName(Service *service)
in GetServiceName() 58 BOOL BundleMgrService [all...] |
/foundation/barrierfree/accessibility/services/aams/test/mock/src/aafwk/ |
H A D | mock_bundle_manager.cpp | 26 BundleMgrService::BundleMgrService() in BundleMgrService() function in OHOS::AppExecFwk::BundleMgrService 29 BundleMgrService::~BundleMgrService() in ~BundleMgrService() 41 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 51 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want& want, AbilityInfo& abilityInfo) in QueryAbilityInfo() 53 HILOG_DEBUG(" mock BundleMgrService QueryAbilityInfo ------------ start"); in QueryAbilityInfo() 55 HILOG_DEBUG(" mock BundleMgrService CheckWantEntity true ------------ start"); in QueryAbilityInfo() 92 HILOG_DEBUG(" mock BundleMgrService QueryAbilityInfo ------------ end"); in QueryAbilityInfo() 96 bool BundleMgrService [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_mgr_service.h | 28 class BundleMgrService : public Service { class 30 static BundleMgrService *GetInstance() in GetInstance() 32 static BundleMgrService instance; in GetInstance() 35 ~BundleMgrService() = default; 39 BundleMgrService(); 47 DISALLOW_COPY_AND_MOVE(BundleMgrService);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_clone_installer_test/ |
H A D | bms_bundle_clone_installer_test.cpp | 97 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in SetInnerBundleInfo() 135 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in DeleteBundle() 153 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = std::make_shared<AppExecFwk::BundleDataMgr>(); in SetBundleDataMgr() 154 EXPECT_TRUE(DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ != nullptr); in SetBundleDataMgr() 159 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = nullptr; in UnsetBundleDataMgr() 160 EXPECT_TRUE(DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ == nullptr); in UnsetBundleDataMgr() 165 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in SetUserIdToDataMgr() 333 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 334 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = nullptr; in HWTEST_F() 336 DelayedSingleton<BundleMgrService> in HWTEST_F() [all...] |
/foundation/ability/form_fwk/test/mock/src/ |
H A D | mock_bundle_manager.cpp | 35 bool BundleMgrService::IsSystemApp = false; 37 int BundleMgrService::GetUidByBundleName(const std::string &bundleName, const int userId) in GetUidByBundleName() 52 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want &want, AbilityInfo &abilityInfo) in QueryAbilityInfo() 58 std::string BundleMgrService::GetAppType(const std::string &bundleName) in GetAppType() 64 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 94 ErrCode BundleMgrService::GetBundleInfoV9(const std::string &bundleName, int32_t flags, in GetBundleInfoV9() 126 bool BundleMgrService::GetFormsInfoByApp(const std::string &bundleName, std::vector<FormInfo> &formInfo) in GetFormsInfoByApp() 144 bool BundleMgrService::GetFormsInfoByModule(const std::string &bundleName, const std::string &moduleName, in GetFormsInfoByModule()
|
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/ |
H A D | mock_bundle_manager.cpp | 72 BundleMgrService::BundleMgrService() in BundleMgrService() function in OHOS::AppExecFwk::BundleMgrService 87 GTEST_LOG_(INFO) << "BundleMgrService()"; in BundleMgrService() 90 BundleMgrService::~BundleMgrService() in ~BundleMgrService() 92 GTEST_LOG_(INFO) << "~BundleMgrService()"; in ~BundleMgrService() 95 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 101 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want& want, AbilityInfo& abilityInfo) in QueryAbilityInfo() 148 bool BundleMgrService::QueryAbilityInfo(const Want& want, int32_t flags, int32_t userId, AbilityInfo& abilityInfo) in QueryAbilityInfo() 157 bool BundleMgrService [all...] |
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/src/ |
H A D | mock_bundle_manager.cpp | 137 BundleMgrService::BundleMgrService() in BundleMgrService() function in OHOS::AppExecFwk::BundleMgrService 142 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want& want, AbilityInfo& abilityInfo) in QueryAbilityInfo() 163 bool BundleMgrService::QueryAbilityInfoByUri(const std::string& uri, AbilityInfo& abilityInfo) in QueryAbilityInfoByUri() 168 bool BundleMgrService::GetApplicationInfo( in GetApplicationInfo() 179 std::string BundleMgrService::GetAppType(const std::string& bundleName) in GetAppType() 184 bool BundleMgrService::GetHapModuleInfo(const AbilityInfo& abilityInfo, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() 190 bool BundleMgrService::GetHapModuleInfo(const AbilityInfo& abilityInfo, int32_t userId, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() 208 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 259 bool BundleMgrService in GetBundleInfo() [all...] |
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/ |
H A D | mock_bundle_manager.cpp | 82 bool BundleMgrService::GetApplicationInfo( in GetApplicationInfo() 101 std::string BundleMgrService::GetAppType(const std::string& bundleName) in GetAppType() 103 GTEST_LOG_(INFO) << " BundleMgrService::GetAppType"; in GetAppType() 107 bool BundleMgrService::QueryAbilityInfo(const Want& want, AbilityInfo& abilityInfo) in QueryAbilityInfo() 128 bool BundleMgrService::GetHapModuleInfo(const AbilityInfo& abilityInfo, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() 130 GTEST_LOG_(INFO) << " BundleMgrService::GetHapModuleInfo"; in GetHapModuleInfo() 134 bool BundleMgrService::GetHapModuleInfo(const AbilityInfo& abilityInfo, int32_t userId, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() 136 GTEST_LOG_(INFO) << " BundleMgrService::GetHapModuleInfo"; in GetHapModuleInfo() 141 sptr<IOverlayManager> BundleMgrService::GetOverlayManagerProxy() in GetOverlayManagerProxy()
|
H A D | mock_bundle_manager_form.cpp | 40 int BundleMgrService::GetUidByBundleName(const std::string& bundleName, int32_t userId, int32_t appCloneIndex) in GetUidByBundleName() 61 std::string BundleMgrService::GetAppType(const std::string& bundleName) in GetAppType() 66 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 92 bool BundleMgrService::GetAllFormsInfo(std::vector<FormInfo>& formInfo) in GetAllFormsInfo() 108 bool BundleMgrService::GetFormsInfoByApp(const std::string& bundleName, std::vector<FormInfo>& formInfo) in GetFormsInfoByApp() 125 bool BundleMgrService::GetFormsInfoByModule( in GetFormsInfoByModule()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_quick_fix_switcher_test/ |
H A D | bms_bundle_quick_fix_switcher_test.cpp | 68 static std::shared_ptr<BundleMgrService> bundleMgrService_;
72 std::shared_ptr<BundleMgrService> BmsBundleQuickFixSwitcherTest::bundleMgrService_ =
73 DelayedSingleton<BundleMgrService>::GetInstance();
115 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller();
in InstallBundle() 136 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller();
in UninstallBundle() 226 auto quickFixHost = DelayedSingleton<BundleMgrService>::GetInstance()->GetQuickFixManagerProxy();
in HWTEST_F() 243 auto quickFixHost = DelayedSingleton<BundleMgrService>::GetInstance()->GetQuickFixManagerProxy();
in HWTEST_F() 260 auto quickFixHost = DelayedSingleton<BundleMgrService>::GetInstance()->GetQuickFixManagerProxy();
in HWTEST_F() 275 auto quickFixHost = DelayedSingleton<BundleMgrService>::GetInstance()->GetQuickFixManagerProxy();
in HWTEST_F() 290 auto quickFixHost = DelayedSingleton<BundleMgrService> in HWTEST_F() [all...] |
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/ |
H A D | mock_system_ability_registry.h | 24 extern sptr<AppExecFwk::BundleMgrService> g_bundleMgrService; 25 extern sptr<AppExecFwk::BundleMgrService> g_mockBundleMgrService;
|
H A D | mock_bundle_manager.h | 55 class BundleMgrService : public BundleMgrStub { class 57 BundleMgrService(){}; in BundleMgrService() function in OHOS::AppExecFwk::BundleMgrService 58 ~BundleMgrService(){}; in ~BundleMgrService()
|
/foundation/barrierfree/accessibility/services/test/mock/ |
H A D | mock_bundle_manager.h | 44 class BundleMgrService : public BundleMgrStub { class 53 BundleMgrService(); 55 virtual ~BundleMgrService() in ~BundleMgrService()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | mock_system_bundle_installer.cpp | 65 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in OTAInstallSystemBundle() 87 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 115 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 144 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle() 173 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in UninstallSystemBundle()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_aot_test/ |
H A D | bms_data_aot_test.cpp | 98 static std::shared_ptr<BundleMgrService> bundleMgrService_; 102 std::shared_ptr<BundleMgrService> BmsAOTMgrTest::bundleMgrService_ = 103 DelayedSingleton<BundleMgrService>::GetInstance(); 124 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = std::make_shared<BundleDataMgr>(); in SetUp() 490 DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr()->bundleInfos_.emplace( in HWTEST_F() 493 auto item = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr()->bundleInfos_.find(AOT_BUNDLE_NAME); in HWTEST_F() 494 EXPECT_NE(item, DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr()->bundleInfos_.end()); in HWTEST_F() 499 DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr()->bundleInfos_.clear(); in HWTEST_F() 538 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 566 auto dataMgr = DelayedSingleton<BundleMgrService> in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_mgr_service.h | 58 class BundleMgrService : public SystemAbility { class 59 DECLARE_DELAYED_SINGLETON(BundleMgrService); 60 DECLEAR_SYSTEM_ABILITY(BundleMgrService); 235 DISALLOW_COPY_AND_MOVE(BundleMgrService);
|
/foundation/ability/ability_runtime/test/moduletest/mock/src/ |
H A D | mock_bundle_mgr.cpp | 72 bool BundleMgrService::GetBundleInfo( in GetBundleInfo() 79 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want& want, int32_t flags, int32_t userId, in QueryAbilityInfo() 89 bool BundleMgrService::QueryAbilityInfo(const AAFwk::Want& want, AbilityInfo& abilityInfo) in QueryAbilityInfo() 138 bool BundleMgrService::GetApplicationInfo( in GetApplicationInfo() 147 bool BundleMgrService::CheckWantEntity(const AAFwk::Want& want, AbilityInfo& abilityInfo) in CheckWantEntity() 173 bool BundleMgrService::ImplicitQueryInfos(const Want& want, int32_t flags, int32_t userId, bool withDefault, in ImplicitQueryInfos()
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/slite/ |
H A D | bundlems_slite_client.cpp | 63 BundleMgrService *service = BundleMgrService::GetInstance();
in Install() 97 BundleMgrService *service = BundleMgrService::GetInstance();
in Uninstall() 129 BundleMgrService *service = BundleMgrService::GetInstance();
in RegisterInstallerCallback()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/ |
H A D | bms_bundle_permission_getrequest_test.cpp | 49 static std::shared_ptr<BundleMgrService> bundleMgrService_; 52 std::shared_ptr<BundleMgrService> BmsBundlePermissionGetRequestTest::bundleMgrService_ = 53 DelayedSingleton<BundleMgrService>::GetInstance();
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_ability_manager_helper_test/ |
H A D | bms_ability_manager_helper_test.cpp | 40 static std::shared_ptr<BundleMgrService> bundleMgrService_; 43 std::shared_ptr<BundleMgrService> BmsAbilityManagerHelperTest::bundleMgrService_ = 44 OHOS::DelayedSingleton<BundleMgrService>::GetInstance();
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_updater_test/ |
H A D | bms_bundle_updater_test.cpp | 83 static std::shared_ptr<BundleMgrService> bundleMgrService_; 86 std::shared_ptr<BundleMgrService> BmsBundleUpdaterTest::bundleMgrService_ = 87 DelayedSingleton<BundleMgrService>::GetInstance(); 105 if (!DelayedSingleton<BundleMgrService>::GetInstance()->IsServiceReady()) { in SetUp() 106 DelayedSingleton<BundleMgrService>::GetInstance()->OnStart(); in SetUp() 125 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller(); in InstallBundle() 147 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller(); in UninstallBundle() 168 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller(); in UpdateBundle() 190 auto installer = DelayedSingleton<BundleMgrService>::GetInstance()->GetBundleInstaller(); in UpdateBundle() 240 DelayedSingleton<BundleMgrService> in StopBundleService() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_extend_resource_manager_test/ |
H A D | bms_extend_resource_manager_test.cpp | 70 static std::shared_ptr<BundleMgrService> bundleMgrService_; 73 std::shared_ptr<BundleMgrService> BmsExtendResourceManagerTest::bundleMgrService_ = 74 DelayedSingleton<BundleMgrService>::GetInstance(); 514 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 530 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 550 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 573 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 589 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 607 auto dataMgr = DelayedSingleton<BundleMgrService>::GetInstance()->GetDataMgr(); in HWTEST_F() 628 auto dataMgr = DelayedSingleton<BundleMgrService> in HWTEST_F() [all...] |