Home
last modified time | relevance | path

Searched refs:off64_t (Results 1 – 25 of 59) 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.cc154 off64_t eocdOffset, CentralDirectoryInfo* cdInfo) { in FindCentralDirectoryInfoForZip64()
213 off64_t file_length, uint32_t read_amount, in FindCentralDirectoryInfo()
216 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo()
246 const off64_t eocd_offset = search_start + i; in FindCentralDirectoryInfo()
252 const off64_t calculated_length = eocd_offset + sizeof(EocdRecord) + eocd->comment_length; in FindCentralDirectoryInfo()
270 if (static_cast<off64_t>(eocd->cd_start_offset) + eocd->cd_size > eocd_offset) { in FindCentralDirectoryInfo()
292 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory()
302 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory()
348 if (!archive->InitializeCentralDirectory(static_cast<off64_t>(cdInfo.cd_start_offset), in MapCentralDirectory()
500 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/vold/
DEncryptInplace.h32 int cryptfs_enable_inplace(const char* crypto_blkdev, const char* real_blkdev, off64_t size,
33 off64_t* size_already_done, off64_t tot_size,
34 off64_t previously_encrypted_upto, bool set_progress_properties);
DEncryptInplace.cpp61 off64_t numblocks;
62 off64_t one_pct, cur_pct, new_pct;
63 off64_t blocks_already_done, tot_numblocks;
64 off64_t used_blocks_already_done, tot_used_blocks;
68 off64_t offset;
70 off64_t last_written_sector;
104 off64_t remaining_blocks = data->tot_used_blocks - data->used_blocks_already_done; in update_progress()
125 static off64_t offset = -1; in log_progress()
140 offset = data->offset + (off64_t)data->count * info.block_size; in log_progress()
174 off64_t ret; in encrypt_groups()
[all …]
Dsecdiscard.cpp49 bool overwrite_with_zeros(int fd, off64_t start, off64_t length);
174 bool overwrite_with_zeros(int fd, off64_t start, off64_t length) { in overwrite_with_zeros()
182 size_t wlen = static_cast<size_t>(std::min(static_cast<off64_t>(sizeof(buf)), length)); in overwrite_with_zeros()
/system/core/fs_mgr/include_fstab/fstab/
Dfstab.h42 off64_t length = 0;
47 off64_t zram_size = 0;
48 off64_t reserved_size = 0;
50 off64_t erase_blk_size = 0;
51 off64_t logical_blk_size = 0;
/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()
Dfake_file_descriptor.h61 off64_t Seek(off64_t offset, int whence) override;
112 off64_t size_{std::numeric_limits<off64_t>::max()};
Dfile_descriptor.h73 virtual off64_t Seek(off64_t offset, int whence) = 0;
120 off64_t Seek(off64_t offset, int whence) override;
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()
Dfec_file_descriptor.cc55 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek()
Dfake_file_descriptor.cc55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { in Seek()
/system/core/adb/client/
Dincremental_utils.cpp113 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd) { in skip_id_sig_headers()
123 static T valueAt(borrowed_fd fd, off64_t offset) { in valueAt()
151 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset()
158 off64_t eocdOffset = -1; in CentralDirOffset()
159 off64_t maxEocdOffset = fileSize - kZipEocdRecMinSize; in CentralDirOffset()
179 off64_t cdLen = static_cast<int64_t>( in CentralDirOffset()
186 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset()
192 off64_t cdOffset = CentralDirOffset(fd, fileSize); in SignerBlockOffset()
203 off64_t signerBlockOffset = cdOffset - signerSizeInFooter - sizeof(int64_t); in SignerBlockOffset()
215 static std::vector<int32_t> ZipPriorityBlocks(off64_t signerBlockOffset, Size fileSize) { in ZipPriorityBlocks()
[all …]
/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/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);
329 virtual bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const = 0;
/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()
/system/libbase/include/android-base/
Dmapped_file.h50 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,
/system/core/libsparse/
Dimg2simg.cpp37 #define off64_t off_t macro
50 off64_t len; in main()

123