/system/libbase/ |
D | mapped_file.cpp | 38 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 …]
|
D | mapped_file_test.cpp | 34 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()
|
D | abi_compatibility.cpp | 71 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/ |
D | mapped_file.h | 43 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/ |
D | ReplayMessages.cpp | 38 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/ |
D | zip_archive_private.h | 96 std::unique_ptr<android::base::MappedFile> directory_map;
|
D | zip_archive.cc | 1543 directory_map = android::base::MappedFile::FromFd(mapped_zip.GetFileDescriptor(), in InitializeCentralDirectory()
|
D | zip_archive_test.cc | 620 android::base::MappedFile::FromFd(fd, 0, static_cast<size_t>(sb.st_size), PROT_READ)}; in TEST()
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | apk_archive.cpp | 39 : 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/ |
D | incremental_utils.cpp | 284 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/ |
D | output_file.cpp | 652 auto m = android::base::MappedFile::FromFd(fd, offset, len, PROT_READ); in write_fd_chunk()
|
/system/core/fastboot/ |
D | fastboot_driver.cpp | 485 auto mapping{android::base::MappedFile::FromFd(fd, offset, len, PROT_READ)}; in SendBuffer()
|