Lines Matching refs:oss
223 void PowerStats::dumpEnergyMeter(std::ostringstream &oss, bool delta) { in dumpEnergyMeter() argument
232 oss << "\n============= PowerStats HAL 2.0 energy meter ==============\n"; in dumpEnergyMeter()
242 oss << "Elapsed time: " in dumpEnergyMeter()
246 oss << ::android::base::StringPrintf(headerFormatDelta, "Channel", "Cumulative Energy", in dumpEnergyMeter()
261 oss << ::android::base::StringPrintf(dataFormatDelta, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
269 oss << ::android::base::StringPrintf(headerFormat, "Channel", "Cumulative Energy"); in dumpEnergyMeter()
272 oss << ::android::base::StringPrintf(dataFormat, channelNames.at(data.id).c_str(), in dumpEnergyMeter()
277 oss << "========== End of PowerStats HAL 2.0 energy meter ==========\n"; in dumpEnergyMeter()
280 void PowerStats::dumpStateResidency(std::ostringstream &oss, bool delta) { in dumpStateResidency() argument
293 oss << "\n============= PowerStats HAL 2.0 state residencies ==============\n"; in dumpStateResidency()
303 oss << "Elapsed time: " in dumpStateResidency()
307 oss << ::android::base::StringPrintf(headerFormatDelta, "Entity", "State", "Total time", in dumpStateResidency()
350 oss << ::android::base::StringPrintf( in dumpStateResidency()
360 oss << ::android::base::StringPrintf(headerFormat, "Entity", "State", "Total time", in dumpStateResidency()
364 oss << ::android::base::StringPrintf( in dumpStateResidency()
373 oss << "========== End of PowerStats HAL 2.0 state residencies ==========\n"; in dumpStateResidency()
376 void PowerStats::dumpEnergyConsumer(std::ostringstream &oss, bool delta) { in dumpEnergyConsumer() argument
382 oss << "\n============= PowerStats HAL 2.0 energy consumers ==============\n"; in dumpEnergyConsumer()
385 oss << ::android::base::StringPrintf("%-12s : %14.2f mWs\n", in dumpEnergyConsumer()
389 oss << ::android::base::StringPrintf(" %10d - %14.2f mWs\n", attr.uid, in dumpEnergyConsumer()
394 oss << "========== End of PowerStats HAL 2.0 energy consumers ==========\n"; in dumpEnergyConsumer()
398 std::ostringstream oss; in dump() local
402 dumpStateResidency(oss, delta); in dump()
405 dumpEnergyConsumer(oss, delta); in dump()
408 dumpEnergyMeter(oss, delta); in dump()
410 ::android::base::WriteStringToFd(oss.str(), fd); in dump()