Home
last modified time | relevance | path

Searched refs:ReadFileToString (Results 1 – 25 of 38) sorted by relevance

12

/hardware/interfaces/health/storage/impl_common/
Dimpl_common.cpp24 using ::android::base::ReadFileToString;
74 if (!ReadFileToString(gc_path, &require_gc)) { in GarbageCollect()
84 if (!wb_path.empty() && !ReadFileToString(wb_path, &wb_avail)) { in GarbageCollect()
129 if (ReadFileToString(path, &require_gc)) { in DebugDump()
143 if (ReadFileToString(wb_path, &wb_available)) { in DebugDump()
/hardware/google/pixel/pixelstats/
DPcaChargeStats.cpp32 using android::base::ReadFileToString;
39 if (!ReadFileToString(kPcaChargeMetricsPath.c_str(), file_contents)) { in CheckPcaContentsAndAck()
DSysfsCollector.cpp42 using android::base::ReadFileToString;
93 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt()
120 if (!ReadFileToString(kCycleCountBinsPath, &file_contents)) { in logBatteryChargeCycles()
168 if (!ReadFileToString(kCodecPath, &file_contents)) { in logCodecFailed()
192 if (!ReadFileToString(kCodec1Path, &file_contents)) { in logCodec1Failed()
216 if (!ReadFileToString(path, &file_contents)) { in reportSlowIoFromFile()
255 if (!ReadFileToString(kImpedancePath, &file_contents)) { in logSpeakerImpedance()
305 if (!ReadFileToString(kImpedancePath, &file_contents)) { in logSpeakerHealthStats()
315 if (!ReadFileToString(kSpeakerTemperaturePath, &file_contents)) { in logSpeakerHealthStats()
325 if (!ReadFileToString(kSpeakerExcursionPath, &file_contents)) { in logSpeakerHealthStats()
[all …]
DWirelessChargeStats.cpp32 using android::base::ReadFileToString;
59 if (!ReadFileToString(kWirelessChargeMetricsPath.c_str(), file_contents)) in CheckWirelessContentsAndAck()
DMmMetricsReporter.cpp41 using android::base::ReadFileToString;
110 if (!ReadFileToString(path, &file_contents)) { in ReadFileToUint()
151 if (!ReadFileToString(path, &file_contents)) { in readVmStat()
332 if (!ReadFileToString(path, &file_contents)) { in isValidPid()
363 if (!ReadFileToString(path, &file_contents)) in findPidByProcessName()
384 if (!ReadFileToString(path, &file_contents)) { in getStimeByPid()
DBatteryCapacityReporter.cpp39 using android::base::ReadFileToString;
76 if (!ReadFileToString(path, &batterySSOCContents)) { in parse()
DUeventListener.cpp68 using android::base::ReadFileToString;
94 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt()
342 if (!ReadFileToString(kChargeMetricsPath.c_str(), &file_contents)) { in ReportChargeMetricsEvent()
430 if (!ReadFileToString(kTypeCPartnerVidPath.c_str(), &file_contents_vid)) { in ReportTypeCPartnerId()
441 if (!ReadFileToString(kTypeCPartnerPidPath.c_str(), &file_contents_pid)) { in ReportTypeCPartnerId()
DWlcReporter.cpp50 using android::base::ReadFileToString;
201 if (!ReadFileToString(ptmc_path, &file_contents)) { in reportInBackground()
DBatteryEEPROMReporter.cpp36 using android::base::ReadFileToString;
56 if (!ReadFileToString(path.c_str(), &file_contents)) { in checkAndReport()
DMitigationStatsReporter.cpp38 using android::base::ReadFileToString;
46 if (!ReadFileToString(path.c_str(), &file_contents)) { in ReadFileToInt()
/hardware/google/pixel/rebalance_interrupts/
Drebalance_interrupts.cpp61 using android::base::ReadFileToString;
74 if (!ReadFileToString(POLICY0_CORES_PATH, &policy0_cores_unparsed)) in Policy0AffectedCpus()
105 if (!ReadFileToString(irq_actions_path, &irq_actions)) in AddEntryToIrqmap()
153 ReadFileToString(proc_path, &smp_affinity); in FindUnassignedIrqs()
192 ReadFileToString(path, &readback); in ReportIfAffinityUpdated()
/hardware/google/pixel/health/
DCycleCountBackupRestore.cpp53 if (!android::base::ReadFileToString(serial_path_, &device_battery_serial)) { in CheckSerial()
58 if (!android::base::ReadFileToString(kPersistSerial, &persist_battery_serial)) { in CheckSerial()
95 if (!android::base::ReadFileToString(path, &buffer)) { in Read()
DLowBatteryShutdownMetrics.cpp28 using android::base::ReadFileToString;
74 if (!ReadFileToString(kVoltageAvg, &voltage_avg)) { in saveVoltageAvg()
DBatteryMetricsLogger.cpp90 if (!android::base::ReadFileToString(kBatteryAvgResistance, &file_content)) { in uploadAverageBatteryResistance()
163 if (!android::base::ReadFileToString(kBatteryResistance, &resistance_str)) { in recordSample()
171 if (!android::base::ReadFileToString(kBatteryOCV, &ocv_str)) { in recordSample()
DChargerDetect.cpp39 if (android::base::ReadFileToString(path.c_str(), buf)) { in readFromFile()
/hardware/google/pixel/health/test/
DTestBatteryDefender.cpp32 virtual bool ReadFileToString(const std::string &path, std::string *content,
45 MOCK_METHOD3(ReadFileToString,
59 bool ReadFileToString(const std::string &path, std::string *content, bool follow_symlinks) { in ReadFileToString() function
60 return mock->ReadFileToString(path, content, follow_symlinks); in ReadFileToString()
141 EXPECT_CALL(*mock, ReadFileToString(_, _, _)).Times(AnyNumber()); in SetUp()
146 ON_CALL(*mock, ReadFileToString(_, _, _)) in SetUp()
168 ON_CALL(*mock, ReadFileToString(kPathWiredChargerPresent, _, _)) in usbPresent()
173 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerPresent, _, _)) in wirelessPresent()
178 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerPresent, _, _)) in wirelessNotPresent()
210 ON_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in initTo1000sConnectedCapacityReached()
[all …]
/hardware/google/pixel/thermal/utils/
Dthermal_files.cpp53 if (!::android::base::ReadFileToString(file_path, &sensor_reading)) { in readThermalFile()
Dpower_files.cpp35 using android::base::ReadFileToString;
155 if (!ReadFileToString(StringPrintf("%s/%s", devicePath.data(), kEnergyValueNode.data()), in findEnergySourceToWatch()
181 if (!android::base::ReadFileToString(path, &deviceEnergyContent)) { in updateEnergyValues()
/hardware/interfaces/power/1.0/vts/functional/
DVtsHalPowerV1_0TargetTest.cpp79 if (!android::base::ReadFileToString(CPU_GOVERNOR_PATH, &old_governor) || in TEST_P()
80 !android::base::ReadFileToString(AVAILABLE_GOVERNORS_PATH, &governors)) { in TEST_P()
/hardware/google/pixel/perfstatsd/
Dcpu_usage.cpp33 if (android::base::ReadFileToString("/proc/stat", &procstat)) { in CpuUsage()
88 if (android::base::ReadFileToString("/proc/" + pidStr + "/stat", &pidStat)) { in profileProcess()
160 if (android::base::ReadFileToString("/proc/stat", &procStat)) { in getOverallUsage()
/hardware/google/pixel/power-libperfmgr/libperfmgr/tools/
DConfigVerifier.cc35 if (!android::base::ReadFileToString(config_path, &json_doc)) { in VerifyNodes()
/hardware/interfaces/usb/gadget/1.2/default/
DUsbGadget.h47 using ::android::base::ReadFileToString;
/hardware/google/pixel/powerstats/dataproviders/
DIioEnergyMeterDataSelector.cpp98 if (!::android::base::ReadFileToString(configPath, &data)) { in applyConfigsByAscendingPriority()
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DFileNode.cc109 if (!android::base::ReadFileToString(node_path_, &node_value)) { in DumpToFd()
/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/
Dconfig.cpp92 bool config_read = ReadFileToString(file_name, &config); in parseFromFile()

12