blob: 0007efae2bbaea194d9d0cedab4f47cdb6392bdf [file] [log] [blame]
Benjamin Schwartzea685022020-07-30 16:20:55 -07001/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <aidl/android/hardware/powerstats/BnPowerStats.h>
20
21namespace aidl {
22namespace android {
23namespace hardware {
24namespace powerstats {
25
26class PowerStats : public BnPowerStats {
27 public:
28 PowerStats() = default;
Benjamin Schwartz42408272020-09-28 14:33:59 -070029 // Methods from aidl::android::hardware::powerstats::IPowerStats
Benjamin Schwartzea685022020-07-30 16:20:55 -070030 ndk::ScopedAStatus getPowerEntityInfo(std::vector<PowerEntityInfo>* _aidl_return) override;
Benjamin Schwartz42408272020-09-28 14:33:59 -070031 ndk::ScopedAStatus getPowerEntityStateResidency(
Benjamin Schwartzea685022020-07-30 16:20:55 -070032 const std::vector<int32_t>& in_powerEntityIds,
Benjamin Schwartz42408272020-09-28 14:33:59 -070033 std::vector<StateResidencyResult>* _aidl_return) override;
34 ndk::ScopedAStatus getEnergyConsumerInfo(std::vector<EnergyConsumerId>* _aidl_return) override;
35 ndk::ScopedAStatus getEnergyConsumed(const std::vector<EnergyConsumerId>& in_energyConsumerIds,
36 std::vector<EnergyConsumerResult>* _aidl_return) override;
37 ndk::ScopedAStatus getEnergyMeterInfo(std::vector<ChannelInfo>* _aidl_return) override;
38 ndk::ScopedAStatus readEnergyMeters(const std::vector<int32_t>& in_channelIds,
39 std::vector<EnergyMeasurement>* _aidl_return) override;
Benjamin Schwartzea685022020-07-30 16:20:55 -070040};
41
42} // namespace powerstats
43} // namespace hardware
44} // namespace android
45} // namespace aidl