/hardware/interfaces/health/storage/impl_common/ |
D | impl_common.cpp | 24 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/ |
D | PcaChargeStats.cpp | 32 using android::base::ReadFileToString; 39 if (!ReadFileToString(kPcaChargeMetricsPath.c_str(), file_contents)) { in CheckPcaContentsAndAck()
|
D | SysfsCollector.cpp | 42 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 …]
|
D | WirelessChargeStats.cpp | 32 using android::base::ReadFileToString; 59 if (!ReadFileToString(kWirelessChargeMetricsPath.c_str(), file_contents)) in CheckWirelessContentsAndAck()
|
D | MmMetricsReporter.cpp | 41 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()
|
D | BatteryCapacityReporter.cpp | 39 using android::base::ReadFileToString; 76 if (!ReadFileToString(path, &batterySSOCContents)) { in parse()
|
D | UeventListener.cpp | 68 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()
|
D | WlcReporter.cpp | 50 using android::base::ReadFileToString; 201 if (!ReadFileToString(ptmc_path, &file_contents)) { in reportInBackground()
|
D | BatteryEEPROMReporter.cpp | 36 using android::base::ReadFileToString; 56 if (!ReadFileToString(path.c_str(), &file_contents)) { in checkAndReport()
|
D | MitigationStatsReporter.cpp | 38 using android::base::ReadFileToString; 46 if (!ReadFileToString(path.c_str(), &file_contents)) { in ReadFileToInt()
|
/hardware/google/pixel/rebalance_interrupts/ |
D | rebalance_interrupts.cpp | 61 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/ |
D | CycleCountBackupRestore.cpp | 53 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()
|
D | LowBatteryShutdownMetrics.cpp | 28 using android::base::ReadFileToString; 74 if (!ReadFileToString(kVoltageAvg, &voltage_avg)) { in saveVoltageAvg()
|
D | BatteryMetricsLogger.cpp | 90 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()
|
D | ChargerDetect.cpp | 39 if (android::base::ReadFileToString(path.c_str(), buf)) { in readFromFile()
|
/hardware/google/pixel/health/test/ |
D | TestBatteryDefender.cpp | 32 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/ |
D | thermal_files.cpp | 53 if (!::android::base::ReadFileToString(file_path, &sensor_reading)) { in readThermalFile()
|
D | power_files.cpp | 35 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/ |
D | VtsHalPowerV1_0TargetTest.cpp | 79 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/ |
D | cpu_usage.cpp | 33 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/ |
D | ConfigVerifier.cc | 35 if (!android::base::ReadFileToString(config_path, &json_doc)) { in VerifyNodes()
|
/hardware/interfaces/usb/gadget/1.2/default/ |
D | UsbGadget.h | 47 using ::android::base::ReadFileToString;
|
/hardware/google/pixel/powerstats/dataproviders/ |
D | IioEnergyMeterDataSelector.cpp | 98 if (!::android::base::ReadFileToString(configPath, &data)) { in applyConfigsByAscendingPriority()
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/ |
D | FileNode.cc | 109 if (!android::base::ReadFileToString(node_path_, &node_value)) { in DumpToFd()
|
/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/ |
D | config.cpp | 92 bool config_read = ReadFileToString(file_name, &config); in parseFromFile()
|