Home
last modified time | relevance | path

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

1234567

/system/apex/apexd/
Dapexd_verity_test.cpp38 using android::base::ReadFileToString;
60 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST()
70 ASSERT_TRUE(ReadFileToString(hashtree_file, &second_hashtree)) in TEST()
92 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST()
108 ASSERT_TRUE(ReadFileToString(hashtree_file, &second_hashtree)) in TEST()
Dflattened_apex_test.cpp54 using android::base::ReadFileToString; in TEST()
57 ASSERT_TRUE(ReadFileToString("/proc/self/mountinfo", &mounts)); in TEST()
Dapex_manifest.cpp56 if (!android::base::ReadFileToString(path, &content)) { in ReadManifest()
/system/linkerconfig/modules/
Dconfigparser.cc25 using android::base::ReadFileToString;
37 if (!ReadFileToString(config_path, &file_content)) { in ParseLinkerConfig()
/system/core/init/
Dbootchart.cpp80 android::base::ReadFileToString("/proc/cmdline", &kernel_cmdline); in log_header()
101 if (android::base::ReadFileToString(procfile, &content)) { in log_file()
119 android::base::ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline); in log_processes()
124 if (android::base::ReadFileToString(StringPrintf("/proc/%d/stat", pid), &stat)) { in log_processes()
171 if (!android::base::ReadFileToString("/data/bootchart/enabled", &start)) { in do_bootchart_start()
Dfscrypt_init_extensions.cpp104 if (!android::base::ReadFileToString(ref_filename, &policy->key_raw_ref)) { in LookupPolicy()
111 if (!android::base::ReadFileToString(options_filename, &options_string)) { in LookupPolicy()
/system/core/debuggerd/
Dutil.cpp33 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &cmdline); in get_command_line()
51 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &result); in get_process_name()
58 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/comm", tid), &result); in get_thread_name()
/system/extras/simpleperf/
Dcmd_inject_test.cpp49 return android::base::ReadFileToString(tmpfile.path, output); in RunInjectCmd()
56 ASSERT_TRUE(android::base::ReadFileToString( in CheckMatchingExpectedData()
139 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &autofdo_output)); in TEST()
148 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &output)); in TEST()
Dread_symbol_map.h32 if (android::base::ReadFileToString(path, &content, /* follow_symlinks = */ true)) { in ReadSymbolMapFromFile()
Devent_type.cpp185 if (!android::base::ReadFileToString(id_path, &id_content)) { in ReadEventId()
215 if (!android::base::ReadFileToString(type_path, &type_content)) { in LoadTypes()
227 if (!android::base::ReadFileToString(event_path, &event_content)) { in LoadTypes()
249 if (!android::base::ReadFileToString(format_path, &format_content)) { in ParseEventFormats()
377 if (!android::base::ReadFileToString(filepath, &data)) { in ReadTracepointsFromFile()
457 if (!android::base::ReadFileToString(cpumask_path, &cpumask_content)) { in GetPmuCpumask()
Dcmd_debug_unwind_test.cpp68 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &output)); in TEST()
155 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &output)); in TEST()
/system/apex/libs/libapexutil/
Dapexutil.cpp31 using ::android::base::ReadFileToString;
39 if (!ReadFileToString(manifest_path, &content)) { in ParseApexManifest()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabuf_sysfs_stats.cpp36 if (!android::base::ReadFileToString(path, &temp)) { in ReadUintFromFile()
52 return android::base::ReadFileToString(exporter_path, exporter); in ReadBufferExporter()
85 if (!android::base::ReadFileToString(exp_name_path, &exporter_name)) { in GetDmabufSysfsStats()
/system/gsid/include/libgsi/
Dlibgsi.h70 if (android::base::ReadFileToString(key_dir_file, &key_dir) && in GetDsuMetadataKeyDir()
95 return android::base::ReadFileToString(kDsuActiveFile, active_dsu); in GetActiveDsu()
/system/libbase/
Dfile_test.cpp41 ASSERT_FALSE(android::base::ReadFileToString("/proc/does-not-exist", &s)); in TEST()
52 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
68 ASSERT_FALSE(android::base::ReadFileToString(link.path, &s)); in TEST()
70 ASSERT_TRUE(android::base::ReadFileToString(link.path, &s, true)); in TEST()
90 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
352 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
359 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
366 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
382 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
/system/vold/model/
DDisk.cpp44 using android::base::ReadFileToString;
197 if (!ReadFileToString(BuildKeyPath(normalizedGuid), &keyRaw)) { in createPrivateVolume()
261 if (!ReadFileToString(path, &tmp)) { in readMetadata()
272 if (!ReadFileToString(path, &tmp)) { in readMetadata()
305 if (!ReadFileToString(path, &tmp)) { in readMetadata()
573 if (!ReadFileToString(kSysfsLoopMaxMinors, &tmp)) { in getMaxMinors()
593 if (!ReadFileToString(kSysfsMmcMaxMinors, &tmp) && in getMaxMinors()
594 !ReadFileToString(kSysfsMmcMaxMinorsDeprecated, &tmp)) { in getMaxMinors()
/system/gsid/
Dlibgsi.cpp36 using android::base::ReadFileToString;
125 return android::base::ReadFileToString(kDsuInstallStatusFile, status); in GetInstallStatus()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp65 EXPECT_TRUE(base::ReadFileToString(vbmeta_digest_path, &vbmeta_digest_data)); in CalcVBMetaDigest()
205 EXPECT_TRUE(base::ReadFileToString(vbmeta_image, &vbmeta_buffer)); in GenerateImageAndExtractVBMetaData()
219 EXPECT_TRUE(base::ReadFileToString(image_path, &vbmeta_buffer)); in LoadVBMetaData()
236 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
265 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in ExtractPublicKeyAvbBlob()
/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp121 if (!android::base::ReadFileToString("/proc/bootconfig", &bootconfig)) return false; in fs_mgr_get_boot_config_from_bootconfig_source()
132 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) return false; in fs_mgr_get_boot_config_from_kernel_cmdline()
148 if (android::base::ReadFileToString(file_name, out_val)) { in fs_mgr_get_boot_config()
/system/extras/tests/kernel.config/
Dnfs_test.cpp24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
/system/core/storaged/
Dstoraged_info.cpp251 if (!ReadFileToString(emmc_sysfs + "rev", &buffer)) { in report_sysfs()
263 if (!ReadFileToString(emmc_sysfs + "pre_eol_info", &buffer)) { in report_sysfs()
271 if (!ReadFileToString(emmc_sysfs + "life_time", &buffer)) { in report_sysfs()
286 if (!ReadFileToString(health_file, &buffer)) { in report()
/system/extras/memory_replay/
DFile.cpp95 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo()
136 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo()
/system/core/property_service/property_info_checker/
Dproperty_info_checker.cpp15 using android::base::ReadFileToString;
150 if (!ReadFileToString(filename, &file_contents)) { in main()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp48 using android::base::ReadFileToString;
90 if (!ReadFileToString(path, &wchan_str, true)) { in get_wchan_data()
188 if (android::base::ReadFileToString("/proc/sys/fs/pipe-max-size", &pipe_size_str)) { in debuggerd_trigger_dump()
/system/server_configurable_flags/libflags/
Dserver_configurable_flags_test.cc105 ASSERT_EQ(true, ReadFileToString("/data/server_configurable_flags/reset_flags", &content)); in TEST()
138 ASSERT_EQ(true, ReadFileToString("/data/server_configurable_flags/reset_flags", &content)); in TEST()

1234567