/system/core/init/ |
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("/charger"); in TEST() 72 auto file_contents = ReadFile("/proc/version"); in TEST() 91 auto read_back_contents = ReadFile(tf.path); in TEST() 102 auto file_contents = ReadFile(path); in TEST() 117 auto file_contents = ReadFile(tf.path); in TEST() 121 file_contents = ReadFile(tf.path); in TEST()
|
D | util.h | 44 Result<std::string> ReadFile(const std::string& path);
|
D | parser.cpp | 145 auto config_contents = ReadFile(path); in ParseConfigFile()
|
/system/update_engine/payload_generator/ |
D | payload_signer_unittest.cc | 135 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKeyPath), in TEST_F() 139 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKey2Path), in TEST_F() 143 EXPECT_TRUE(utils::ReadFile( in TEST_F() 154 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKeyPath), in TEST_F() 159 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(kUnittestPublicKey2Path), in TEST_F()
|
D | payload_signer.cc | 94 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload() 234 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in VerifySignedPayload() 256 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload() 329 TEST_AND_RETURN_FALSE(utils::ReadFile(unsigned_payload_path, &payload)); in SignPayload()
|
D | payload_file_unittest.cc | 72 EXPECT_TRUE(utils::ReadFile(new_blobs.path(), &new_data)); in TEST_F()
|
D | zip_unittest.cc | 168 utils::ReadFile(path, &in); in TYPED_TEST()
|
/system/update_engine/payload_consumer/ |
D | cached_file_descriptor_unittest.cc | 92 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()
|
D | verity_writer_android_unittest.cc | 52 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()
|
D | bzip_extent_writer_unittest.cc | 73 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F() 115 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); in TEST_F()
|
D | extent_writer_unittest.cc | 77 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()
|
D | mtd_file_descriptor.cc | 45 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()
|
D | file_writer_unittest.cc | 47 EXPECT_TRUE(utils::ReadFile(file.path(), &actual_data)); in TEST()
|
D | delta_performer_integration_test.cc | 130 EXPECT_TRUE(utils::ReadFile(a_file, &a_data)) << "file failed: " << a_file; in CompareFilesByBlock() 131 EXPECT_TRUE(utils::ReadFile(b_file, &b_data)) << "file failed: " << b_file; in CompareFilesByBlock() 252 ASSERT_TRUE(utils::ReadFile(hash_file.path(), &hash)); in SignGeneratedShellPayload() 576 EXPECT_TRUE(utils::ReadFile(state->delta_path, &state->delta)); in ApplyDeltaFile() 847 utils::ReadFile(state->result_kernel, &updated_kernel_partition)); in VerifyPayloadResult() 852 EXPECT_TRUE(utils::ReadFile(state->old_kernel, &updated_kernel_partition)); in VerifyPayloadResult()
|
D | file_descriptor_utils_unittest.cc | 62 EXPECT_TRUE(utils::ReadFile(tgt_path_, &target_contents)); in ExpectTarget()
|
/system/update_engine/ |
D | image_properties_chromeos.cc | 157 if (utils::ReadFile(kLsbRelease, &lsb_release)) { in LogImageProperties() 162 if (utils::ReadFile(std::string(kStatefulPartition) + kLsbRelease, in LogImageProperties()
|
D | omaha_response_handler_action_unittest.cc | 197 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()
|
D | image_properties_android.cc | 196 utils::ReadFile(kProductComponentsPath, &result.product_components); in LoadImageProperties()
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 307 static std::string ReadFile(FILE* fp) { in ReadFile() function 325 std::string s = ReadFile(fp); in CheckIfPerfEnabled() 417 std::string s = ReadFile(fp); in ProfileSession()
|
/system/update_engine/common/ |
D | utils.h | 98 bool ReadFile(const std::string& path, brillo::Blob* out_p); 99 bool ReadFile(const std::string& path, std::string* out_p);
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | fs_avb_test_util.cpp | 112 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in GenerateVBMetaImage() 134 EXPECT_TRUE(base::ReadFile(vbmeta_image.path, in ExtractVBMetaImage()
|
D | basic_test.cpp | 46 base::ReadFile(boot_path, reinterpret_cast<char*>(actual_content.data()), image_size)); in TEST_F()
|
/system/core/llkd/ |
D | libllkd.cpp | 226 std::string ReadFile(std::string&& path) { in ReadFile() function 236 std::string content = ReadFile(procdir + std::to_string(tid) + node); in llkProcGetName() 253 std::string content = ReadFile(procdir + std::to_string(tid) + "/status"); in llkProcGetUid() 807 auto kernel_stack = ReadFile(piddir + "/stack"); in llkCheckStack() 851 std::string schedString = ReadFile(piddir + "/sched"); in llkCheckSchedUpdate() 856 schedString = ReadFile(piddir + "/schedstat"); in llkCheckSchedUpdate() 1015 std::string stat = ReadFile(piddir + "/stat"); in llkCheck()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 347 static bool ReadFile(const char* filename, std::vector<std::string>* args, in ReadFile() function 373 if (!ReadFile(argv[2], &args, &arg_ptrs)) { in main()
|
/system/security/keystore/ |
D | keystore_cli_v2.cpp | 265 std::string ReadFile(const std::string& filename) { in ReadFile() function 466 std::string input = ReadFile(input_filename); in Encrypt() 479 std::string input = ReadFile(input_filename); in Decrypt()
|