Home
last modified time | relevance | path

Searched refs:off_t (Results 1 – 25 of 89) sorted by relevance

1234

/system/core/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.h38 off_t offset = 0;
39 off_t size = 0;
65 Location GetSignatureLocation(off_t cdRecordOffset);
69 off_t FindEndOfCDRecord() const;
78 off_t size_;
Dapk_archive.cpp108 off_t ApkArchive::FindEndOfCDRecord() const { in FindEndOfCDRecord()
110 constexpr off_t endOfCDMinSize = 22; in FindEndOfCDRecord()
111 constexpr off_t endOfCDMaxSize = 65535 + endOfCDMinSize; in FindEndOfCDRecord()
153 constexpr off_t cdEntryHeaderSizeBytes = 22; in GetCDLocation()
157 off_t eocdRecord = FindEndOfCDRecord(); in GetCDLocation()
176 ApkArchive::Location ApkArchive::GetSignatureLocation(off_t cdRecordOffset) { in GetSignatureLocation()
180 constexpr off_t endOfSignatureSize = 24; in GetSignatureLocation()
181 off_t signatureOffset = cdRecordOffset - endOfSignatureSize; in GetSignatureLocation()
366 off_t ddOffset = localFileHeaderOffset + kLocalFileHeaderSize + lfh->file_name_length + in CalculateLocalFileEntrySize()
385 off_t localDDOffset = 0; in CalculateLocalFileEntrySize()
/system/update_engine/common/
Dhash_calculator.cc46 off_t HashCalculator::UpdateFile(const string& name, off_t length) { in UpdateFile()
54 off_t bytes_processed = 0; in UpdateFile()
56 off_t bytes_to_read = buffer.size(); in UpdateFile()
98 off_t HashCalculator::RawHashOfFile(const string& name, in RawHashOfFile()
99 off_t length, in RawHashOfFile()
102 off_t res = calc.UpdateFile(name, length); in RawHashOfFile()
Dhash_calculator.h50 off_t UpdateFile(const std::string& name, off_t length);
75 static off_t RawHashOfFile(const std::string& name,
76 off_t length,
Dmulti_range_http_fetcher.h60 void AddRange(off_t offset, size_t size) { in AddRange()
65 void AddRange(off_t offset) { ranges_.push_back(Range(offset)); } in AddRange()
68 void SetOffset(off_t offset) override;
130 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} in Range()
131 explicit Range(off_t offset) : offset_(offset), length_(0) {} in Range()
133 inline off_t offset() const { return offset_; } in offset()
141 off_t offset_;
Dutils.h67 bool PWriteAll(int fd, const void* buf, size_t count, off_t offset);
73 off_t offset);
86 int fd, void* buf, size_t count, off_t offset, ssize_t* out_bytes_read);
91 off_t offset,
102 off_t offset,
103 off_t size,
113 off_t BlockDevSize(int fd);
119 off_t FileSize(const std::string& path);
120 off_t FileSize(int fd);
Dutils.cc183 bool PWriteAll(int fd, const void* buf, size_t count, off_t offset) { in PWriteAll()
219 off_t offset) { in PWriteAll()
221 static_cast<off_t>(-1)); in PWriteAll()
226 int fd, void* buf, size_t count, off_t offset, ssize_t* out_bytes_read) { in PReadAll()
245 off_t offset, in PReadAll()
248 static_cast<off_t>(-1)); in PReadAll()
283 static bool Read(FILE* fp, off_t size, T* out_p) { in Read()
288 off_t bytes_to_read = sizeof(buf); in Read()
298 CHECK(size >= static_cast<off_t>(nbytes)); in Read()
313 off_t offset, in ReadFileChunkAndAppend()
[all …]
/system/update_engine/payload_generator/
Dblob_file_writer.h31 BlobFileWriter(int blob_fd, off_t* blob_file_size) in BlobFileWriter()
36 off_t StoreBlob(const brillo::Blob& blob);
49 off_t* blob_file_size_;
Dblock_mapping.h50 BlockId AddDiskBlock(int fd, off_t byte_offset);
57 off_t initial_byte_offset,
67 BlockId AddBlock(int fd, off_t byte_offset, const brillo::Blob& block_data);
83 off_t byte_offset{0};
Dblob_file_writer.cc23 off_t BlobFileWriter::StoreBlob(const brillo::Blob& blob) { in StoreBlob()
28 off_t result = *blob_file_size_; in StoreBlob()
Dmapfile_filesystem.h52 MapfileFilesystem(const std::string& mapfile_filename, off_t num_blocks);
58 off_t num_blocks_;
Dblob_file_writer_unittest.cc38 off_t blob_file_size = 0; in TEST()
41 off_t blob_size = 1024; in TEST()
Dmapfile_filesystem.cc48 off_t file_size = utils::FileSize(filename); in CreateFromFile()
57 off_t num_blocks = file_size / kMapfileBlockSize; in CreateFromFile()
68 off_t num_blocks) in MapfileFilesystem()
Dblock_mapping.cc48 BlockMapping::BlockId BlockMapping::AddDiskBlock(int fd, off_t byte_offset) { in AddDiskBlock()
59 off_t initial_byte_offset, in AddManyDiskBlocks()
73 off_t byte_offset, in AddBlock()
/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp50 sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, MAP_SHARED, frontFd, (off_t) 0); in main()
55 sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, MAP_SHARED, rearFd, (off_t) 0); in main()
60 MAP_SHARED, dataFd, (off_t) 0); in main()
84 (off_t) 0); in main()
147 (off_t) 0); in main()
157 MAP_SHARED | MAP_FIXED, dataFd, (off_t) 0); in main()
/system/extras/memory_replay/tests/
DNativeInfoTest.cpp60 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
121 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
182 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
324 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
/system/update_engine/
Dtest_http_server.cc76 off_t start_offset{0};
77 off_t end_offset{0}; // non-inclusive, zero indicates unspecified.
155 string Itoa(off_t num) { in Itoa()
184 const off_t start_offset, in WriteHeaders()
185 const off_t end_offset, in WriteHeaders()
198 const off_t content_length = end_offset - start_offset; in WriteHeaders()
226 const off_t start_offset, in WritePayload()
227 const off_t end_offset, in WritePayload()
279 const off_t start_offset, in WritePayload()
280 const off_t end_offset) { in WritePayload()
[all …]
Dlibcurl_http_fetcher.h91 void SetOffset(off_t offset) override { bytes_downloaded_ = offset; } in SetOffset()
278 off_t transfer_size_{0};
281 off_t bytes_downloaded_{0};
291 off_t resume_offset_{0};
/system/extras/ioshark/
Dioshark_bench_mmap.c47 off_t offset;
59 size_t total_len, off_t offset) in setup_mmap_io_state()
80 off_t *offset) in mmap_getnext_off_len()
106 mmap_do_io(void *db_node, int prot, off_t offset, size_t len, in mmap_do_io()
170 off_t offset = file_op->mmap_offset; in ioshark_handle_mmap()
/system/update_engine/payload_consumer/
Ddownload_action.h100 void SeekToOffset(off_t offset) override;
132 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
199 static_assert(8 == sizeof(off_t), "off_t not 64 bit");
Dextent_writer_unittest.cc41 static_assert(sizeof(off_t) == 8, "off_t not 64 bit");
73 EXPECT_EQ(static_cast<off_t>(kBlockSize + bytes.size()), in TEST_F()
126 EXPECT_EQ(static_cast<off_t>(data.size()), in WriteAlignedExtents()
166 ASSERT_EQ(static_cast<off_t>(2 * kBlockSize), in TEST_F()
/system/libfmq/include/fmq/
DEventFlag.h47 static status_t createEventFlag(int fd, off_t offset, EventFlag** ef);
116 EventFlag(int fd, off_t offset, status_t* status);
/system/core/libutils/include/utils/
DCompat.h29 static_assert(sizeof(off_t) >= 8, "This code requires that Mac OS have at least a 64-bit off_t.");
30 typedef off_t off64_t;
/system/libbase/include/android-base/
Doff64_t.h21 typedef off_t off64_t;
/system/core/libcutils/
Dashmem_test.cpp40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap()
142 constexpr off_t dataStart = holeSize; in TEST()
143 constexpr off_t dataEnd = dataStart + dataSize; in TEST()
156 off_t offset; in TEST()
159 off_t ret; in TEST()
173 off_t dataOff = off - dataStart; in TEST()

1234