Lines Matching refs:string
38 int getCommandOutput(const char *cmd, std::string *output) { in getCommandOutput()
78 int getFilesInDir(const char *directory, std::vector<std::string> *files) { in getFilesInDir()
79 std::string content; in getFilesInDir()
121 std::vector<std::string> files; in readContentsOfDir()
122 std::string content; in readContentsOfDir()
123 std::string fileLocation; in readContentsOfDir()
132 if (useStrMatch && std::string::npos == std::string(file).find(strMatch)) { in readContentsOfDir()
136 fileLocation = std::string(directory) + std::string(file); in readContentsOfDir()
208 std::string content; in dumpMaxFg()
270 std::vector<std::string> files; in dumpTcpc()
271 std::string content; in dumpTcpc()
285 if (std::string::npos == std::string(file).find(i2cSubDirMatch)) { in dumpTcpc()
289 std::string fileName = directory + file + "/" + std::string(tcpcVal[1]); in dumpTcpc()
357 std::vector<std::string> files; in dumpBatteryDefend()
359 std::string content; in dumpBatteryDefend()
360 std::string fileLocation; in dumpBatteryDefend()
369 if (std::string(entry->d_name).find(config[2]) != std::string::npos && in dumpBatteryDefend()
379 fileLocation = std::string(config[1]) + std::string(file); in dumpBatteryDefend()
394 void printValuesOfDirectory(const char *directory, std::string debugfs, const char *strMatch) { in printValuesOfDirectory()
395 std::vector<std::string> files; in printValuesOfDirectory()
397 std::string content; in printValuesOfDirectory()
403 printTitle((debugfs + std::string(strMatch) + "/" + std::string(info)).c_str()); in printValuesOfDirectory()
405 if (std::string(entry->d_name).find(strMatch) != std::string::npos) in printValuesOfDirectory()
412 std::string fileDirectory = debugfs + file; in printValuesOfDirectory()
413 std::string fileLocation = fileDirectory + "/" + std::string(info); in printValuesOfDirectory()
427 const std::string pmic_bus = "/sys/devices/platform/108d0000.hsi2c/i2c-6/6-0066"; in dumpChg()
428 const std::string pmic_bus_dev = "/sys/devices/platform/10cb0000.hsi2c/i2c-11/11-0066"; in dumpChg()
430 const std::string chg_name_file = "/sys/class/power_supply/main-charger/device/name"; in dumpChg()
431 const std::string pmic_name_file_dev = pmic_bus_dev + "/name"; in dumpChg()
432 const std::string pmic_reg_dump_dev_file = pmic_bus_dev + "/registers_dump"; in dumpChg()
433 const std::string pmic_name_file = pmic_bus + "/name"; in dumpChg()
434 const std::string pmic_reg_dump_file = pmic_bus + "/registers_dump"; in dumpChg()
435 const std::string reg_dump_str = " registers dump"; in dumpChg()
439 std::string chg_name; in dumpChg()
440 std::string pmic_name; in dumpChg()
441 std::string pmic_reg_dump; in dumpChg()
448 const std::string chg_reg_dump_title = chg_name + reg_dump_str; in dumpChg()
465 const std::string pmic_reg_dump_title = pmic_name + reg_dump_str; in dumpChg()
477 const std::string debugfs = "/d/"; in dumpChgUserDebug()
541 std::string result; in dumpBatteryEeprom()
542 std::string xxdCmd; in dumpBatteryEeprom()
549 xxdCmd = "xxd " + std::string(file); in dumpBatteryEeprom()
566 std::vector<std::string> files; in dumpChargerStats()
567 std::string content; in dumpChargerStats()
582 if (std::string(entry->d_name).find(stat[2]) != std::string::npos) in dumpChargerStats()
589 std::string fileLocation = std::string(stat[1]) + file; in dumpChargerStats()
623 std::string content; in dumpGvoteables()
624 std::vector<std::string> files; in dumpGvoteables()
636 std::string fileLocation = std::string(directory) + file + std::string(statusName); in dumpGvoteables()
692 std::vector<std::string> files; in dumpMitigationStats()
693 std::string content; in dumpMitigationStats()
694 std::string fileLocation; in dumpMitigationStats()
695 std::string source; in dumpMitigationStats()
696 std::string subModuleName; in dumpMitigationStats()
710 fileLocation = std::string(directory) + std::string(file); in dumpMitigationStats()
720 subModuleName = std::string(file); in dumpMitigationStats()
723 fileLocation = std::string(capacityDirectory) + std::string(subModuleName) + in dumpMitigationStats()
724 std::string(capacitySuffix); in dumpMitigationStats()
733 fileLocation = std::string(timestampDirectory) + std::string(subModuleName) + in dumpMitigationStats()
734 std::string(timeSuffix); in dumpMitigationStats()
743 fileLocation = std::string(voltageDirectory) + std::string(subModuleName) + in dumpMitigationStats()
744 std::string(voltageSuffix); in dumpMitigationStats()
785 std::vector<std::string> files; in dumpMitigationDirs()
786 std::string content; in dumpMitigationDirs()
787 std::string fileLocation; in dumpMitigationDirs()
788 std::string source; in dumpMitigationDirs()
789 std::string subModuleName; in dumpMitigationDirs()
790 std::string readout; in dumpMitigationDirs()
804 fileLocation = std::string(directories[i]) + std::string(file); in dumpMitigationDirs()
814 subModuleName = std::string(file); in dumpMitigationDirs()
821 std::vector<std::string> tokens; in dumpMitigationDirs()
823 std::string token; in dumpMitigationDirs()
897 std::vector<std::string> channelNames; in dumpIrqDurationCounts()
898 std::vector<std::string> channelData[DUR_MAX]; in dumpIrqDurationCounts()
899 std::vector<std::string> pwrwarnThreshold[PWRWARN_MAX]; in dumpIrqDurationCounts()
900 std::vector<std::string> pwrwarnCode[PWRWARN_MAX]; in dumpIrqDurationCounts()
901 std::vector<std::string> lpfCurrentVals[PWRWARN_MAX]; in dumpIrqDurationCounts()
902 std::vector<std::string> files; in dumpIrqDurationCounts()
904 std::string content; in dumpIrqDurationCounts()
905 std::string token; in dumpIrqDurationCounts()
906 std::string tokenCh; in dumpIrqDurationCounts()
907 std::string fileLocation; in dumpIrqDurationCounts()
936 fileLocation = std::string(pwrwarnDirectories[i]) + std::string(file); in dumpIrqDurationCounts()
941 std::string readout; in dumpIrqDurationCounts()
945 std::string readoutThreshold = readout; in dumpIrqDurationCounts()
948 std::string readoutCode = readout; in dumpIrqDurationCounts()
980 std::string code = ""; in dumpIrqDurationCounts()
981 std::string threshold = ""; in dumpIrqDurationCounts()
982 std::string current = ""; in dumpIrqDurationCounts()
983 std::string ltDataMsg = ""; in dumpIrqDurationCounts()
984 std::string btDataMsg = ""; in dumpIrqDurationCounts()
985 std::string gtDataMsg = ""; in dumpIrqDurationCounts()
988 std::string channelNameSuffix = " \t"; in dumpIrqDurationCounts()
1030 std::string adjustedChannelName = channelNames[i] + channelNameSuffix; in dumpIrqDurationCounts()
1057 std::string name = row[0]; in dumpEvtCounter()
1058 std::string fileLocation = std::string(evtCntDir) + std::string(row[1]); in dumpEvtCounter()
1059 std::string count = "N/A\n"; in dumpEvtCounter()