Home
last modified time | relevance | path

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

12

/system/nativepower/daemon/
Dwake_lock_manager_unittest.cc45 std::string ReadFile(const base::FilePath& path) const { in ReadFile() function in android::WakeLockManagerTest
73 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
74 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
80 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F()
81 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
86 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F()
87 EXPECT_EQ("", ReadFile(unlock_path_)); in TEST_F()
92 EXPECT_EQ("", ReadFile(lock_path_)); in TEST_F()
93 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(unlock_path_)); in TEST_F()
99 EXPECT_EQ(WakeLockManager::kLockName, ReadFile(lock_path_)); in TEST_F()
[all …]
/system/connectivity/shill/
Dresolver_unittest.cc68 string ReadFile();
75 string ResolverTest::ReadFile() { in ReadFile() function in shill::ResolverTest
95 EXPECT_EQ(kExpectedOutput, ReadFile()); in TEST_F()
128 EXPECT_EQ(kExpectedIgnoredSearchOutput, ReadFile()); in TEST_F()
/system/update_engine/payload_consumer/
Dextent_writer_unittest.cc85 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
153 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
203 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TestZeroPad()
253 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
Dbzip_extent_writer_unittest.cc80 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F()
127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); 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.cc51 EXPECT_TRUE(utils::ReadFile(path, &actual_data)); in TEST()
Ddelta_performer_integration_test.cc130 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()
250 ASSERT_TRUE(utils::ReadFile(hash_file, &hash)); in SignGeneratedShellPayload()
601 EXPECT_TRUE(utils::ReadFile(state->delta_path, &state->delta)); in ApplyDeltaFile()
872 EXPECT_TRUE(utils::ReadFile(state->result_kernel, in VerifyPayloadResult()
879 EXPECT_TRUE(utils::ReadFile(state->old_kernel, &updated_kernel_partition)); in VerifyPayloadResult()
Dfilesystem_verifier_action_unittest.cc233 if (!utils::ReadFile(a_dev, &a_out)) { in DoTest()
Ddelta_performer_unittest.cc174 EXPECT_TRUE(utils::ReadFile(payload_path, &payload_data)); in GeneratePayload()
219 EXPECT_TRUE(utils::ReadFile(new_part, &partition_data)); in ApplyPayloadToData()
Ddownload_action_unittest.cc77 ASSERT_TRUE(utils::ReadFile(path_, &found_data)); in ProcessingDone()
/system/weaved/buffet/
Dbuffet_config.cc41 bool ReadFile(const base::FilePath& path, std::string* content) override { in ReadFile() function in buffet::__anon80ccf89a0111::DefaultFileIO
172 if (!file_io_->ReadFile(path, &settings_blob)) { in LoadSettings()
222 if (!file_io_->ReadFile(file_path, data)) { in LoadFile()
Dbuffet_config.h57 virtual bool ReadFile(const base::FilePath& path, std::string* content) = 0;
Dbuffet_config_unittest.cc105 bool ReadFile(const base::FilePath& path, std::string* content) override { in ReadFile() function in buffet::BuffetConfigTestWithFakes
/system/update_engine/payload_generator/
Dpayload_file_unittest.cc79 EXPECT_TRUE(utils::ReadFile(new_blobs, &new_data)); in TEST_F()
Dpayload_signer.cc106 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload()
316 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in VerifySignedPayload()
404 TEST_AND_RETURN_FALSE(utils::ReadFile(unsigned_payload_path, &payload)); in SignPayload()
Dgenerate_delta_main.cc137 CHECK(utils::ReadFile(signature_file, &signature)); in SignatureFileFlagToBlobs()
/system/update_engine/
Dhardware_chromeos.cc141 if (!utils::ReadFile(marker_path.value(), &contents)) in GetPowerwashCount()
Domaha_response_handler_action_unittest.cc159 EXPECT_TRUE(utils::ReadFile(test_deadline_file, &deadline)); in TEST_F()
185 EXPECT_TRUE(utils::ReadFile(test_deadline_file, &deadline) && in TEST_F()
206 EXPECT_TRUE(utils::ReadFile(test_deadline_file, &deadline)); in TEST_F()
/system/security/keystore/
Dkeystore_cli_v2.cpp236 std::string ReadFile(const std::string& filename) { in ReadFile() function
402 std::string input = ReadFile(input_filename); in Encrypt()
415 std::string input = ReadFile(input_filename); in Decrypt()
/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);
Dutils_unittest.cc65 EXPECT_FALSE(utils::ReadFile("/this/doesn't/exist", &empty)); in TEST()
416 EXPECT_TRUE(utils::ReadFile(path.value(), &contents)); in TEST()
Dutils.cc399 bool ReadFile(const string& path, brillo::Blob* out_p) { in ReadFile() function
403 bool ReadFile(const string& path, string* out_p) { in ReadFile() function
/system/extras/perfprofd/
Dperf_data_converter.cc37 if (!parser.ReadFile(perf_file) || !parser.ParseRawEvents()) { in RawPerfDataToAndroidPerfProfile()
/system/extras/perfprofd/quipper/
Dperf_reader.h90 bool ReadFile(const string& filename);
/system/core/adb/
Dadb.cpp570 if (!ReadFile(read_pipe.get(), buf, sizeof(buf), &bytes_read, NULL)) { in _redirect_pipe_thread()
783 if (ReadFile(ack_read.get(), temp, sizeof(temp), &count, NULL)) { in launch_server()

12