Home
last modified time | relevance | path

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

12

/system/unwinding/libunwindstack/tests/
DMemoryXzTest.cpp28 void SetUp() override { expected_content_ = ReadFile("boot_arm.oat.gnu_debugdata"); } in SetUp()
30 static std::unique_ptr<MemoryBuffer> ReadFile(const char* filename) { in ReadFile() function in unwindstack::MemoryXzTest
54 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz"); in TEST_F()
66 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz.one-block"); in TEST_F()
78 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz.odd-sizes"); in TEST_F()
89 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz.non-power"); in TEST_F()
100 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz"); in TEST_F()
113 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz"); in TEST_F()
126 auto compressed = ReadFile("boot_arm.oat.gnu_debugdata.xz"); in TEST_F()
/system/core/init/
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()
Dutil.h50 Result<std::string> ReadFile(const std::string& path);
Dparser.cpp147 auto config_contents = ReadFile(path); in ParseConfigFile()
/system/core/trusty/test/driver/
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")
/system/update_engine/payload_consumer/
Dcached_file_descriptor_unittest.cc92 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
105 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
126 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
154 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
167 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
183 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
200 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
Dverity_writer_android_unittest.cc60 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
109 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
135 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
159 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
Dbzip_extent_writer_unittest.cc68 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F()
109 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); in TEST_F()
Dextent_writer_unittest.cc76 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
166 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
Dfile_writer_unittest.cc46 EXPECT_TRUE(utils::ReadFile(file.path(), &actual_data)); in TEST()
Dfile_descriptor_utils_unittest.cc61 EXPECT_TRUE(utils::ReadFile(tgt_file_.path(), &target_contents)); in ExpectTarget()
Ddelta_performer_integration_test.cc170 ASSERT_TRUE(utils::ReadFile(a_file, &a_data)) << "file failed: " << a_file; in CompareFilesByBlock()
171 ASSERT_TRUE(utils::ReadFile(b_file, &b_data)) << "file failed: " << b_file; in CompareFilesByBlock()
275 ASSERT_TRUE(utils::ReadFile(hash_file.path(), &hash)); in SignGeneratedShellPayloadWithKeys()
284 ASSERT_TRUE(utils::ReadFile(metadata_hash_file.path(), &metadata_hash)); in SignGeneratedShellPayloadWithKeys()
638 ASSERT_TRUE(utils::ReadFile(state->delta_file->path(), &state->delta)); in ApplyDeltaFile()
916 utils::ReadFile(state->result_kernel->path(), &updated_kernel_partition)); in VerifyPayloadResult()
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc134 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(path), &public_key)); in TEST_F()
146 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKeyPath), in TEST_F()
154 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKey2Path), in TEST_F()
Dpayload_signer.cc98 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload()
237 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in VerifySignedPayload()
259 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload()
373 TEST_AND_RETURN_FALSE(utils::ReadFile(unsigned_payload_path, &payload)); in SignPayload()
Dpayload_file_unittest.cc72 EXPECT_TRUE(utils::ReadFile(new_blobs.path(), &new_data)); in TEST_F()
Dsquashfs_filesystem.cc87 TEST_AND_RETURN_FALSE(utils::ReadFile(map_file.path(), map)); in GetFileMapContent()
118 if (!utils::ReadFile(config_path.value(), &config_content)) { in GetUpdateEngineConfig()
Dzip_unittest.cc167 ASSERT_TRUE(utils::ReadFile(path, &in)); in TYPED_TEST()
/system/core/fastboot/
Dutil.h38 virtual bool ReadFile(const std::string& name, std::vector<char>* out) const = 0;
Dsuper_flash_helper_test.cpp42 bool ReadFile(const std::string&, std::vector<char>*) const override { in ReadFile() function in TestImageSource
/system/update_engine/lz4diff/
Dlz4diff.cc70 TEST_AND_RETURN_FALSE(utils::ReadFile(patch.path(), &patch_content)); in StoreDstCompressedFileInfo()
103 TEST_AND_RETURN_FALSE(utils::ReadFile(patch.path(), &bsdiff_delta)); in TryBsdiff()
Dlz4diff_main.cc70 utils::ReadFile(patch_file, &lz4diff_patch); in ExecuteLz4diff()
/system/core/llkd/
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()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp283 static std::string ReadFile(FILE* fp) { in ReadFile() function
333 *stdout = ReadFile(fdopen(stdout_fd[0], "r")); in RunCmd()
487 std::string s = ReadFile(fp); in ProfileSession()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp112 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in GenerateVBMetaImage()
135 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in ExtractVBMetaImage()
Dbasic_test.cpp46 base::ReadFile(boot_path, reinterpret_cast<char*>(actual_content.data()), image_size)); in TEST_F()

12