/* * Copyright (c) 2021-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 "app_context.h" namespace OHOS { namespace AppExecFwk { AppContext::AppContext() {} AppContext::~AppContext() {} const std::shared_ptr AppContext::GetAbilityInfo() { return nullptr; } ErrCode AppContext::StartAbility(const AAFwk::Want &want, int requestCode) { return ERR_INVALID_VALUE; } ErrCode AppContext::StartAbility(const Want &want, int requestCode, const AbilityStartSetting &abilityStartSetting) { return ERR_INVALID_VALUE; } ErrCode AppContext::TerminateAbility() { return ERR_INVALID_VALUE; } std::string AppContext::GetCallingBundle() { return ""; } bool AppContext::ConnectAbility(const Want &want, const sptr &conn) { return false; } ErrCode AppContext::DisconnectAbility(const sptr &conn) { return ERR_INVALID_VALUE; } bool AppContext::StopAbility(const AAFwk::Want &want) { return false; } sptr AppContext::GetToken() { return nullptr; } void AppContext::StartAbilities(const std::vector &wants) {} int AppContext::GetMissionId() { return -1; } } // namespace AppExecFwk } // namespace OHOS