Home
last modified time | relevance | path

Searched refs:ReadFileToInt (Results 1 – 6 of 6) sorted by relevance

/hardware/google/pixel/pixelstats/
DMitigationStatsReporter.cpp43 bool MitigationStatsReporter::ReadFileToInt(const std::string &path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::MitigationStatsReporter
139 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/batoilo_cap", in logMitigationCap()
141 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/batoilo2_cap", in logMitigationCap()
143 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/ocp_cpu1_cap", in logMitigationCap()
145 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/ocp_cpu2_cap", in logMitigationCap()
147 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/ocp_gpu_cap", in logMitigationCap()
149 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/ocp_tpu_cap", in logMitigationCap()
151 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/smpl_warn_cap", in logMitigationCap()
153 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/soft_ocp_cpu1_cap", in logMitigationCap()
155 ReadFileToInt(kMitigationDir + "/last_triggered_capacity/soft_ocp_cpu2_cap", in logMitigationCap()
[all …]
DUeventListener.cpp88 bool UeventListener::ReadFileToInt(const std::string &path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::UeventListener
89 return ReadFileToInt(path.c_str(), val); in ReadFileToInt()
92 bool UeventListener::ReadFileToInt(const char *const path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::UeventListener
166 ReadFileToInt((kUsbPortOverheatPath + "/plug_temp"), &plug_temperature_deci_c); in ReportUsbPortOverheatEvent()
167 ReadFileToInt((kUsbPortOverheatPath + "/max_temp"), &max_temperature_deci_c); in ReportUsbPortOverheatEvent()
168 ReadFileToInt((kUsbPortOverheatPath + "/trip_time"), &time_to_overheat_secs); in ReportUsbPortOverheatEvent()
169 ReadFileToInt((kUsbPortOverheatPath + "/hysteresis_time"), &time_to_hysteresis_secs); in ReportUsbPortOverheatEvent()
170 ReadFileToInt((kUsbPortOverheatPath + "/cleared_time"), &time_to_inactive_secs); in ReportUsbPortOverheatEvent()
DSysfsCollector.cpp143 bool SysfsCollector::ReadFileToInt(const std::string &path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::SysfsCollector
144 return ReadFileToInt(path.c_str(), val); in ReadFileToInt()
147 bool SysfsCollector::ReadFileToInt(const char *const path, int *val) { in ReadFileToInt() function in android::hardware::google::pixel::SysfsCollector
413 } else if (!ReadFileToInt(kSpeakerVersionPath, &version)) { in logSpeakerHealthStats()
516 if (!ReadFileToInt(kBatteryCapacityCC, &delta_cc_sum) || in logBatteryCapacity()
517 !ReadFileToInt(kBatteryCapacityVFSOC, &delta_vfsoc_sum)) in logBatteryCapacity()
553 if (!ReadFileToInt(kUFSLifetimeA, &lifetimeA) || in logUFSLifetime()
554 !ReadFileToInt(kUFSLifetimeB, &lifetimeB) || in logUFSLifetime()
555 !ReadFileToInt(kUFSLifetimeC, &lifetimeC)) { in logUFSLifetime()
589 if (!ReadFileToInt(kUFSErrStatsPath[i], &value)) { in logUFSErrorStats()
[all …]
/hardware/google/pixel/pixelstats/include/pixelstats/
DMitigationStatsReporter.h84 bool ReadFileToInt(const std::string &path, int *val);
DUeventListener.h78 bool ReadFileToInt(const std::string &path, int *val);
79 bool ReadFileToInt(const char *path, int *val);
DSysfsCollector.h107 bool ReadFileToInt(const std::string &path, int *val);
108 bool ReadFileToInt(const char *path, int *val);