Home
last modified time | relevance | path

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

12

/external/libchrome/base/process/
Dprocess_metrics_linux.cc46 if (!ReadFileToString(file, &file_as_string)) in ReadFileToUint64()
64 if (!ReadFileToString(stat_file, &status)) in ReadProcStatusAndGetFieldAsSizeT()
106 if (!ReadFileToString(sched_file, &sched_data)) in ReadProcSchedAndGetFieldAsUint64()
152 if (ReadFileToString(stat_path, &stat)) { in GetProcessCPU()
265 if (!ReadFileToString(io_file, &proc_io_contents)) in GetIOCounters()
351 bool ret = ReadFileToString(totmaps_file, &totmaps_data); in GetWorkingSetKBytesTotmaps()
404 bool ret = ReadFileToString(statm_file, &statm); in GetWorkingSetKBytesStatm()
708 if (!ReadFileToString(meminfo_file, &meminfo_data)) { in GetSystemMemoryInfo()
730 if (ReadFileToString(geminfo_file, &geminfo_data)) { in GetSystemMemoryInfo()
746 if (ReadFileToString(mali_memory_file, &mali_memory_data)) { in GetSystemMemoryInfo()
[all …]
Dprocess_iterator_linux.cc50 if (!ReadFileToString(cmd_line_file, &cmd_line)) in GetProcCmdline()
Dinternal_linux.cc58 if (!ReadFileToString(file, buffer)) { in ReadProcFile()
/external/libchrome/base/json/
Djson_file_value_serializer.cc65 int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { in ReadFileToString() function in JSONFileValueDeserializer
67 if (!base::ReadFileToString(json_file_path_, json_string)) { in ReadFileToString()
108 int error = ReadFileToString(&json_string); in Deserialize()
Djson_file_value_serializer.h96 int ReadFileToString(std::string* json_string);
/external/protobuf/src/google/protobuf/testing/
Dfile.h53 static bool ReadFileToString(const string& name, string* output);
85 return ReadFileToString(name, output); in GetContents()
Dfile.cc65 bool File::ReadFileToString(const string& name, string* output) { in ReadFileToString() function in google::protobuf::File
82 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
/external/libbrillo/brillo/
Dprocess_unittest.cc177 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in CheckStderrCaptured()
210 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
238 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
278 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in TEST_F()
288 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in TEST_F()
Dkey_value_store_unittest.cc19 using base::ReadFileToString;
56 ASSERT_TRUE(ReadFileToString(FilePath(saved_temp_file_), &read_blob)); in TEST_F()
Dtest_helpers.h21 EXPECT_TRUE(base::ReadFileToString(base::FilePath(file_path), &contents)); in ExpectFileEquals()
Dosrelease_reader.cc43 if (!base::ReadFileToString(path, &content)) { in Load()
Dkey_value_store.cc42 if (!base::ReadFileToString(path, &file_data)) in Load()
Dfile_utils_unittest.cc40 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents)); in ExpectFileContains()
/external/avb/test/
Davbtool_unittest.cc70 ASSERT_TRUE(base::ReadFileToString(path, &printed_version)); in TEST_F()
536 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashFooterTest()
718 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
878 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterTest()
1104 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterFECTest()
1233 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
1268 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
1326 ASSERT_TRUE(base::ReadFileToString(vbmeta_path, &image_data)); in TEST_F()
1458 ASSERT_TRUE(base::ReadFileToString(vbmeta_path, &image_data)); in TEST_F()
1475 ASSERT_TRUE(base::ReadFileToString(pk_path, &pk_data)); in TEST_F()
[all …]
Davb_unittest_util.h129 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
142 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in PublicKeyAVB()
Davb_atx_validate_unittest.cc225 ASSERT_TRUE(base::ReadFileToString(base::FilePath(kMetadataPath), &tmp)); in ReadDefaultData()
229 base::ReadFileToString(base::FilePath(kPermanentAttributesPath), &tmp)); in ReadDefaultData()
639 base::ReadFileToString(base::FilePath(kPermanentAttributesPath), &tmp)); in ReadAtxDefaultData()
/external/libchrome/base/
Dsys_info_linux.cc62 ReadFileToString(FilePath("/proc/cpuinfo"), &contents); in CPUModelName()
Dcpu.cc109 ReadFileToString(FilePath("/proc/cpuinfo"), &contents); in LazyCpuInfoValue()
Dsys_info_chromeos.cc77 ReadFileToString(path, &lsb_release); in Parse()
/external/libbrillo/policy/
Ddevice_policy_impl.cc32 if (!base::ReadFileToString(key_file, public_key) || public_key->empty()) { in ReadPublicKeyFromFile()
112 if (!base::ReadFileToString(policy_path_, &polstr) || polstr.empty()) { in LoadPolicy()
/external/libese/tools/ese_ls_provision/
Dese_ls_provision.cpp92 if (!android::base::ReadFileToString(filename, result)) { in readFileToString()
/external/libchrome/base/files/
Dimportant_file_writer_unittest.cc29 if (!ReadFileToString(path, &content)) { in GetFileContent()
Dfile_util.h146 BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents);
Dfile_util.cc164 bool ReadFileToString(const FilePath& path, std::string* contents) { in ReadFileToString() function
/external/libbrillo/brillo/message_loops/
Dbase_message_loop.cc304 if (!base::ReadFileToString(base::FilePath(kMiscMinorPath), &proc_misc)) in GetBinderMinor()

12