Lines Matching refs:oss
206 void PowerStats::dumpEnergyMeter(std::ostringstream &oss, bool delta) { in dumpEnergyMeter() argument
215 oss << "\n============= PowerStats HAL 2.0 energy meter ==============\n"; in dumpEnergyMeter()
225 oss << "Elapsed time: " in dumpEnergyMeter()
229 oss << ::android::base::StringPrintf(headerFormatDelta, "Channel", "Cumulative Energy", in dumpEnergyMeter()
244 oss << ::android::base::StringPrintf(dataFormatDelta, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
252 oss << ::android::base::StringPrintf(headerFormat, "Channel", "Cumulative Energy"); in dumpEnergyMeter()
255 oss << ::android::base::StringPrintf(dataFormat, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
260 oss << "========== End of PowerStats HAL 2.0 energy meter ==========\n"; in dumpEnergyMeter()
263 void PowerStats::dumpStateResidency(std::ostringstream &oss, bool delta) { in dumpStateResidency() argument
276 oss << "\n============= PowerStats HAL 2.0 state residencies ==============\n"; in dumpStateResidency()
286 oss << "Elapsed time: " in dumpStateResidency()
290 oss << ::android::base::StringPrintf(headerFormatDelta, "Entity", "State", "Total time", in dumpStateResidency()
333 oss << ::android::base::StringPrintf( in dumpStateResidency()
343 oss << ::android::base::StringPrintf(headerFormat, "Entity", "State", "Total time", in dumpStateResidency()
347 oss << ::android::base::StringPrintf( in dumpStateResidency()
356 oss << "========== End of PowerStats HAL 2.0 state residencies ==========\n"; in dumpStateResidency()
359 void PowerStats::dumpEnergyConsumer(std::ostringstream &oss, bool delta) { in dumpEnergyConsumer() argument
365 oss << "\n============= PowerStats HAL 2.0 energy consumers ==============\n"; in dumpEnergyConsumer()
368 oss << ::android::base::StringPrintf("%-12s : %14.2f mWs\n", in dumpEnergyConsumer()
372 oss << ::android::base::StringPrintf(" %10d - %14.2f mWs\n", attr.uid, in dumpEnergyConsumer()
377 oss << "========== End of PowerStats HAL 2.0 energy consumers ==========\n"; in dumpEnergyConsumer()
381 std::ostringstream oss; in dump() local
385 dumpStateResidency(oss, delta); in dump()
388 dumpEnergyConsumer(oss, delta); in dump()
391 dumpEnergyMeter(oss, delta); in dump()
393 ::android::base::WriteStringToFd(oss.str(), fd); in dump()