/system/apex/apexd/ |
D | apexd_verity_test.cpp | 39 using android::base::ReadFileToString; 62 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST() 72 ASSERT_TRUE(ReadFileToString(hashtree_file, &second_hashtree)) in TEST() 95 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST() 111 ASSERT_TRUE(ReadFileToString(hashtree_file, &second_hashtree)) in TEST()
|
D | flattened_apex_test.cpp | 54 using android::base::ReadFileToString; in TEST() 57 ASSERT_TRUE(ReadFileToString("/proc/self/mountinfo", &mounts)); in TEST()
|
D | apex_manifest.cpp | 55 if (!android::base::ReadFileToString(path, &content)) { in ReadManifest()
|
/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 | fscrypt_init_extensions.cpp | 104 if (!android::base::ReadFileToString(ref_filename, &policy->key_raw_ref)) { in LookupPolicy() 111 if (!android::base::ReadFileToString(options_filename, &options_string)) { in LookupPolicy()
|
D | host_init_verifier.cpp | 55 using android::base::ReadFileToString; 66 if (!ReadFileToString(passwd_file, &passwd)) { in GetVendorPasswd() 186 if (!ReadFileToString(filename, &file_contents)) { in HandlePropertyContexts()
|
/system/gsid/ |
D | libgsi.cpp | 36 using android::base::ReadFileToString; 41 return android::base::ReadFileToString(kDsuActiveFile, active_dsu); in GetActiveDsu() 129 return android::base::ReadFileToString(kDsuInstallStatusFile, status); in GetInstallStatus()
|
/system/core/debuggerd/ |
D | util.cpp | 33 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &result); in get_process_name() 39 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/comm", tid), &result); in get_thread_name()
|
/system/apex/libs/libapexutil/ |
D | apexutil.cpp | 30 using ::android::base::ReadFileToString; 38 if (!ReadFileToString(manifest_path, &content)) { in ParseApexManifest()
|
/system/vold/model/ |
D | Disk.cpp | 44 using android::base::ReadFileToString; 182 if (!ReadFileToString(BuildKeyPath(normalizedGuid), &keyRaw)) { in createPrivateVolume() 237 if (!ReadFileToString(path, &tmp)) { in readMetadata() 248 if (!ReadFileToString(path, &tmp)) { in readMetadata() 281 if (!ReadFileToString(path, &tmp)) { in readMetadata() 543 if (!ReadFileToString(kSysfsLoopMaxMinors, &tmp)) { in getMaxMinors() 563 if (!ReadFileToString(kSysfsMmcMaxMinors, &tmp) && in getMaxMinors() 564 !ReadFileToString(kSysfsMmcMaxMinorsDeprecated, &tmp)) { in getMaxMinors()
|
/system/libbase/ |
D | file_test.cpp | 41 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/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/extras/simpleperf/ |
D | event_type.cpp | 60 if (!android::base::ReadFileToString(filepath, &tracepoint_events)) { in SetTracepointEventsFilePath() 106 if (!android::base::ReadFileToString(id_path, &id_content)) { in GetTracepointEventTypesFromTraceFs() 139 if (!android::base::ReadFileToString(format_path, &format_content)) { in ParseEventFormats() 198 if (!android::base::ReadFileToString(type_path, &type_content)) { in GetPmuEventTypes() 210 if (!android::base::ReadFileToString(event_path, &event_content)) { in GetPmuEventTypes() 235 if (!android::base::ReadFileToString(cpumask_path, &cpumask_content)) { in GetPmuCpumask()
|
D | cmd_inject_test.cpp | 45 return android::base::ReadFileToString(tmpfile.path, output); in RunInjectCmd() 50 ASSERT_TRUE(android::base::ReadFileToString( in CheckMatchingExpectedData()
|
/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/extras/tests/kernel.config/ |
D | nfs_test.cpp | 24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
|
/system/core/storaged/ |
D | storaged_info.cpp | 251 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/ |
D | File.cpp | 95 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo() 136 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo()
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | patch_utils_test.cpp | 95 android::base::ReadFileToString(GetTestFile("rotating_cube-metadata-release.data"), in TEST() 126 android::base::ReadFileToString(GetTestFile("sample.cd"), &cd); in TEST()
|
/system/update_engine/common/ |
D | prefs_unittest.cc | 223 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 239 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F() 300 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 313 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 321 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 364 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 372 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
|
/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/memory/libmeminfo/ |
D | sysmeminfo.cpp | 91 if (!::android::base::ReadFileToString(path, &buffer)) { 223 if (::android::base::ReadFileToString(zram_dev + "mem_used_total", &content)) { in MemZramDevice() 276 if (!::android::base::ReadFileToString(path, &content)) { in ReadSysfsFile()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 48 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/ |
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/security/fsverity_init/ |
D | fsverity_init.cpp | 47 if (!android::base::ReadFileToString(entry.path(), &content)) { in LoadKeyFromDirectory()
|