/* * 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 "mock_power_mgr_client.h" namespace OHOS { namespace PowerMgr { PowerMgrClient::PowerMgrClient() {} PowerMgrClient::~PowerMgrClient() {} ErrCode PowerMgrClient::Connect() { return ERR_OK; } void PowerMgrClient::ResetProxy(const wptr& remote) { } void PowerMgrClient::PowerMgrDeathRecipient::OnRemoteDied(const wptr& remote) { } void PowerMgrClient::RebootDevice(const std::string& reason) { } void PowerMgrClient::ShutDownDevice(const std::string& reason) { } void PowerMgrClient::SuspendDevice(SuspendDeviceType reason, bool suspendImmed) { } void PowerMgrClient::WakeupDevice(WakeupDeviceType reason, const std::string& detail) { } void PowerMgrClient::RefreshActivity(UserActivityType type) { } bool PowerMgrClient::IsRunningLockTypeSupported(uint32_t type) { return true; } bool PowerMgrClient::ForceSuspendDevice() { return true; } bool PowerMgrClient::IsScreenOn() { return true; } PowerState PowerMgrClient::GetState() { return PowerState::UNKNOWN; } std::shared_ptr PowerMgrClient::CreateRunningLock(const std::string& name, RunningLockType type) { return nullptr; } void PowerMgrClient::RegisterPowerStateCallback(const sptr& callback) { } void PowerMgrClient::UnRegisterPowerStateCallback(const sptr& callback) { } void PowerMgrClient::RegisterShutdownCallback(const sptr& callback, IShutdownCallback::ShutdownPriority priority) { } void PowerMgrClient::UnRegisterShutdownCallback(const sptr& callback) { } void PowerMgrClient::RegisterPowerModeCallback(const sptr& callback) { } void PowerMgrClient::UnRegisterPowerModeCallback(const sptr& callback) { } void PowerMgrClient::SetDisplaySuspend(bool enable) { } void PowerMgrClient::SetDeviceMode(const uint32_t mode) { } uint32_t PowerMgrClient::GetDeviceMode() { return ERR_OK; } std::string PowerMgrClient::Dump(const std::vector& args) { return "ERR_OK"; } } // namespace PowerMgr } // namespace OHOS