Home
last modified time | relevance | path

Searched refs:off64_t (Results 1 – 25 of 63) sorted by relevance

123

/system/libziparchive/
Dzip_archive_private.h40 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);
Dzip_archive.cc157 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/
DCompat.h30 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()
DFileMap.h67 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/
Dfstab.h43 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/
Dsnapshot_reader.h42 off64_t Seek(off64_t offset, int whence) override;
60 off64_t Seek(off64_t offset, int whence) override;
79 off64_t offset_ = 0;
Dsnapshot_reader.cpp55 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/
Dmapped_file.cpp28 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/
Dcached_file_descriptor_unittest.cc120 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()
Dfile_descriptor.h73 virtual off64_t Seek(off64_t offset, int whence) = 0;
121 off64_t Seek(off64_t offset, int whence) override;
Dfake_file_descriptor.h61 off64_t Seek(off64_t offset, int whence) override;
112 off64_t size_{std::numeric_limits<off64_t>::max()};
Dfilesystem_verifier_action.h90 const off64_t start_offset,
91 const off64_t end_offset,
95 const off64_t start_offset,
96 const off64_t end_offset,
Dcached_file_descriptor.cc29 off64_t CachedFileDescriptor::Seek(off64_t offset, int whence) { in Seek()
34 off64_t next_offset = whence == SEEK_SET ? offset : offset_ + offset; in Seek()
Dcached_file_descriptor.h49 off64_t Seek(off64_t offset, int whence) override;
69 off64_t offset_{0};
Dfec_file_descriptor.h43 off64_t Seek(off64_t offset, int whence) override;
Dextent_writer.cc48 const off64_t offset = in Write()
51 static_cast<off64_t>(-1)); in Write()
Dcow_writer_file_descriptor.h44 off64_t Seek(off64_t offset, int whence) override;
Dfec_file_descriptor.cc57 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek()
/system/incremental_delivery/incfs/util/
Dmap_ptr.cpp41 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/
Dpageacct.cpp31 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/
Dapploader.cpp91 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/
Dzip_archive.h77 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/
Dsecdiscard.cpp49 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/
DFileMap_fuzz.cpp40 off64_t offset = dataProvider.ConsumeIntegralInRange<off64_t>(1, INT64_MAX); in LLVMFuzzerTestOneInput()
DFileMap_test.cpp42 off64_t offset = INT32_MAX + 1024LL; in TEST()
62 off64_t offset = 200; in TEST()

123