Lines Matching refs:string
36 int getCommandOutput(const char *cmd, std::string *output) { in getCommandOutput()
76 int getFilesInDir(const char *directory, std::vector<std::string> *files) { in getFilesInDir()
77 std::string content; in getFilesInDir()
119 std::vector<std::string> files; in readContentsOfDir()
120 std::string content; in readContentsOfDir()
121 std::string fileLocation; in readContentsOfDir()
130 if (useStrMatch && std::string::npos == std::string(file).find(strMatch)) { in readContentsOfDir()
134 fileLocation = std::string(directory) + std::string(file); in readContentsOfDir()
164 if (std::string::npos != std::string(entry->d_name).find(tcpmPsy)) { in dumpTcpmPsyUevent()
165 std::string fullPath("/sys/class/power_supply/" + (const std::string)entry->d_name + in dumpTcpmPsyUevent()
219 std::string content; in dumpMaxFg()
277 std::vector<std::string> files; in dumpTcpc()
278 std::string content; in dumpTcpc()
292 if (std::string::npos == std::string(file).find(i2cSubDirMatch)) { in dumpTcpc()
296 std::string fileName = directory + file + "/" + std::string(tcpcVal[1]); in dumpTcpc()
373 std::vector<std::string> files; in dumpBatteryDefend()
375 std::string content; in dumpBatteryDefend()
376 std::string fileLocation; in dumpBatteryDefend()
385 if (std::string(entry->d_name).find(config[2]) != std::string::npos && in dumpBatteryDefend()
395 fileLocation = std::string(config[1]) + std::string(file); in dumpBatteryDefend()
410 void printValuesOfDirectory(const char *directory, std::string debugfs, const char *strMatch) { in printValuesOfDirectory()
411 std::vector<std::string> files; in printValuesOfDirectory()
413 std::string content; in printValuesOfDirectory()
419 printTitle((debugfs + std::string(strMatch) + "/" + std::string(info)).c_str()); in printValuesOfDirectory()
421 if (std::string(entry->d_name).find(strMatch) != std::string::npos) in printValuesOfDirectory()
428 std::string fileDirectory = debugfs + file; in printValuesOfDirectory()
429 std::string fileLocation = fileDirectory + "/" + std::string(info); in printValuesOfDirectory()
443 const std::string pmic_bus = "/sys/devices/platform/10cb0000.hsi2c/i2c-11/11-0066"; in dumpChg()
445 const std::string chg_name_cmd = "/sys/class/power_supply/main-charger/device/name"; in dumpChg()
446 const std::string pmic_name_cmd = pmic_bus + "/name"; in dumpChg()
447 const std::string pmic_reg_dump_file = pmic_bus + "/registers_dump"; in dumpChg()
448 const std::string reg_dump_str = " registers dump"; in dumpChg()
452 std::string chg_name; in dumpChg()
453 std::string pmic_name; in dumpChg()
460 const std::string chg_reg_dump_title = chg_name + reg_dump_str; in dumpChg()
469 const std::string pmic_reg_dump_title = pmic_name + reg_dump_str; in dumpChg()
481 const std::string debugfs = "/d/"; in dumpChgUserDebug()
525 std::string result; in dumpBatteryEeprom()
526 std::string xxdCmd; in dumpBatteryEeprom()
533 xxdCmd = "xxd " + std::string(file); in dumpBatteryEeprom()
550 std::vector<std::string> files; in dumpChargerStats()
551 std::string content; in dumpChargerStats()
566 if (std::string(entry->d_name).find(stat[2]) != std::string::npos) in dumpChargerStats()
573 std::string fileLocation = std::string(stat[1]) + file; in dumpChargerStats()
607 std::string content; in dumpGvoteables()
608 std::vector<std::string> files; in dumpGvoteables()
620 std::string fileLocation = std::string(directory) + file + std::string(statusName); in dumpGvoteables()
659 std::vector<std::string> files; in dumpMitigationStats()
660 std::string content; in dumpMitigationStats()
661 std::string fileLocation; in dumpMitigationStats()
662 std::string source; in dumpMitigationStats()
663 std::string subModuleName; in dumpMitigationStats()
677 fileLocation = std::string(directory) + std::string(file); in dumpMitigationStats()
687 subModuleName = std::string(file); in dumpMitigationStats()
690 fileLocation = std::string(capacityDirectory) + std::string(subModuleName) + in dumpMitigationStats()
691 std::string(capacitySuffix); in dumpMitigationStats()
700 fileLocation = std::string(timestampDirectory) + std::string(subModuleName) + in dumpMitigationStats()
701 std::string(timeSuffix); in dumpMitigationStats()
710 fileLocation = std::string(voltageDirectory) + std::string(subModuleName) + in dumpMitigationStats()
711 std::string(voltageSuffix); in dumpMitigationStats()
747 std::vector<std::string> files; in dumpMitigationDirs()
748 std::string content; in dumpMitigationDirs()
749 std::string fileLocation; in dumpMitigationDirs()
750 std::string source; in dumpMitigationDirs()
751 std::string subModuleName; in dumpMitigationDirs()
752 std::string readout; in dumpMitigationDirs()
763 fileLocation = std::string(directories[i]) + std::string(file); in dumpMitigationDirs()
770 subModuleName = std::string(file); in dumpMitigationDirs()
820 std::vector<std::string> channelNames; in dumpIrqDurationCounts()
821 std::vector<std::string> channelData[DUR_MAX]; in dumpIrqDurationCounts()
822 std::vector<std::string> pwrwarnThreshold[PWRWARN_MAX]; in dumpIrqDurationCounts()
823 std::vector<std::string> pwrwarnCode[PWRWARN_MAX]; in dumpIrqDurationCounts()
824 std::vector<std::string> lpfCurrentVals[PWRWARN_MAX]; in dumpIrqDurationCounts()
825 std::vector<std::string> files; in dumpIrqDurationCounts()
827 std::string content; in dumpIrqDurationCounts()
828 std::string token; in dumpIrqDurationCounts()
829 std::string tokenCh; in dumpIrqDurationCounts()
830 std::string fileLocation; in dumpIrqDurationCounts()
859 fileLocation = std::string(pwrwarnDirectories[i]) + std::string(file); in dumpIrqDurationCounts()
864 std::string readout; in dumpIrqDurationCounts()
868 std::string readoutThreshold = readout; in dumpIrqDurationCounts()
871 std::string readoutCode = readout; in dumpIrqDurationCounts()
901 std::string code = ""; in dumpIrqDurationCounts()
902 std::string threshold = ""; in dumpIrqDurationCounts()
903 std::string current = ""; in dumpIrqDurationCounts()
904 std::string ltDataMsg = ""; in dumpIrqDurationCounts()
905 std::string btDataMsg = ""; in dumpIrqDurationCounts()
906 std::string gtDataMsg = ""; in dumpIrqDurationCounts()
909 std::string channelNameSuffix = " \t"; in dumpIrqDurationCounts()
932 std::string adjustedChannelName = channelNames[i] + channelNameSuffix; in dumpIrqDurationCounts()