Home
last modified time | relevance | path

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

12

/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()
74 auto file_contents = ReadFile("/proc/version"); in TEST()
93 auto read_back_contents = ReadFile(tf.path); in TEST()
104 auto file_contents = ReadFile(path); in TEST()
120 auto file_contents = ReadFile(tf.path); in TEST()
124 file_contents = ReadFile(tf.path); in TEST()
Dutil.h50 Result<std::string> ReadFile(const std::string& path);
Dparser.cpp145 auto config_contents = ReadFile(path); in ParseConfigFile()
/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.cc52 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
90 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
111 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
Dbzip_extent_writer_unittest.cc73 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F()
115 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); in TEST_F()
Dextent_writer_unittest.cc77 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
130 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
170 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
Dmtd_file_descriptor.cc45 using chromeos_update_engine::utils::ReadFile;
60 if (!ReadFile(sysfs_node + kReservedEbs, &s_reserved_ebs)) { in GetUbiVolumeInfo()
65 if (!ReadFile(sysfs_node + kUsableEbSize, &s_eb_size)) { in GetUbiVolumeInfo()
Dfile_writer_unittest.cc47 EXPECT_TRUE(utils::ReadFile(file.path(), &actual_data)); in TEST()
Ddelta_performer_integration_test.cc133 EXPECT_TRUE(utils::ReadFile(a_file, &a_data)) << "file failed: " << a_file; in CompareFilesByBlock()
134 EXPECT_TRUE(utils::ReadFile(b_file, &b_data)) << "file failed: " << b_file; in CompareFilesByBlock()
234 ASSERT_TRUE(utils::ReadFile(hash_file.path(), &hash)); in SignGeneratedShellPayloadWithKeys()
617 EXPECT_TRUE(utils::ReadFile(state->delta_path, &state->delta)); in ApplyDeltaFile()
894 utils::ReadFile(state->result_kernel, &updated_kernel_partition)); in VerifyPayloadResult()
899 EXPECT_TRUE(utils::ReadFile(state->old_kernel, &updated_kernel_partition)); in VerifyPayloadResult()
Dfile_descriptor_utils_unittest.cc62 EXPECT_TRUE(utils::ReadFile(tgt_path_, &target_contents)); in ExpectTarget()
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc141 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(path), &public_key)); in TEST_F()
153 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKeyPath), in TEST_F()
161 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKey2Path), in TEST_F()
Dpayload_file_unittest.cc72 EXPECT_TRUE(utils::ReadFile(new_blobs.path(), &new_data)); in TEST_F()
Dpayload_signer.cc101 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload()
268 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in VerifySignedPayload()
290 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload()
405 TEST_AND_RETURN_FALSE(utils::ReadFile(unsigned_payload_path, &payload)); in SignPayload()
Dzip_unittest.cc168 utils::ReadFile(path, &in); in TYPED_TEST()
/system/update_engine/
Dimage_properties_chromeos.cc157 if (utils::ReadFile(kLsbRelease, &lsb_release)) { in LogImageProperties()
162 if (utils::ReadFile(std::string(kStatefulPartition) + kLsbRelease, in LogImageProperties()
Domaha_response_handler_action_unittest.cc197 EXPECT_TRUE(utils::ReadFile(test_deadline_file.path(), &deadline)); in TEST_F()
224 EXPECT_TRUE(utils::ReadFile(test_deadline_file.path(), &deadline) && in TEST_F()
249 EXPECT_TRUE(utils::ReadFile(test_deadline_file.path(), &deadline)); in TEST_F()
272 EXPECT_TRUE(utils::ReadFile(test_deadline_file.path(), &deadline)); in TEST_F()
Dimage_properties_android.cc196 utils::ReadFile(kProductComponentsPath, &result.product_components); in LoadImageProperties()
Dhardware_chromeos.cc221 if (!utils::ReadFile(marker_path.value(), &contents)) in GetPowerwashCount()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp282 static std::string ReadFile(FILE* fp) { in ReadFile() function
332 *stdout = ReadFile(fdopen(stdout_fd[0], "r")); in RunCmd()
472 std::string s = ReadFile(fp); in ProfileSession()
/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()
1023 std::string stat = ReadFile(piddir + "/stat"); in llkCheck()
1051 auto cgroup = ReadFile(piddir + "/cgroup"); in llkCheck()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp112 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in GenerateVBMetaImage()
134 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()
/system/update_engine/common/
Dutils.h99 bool ReadFile(const std::string& path, brillo::Blob* out_p);
100 bool ReadFile(const std::string& path, std::string* out_p);
/system/security/keystore/
Dkeystore_cli_v2.cpp265 std::string ReadFile(const std::string& filename) { in ReadFile() function
450 std::string input = ReadFile(input_filename); in Encrypt()
463 std::string input = ReadFile(input_filename); in Decrypt()

12