Lines Matching refs:c_str
86 ALOGD("processing %s", line.c_str()); in ReportChargeStats()
87 if (sscanf(line.c_str(), CHG_STATS_FMT2, &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5], in ReportChargeStats()
93 } else if (sscanf(line.c_str(), CHG_STATS_FMT1, &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], in ReportChargeStats()
100 } else if (sscanf(line.c_str(), CHG_STATS_FMT0, &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], in ReportChargeStats()
102 ALOGE("Couldn't process %s", line.c_str()); in ReportChargeStats()
108 ALOGD("wlc: processing %s", wline_at.c_str()); in ReportChargeStats()
109 if (sscanf(wline_at.c_str(), "A:%d", &ssoc_tmp) != 1) { in ReportChargeStats()
110 ALOGE("Couldn't process %s", wline_at.c_str()); in ReportChargeStats()
113 ALOGD("wlc: processing %s", wline_ac.c_str()); in ReportChargeStats()
114 if (sscanf(wline_ac.c_str(), "D:%x,%x,%x,%x,%x, %x,%x", &tmp[10], &tmp[11], &tmp[12], in ReportChargeStats()
116 ALOGE("Couldn't process %s", wline_ac.c_str()); in ReportChargeStats()
123 ALOGD("pca: processing %s", pca_line.c_str()); in ReportChargeStats()
124 if (sscanf(pca_line.c_str(), "D:%x,%x %x,%x,%x,%x,%x", &pca_ac[0], &pca_ac[1], &pca_rs[0], in ReportChargeStats()
126 ALOGE("Couldn't process %s", pca_line.c_str()); in ReportChargeStats()
143 if (ReadFileToString(kGChargerMetricsPath.c_str(), &file_contents)) { in ReportChargeStats()
146 … if (sscanf(pdo_line.c_str(), "D:%x,%x,%x,%x,%x,%x,%x", &pca_ac[0], &pca_ac[1], &pca_rs[0], in ReportChargeStats()
150 ALOGD("processed %s, apdo:%d, pdo:%d", pdo_line.c_str(), pca_ac[1], pca_rs[4]); in ReportChargeStats()
270 if (!ReadFileToString(path.c_str(), &file_contents)) { in checkAndReport()
271 ALOGE("Unable to read %s - %s", path.c_str(), strerror(errno)); in checkAndReport()
282 if (!WriteStringToFile("0", path.c_str())) { in checkAndReport()
283 ALOGE("Couldn't clear %s - %s", path.c_str(), strerror(errno)); in checkAndReport()
315 ReportVoltageTierStats(stats_client, line.c_str(), has_wireless, wfile_contents); in checkAndReport()
323 ReportVoltageTierStats(stats_client, line.c_str()); in checkAndReport()
332 ReportVoltageTierStats(stats_client, line.c_str()); in checkAndReport()
341 ReportVoltageTierStats(stats_client, line.c_str()); in checkAndReport()
347 if (!ReadFileToString(path.c_str(), file_contents)) { in checkContentsAndAck()
351 if (!WriteStringToFile("0", path.c_str())) { in checkContentsAndAck()
352 ALOGE("Couldn't clear %s - %s", path.c_str(), strerror(errno)); in checkContentsAndAck()