From 2025748d4f0dae1d8fa53806059988e32550764f Mon Sep 17 00:00:00 2001 From: zhongjianfei Date: Tue, 14 Sep 2021 11:20:48 +0800 Subject: [PATCH] zhongjianfei@huawei.com Signed-off-by: zhongjianfei Change-Id: I49e94f40bc50d0e41f52e03809f95c447431f516 --- .../include/bundlemgr/bundle_mgr_interface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h b/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h index ea34e91cfa..f799da1a23 100644 --- a/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h +++ b/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h @@ -154,7 +154,7 @@ public: * @param abilityInfos Indicates the obtained AbilityInfos object. * @return Returns true if the AbilityInfos is successfully obtained; returns false otherwise. */ - virtual bool QueryAbilityInfos(const Want &want, std::vector &abilityInfos) = 0; + virtual bool QueryAbilityInfos(const Want &want, std::vector &abilityInfos) { return false; }; /** * @brief Query the AbilityInfo by ability.uri in config.json. * @param abilityUri Indicates the uri of the ability. @@ -405,7 +405,7 @@ public: * @param moduleUsageRecords List of ModuleUsageRecord objects if obtained. * @return Returns true if this function is successfully called; returns false otherwise. */ - virtual bool GetModuleUsageRecords(const int32_t number, std::vector &moduleUsageRecords) = 0; + virtual bool GetModuleUsageRecords(const int32_t number, std::vector &moduleUsageRecords) { return false; } /** * @brief Obtains the interface used to install and uninstall bundles. * @return Returns a pointer to IBundleInstaller class if exist; returns nullptr otherwise. @@ -419,7 +419,7 @@ public: * @return Returns true if this function is successfully called; returns false otherwise. */ virtual bool NotifyActivityLifeStatus( - const std::string &bundleName, const std::string &abilityName, const int64_t launchTime) = 0; + const std::string &bundleName, const std::string &abilityName, const int64_t launchTime) { return false; } enum class Message { GET_APPLICATION_INFO, -- Gitee