Home
last modified time | relevance | path

Searched refs:attrStats (Results 1 – 3 of 3) sorted by relevance

/hardware/google/pixel/powerstats/dataproviders/
DPowerStatsEnergyAttribution.cpp34 bool PowerStatsEnergyAttribution::readUidTimeInState(AttributionStats *attrStats, in readUidTimeInState() argument
45 attrStats->uidTimeInStateNames = Split(Trim(buf), " "); in readUidTimeInState()
47 attrStats->uidTimeInStateNames.erase(attrStats->uidTimeInStateNames.begin()); in readUidTimeInState()
70 attrStats->uidTimeInStats.emplace(uid, uidStats); in readUidTimeInState()
80 AttributionStats attrStats; in getAttributionStats() local
83 !readUidTimeInState(&attrStats, paths.at(UID_TIME_IN_STATE))) { in getAttributionStats()
88 return attrStats; in getAttributionStats()
DPowerStatsEnergyConsumer.cpp121 AttributionStats attrStats = mEnergyAttribution.getAttributionStats(paths); in addAttribution() local
122 if (attrStats.uidTimeInStateNames.empty()) { in addAttribution()
134 for (const auto &stateName : attrStats.uidTimeInStateNames) { in addAttribution()
167 AttributionStats attrStats = mEnergyAttribution.getAttributionStats(mAttrInfoPath); in getEnergyConsumed() local
168 if (attrStats.uidTimeInStats.empty() || attrStats.uidTimeInStateNames.empty()) { in getEnergyConsumed()
172 for (const auto &uidTimeInStat : attrStats.uidTimeInStats) { in getEnergyConsumed()
203 mUidTimeInStateSS = attrStats.uidTimeInStats; in getEnergyConsumed()
/hardware/google/pixel/powerstats/include/dataproviders/
DPowerStatsEnergyAttribution.h56 bool readUidTimeInState(AttributionStats *attrStats, std::string path);