Searched refs:channelNames (Results 1 – 5 of 5) sorted by relevance
/hardware/google/pixel/powerstats/dataproviders/ |
D | PowerStatsEnergyConsumer.cpp | 34 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/ |
D | PowerStatsEnergyConsumer.h | 50 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/ |
D | FakeEnergyMeter.h | 34 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/ |
D | PowerStatsAidl.cpp | 214 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/ |
D | PowerStatsAidl.h | 82 void getChannelNames(std::unordered_map<int32_t, std::string> *channelNames);
|