Home
last modified time | relevance | path

Searched refs:channelNames (Results 1 – 5 of 5) sorted by relevance

/hardware/google/pixel/powerstats/dataproviders/
DPowerStatsEnergyConsumer.cpp34 std::set<std::string> channelNames) { in createMeterConsumer() argument
35 return createMeterAndEntityConsumer(p, type, name, channelNames, "", {}); in createMeterConsumer()
46 std::set<std::string> channelNames, std::string powerEntityName, in createMeterAndEntityConsumer() argument
51 if (ret->addEnergyMeter(channelNames) && ret->addPowerEntity(powerEntityName, stateCoeffs)) { in createMeterAndEntityConsumer()
61 std::set<std::string> channelNames, std::unordered_map<int32_t, std::string> paths, in createMeterAndAttrConsumer() argument
66 if (ret->addEnergyMeter(channelNames) && ret->addAttribution(paths, stateCoeffs)) { in createMeterAndAttrConsumer()
74 bool PowerStatsEnergyConsumer::addEnergyMeter(std::set<std::string> channelNames) { in addEnergyMeter() argument
75 if (channelNames.empty()) { in addEnergyMeter()
83 if (channelNames.count(c.name)) { in addEnergyMeter()
88 return (mChannelIds.size() == channelNames.size()); in addEnergyMeter()
/hardware/google/pixel/powerstats/include/dataproviders/
DPowerStatsEnergyConsumer.h50 std::set<std::string> channelNames);
57 std::set<std::string> channelNames, std::string powerEntityName,
62 std::set<std::string> channelNames, std::unordered_map<int32_t, std::string> paths,
74 bool addEnergyMeter(std::set<std::string> channelNames);
/hardware/interfaces/power/stats/aidl/default/
DFakeEnergyMeter.h34 FakeEnergyMeter(std::vector<std::pair<std::string, std::string>> channelNames) { in FakeEnergyMeter() argument
36 for (const auto& [name, subsystem] : channelNames) { in FakeEnergyMeter()
/hardware/google/pixel/powerstats/
DPowerStatsAidl.cpp214 void PowerStats::getChannelNames(std::unordered_map<int32_t, std::string> *channelNames) { in getChannelNames() argument
219 channelNames->emplace(info.id, "[" + info.name + "]:" + info.subsystem); in getChannelNames()
229 std::unordered_map<int32_t, std::string> channelNames; in dumpEnergyMeter() local
230 getChannelNames(&channelNames); in dumpEnergyMeter()
261 oss << ::android::base::StringPrintf(dataFormatDelta, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
272 oss << ::android::base::StringPrintf(dataFormat, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
/hardware/google/pixel/powerstats/include/
DPowerStatsAidl.h82 void getChannelNames(std::unordered_map<int32_t, std::string> *channelNames);