Searched refs:file_contents (Results 1 – 2 of 2) sorted by relevance
/hardware/google/pixel/pixelstats/ |
D | SysfsCollector.cpp | 67 std::string file_contents; in ReadFileToInt() local 69 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt() 72 } else if (sscanf(file_contents.c_str(), "%d", val) != 1) { in ReadFileToInt() 85 std::string file_contents; in logBatteryChargeCycles() local 92 if (!ReadFileToString(kCycleCountBinsPath, &file_contents)) { in logBatteryChargeCycles() 97 std::stringstream stream(file_contents); in logBatteryChargeCycles() 104 std::replace(file_contents.begin(), file_contents.end(), ' ', ','); in logBatteryChargeCycles() 112 std::string file_contents; in logCodecFailed() local 117 if (!ReadFileToString(kCodecPath, &file_contents)) { in logCodecFailed() 121 if (file_contents == "0") { in logCodecFailed() [all …]
|
D | UeventListener.cpp | 55 std::string file_contents; in ReadFileToInt() local 57 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt() 60 } else if (sscanf(file_contents.c_str(), "%d", val) != 1) { in ReadFileToInt() 122 std::string file_contents; in ReportUsbPortOverheatEvent() local 221 std::string file_contents, line; in ReportChargeMetricsEvent() local 224 if (!ReadFileToString(kChargeMetricsPath.c_str(), &file_contents)) { in ReportChargeMetricsEvent() 228 ss.str(file_contents); in ReportChargeMetricsEvent()
|