1 /* 2 * Copyright (C) 2021 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 <PowerStatsAidl.h> 20 21 using aidl::android::hardware::power::stats::PowerStats; 22 23 void addAoC(std::shared_ptr<PowerStats> p); 24 void addCPUclusters(std::shared_ptr<PowerStats> p); 25 void addCamera(std::shared_ptr<PowerStats> p); 26 void addDevfreq(std::shared_ptr<PowerStats> p); 27 void addDisplayMrr(std::shared_ptr<PowerStats> p); 28 void addDisplayMrrByEntity(std::shared_ptr<PowerStats> p, std::string name, std::string path); 29 void addDvfsStats(std::shared_ptr<PowerStats> p); 30 void addGNSS(std::shared_ptr<PowerStats> p); 31 void addGs201CommonDataProviders(std::shared_ptr<PowerStats> p); 32 void addMobileRadio(std::shared_ptr<PowerStats> p); 33 void addNFC(std::shared_ptr<PowerStats> p, const std::string& path); 34 void addPCIe(std::shared_ptr<PowerStats> p); 35 void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p); 36 void addPowerDomains(std::shared_ptr<PowerStats> p); 37 void addSoC(std::shared_ptr<PowerStats> p); 38 void addTPU(std::shared_ptr<PowerStats> p); 39 void addUfs(std::shared_ptr<PowerStats> p); 40 void addWifi(std::shared_ptr<PowerStats> p); 41 void addWlan(std::shared_ptr<PowerStats> p); 42 void setEnergyMeter(std::shared_ptr<PowerStats> p); 43