Searched refs:file_contents (Results 1 – 3 of 3) sorted by relevance
/hardware/google/pixel/pixelstats/ |
D | SysfsCollector.cpp | 82 std::string file_contents; in ReadFileToInt() local 84 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt() 87 } else if (StartsWith(file_contents, "0x")) { in ReadFileToInt() 88 if (sscanf(file_contents.c_str(), "0x%x", val) != 1) { in ReadFileToInt() 92 } else if (sscanf(file_contents.c_str(), "%d", val) != 1) { in ReadFileToInt() 105 std::string file_contents; in logBatteryChargeCycles() local 112 if (!ReadFileToString(kCycleCountBinsPath, &file_contents)) { in logBatteryChargeCycles() 117 std::stringstream stream(file_contents); in logBatteryChargeCycles() 124 std::replace(file_contents.begin(), file_contents.end(), ' ', ','); in logBatteryChargeCycles() 132 std::string file_contents; in logCodecFailed() local [all …]
|
D | WlcReporter.cpp | 46 std::string file_contents; in readFileToInt() local 48 if (!ReadFileToString(path, &file_contents)) { in readFileToInt() 51 } else if (sscanf(file_contents.c_str(), "%d", val) != 1) { in readFileToInt() 52 ALOGE("Unable to convert %s (%s) to int - %s", path, file_contents.c_str(), in readFileToInt() 128 std::string file_contents; in isWlcSupported() local 130 if (!ReadFileToString(POWER_SUPPLY_SYSFS_PATH, &file_contents)) { in isWlcSupported() 139 std::string file_contents; in isWlcOnline() local 141 if (!ReadFileToString(POWER_SUPPLY_SYSFS_PATH, &file_contents)) { in isWlcOnline() 145 ALOGV("isWlcOnline value: %s", file_contents.c_str()); in isWlcOnline() 146 return file_contents == "1\n"; in isWlcOnline()
|
D | UeventListener.cpp | 56 std::string file_contents; in ReadFileToInt() local 58 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt() 61 } else if (sscanf(file_contents.c_str(), "%d", val) != 1) { in ReadFileToInt() 124 std::string file_contents; in ReportUsbPortOverheatEvent() local 223 std::string file_contents, line; in ReportChargeMetricsEvent() local 226 if (!ReadFileToString(kChargeMetricsPath.c_str(), &file_contents)) { in ReportChargeMetricsEvent() 230 ss.str(file_contents); in ReportChargeMetricsEvent()
|