blob: 6cb0a738b056f4c9d0fcb2387b2defa3dabad638 [file] [log] [blame]
Benjamin Schwartz817521b2020-10-05 09:20:16 -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#include "PowerStats.h"
18
19#include <android-base/logging.h>
20
21namespace aidl {
22namespace android {
23namespace hardware {
Benjamin Schwartz18a3fb52020-10-05 15:44:19 -070024namespace power {
25namespace stats {
Benjamin Schwartz817521b2020-10-05 09:20:16 -070026
Benjamin Schwartz74e09c72020-12-21 14:57:45 -080027ndk::ScopedAStatus PowerStats::getPowerEntityInfo(std::vector<PowerEntity>* _aidl_return) {
Benjamin Schwartz817521b2020-10-05 09:20:16 -070028 (void)_aidl_return;
29 return ndk::ScopedAStatus::ok();
30}
31
32ndk::ScopedAStatus PowerStats::getStateResidency(const std::vector<int32_t>& in_powerEntityIds,
33 std::vector<StateResidencyResult>* _aidl_return) {
34 (void)in_powerEntityIds;
35 (void)_aidl_return;
36 return ndk::ScopedAStatus::ok();
37}
38
Benjamin Schwartz74e09c72020-12-21 14:57:45 -080039ndk::ScopedAStatus PowerStats::getEnergyConsumerInfo(std::vector<EnergyConsumer>* _aidl_return) {
Benjamin Schwartz817521b2020-10-05 09:20:16 -070040 (void)_aidl_return;
41 return ndk::ScopedAStatus::ok();
42}
43
Benjamin Schwartz74e09c72020-12-21 14:57:45 -080044ndk::ScopedAStatus PowerStats::getEnergyConsumed(const std::vector<int32_t>& in_energyConsumerIds,
45 std::vector<EnergyConsumerResult>* _aidl_return) {
Benjamin Schwartz817521b2020-10-05 09:20:16 -070046 (void)in_energyConsumerIds;
47 (void)_aidl_return;
48 return ndk::ScopedAStatus::ok();
49}
50
Benjamin Schwartz74e09c72020-12-21 14:57:45 -080051ndk::ScopedAStatus PowerStats::getEnergyMeterInfo(std::vector<Channel>* _aidl_return) {
Benjamin Schwartz817521b2020-10-05 09:20:16 -070052 (void)_aidl_return;
53 return ndk::ScopedAStatus::ok();
54}
55
56ndk::ScopedAStatus PowerStats::readEnergyMeters(const std::vector<int32_t>& in_channelIds,
57 std::vector<EnergyMeasurement>* _aidl_return) {
58 (void)in_channelIds;
59 (void)_aidl_return;
60 return ndk::ScopedAStatus::ok();
61}
62
Benjamin Schwartz18a3fb52020-10-05 15:44:19 -070063} // namespace stats
64} // namespace power
Benjamin Schwartz817521b2020-10-05 09:20:16 -070065} // namespace hardware
66} // namespace android
67} // namespace aidl