/system/apex/apexd/ |
D | apexd_verity_test.cpp | 38 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()
|
D | flattened_apex_test.cpp | 54 using android::base::ReadFileToString; in TEST() 57 ASSERT_TRUE(ReadFileToString("/proc/self/mountinfo", &mounts)); in TEST()
|
/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() 185 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 | sigchld_handler.cpp | 40 using android::base::ReadFileToString; 144 ReadFileToString(StringPrintf("/proc/%d/status", pid), &status); in WaitToBeReaped()
|
/system/linkerconfig/modules/ |
D | configparser.cc | 25 using android::base::ReadFileToString; 37 if (!ReadFileToString(config_path, &file_content)) { in ParseLinkerConfig()
|
/system/memory/libmeminfo/libsmapinfo/ |
D | processrecord.cpp | 53 if (!::android::base::ReadFileToString(fname, &cmdline_)) { in ProcessRecord() 68 if (!::android::base::ReadFileToString(fname, &cmdline_)) { in ProcessRecord() 84 if (!::android::base::ReadFileToString(fname, &oom_score)) { in ProcessRecord()
|
/system/security/ondevice-signing/tests/ |
D | SigningUtilsTest.cpp | 36 ASSERT_TRUE(android::base::ReadFileToString(sigFile, &signature)); in TEST() 40 ASSERT_TRUE(android::base::ReadFileToString(testFile, &data)); in TEST()
|
/system/core/debuggerd/ |
D | util.cpp | 34 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &cmdline); in get_command_line() 52 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), &result); in get_process_name() 59 android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/comm", tid), &result); in get_thread_name()
|
/system/apex/libs/libapexutil/ |
D | apexutil.cpp | 31 using ::android::base::ReadFileToString; 39 if (!ReadFileToString(manifest_path, &content)) { in ParseApexManifest()
|
/system/gsid/include/libgsi/ |
D | libgsi.h | 68 if (android::base::ReadFileToString(key_dir_file, &key_dir) && in GetDsuMetadataKeyDir() 95 return android::base::ReadFileToString(kDsuActiveFile, active_dsu); in GetActiveDsu()
|
/system/vold/model/ |
D | Disk.cpp | 44 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/memory/libmeminfo/libdmabufinfo/ |
D | dmabuf_sysfs_stats.cpp | 36 if (!android::base::ReadFileToString(path, &temp)) { in ReadUintFromFile() 52 return android::base::ReadFileToString(exporter_path, exporter); in ReadBufferExporter() 91 if (!android::base::ReadFileToString(exp_name_path, &exporter_name)) { in GetDmabufSysfsStats()
|
/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() 398 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST() 405 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST() 412 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST() 428 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)); in TEST()
|
/system/vold/ |
D | IdleMaint.cpp | 48 using android::base::ReadFileToString; 231 if (!ReadFileToString(path + "/dirty_segments", &dirty_segments)) { in waitForGc() 299 if (!ReadFileToString(path, &require)) { in runDevGcFstab() 481 if (!ReadFileToString(path, &result)) { in getLifeTime() 532 if (!ReadFileToString(freeSegmentsPath, &freeSegmentsStr)) { in SetGCUrgentPace() 537 if (!ReadFileToString(dirtySegmentsPath, &dirtySegmentsStr)) { in SetGCUrgentPace() 542 if (!ReadFileToString(ovpSegmentsPath, &ovpSegmentsStr)) { in SetGCUrgentPace() 547 if (!ReadFileToString(reservedBlocksPath, &reservedBlocksStr)) { in SetGCUrgentPace() 628 if (!ReadFileToString(writeKbytesPath, &writeKbytesStr)) { in getLifeTimeWrite()
|
/system/gsid/ |
D | libgsi.cpp | 36 using android::base::ReadFileToString; 125 return android::base::ReadFileToString(kDsuInstallStatusFile, status); in GetInstallStatus()
|
/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() 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/ |
D | fs_mgr_boot_config.cpp | 121 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/simpleperf/ |
D | read_symbol_map.h | 32 if (android::base::ReadFileToString(path, &content, /* follow_symlinks = */ true)) { in ReadSymbolMapFromFile()
|
D | cmd_inject_test.cpp | 49 return android::base::ReadFileToString(tmpfile.path, output); in RunInjectCmd() 56 ASSERT_TRUE(android::base::ReadFileToString( in CheckMatchingExpectedData() 122 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &autofdo_output)); in TEST() 131 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &output)); in TEST()
|
/system/extras/tests/kernel.config/ |
D | nfs_test.cpp | 24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
|
/system/dmesgd/ |
D | dmesgd.cpp | 42 if (!android::base::ReadFileToString(kSentPath, &content)) { in ReadSentReports() 74 if (!android::base::ReadFileToString("/proc/version", &version)) version = kUnknown; in GetBootHeaders()
|
/system/core/storaged/ |
D | storaged_info.cpp | 250 if (!ReadFileToString(emmc_sysfs + "rev", &buffer)) { in report_sysfs() 262 if (!ReadFileToString(emmc_sysfs + "pre_eol_info", &buffer)) { in report_sysfs() 270 if (!ReadFileToString(emmc_sysfs + "life_time", &buffer)) { in report_sysfs() 285 if (!ReadFileToString(health_file, &buffer)) { in report()
|
/system/extras/memory_replay/ |
D | File.cpp | 96 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo() 137 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo()
|
/system/core/fs_mgr/tests/ |
D | vts_fs_test.cpp | 51 ASSERT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST() 147 EXPECT_TRUE(android::base::ReadFileToString(default_fstab_path, &fstab_str, in TEST()
|