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 addDevfreq(std::shared_ptr<PowerStats> p); 26 void addDisplayMrr(std::shared_ptr<PowerStats> p); 27 void addDisplayMrrByEntity(std::shared_ptr<PowerStats> p, std::string name, std::string path); 28 void addDvfsStats(std::shared_ptr<PowerStats> p); 29 void addGNSS(std::shared_ptr<PowerStats> p); 30 void addGPU(std::shared_ptr<PowerStats> p); 31 void addMobileRadio(std::shared_ptr<PowerStats> p); 32 void addNFC(std::shared_ptr<PowerStats> p); 33 void addPCIe(std::shared_ptr<PowerStats> p); 34 void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p, std::string displayName); 35 void addPowerDomains(std::shared_ptr<PowerStats> p); 36 void addSoC(std::shared_ptr<PowerStats> p); 37 void addTPU(std::shared_ptr<PowerStats> p); 38 void addUfs(std::shared_ptr<PowerStats> p); 39 void addWifi(std::shared_ptr<PowerStats> p); 40 void addZumaProCommonDataProviders(std::shared_ptr<PowerStats> p); 41 void setEnergyMeter(std::shared_ptr<PowerStats> p); 42