Home
last modified time | relevance | path

Searched refs:SplitFiemap (Results 1 – 5 of 5) sorted by relevance

/system/core/fs_mgr/libfiemap_writer/include/libfiemap_writer/
Dsplit_fiemap_writer.h35 class SplitFiemap final {
43 static std::unique_ptr<SplitFiemap> Create(const std::string& file_path, uint64_t file_size,
48 static std::unique_ptr<SplitFiemap> Open(const std::string& file_path);
50 ~SplitFiemap();
75 SplitFiemap(const SplitFiemap&) = delete;
76 SplitFiemap& operator=(const SplitFiemap&) = delete;
77 SplitFiemap& operator=(SplitFiemap&&) = delete;
78 SplitFiemap(SplitFiemap&&) = delete;
81 SplitFiemap() = default;
/system/core/fs_mgr/libfiemap_writer/
Dsplit_fiemap_writer.cpp45 std::unique_ptr<SplitFiemap> SplitFiemap::Create(const std::string& file_path, uint64_t file_size, in Create()
76 std::unique_ptr<SplitFiemap> out(new SplitFiemap()); in Create()
123 std::unique_ptr<SplitFiemap> SplitFiemap::Open(const std::string& file_path) { in Open()
129 std::unique_ptr<SplitFiemap> out(new SplitFiemap()); in Open()
143 bool SplitFiemap::GetSplitFileList(const std::string& file_path, std::vector<std::string>* list) { in GetSplitFileList()
162 bool SplitFiemap::RemoveSplitFiles(const std::string& file_path, std::string* message) { in RemoveSplitFiles()
179 bool SplitFiemap::HasPinnedExtents() const { in HasPinnedExtents()
188 const std::vector<struct fiemap_extent>& SplitFiemap::extents() { in extents()
198 bool SplitFiemap::Write(const void* data, uint64_t bytes) { in Write()
253 bool SplitFiemap::Flush() { in Flush()
[all …]
Dfiemap_writer_test.cpp76 if (!SplitFiemap::RemoveSplitFiles(testfile, &message)) { in TearDown()
255 auto ptr = SplitFiemap::Create(testfile, 1024 * 768, 1024 * 32); in TEST_F()
264 ASSERT_TRUE(SplitFiemap::GetSplitFileList(testfile, &files)); in TEST_F()
274 auto ptr = SplitFiemap::Create(testfile, 1024 * 768, 1024 * 32); in TEST_F()
278 auto ptr = SplitFiemap::Open(testfile); in TEST_F()
286 auto ptr = SplitFiemap::Create(testfile, 1024 * 1024 * 100, 1); in TEST_F()
312 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
330 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
357 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
384 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
/system/gsid/
Dgsi_service.h86 using SplitFiemap = android::fiemap_writer::SplitFiemap; variable
89 std::unique_ptr<SplitFiemap> writer;
111 std::unique_ptr<SplitFiemap> CreateFiemapWriter(const std::string& path, uint64_t size,
Dgsi_service.cpp617 SplitFiemap::RemoveSplitFiles(userdata_gsi_path_); in PreallocateFiles()
619 SplitFiemap::RemoveSplitFiles(system_gsi_path_); in PreallocateFiles()
643 std::unique_ptr<SplitFiemap> userdata_image; in PreallocateUserdata()
694 std::unique_ptr<SplitFiemap> GsiService::CreateFiemapWriter(const std::string& path, in CreateFiemapWriter()
708 std::unique_ptr<SplitFiemap> file; in CreateFiemapWriter()
710 file = SplitFiemap::Open(path); in CreateFiemapWriter()
712 file = SplitFiemap::Create(path, size, 0, std::move(progress)); in CreateFiemapWriter()
754 explicit SplitFiemapWriter(SplitFiemap* writer) : writer_(writer) {} in SplitFiemapWriter()
765 SplitFiemap* writer_;
1046 if (!SplitFiemap::RemoveSplitFiles(GetImagePath(install_dir, "system_gsi"), &message)) { in RemoveGsiFiles()
[all …]