/system/libziparchive/ |
D | zip_archive_private.h | 40 explicit MappedZipFile(const int fd, off64_t length, off64_t offset) in MappedZipFile() 45 data_length_(static_cast<off64_t>(length)) {} in MappedZipFile() 53 off64_t GetFileOffset() const; 55 off64_t GetFileLength() const; 57 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const; 67 const off64_t fd_offset_; 70 mutable off64_t data_length_; 81 void Initialize(const void* map_base_ptr, off64_t cd_start_offset, size_t cd_size); 94 off64_t directory_offset; 106 bool InitializeCentralDirectory(off64_t cd_start_offset, size_t cd_size);
|
D | zip_archive.cc | 157 off64_t eocdOffset, CentralDirectoryInfo* cdInfo) { in FindCentralDirectoryInfoForZip64() 217 off64_t file_length, in FindCentralDirectoryInfo() 221 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo() 251 const off64_t eocd_offset = search_start + i; in FindCentralDirectoryInfo() 257 const off64_t calculated_length = eocd_offset + sizeof(EocdRecord) + eocd->comment_length; in FindCentralDirectoryInfo() 275 if (static_cast<off64_t>(eocd->cd_start_offset) + eocd->cd_size > eocd_offset) { in FindCentralDirectoryInfo() 297 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory() 307 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory() 362 if (!archive->InitializeCentralDirectory(static_cast<off64_t>(cdInfo.cd_start_offset), in MapCentralDirectory() 539 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive() [all …]
|
/system/core/libutils/include/utils/ |
D | Compat.h | 30 typedef off_t off64_t; typedef 32 static inline void* mmap64(void* addr, size_t length, int prot, int flags, int fd, off64_t offset) { in mmap64() 36 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64() 40 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64() 44 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { in pwrite64() 48 static inline int ftruncate64(int fd, off64_t length) { in ftruncate64()
|
D | FileMap.h | 67 off64_t offset, size_t length, bool readOnly); 89 off64_t getDataOffset(void) const { return mDataOffset; } in getDataOffset() 116 off64_t mDataOffset; // offset used when map was created
|
/system/core/fs_mgr/include_fstab/fstab/ |
D | fstab.h | 43 off64_t length = 0; 48 off64_t zram_size = 0; 49 off64_t reserved_size = 0; 50 off64_t readahead_size_kb = -1; 52 off64_t erase_blk_size = 0; 53 off64_t logical_blk_size = 0;
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_reader.h | 42 off64_t Seek(off64_t offset, int whence) override; 60 off64_t Seek(off64_t offset, int whence) override; 79 off64_t offset_ = 0;
|
D | snapshot_reader.cpp | 55 off64_t ReadFdFileDescriptor::Seek(off64_t offset, int whence) { in Seek() 265 off64_t offset = (chunk * block_size_) + start_offset; in ReadBlock() 290 off64_t CompressedSnapshotReader::Seek(off64_t offset, int whence) { in Seek() 296 offset_ = static_cast<off64_t>(block_device_size_) + offset; in Seek()
|
/system/libbase/ |
D | mapped_file.cpp | 28 static off64_t InitPageSize() { in InitPageSize() 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() 49 static const off64_t page_size = InitPageSize(); in FromOsHandle() 51 off64_t file_offset = offset - slop; in FromOsHandle() 52 off64_t file_length = length + slop; in FromOsHandle()
|
/system/update_engine/payload_consumer/ |
D | cached_file_descriptor_unittest.cc | 120 EXPECT_EQ(cfd_->Seek(start, SEEK_SET), static_cast<off64_t>(start)); in TEST_F() 134 static_cast<off64_t>(kFileSize - 1)); in TEST_F() 135 EXPECT_EQ(cfd_->Seek(kFileSize, SEEK_SET), static_cast<off64_t>(kFileSize)); in TEST_F() 137 static_cast<off64_t>(kFileSize + 1)); in TEST_F() 143 static_cast<off64_t>(kFileSize - 1)); in TEST_F() 144 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), static_cast<off64_t>(kFileSize)); in TEST_F() 145 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), static_cast<off64_t>(kFileSize + 1)); in TEST_F() 159 off64_t seek = 10; in TEST_F() 172 off64_t seek = 100; in TEST_F() 188 off64_t seek = 100; in TEST_F()
|
D | file_descriptor.h | 73 virtual off64_t Seek(off64_t offset, int whence) = 0; 121 off64_t Seek(off64_t offset, int whence) override;
|
D | fake_file_descriptor.h | 61 off64_t Seek(off64_t offset, int whence) override; 112 off64_t size_{std::numeric_limits<off64_t>::max()};
|
D | filesystem_verifier_action.h | 90 const off64_t start_offset, 91 const off64_t end_offset, 95 const off64_t start_offset, 96 const off64_t end_offset,
|
D | cached_file_descriptor.cc | 29 off64_t CachedFileDescriptor::Seek(off64_t offset, int whence) { in Seek() 34 off64_t next_offset = whence == SEEK_SET ? offset : offset_ + offset; in Seek()
|
D | cached_file_descriptor.h | 49 off64_t Seek(off64_t offset, int whence) override; 69 off64_t offset_{0};
|
D | fec_file_descriptor.h | 43 off64_t Seek(off64_t offset, int whence) override;
|
D | extent_writer.cc | 48 const off64_t offset = in Write() 51 static_cast<off64_t>(-1)); in Write()
|
D | cow_writer_file_descriptor.h | 44 off64_t Seek(off64_t offset, int whence) override;
|
D | fec_file_descriptor.cc | 57 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek()
|
/system/incremental_delivery/incfs/util/ |
D | map_ptr.cpp | 41 off64_t IncFsFileMap::offset() const { in offset() 49 bool IncFsFileMap::Create(int fd, off64_t offset, size_t length, const char* file_name) { in Create() 64 bool IncFsFileMap::Create(int fd, off64_t offset, size_t length, const char* file_name, in Create() 70 bool IncFsFileMap::CreateForceVerification(int fd, off64_t offset, size_t length, in CreateForceVerification() 111 const off64_t read_offset = (curr_index * INCFS_DATA_FILE_BLOCK_SIZE) + start_block_offset_; in Verify() 139 bool IncFsFileMap::Create(int fd, off64_t offset, size_t length, const char* file_name, in Create() 144 bool IncFsFileMap::CreateForceVerification(int fd, off64_t offset, size_t length, in CreateForceVerification()
|
/system/memory/libmeminfo/ |
D | pageacct.cpp | 31 static inline off64_t pfn_to_idle_bitmap_offset(uint64_t pfn) { in pfn_to_idle_bitmap_offset() 32 return static_cast<off64_t>((pfn >> 6) << 3); in pfn_to_idle_bitmap_offset() 119 off64_t offset = pfn_to_idle_bitmap_offset(pfn); in MarkPageIdle() 132 off64_t offset = pfn_to_idle_bitmap_offset(pfn); in GetPageIdle()
|
/system/core/trusty/apploader/ |
D | apploader.cpp | 91 static unique_fd read_file(const char* file_name, off64_t* out_file_size) { in read_file() 94 off64_t file_size, file_page_offset, file_page_size; in read_file() 134 off64_t file_offset = 0; in read_file() 149 file_offset += (off64_t)num_read; in read_file() 166 static ssize_t send_load_message(int tipc_fd, int package_fd, off64_t package_size) { in send_load_message() 234 off64_t package_size; in send_app_package()
|
/system/libziparchive/include/ziparchive/ |
D | zip_archive.h | 77 off64_t offset; 172 off64_t length, off64_t offset, bool assume_ownership = true); 188 off64_t archive_size; 285 off64_t GetFileDescriptorOffset(const ZipArchiveHandle archive); 337 virtual bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const = 0;
|
/system/vold/ |
D | secdiscard.cpp | 49 bool overwrite_with_zeros(int fd, off64_t start, off64_t length); 215 bool overwrite_with_zeros(int fd, off64_t start, off64_t length) { in overwrite_with_zeros() 223 size_t wlen = static_cast<size_t>(std::min(static_cast<off64_t>(sizeof(buf)), length)); in overwrite_with_zeros()
|
/system/core/libutils/ |
D | FileMap_fuzz.cpp | 40 off64_t offset = dataProvider.ConsumeIntegralInRange<off64_t>(1, INT64_MAX); in LLVMFuzzerTestOneInput()
|
D | FileMap_test.cpp | 42 off64_t offset = INT32_MAX + 1024LL; in TEST() 62 off64_t offset = 200; in TEST()
|