Home
last modified time | relevance | path

Searched refs:ReadFile (Results 1 – 18 of 18) sorted by relevance

/aosp14/system/core/init/
H A Dutil_test.cpp34 auto file_contents = ReadFile("/proc/does-not-exist"); in TEST()
46 auto file_contents = ReadFile(tf.path); in TEST()
57 auto file_contents = ReadFile(tf.path); in TEST()
65 auto file_contents = ReadFile("/system/bin/ps"); in TEST()
73 auto file_contents = ReadFile("/proc/version"); in TEST()
92 auto read_back_contents = ReadFile(tf.path); in TEST()
103 auto file_contents = ReadFile(path); in TEST()
119 auto file_contents = ReadFile(tf.path); in TEST()
123 file_contents = ReadFile(tf.path); in TEST()
H A Dutil.h50 Result<std::string> ReadFile(const std::string& path);
H A Dparser.cpp147 auto config_contents = ReadFile(path); in ParseConfigFile()
H A Dpersistent_properties.cpp151 auto file_contents = ReadFile(persistent_property_filename); in ReadPersistentPropertyFile()
H A Dbuiltins.cpp288 auto file_contents = ReadFile(args[1]); in do_load_exports()
982 auto file_contents = ReadFile(args[1]); in do_copy()
H A Dutil.cpp161 Result<std::string> ReadFile(const std::string& path) { in ReadFile() function
H A Dproperty_service.cpp805 auto file_contents = ReadFile(filename); in load_properties_from_file()
/aosp14/system/core/trusty/test/driver/
H A Dtrusty_driver_test.py22 def ReadFile(file_path): function
57 ver = ReadFile("/sys/bus/platform/devices/trusty/trusty_version")
61 tainted = ReadFile("/proc/sys/kernel/tainted")
/aosp14/frameworks/base/libs/androidfw/
H A DPosixUtils.cpp32 static std::optional<std::string> ReadFile(int fd) { in ReadFile() function
116 auto out = ReadFile(stdout[0]); in ExecuteBinary()
119 auto err = ReadFile(stderr[0]); in ExecuteBinary()
/aosp14/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp54 static void ReadFile(const char* path, String8& s) { in ReadFile() function
76 ReadFile("/proc/self/maps", maps); in DdmHandleNativeHeap_getLeakInfo()
/aosp14/system/core/fastboot/
H A Dutil.h38 virtual bool ReadFile(const std::string& name, std::vector<char>* out) const = 0;
H A Dsuper_flash_helper_test.cpp42 bool ReadFile(const std::string&, std::vector<char>*) const override { in ReadFile() function in TestImageSource
H A Dfastboot.cpp1814 if (!fp_->source->ReadFile("android-info.txt", &contents)) { in CheckRequirements()
1913 if (fp_->source->ReadFile(image.sig_name, &signature_data)) { in FlashImage()
1930 bool ReadFile(const std::string& name, std::vector<char>* out) const override;
1937 bool ZipImageSource::ReadFile(const std::string& name, std::vector<char>* out) const { in ReadFile() function in ZipImageSource
1962 bool ReadFile(const std::string& name, std::vector<char>* out) const override;
1966 bool LocalImageSource::ReadFile(const std::string& name, std::vector<char>* out) const { in ReadFile() function in LocalImageSource
/aosp14/system/core/llkd/
H A Dlibllkd.cpp227 std::string ReadFile(std::string&& path) { in ReadFile() function
237 std::string content = ReadFile(procdir + std::to_string(tid) + node); in llkProcGetName()
254 std::string content = ReadFile(procdir + std::to_string(tid) + "/status"); in llkProcGetUid()
815 auto kernel_stack = ReadFile(piddir + "/stack"); in llkCheckStack()
859 std::string schedString = ReadFile(piddir + "/sched"); in llkCheckSchedUpdate()
864 schedString = ReadFile(piddir + "/schedstat"); in llkCheckSchedUpdate()
1024 std::string stat = ReadFile(piddir + "/stat"); in llkCheck()
1052 auto cgroup = ReadFile(piddir + "/cgroup"); in llkCheck()
/aosp14/system/core/fs_mgr/libfs_avb/tests/
H A Dfs_avb_test_util.cpp112 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in GenerateVBMetaImage()
135 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in ExtractVBMetaImage()
H A Dbasic_test.cpp46 base::ReadFile(boot_path, reinterpret_cast<char*>(actual_content.data()), image_size)); in TEST_F()
H A Davb_util_test.cpp429 EXPECT_EQ(key_size, base::ReadFile(key_path, (char*)key_data, key_size)); in TEST_F()
447 EXPECT_EQ(key_size, base::ReadFile(key_path, (char*)key_data, key_size)); in TEST_F()
618 EXPECT_TRUE(base::ReadFile(extracted_vbmeta_path, in CompareVBMeta()
719 ASSERT_TRUE(base::ReadFile(file_path, reinterpret_cast<char*>(file_content.data()), file_size)); in ModifyFile()
/aosp14/system/core/fs_mgr/tools/
H A Ddmctl.cpp563 static bool ReadFile(const char* filename, std::vector<std::string>* args, in ReadFile() function
589 if (!ReadFile(argv[2], &args, &arg_ptrs)) { in main()