/* * 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. */ #ifndef SOC_PERF_INCLUDE_I_SOCPERF_SERVICE_H #define SOC_PERF_INCLUDE_I_SOCPERF_SERVICE_H #include #include "iremote_broker.h" #include "iremote_stub.h" #include "iremote_proxy.h" #include "iremote_object.h" #include "system_ability.h" #include "system_ability_definition.h" #include "if_system_ability_manager.h" #include "iservice_registry.h" #include "socperf_common.h" namespace OHOS { namespace SOCPERF { class ISocPerfService : public IRemoteBroker { public: ISocPerfService() = default; ~ISocPerfService() override = default; DISALLOW_COPY_AND_MOVE(ISocPerfService); public: virtual void PerfRequest(int32_t cmdId, const std::string& msg) = 0; virtual void PerfRequestEx(int32_t cmdId, bool onOffTag, const std::string& msg) = 0; virtual void PowerLimitBoost(bool onOffTag, const std::string& msg) = 0; virtual void ThermalLimitBoost(bool onOffTag, const std::string& msg) = 0; virtual void LimitRequest(int32_t clientId, const std::vector& tags, const std::vector& configs, const std::string& msg) = 0; public: enum { TRANS_IPC_ID_PERF_REQUEST = 0x0001, TRANS_IPC_ID_PERF_REQUEST_EX = 0x0002, TRANS_IPC_ID_POWER_LIMIT_BOOST_FREQ = 0x0005, TRANS_IPC_ID_THERMAL_LIMIT_BOOST_FREQ = 0x0008, TRANS_IPC_ID_LIMIT_REQUEST = 0x0009, }; public: DECLARE_INTERFACE_DESCRIPTOR(u"Resourceschedule.ISocPerfService"); }; } // namespace SOCPERF } // namespace OHOS #endif // SOC_PERF_INCLUDE_I_SOCPERF_SERVICE_H