Home
last modified time | relevance | path

Searched refs:extractStat (Results 1 – 6 of 6) sorted by relevance

/hardware/google/pixel/powerstats/dataproviders/
DWlanStateResidencyDataProvider.cpp34 static bool extractStat(const char *line, const std::string &prefix, uint64_t *stat) { in extractStat() function
70 if (extractStat(line, "cumulative_sleep_time_ms:", &stat)) { in getStateResidencies()
73 } else if (extractStat(line, "cumulative_total_on_time_ms:", &stat)) { in getStateResidencies()
76 } else if (extractStat(line, "deep_sleep_enter_counter:", &stat)) { in getStateResidencies()
80 } else if (extractStat(line, "last_deep_sleep_enter_tstamp_ms:", &stat)) { in getStateResidencies()
DGenericStateResidencyDataProvider.cpp43 static bool extractStat(const char *line, const std::string &prefix, uint64_t *stat) { in extractStat() function
64 if (config.entryCountSupported && extractStat(*line, config.entryCountPrefix, &stat)) { in parseState()
68 } else if (config.totalTimeSupported && extractStat(*line, config.totalTimePrefix, &stat)) { in parseState()
72 } else if (config.lastEntrySupported && extractStat(*line, config.lastEntryPrefix, &stat)) { in parseState()
/hardware/google/pixel/powerstats/
DWlanStateResidencyDataProvider.cpp67 if (utils::extractStat(line, "cumulative_sleep_time_ms:", stat)) { in getResults()
70 } else if (utils::extractStat(line, "cumulative_total_on_time_ms:", stat)) { in getResults()
73 } else if (utils::extractStat(line, "deep_sleep_enter_counter:", stat)) { in getResults()
77 } else if (utils::extractStat(line, "last_deep_sleep_enter_tstamp_ms:", stat)) { in getResults()
DPowerStatsUtils.cpp26 bool extractStat(const char *line, const std::string &prefix, uint64_t &stat) { in extractStat() function
DGenericStateResidencyDataProvider.cpp78 utils::extractStat(*line, config.entryCountPrefix, stat)) { in parseState()
83 utils::extractStat(*line, config.totalTimePrefix, stat)) { in parseState()
88 utils::extractStat(*line, config.lastEntryPrefix, stat)) { in parseState()
/hardware/google/pixel/powerstats/include/pixelpowerstats/
DPowerStatsUtils.h14 bool extractStat(const char *line, const std::string &prefix, uint64_t &stat);