Home
last modified time | relevance | path

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

123456

/system/core/debuggerd/
Dutil.cpp32 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &result); in get_process_name()
38 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/comm", tid), &result); in get_thread_name()
/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()
Dhost_init_verifier.cpp46 using android::base::ReadFileToString;
53 if (!ReadFileToString(passwd_file, &passwd)) { in GetVendorPasswd()
/system/core/base/
Dfile_test.cpp34 ASSERT_FALSE(android::base::ReadFileToString("/proc/does-not-exist", &s)); in TEST()
45 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
61 ASSERT_FALSE(android::base::ReadFileToString(link.path, &s)); in TEST()
63 ASSERT_TRUE(android::base::ReadFileToString(link.path, &s, true)); in TEST()
83 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
262 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
269 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
276 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
292 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
/system/tools/sysprop/tests/
DCppGenTest.cpp520 ASSERT_TRUE(android::base::ReadFileToString(header_output_path, in TEST()
525 ASSERT_TRUE(android::base::ReadFileToString(system_header_output_path, in TEST()
530 ASSERT_TRUE(android::base::ReadFileToString(source_output_path, in TEST()
/system/vold/model/
DDisk.cpp45 using android::base::ReadFileToString;
212 if (!ReadFileToString(BuildKeyPath(normalizedGuid), &keyRaw)) { in createPrivateVolume()
266 if (!ReadFileToString(path, &tmp)) { in readMetadata()
277 if (!ReadFileToString(path, &tmp)) { in readMetadata()
310 if (!ReadFileToString(path, &tmp)) { in readMetadata()
571 if (!ReadFileToString(kSysfsLoopMaxMinors, &tmp)) { in getMaxMinors()
591 if (!ReadFileToString(kSysfsMmcMaxMinors, &tmp) && in getMaxMinors()
592 !ReadFileToString(kSysfsMmcMaxMinorsDeprecated, &tmp)) { in getMaxMinors()
/system/extras/libfscrypt/
Dfscrypt_init_extensions.cpp106 if (!android::base::ReadFileToString(ref_filename, &policy)) { in set_system_de_policy_on()
113 if (!android::base::ReadFileToString(type_filename, &modestring)) { in set_system_de_policy_on()
/system/update_engine/common/
Dprefs_unittest.cc102 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
118 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F()
179 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
192 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
200 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
243 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
251 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp65 EXPECT_TRUE(base::ReadFileToString(vbmeta_digest_path, &vbmeta_digest_data)); in CalcVBMetaDigest()
204 EXPECT_TRUE(base::ReadFileToString(vbmeta_image, &vbmeta_buffer)); in GenerateImageAndExtractVBMetaData()
218 EXPECT_TRUE(base::ReadFileToString(image_path, &vbmeta_buffer)); in LoadVBMetaData()
235 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
264 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in ExtractPublicKeyAvbBlob()
/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp83 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) return false; in fs_mgr_get_boot_config_from_kernel_cmdline()
99 if (android::base::ReadFileToString(file_name, out_val)) { in fs_mgr_get_boot_config()
/system/core/storaged/
Dstoraged_info.cpp255 if (!ReadFileToString(emmc_sysfs + "rev", &buffer)) { in report_sysfs()
267 if (!ReadFileToString(emmc_sysfs + "pre_eol_info", &buffer)) { in report_sysfs()
275 if (!ReadFileToString(emmc_sysfs + "life_time", &buffer)) { in report_sysfs()
303 if (!ReadFileToString(emmc_debugfs, &buffer) || in report_debugfs()
338 if (!ReadFileToString(health_file, &buffer)) { in report()
/system/extras/tests/kernel.config/
Dnfs_test.cpp24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
/system/core/property_service/property_info_checker/
Dproperty_info_checker.cpp15 using android::base::ReadFileToString;
150 if (!ReadFileToString(filename, &file_contents)) { in main()
/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()
/system/extras/simpleperf/
Dtracing.cpp128 if (!android::base::ReadFileToString( in RecordHeaderFiles()
134 if (!android::base::ReadFileToString( in RecordHeaderFiles()
149 if (android::base::ReadFileToString(format_path, &format_data)) { in RecordFtraceFiles()
161 if (!android::base::ReadFileToString(format_path, &format_data)) { in RecordEventFiles()
172 if (!android::base::ReadFileToString( in RecordPrintkFormatsFile()
Dtest_util.h112 if (!android::base::ReadFileToString(tmpfile_->path, &s)) { in Finish()
Denvironment_test.cpp33 ASSERT_TRUE(android::base::ReadFileToString("/proc/self/maps", &content)); in TEST()
/system/core/init/test_service/
Dtest_service.cpp43 bool res = android::base::ReadFileToString("/proc/self/status", &status, true); in main()
/system/core/libprocinfo/
Dprocess_map_benchmark.cpp57 CHECK(android::base::ReadFileToString(map_file, &content)); in BM_unwindstack_BufferMaps()
/system/core/libmemtrack/
Dmemtrack_test.cpp34 if (!::android::base::ReadFileToString(fname, name)) { in getprocname()
/system/gsid/
Dlibgsi.cpp127 return android::base::ReadFileToString(kGsiInstallStatusFile, status); in GetInstallStatus()
/system/extras/verity/
Dverity_verifier.cpp35 if (!android::base::ReadFileToString(path, &content) || in load_key()
/system/vold/
DCheckpoint.cpp200 if (!android::base::ReadFileToString(kMetadataCPFile, &oldContent)) { in abort_metadata_file()
228 ret = android::base::ReadFileToString(kMetadataCPFile, &content); in cp_needsRollback()
257 ret = android::base::ReadFileToString(kMetadataCPFile, &content); in cp_needsCheckpoint()
297 if (android::base::ReadFileToString(bow_device + "/bow/free", &content)) { in cp_healthDaemon()
699 if (!android::base::ReadFileToString(kMetadataCPFile, &oldContent)) { in cp_markBootAttempt()
DIdleMaint.cpp43 using android::base::ReadFileToString;
210 if (!ReadFileToString(path + "/dirty_segments", &dirty_segments)) { in waitForGc()
278 if (!ReadFileToString(path, &require)) { in runDevGcFstab()
/system/core/base/include/android-base/
Dfile.h81 bool ReadFileToString(const std::string& path, std::string* content,

123456