Searched refs:readFileToInt (Results 1 – 3 of 3) sorted by relevance
/aosp_15_r20/hardware/google/pixel/pixelstats/ |
D | WaterEventReporter.cpp | 52 static bool readFileToInt(const char *const path, int *val) { in readFileToInt() function 65 static inline bool readFileToInt(const std::string &path, int *val) { in readFileToInt() function 66 return readFileToInt(path.c_str(), val); in readFileToInt() 103 if (readFileToInt(sysfs_path + "/fuse/enable", &fuse_enable)) in logEvent() 110 if (readFileToInt(sysfs_path + "/fault/enable", &fault_enable)) in logEvent() 158 if (readFileToInt(threshold_path, &sensor_threshold)) { in logEvent()
|
/aosp_15_r20/hardware/google/pixel/health/ |
D | BatteryDefender.cpp | 72 mTimeChargerPresentSecs = readFileToInt(kPathPersistChargerPresentTime); in loadPersistentStorage() 73 mTimeActiveSecs = readFileToInt(kPathPersistDefenderActiveTime); in loadPersistentStorage() 93 int BatteryDefender::readFileToInt(const std::string &path, const bool silent) { in readFileToInt() function in hardware::google::pixel::health::BatteryDefender 184 return readFileToInt(kPathUSBChargerPresent) != 0; in isWiredPresent() 213 return readFileToInt(kPathDOCKChargerPresent, true) != 0; in isDockPresent() 219 const bool chargerPresentWireless = readFileToInt(mPathWirelessPresent) != 0; in isChargePowerAvailable() 243 return readFileToInt(kPathDockState, true) == 1; in isDockDefendTrigger()
|
/aosp_15_r20/hardware/google/pixel/health/include/pixelhealth/ |
D | BatteryDefender.h | 177 int readFileToInt(const std::string &path, const bool silent = false);
|