Searched refs:file_content_ (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/tests/unit/ |
D | package_test.cpp | 39 std::string file_content_; // actual bytes of the package file. member in PackageTest 54 ASSERT_TRUE(android::base::ReadFileToString(temp_file_.path, &file_content_)); in SetUp() 66 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F() 67 ASSERT_TRUE(package->ReadFullyAtOffset(buffer.data(), file_content_.size(), 0)); in TEST_F() 68 ASSERT_EQ(file_content_, std::string(buffer.begin(), buffer.end())); in TEST_F() 70 ASSERT_TRUE(package->ReadFullyAtOffset(buffer.data(), file_content_.size() - 10, 10)); in TEST_F() 71 ASSERT_EQ(file_content_.substr(10), std::string(buffer.begin(), buffer.end() - 10)); in TEST_F() 77 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F() 79 ASSERT_FALSE(package->ReadFullyAtOffset(buffer.data(), file_content_.size(), 10)); in TEST_F() 85 uint64_t hash_size = file_content_.size() / 2; in TEST_F() [all …]
|
/bootable/recovery/applypatch/ |
D | imgdiff.cpp | 647 if (!ReadFile(filename, &file_content_)) { in Initialize() 658 int err = OpenArchiveFromMemory(const_cast<uint8_t*>(file_content_.data()), zipfile_size, in Initialize() 718 CHECK_LT(entries_end, file_content_.size()); in InitializeChunks() 719 chunks_.emplace_back(CHUNK_NORMAL, entries_end, &file_content_, in InitializeChunks() 720 file_content_.size() - entries_end); in InitializeChunks() 729 while (pos < file_content_.size()) { in InitializeChunks() 749 raw_data_len = file_content_.size() - pos; in InitializeChunks() 751 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, raw_data_len); in InitializeChunks() 770 chunks_.emplace_back(CHUNK_NORMAL, entry->offset + limit_ * count, &file_content_, length, in AddZipEntryToChunks() 785 ImageChunk curr(CHUNK_DEFLATE, entry->offset, &file_content_, compressed_len, entry_name); in AddZipEntryToChunks() [all …]
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 205 std::vector<uint8_t> file_content_; // Store the whole input file in memory. variable 219 file_content_ = file_content; in Initialize()
|