/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include "iservice_registry.h" #include "system_ability_definition.h" #include "system_ability_manager_proxy.h" namespace OHOS { SystemAbilityManagerClient& SystemAbilityManagerClient::GetInstance() { static auto instance = new SystemAbilityManagerClient(); return *instance; } sptr SystemAbilityManagerClient::GetSystemAbilityManager() { GTEST_LOG_(INFO) << "GetSystemAbilityManager: return nullptr"; return nullptr; } sptr SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId) { GTEST_LOG_(INFO) << "GetSystemAbility(" << systemAbilityId << "): return nullptr"; return nullptr; } sptr SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId, const std::string& deviceId) { return GetSystemAbility(systemAbilityId); } sptr SystemAbilityManagerProxy::CheckSystemAbilityWrapper(int32_t code, MessageParcel& data) { return nullptr; } sptr SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId) { return nullptr; } sptr SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, const std::string& deviceId) { return nullptr; } sptr SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, bool& isExist) { return nullptr; } int32_t SystemAbilityManagerProxy::AddOnDemandSystemAbilityInfo(int32_t systemAbilityId, const std::u16string& localAbilityManagerName) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::RemoveSystemAbilityWrapper(int32_t code, MessageParcel& data) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::RemoveSystemAbility(int32_t systemAbilityId) { return ERR_INVALID_VALUE; } std::vector SystemAbilityManagerProxy::ListSystemAbilities(unsigned int dumpFlags) { std::vector saNames; return saNames; } int32_t SystemAbilityManagerProxy::SubscribeSystemAbility(int32_t systemAbilityId, const sptr& listener) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::UnSubscribeSystemAbility(int32_t systemAbilityId, const sptr& listener) { return ERR_INVALID_VALUE; } sptr SystemAbilityManagerProxy::LoadSystemAbility(int32_t systemAbilityId, int32_t timeout) { return nullptr; } int32_t SystemAbilityManagerProxy::LoadSystemAbility(int32_t systemAbilityId, const sptr& callback) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::UnloadSystemAbility(int32_t systemAbilityId) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::UnloadAllIdleSystemAbility() { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetExtensionSaIds(const std::string& extension, std::vector &saIds) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetExtensionRunningSaList(const std::string& extension, std::vector>& saList) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::CancelUnloadSystemAbility(int32_t systemAbilityId) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::LoadSystemAbility(int32_t systemAbilityId, const std::string& deviceId, const sptr& callback) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::AddSystemAbility(int32_t systemAbilityId, const sptr& ability, const SAExtraProp& extraProp) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::AddSystemAbilityWrapper(int32_t code, MessageParcel& data) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::AddSystemProcess( const std::u16string& procName, const sptr& procObject) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetSystemProcessInfo( int32_t systemAbilityId, SystemProcessInfo& systemProcessInfo) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetRunningSystemProcess(std::list& systemProcessInfos) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::SubscribeSystemProcess(const sptr& listener) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::UnSubscribeSystemProcess(const sptr& listener) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetOnDemandReasonExtraData(int64_t extraDataId, MessageParcel& extraDataParcel) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetOnDemandPolicy(int32_t systemAbilityId, OnDemandPolicyType type, std::vector& abilityOnDemandEvents) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::UpdateOnDemandPolicy(int32_t systemAbilityId, OnDemandPolicyType type, const std::vector& sabilityOnDemandEvents) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetRunningSaExtensionInfoList(const std::string& extension, std::vector& infoList) { return ERR_INVALID_VALUE; }; int32_t SystemAbilityManagerProxy::GetOnDemandSystemAbilityIds(std::vector& systemAbilityIds) { return ERR_INVALID_VALUE; } int32_t SystemAbilityManagerProxy::GetCommonEventExtraDataIdlist(int32_t saId, std::vector& extraDataIdList, const std::string& eventName) { return ERR_INVALID_VALUE; }; int32_t SystemAbilityManagerProxy::SendStrategy(int32_t type, std::vector& systemAbilityIds, int32_t level, std::string& action) { return ERR_INVALID_VALUE; } sptr SystemAbilityManagerProxy::Recompute(int32_t systemAbilityId, int32_t code) { return nullptr; } }