Home
last modified time | relevance | path

Searched refs:MappedFile (Results 1 – 12 of 12) sorted by relevance

/system/libbase/
Dmapped_file.cpp38 std::unique_ptr<MappedFile> MappedFile::FromFd(borrowed_fd fd, off64_t offset, size_t length, in FromFd()
47 std::unique_ptr<MappedFile> MappedFile::FromOsHandle(os_handle h, off64_t offset, size_t length, in FromOsHandle()
61 return std::unique_ptr<MappedFile>( in FromOsHandle()
62 new MappedFile(const_cast<char*>(kEmptyBuffer), 0, 0, nullptr)); in FromOsHandle()
72 return std::unique_ptr<MappedFile>( in FromOsHandle()
73 new MappedFile(static_cast<char*>(base), length, slop, handle)); in FromOsHandle()
80 return std::unique_ptr<MappedFile>(new MappedFile(const_cast<char*>(kEmptyBuffer), 0, 0)); in FromOsHandle()
84 return std::unique_ptr<MappedFile>(new MappedFile(static_cast<char*>(base), length, slop)); in FromOsHandle()
88 MappedFile::MappedFile(MappedFile&& other) in MappedFile() function in android::base::MappedFile
99 MappedFile& MappedFile::operator=(MappedFile&& other) { in operator =()
[all …]
Dmapped_file_test.cpp34 auto m = android::base::MappedFile::FromFd(tf.fd, 3, 2, PROT_READ); in TEST()
46 auto m = android::base::MappedFile::FromFd(tf.fd, 4096, 0, PROT_READ); in TEST()
Dabi_compatibility.cpp71 extern "C" std::unique_ptr<MappedFile> MAPPEDFILE_FROMFD(int fd, off64_t offset, size_t length, in MAPPEDFILE_FROMFD()
73 return MappedFile::FromFd(fd, offset, length, prot); in MAPPEDFILE_FROMFD()
/system/libbase/include/android-base/
Dmapped_file.h43 class MappedFile {
50 static std::unique_ptr<MappedFile> FromFd(borrowed_fd fd, off64_t offset, size_t length,
56 static std::unique_ptr<MappedFile> FromOsHandle(os_handle h, off64_t offset, size_t length,
62 ~MappedFile();
67 MappedFile(MappedFile&& other);
68 MappedFile& operator=(MappedFile&& other);
74 DISALLOW_IMPLICIT_CONSTRUCTORS(MappedFile);
84 MappedFile(char* base, size_t size, size_t offset, HANDLE handle) in MappedFile() function
88 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile() function
/system/core/logd/
DReplayMessages.cpp38 using android::base::MappedFile;
110 static log_time GetFirstTimeStamp(const MappedFile& recorded_messages) { in GetFirstTimeStamp()
397 auto recorded_messages = MappedFile::FromFd(recorded_messages_fd, 0, in main()
/system/libziparchive/
Dzip_archive_private.h96 std::unique_ptr<android::base::MappedFile> directory_map;
Dzip_archive.cc1543 directory_map = android::base::MappedFile::FromFd(mapped_zip.GetFileDescriptor(), in InitializeCentralDirectory()
Dzip_archive_test.cc620 android::base::MappedFile::FromFd(fd, 0, static_cast<size_t>(sb.st_size), PROT_READ)}; in TEST()
/system/core/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp39 : mapped_(android::base::MappedFile::FromOsHandle(adb_get_os_handle(fd), offset, length, in FileRegion()
62 std::unique_ptr<android::base::MappedFile> mapped_;
/system/core/adb/client/
Dincremental_utils.cpp284 static std::pair<ZipArchiveHandle, std::unique_ptr<android::base::MappedFile>> openZipArchive( in openZipArchive()
292 android::base::MappedFile::FromOsHandle(adb_get_os_handle(fd), 0, fileSize, PROT_READ); in openZipArchive()
/system/core/libsparse/
Doutput_file.cpp652 auto m = android::base::MappedFile::FromFd(fd, offset, len, PROT_READ); in write_fd_chunk()
/system/core/fastboot/
Dfastboot_driver.cpp485 auto mapping{android::base::MappedFile::FromFd(fd, offset, len, PROT_READ)}; in SendBuffer()