/system/core/debuggerd/ |
D | util.cpp | 32 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/ |
D | bootchart.cpp | 80 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()
|
D | host_init_verifier.cpp | 46 using android::base::ReadFileToString; 53 if (!ReadFileToString(passwd_file, &passwd)) { in GetVendorPasswd()
|
/system/core/base/ |
D | file_test.cpp | 34 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/ |
D | CppGenTest.cpp | 520 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/ |
D | Disk.cpp | 45 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/ |
D | fscrypt_init_extensions.cpp | 106 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/ |
D | prefs_unittest.cc | 102 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/ |
D | fs_avb_test_util.cpp | 65 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/ |
D | fs_mgr_boot_config.cpp | 83 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/ |
D | storaged_info.cpp | 255 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/ |
D | nfs_test.cpp | 24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
|
/system/core/property_service/property_info_checker/ |
D | property_info_checker.cpp | 15 using android::base::ReadFileToString; 150 if (!ReadFileToString(filename, &file_contents)) { in main()
|
/system/server_configurable_flags/libflags/ |
D | server_configurable_flags_test.cc | 105 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/ |
D | tracing.cpp | 128 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()
|
D | test_util.h | 112 if (!android::base::ReadFileToString(tmpfile_->path, &s)) { in Finish()
|
D | environment_test.cpp | 33 ASSERT_TRUE(android::base::ReadFileToString("/proc/self/maps", &content)); in TEST()
|
/system/core/init/test_service/ |
D | test_service.cpp | 43 bool res = android::base::ReadFileToString("/proc/self/status", &status, true); in main()
|
/system/core/libprocinfo/ |
D | process_map_benchmark.cpp | 57 CHECK(android::base::ReadFileToString(map_file, &content)); in BM_unwindstack_BufferMaps()
|
/system/core/libmemtrack/ |
D | memtrack_test.cpp | 34 if (!::android::base::ReadFileToString(fname, name)) { in getprocname()
|
/system/gsid/ |
D | libgsi.cpp | 127 return android::base::ReadFileToString(kGsiInstallStatusFile, status); in GetInstallStatus()
|
/system/extras/verity/ |
D | verity_verifier.cpp | 35 if (!android::base::ReadFileToString(path, &content) || in load_key()
|
/system/vold/ |
D | Checkpoint.cpp | 200 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()
|
D | IdleMaint.cpp | 43 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/ |
D | file.h | 81 bool ReadFileToString(const std::string& path, std::string* content,
|