Lines Matching refs:ReadFileToInt

151 bool SysfsCollector::ReadFileToInt(const std::string &path, int *val) {  in ReadFileToInt()  function in android::hardware::google::pixel::SysfsCollector
152 return ReadFileToInt(path.c_str(), val); in ReadFileToInt()
155 bool SysfsCollector::ReadFileToInt(const char *const path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::SysfsCollector
421 } else if (!ReadFileToInt(kSpeakerVersionPath, &version)) { in logSpeakerHealthStats()
533 if (!ReadFileToInt(kBatteryCapacityCC, &delta_cc_sum) || in logBatteryCapacity()
534 !ReadFileToInt(kBatteryCapacityVFSOC, &delta_vfsoc_sum)) in logBatteryCapacity()
570 if (!ReadFileToInt(kUFSLifetimeA, &lifetimeA) || in logUFSLifetime()
571 !ReadFileToInt(kUFSLifetimeB, &lifetimeB) || in logUFSLifetime()
572 !ReadFileToInt(kUFSLifetimeC, &lifetimeC)) { in logUFSLifetime()
606 if (!ReadFileToInt(kUFSErrStatsPath[i], &value)) { in logUFSErrorStats()
657 if (!ReadFileToInt(kF2fsStatsDir + "/dirty_segments", &dirty)) { in logF2fsStats()
661 if (!ReadFileToInt(kF2fsStatsDir + "/free_segments", &free)) { in logF2fsStats()
665 if (!ReadFileToInt(kF2fsStatsDir + "/cp_foreground_calls", &cp_calls_fg)) { in logF2fsStats()
669 if (!ReadFileToInt(kF2fsStatsDir + "/cp_background_calls", &cp_calls_bg)) { in logF2fsStats()
673 if (!ReadFileToInt(kF2fsStatsDir + "/gc_foreground_calls", &gc_calls_fg)) { in logF2fsStats()
677 if (!ReadFileToInt(kF2fsStatsDir + "/gc_background_calls", &gc_calls_bg)) { in logF2fsStats()
681 if (!ReadFileToInt(kF2fsStatsDir + "/moved_blocks_foreground", &moved_block_fg)) { in logF2fsStats()
685 if (!ReadFileToInt(kF2fsStatsDir + "/moved_blocks_background", &moved_block_bg)) { in logF2fsStats()
689 if (!ReadFileToInt(kF2fsStatsDir + "/avg_vblocks", &vblocks)) { in logF2fsStats()
736 if (!ReadFileToInt(path, &peak_atomic_write)) { in logF2fsAtomicWriteInfo()
747 if (!ReadFileToInt(path, &committed_atomic_block)) { in logF2fsAtomicWriteInfo()
758 if (!ReadFileToInt(path, &revoked_atomic_block)) { in logF2fsAtomicWriteInfo()
798 if (!ReadFileToInt(path, &compr_written_blocks)) { in logF2fsCompressionInfo()
804 if (!ReadFileToInt(path, &compr_saved_blocks)) { in logF2fsCompressionInfo()
815 if (!ReadFileToInt(path, &compr_new_inodes)) { in logF2fsCompressionInfo()
856 if (!ReadFileToInt(gcReclaimedSegmentsPath, &reclaimed_segments)) { in getReclaimedSegments()
1210 if (!ReadFileToInt(kF2fsStatsPath + (userdataBlock + "/mounted_time_sec"), &mounted_time_sec)) { in logBootStats()
2123 if (ReadFileToInt(modempath, &(datamap[i].modem_val))) { in logPcieLinkStats()
2146 if (ReadFileToInt(wifipath, &(datamap[i].wifi_val))) { in logPcieLinkStats()