/aosp14/system/core/init/ |
H A D | util_test.cpp | 34 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 D | util.h | 50 Result<std::string> ReadFile(const std::string& path);
|
H A D | parser.cpp | 147 auto config_contents = ReadFile(path); in ParseConfigFile()
|
H A D | persistent_properties.cpp | 151 auto file_contents = ReadFile(persistent_property_filename); in ReadPersistentPropertyFile()
|
H A D | builtins.cpp | 288 auto file_contents = ReadFile(args[1]); in do_load_exports() 982 auto file_contents = ReadFile(args[1]); in do_copy()
|
H A D | util.cpp | 161 Result<std::string> ReadFile(const std::string& path) { in ReadFile() function
|
H A D | property_service.cpp | 805 auto file_contents = ReadFile(filename); in load_properties_from_file()
|
/aosp14/system/core/trusty/test/driver/ |
H A D | trusty_driver_test.py | 22 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 D | PosixUtils.cpp | 32 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 D | android_ddm_DdmHandleNativeHeap.cpp | 54 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 D | util.h | 38 virtual bool ReadFile(const std::string& name, std::vector<char>* out) const = 0;
|
H A D | super_flash_helper_test.cpp | 42 bool ReadFile(const std::string&, std::vector<char>*) const override { in ReadFile() function in TestImageSource
|
H A D | fastboot.cpp | 1814 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 D | libllkd.cpp | 227 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 D | fs_avb_test_util.cpp | 112 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in GenerateVBMetaImage() 135 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in ExtractVBMetaImage()
|
H A D | basic_test.cpp | 46 base::ReadFile(boot_path, reinterpret_cast<char*>(actual_content.data()), image_size)); in TEST_F()
|
H A D | avb_util_test.cpp | 429 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 D | dmctl.cpp | 563 static bool ReadFile(const char* filename, std::vector<std::string>* args, in ReadFile() function 589 if (!ReadFile(argv[2], &args, &arg_ptrs)) { in main()
|